Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add analyser which checks uniqueness of translation keys in a single file #63

Merged
merged 3 commits into from
May 17, 2024

Implement checking for duplicate translation keys

700668f
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add analyser which checks uniqueness of translation keys in a single file #63

Implement checking for duplicate translation keys
700668f
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results (Windows) succeeded May 16, 2024 in 0s

Test Results (Windows) ✔️

Tests passed successfully

✔️ TestResults-Windows.trx

48 tests were completed in 9s with 48 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
LocalisationAnalyser.Tests.Analysers.LocalisationKeyUsedMultipleTimesInClassAnalyserTests 1✔️ 4s
LocalisationAnalyser.Tests.Analysers.ResolvedAttributeRedundantNullabilityAnalyserTests 1✔️ 6s
LocalisationAnalyser.Tests.Analysers.StringCanBeLocalisedAnalyserTests 10✔️ 4s
LocalisationAnalyser.Tests.Analysers.TextDoesNotMatchXmlDocAnalyserTests 1✔️ 3s
LocalisationAnalyser.Tests.Analysers.XmlDocDoesNotMatchTextAnalyserTests 1✔️ 3s
LocalisationAnalyser.Tests.CodeFixes.LocaliseClassStringCodeFixProviderTests 16✔️ 6s
LocalisationAnalyser.Tests.CodeFixes.LocaliseCommonStringCodeFixProviderTests 1✔️ 2s
LocalisationAnalyser.Tests.CodeFixes.MakeTextMatchXmlDocCodeFixProviderTests 1✔️ 3s
LocalisationAnalyser.Tests.CodeFixes.MakeXmlDocMatchTextCodeFixProviderTests 1✔️ 4s
LocalisationAnalyser.Tests.Localisation.LocalisationFileTests 15✔️ 928ms

✔️ LocalisationAnalyser.Tests.Analysers.LocalisationKeyUsedMultipleTimesInClassAnalyserTests

✔️ RunTest(name: "DuplicatedLocalisationKeys")

✔️ LocalisationAnalyser.Tests.Analysers.ResolvedAttributeRedundantNullabilityAnalyserTests

✔️ RunTest(name: "ResolvedAttributeRedundancy")

✔️ LocalisationAnalyser.Tests.Analysers.StringCanBeLocalisedAnalyserTests

✔️ RunTest(name: "Attribute")
✔️ RunTest(name: "BasicString")
✔️ RunTest(name: "DescriptionAttribute")
✔️ RunTest(name: "EmptyString")
✔️ RunTest(name: "InterpolatedString")
✔️ RunTest(name: "NumericString")
✔️ RunTest(name: "SettingSourceAttribute")
✔️ RunTest(name: "StringConcatenation")
✔️ RunTest(name: "VerbatimInterpolatedString")
✔️ RunTest(name: "VerbatimString")

✔️ LocalisationAnalyser.Tests.Analysers.TextDoesNotMatchXmlDocAnalyserTests

✔️ RunTest(name: "TextDoesNotMatchXmlDoc")

✔️ LocalisationAnalyser.Tests.Analysers.XmlDocDoesNotMatchTextAnalyserTests

✔️ RunTest(name: "XmlDocDoesNotMatchText")

✔️ LocalisationAnalyser.Tests.CodeFixes.LocaliseClassStringCodeFixProviderTests

✔️ Check(name: "BasicString")
✔️ Check(name: "CustomLocalisationNamespace")
✔️ Check(name: "CustomPrefixNamespace")
✔️ Check(name: "CustomResourceNamespace")
✔️ Check(name: "DescriptionAttribute")
✔️ Check(name: "InterpolatedString")
✔️ Check(name: "InterpolatedStringWithQuotes")
✔️ Check(name: "LicenseHeader")
✔️ Check(name: "LongString")
✔️ Check(name: "NestedClass")
✔️ Check(name: "SequentialCapitals")
✔️ Check(name: "SettingSourceAttribute")
✔️ Check(name: "StringWithApostrophe")
✔️ Check(name: "VerbatimString")
✔️ CheckWithBrokenAnalyzerConfigFiles(name: "CustomFileNamespace")
✔️ CheckWithBrokenAnalyzerConfigFiles(name: "CustomPrefixNamespace")

✔️ LocalisationAnalyser.Tests.CodeFixes.LocaliseCommonStringCodeFixProviderTests

✔️ Check(name: "CommonBasicString")

✔️ LocalisationAnalyser.Tests.CodeFixes.MakeTextMatchXmlDocCodeFixProviderTests

✔️ Check(name: "MakeTextMatchXmlDoc")

✔️ LocalisationAnalyser.Tests.CodeFixes.MakeXmlDocMatchTextCodeFixProviderTests

✔️ Check(name: "MakeXmlDocMatchText")

✔️ LocalisationAnalyser.Tests.Localisation.LocalisationFileTests

✔️ CheckMethodMemberIsReadCorrectly
✔️ CheckPropertyMemberIsReadCorrectly
✔️ CheckVerbatimStringIsConvertedToLiteral
✔️ ClassGeneratedForNoFile
✔️ CustomXmlDoc
✔️ EmptyFileContainsNoMembers
✔️ EncodeEnglishStringIntoXmlDoc
✔️ FileIsNotChangedAfterReSaving
✔️ MethodIsGeneratedFromParameters
✔️ MultiLineEnglishTextGeneratesMultipleXmlDocLines
✔️ PropertyIsGeneratedFromNoParameters
✔️ ReservedKeywordIsPrefixed
✔️ XmlDocIsHtmlDecoded
✔️ XmlDocWithNewlines
✔️ XmlDocWithXmlEntities