Skip to content

Commit

Permalink
Add diagnostic definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed May 16, 2024
1 parent 117c350 commit c352ef2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LocalisationAnalyser/DiagnosticRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ public static class DiagnosticRules
true,
"Prevent confusion by matching the XMLDoc and the translation text.");

public static readonly DiagnosticDescriptor LOCALISATION_KEY_USED_MULTIPLE_TIMES_IN_CLASS = new DiagnosticDescriptor(
"OLOC004",
"Localisation key used multiple times in class",
"The localisation key '{0}' has been used multiple times in this class",
"Globalization",
DiagnosticSeverity.Warning,
true,
"Use unique localisation keys for every member in a single class containing localisations.");

public static readonly DiagnosticDescriptor RESOLVED_ATTRIBUTE_NULLABILITY_IS_REDUNDANT = new DiagnosticDescriptor(
"OSUF001",
"Nullability should be provided by the type",
Expand Down

0 comments on commit c352ef2

Please sign in to comment.