Skip to content

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

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

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

GitHub Actions / Test Results (macOS) succeeded May 16, 2024 in 1s

Test Results (macOS) ✔️

Tests passed successfully

✔️ TestResults-macOS.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✔️ 2s
LocalisationAnalyser.Tests.Analysers.ResolvedAttributeRedundantNullabilityAnalyserTests 1✔️ 3s
LocalisationAnalyser.Tests.Analysers.StringCanBeLocalisedAnalyserTests 10✔️ 5s
LocalisationAnalyser.Tests.Analysers.TextDoesNotMatchXmlDocAnalyserTests 1✔️ 7s
LocalisationAnalyser.Tests.Analysers.XmlDocDoesNotMatchTextAnalyserTests 1✔️ 2s
LocalisationAnalyser.Tests.CodeFixes.LocaliseClassStringCodeFixProviderTests 16✔️ 5s
LocalisationAnalyser.Tests.CodeFixes.LocaliseCommonStringCodeFixProviderTests 1✔️ 6s
LocalisationAnalyser.Tests.CodeFixes.MakeTextMatchXmlDocCodeFixProviderTests 1✔️ 2s
LocalisationAnalyser.Tests.CodeFixes.MakeXmlDocMatchTextCodeFixProviderTests 1✔️ 2s
LocalisationAnalyser.Tests.Localisation.LocalisationFileTests 15✔️ 583ms

✔️ 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