diff --git a/src/NationalInstruments.Analyzers/NationalInstruments.Analyzers.csproj b/src/NationalInstruments.Analyzers/NationalInstruments.Analyzers.csproj
index 0439984..4ab1201 100644
--- a/src/NationalInstruments.Analyzers/NationalInstruments.Analyzers.csproj
+++ b/src/NationalInstruments.Analyzers/NationalInstruments.Analyzers.csproj
@@ -19,7 +19,7 @@
-
+
diff --git a/src/NationalInstruments.Analyzers/Style/Dictionary.dic b/src/NationalInstruments.Analyzers/Properties/Dictionary.dic
similarity index 100%
rename from src/NationalInstruments.Analyzers/Style/Dictionary.dic
rename to src/NationalInstruments.Analyzers/Properties/Dictionary.dic
diff --git a/src/NationalInstruments.Analyzers/Properties/Resources.Designer.cs b/src/NationalInstruments.Analyzers/Properties/Resources.Designer.cs
index 5ef44e8..ee3362d 100644
--- a/src/NationalInstruments.Analyzers/Properties/Resources.Designer.cs
+++ b/src/NationalInstruments.Analyzers/Properties/Resources.Designer.cs
@@ -19,7 +19,7 @@ namespace NationalInstruments.Analyzers.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
@@ -61,182 +61,108 @@ internal Resources() {
}
///
- /// Looks up a localized string similar to The name of an externally visible identifier contains one or more words that are not recognized by the Microsoft spelling checker library..
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyDescription {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyDescription", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Error parsing dictionary '{0}': {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyFileParse {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyFileParse", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Correct the spelling of '{0}' in assembly name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageAssembly {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageAssembly", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Consider providing a more meaningful name than assembly name {0}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageAssemblyMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageAssemblyMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to In delegate {0}, correct the spelling of '{1}' in parameter name {2}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageDelegateParameter {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageDelegateParameter", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to In delegate {0}, consider providing a more meaningful name than parameter name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageDelegateParameterMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageDelegateParameterMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Correct the spelling of '{0}' in member name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageMember {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageMember", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Consider providing a more meaningful name than member name {0}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageMemberMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageMemberMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to In method {0}, correct the spelling of '{1}' in parameter name {2}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageMemberParameter {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageMemberParameter", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to In method {0}, consider providing a more meaningful name than parameter name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageMemberParameterMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageMemberParameterMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to On method {0}, correct the spelling of '{1}' in generic type parameter name {2}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageMethodTypeParameter {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageMethodTypeParameter", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to On method {0}, consider providing a more meaningful name than generic type parameter name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageMethodTypeParameterMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageMethodTypeParameterMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Correct the spelling of '{0}' in namespace name '{1}'.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageNamespace {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageNamespace", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Consider providing a more meaningful name than namespace name '{0}'.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageNamespaceMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageNamespaceMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Correct the spelling of '{0}' in type name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageType {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageType", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Consider providing a more meaningful name than type name {0}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageTypeMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageTypeMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to On type {0}, correct the spelling of '{1}' in generic type parameter name {2}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageTypeTypeParameter {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageTypeTypeParameter", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to On type {0}, consider providing a more meaningful name than generic type parameter name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageTypeTypeParameterMoreMeaningfulName {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageTypeTypeParameterMoreMeaningfulName", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Correct the spelling of '{0}' in variable name {1}.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyMessageVariable {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyMessageVariable", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Identifiers should be spelled correctly.
- ///
- internal static string IdentifiersShouldBeSpelledCorrectlyTitle {
- get {
- return ResourceManager.GetString("IdentifiersShouldBeSpelledCorrectlyTitle", resourceCulture);
+ /// Looks up a localized string similar to 0
+ ///0th
+ ///1
+ ///1st
+ ///1th
+ ///2
+ ///2nd
+ ///2th
+ ///3
+ ///3rd
+ ///3th
+ ///4
+ ///4th
+ ///5
+ ///5th
+ ///6
+ ///6th
+ ///7
+ ///7th
+ ///8
+ ///8th
+ ///9
+ ///9th
+ ///A
+ ///As
+ ///A's
+ ///AA
+ ///AA's
+ ///AAA
+ ///AB
+ ///AB's
+ ///ABA
+ ///ABC
+ ///ABCs
+ ///ABC's
+ ///ABM
+ ///ABMs
+ ///ABM's
+ ///ABS
+ ///AC
+ ///AC's
+ ///ACLU
+ ///ACLU's
+ ///ACT
+ ///ACTH
+ ///ACTH's
+ ///AD
+ ///AD's
+ ///ADC
+ ///ADD
+ ///ADM
+ ///ADP
+ ///ADP's
+ ///AF
+ ///AFAIK
+ ///AFB
+ ///AFC
+ ///AFC's
+ ///AFDC
+ ///AFN
+ ///AFT
+ ///AI
+ ///AIs
+ ///AI's
+ ///AIDS
+ ///AIDS's
+ ///AK
+ ///AL
+ ///AM
+ ///AM's
+ ///AMA
+ ///AMD
+ ///AMD's
+ ///ANSI
+ ///ANSIs
+ ///ANZUS
+ ///ANZUS's
+ ///AOL
+ ///AOL's
+ ///AP
+ ///AP's
+ ///APB
+ ///APC
+ ///API
+ ///APO
+ ///APR
+ ///AR
+ ///ARC
+ ///ASAP
+ ///ASCII
+ ///ASCIIs
+ ///ASCII's
+ ///ASL
+ ///ASL's
+ ///ASPCA
+ ///ATM
+ ///ATM's
+ /// [rest of string was truncated]";.
+ ///
+ internal static string Dictionary {
+ get {
+ return ResourceManager.GetString("Dictionary", resourceCulture);
}
}
@@ -645,6 +571,186 @@ internal static string NI1018_Title {
}
}
+ ///
+ /// Looks up a localized string similar to Correct the spelling of '{0}' in assembly name {1}.
+ ///
+ internal static string NI1704_Assembly_Message {
+ get {
+ return ResourceManager.GetString("NI1704_Assembly_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Consider providing a more meaningful name than assembly name {0}.
+ ///
+ internal static string NI1704_AssemblyMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_AssemblyMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to In delegate {0}, correct the spelling of '{1}' in parameter name {2}.
+ ///
+ internal static string NI1704_DelegateParameter_Message {
+ get {
+ return ResourceManager.GetString("NI1704_DelegateParameter_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to In delegate {0}, consider providing a more meaningful name than parameter name {1}.
+ ///
+ internal static string NI1704_DelegateParameterMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_DelegateParameterMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to The name of an externally visible identifier contains one or more words that are not recognized by the Microsoft spelling checker library..
+ ///
+ internal static string NI1704_Description {
+ get {
+ return ResourceManager.GetString("NI1704_Description", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Error parsing dictionary '{0}': {1}.
+ ///
+ internal static string NI1704_DictionaryParseError_Message {
+ get {
+ return ResourceManager.GetString("NI1704_DictionaryParseError_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Correct the spelling of '{0}' in member name {1}.
+ ///
+ internal static string NI1704_Member_Message {
+ get {
+ return ResourceManager.GetString("NI1704_Member_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Consider providing a more meaningful name than member name {0}.
+ ///
+ internal static string NI1704_MemberMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_MemberMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to In method {0}, correct the spelling of '{1}' in parameter name {2}.
+ ///
+ internal static string NI1704_MemberParameter_Message {
+ get {
+ return ResourceManager.GetString("NI1704_MemberParameter_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to In method {0}, consider providing a more meaningful name than parameter name {1}.
+ ///
+ internal static string NI1704_MemberParameterMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_MemberParameterMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to On method {0}, correct the spelling of '{1}' in generic type parameter name {2}.
+ ///
+ internal static string NI1704_MethodTypeParameter_Message {
+ get {
+ return ResourceManager.GetString("NI1704_MethodTypeParameter_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to On method {0}, consider providing a more meaningful name than generic type parameter name {1}.
+ ///
+ internal static string NI1704_MethodTypeParameterMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_MethodTypeParameterMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Correct the spelling of '{0}' in namespace name '{1}'.
+ ///
+ internal static string NI1704_Namespace_Message {
+ get {
+ return ResourceManager.GetString("NI1704_Namespace_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Consider providing a more meaningful name than namespace name '{0}'.
+ ///
+ internal static string NI1704_NamespaceMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_NamespaceMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Identifiers should be spelled correctly.
+ ///
+ internal static string NI1704_Title {
+ get {
+ return ResourceManager.GetString("NI1704_Title", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Correct the spelling of '{0}' in type name {1}.
+ ///
+ internal static string NI1704_Type_Message {
+ get {
+ return ResourceManager.GetString("NI1704_Type_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Consider providing a more meaningful name than type name {0}.
+ ///
+ internal static string NI1704_TypeMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_TypeMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to On type {0}, correct the spelling of '{1}' in generic type parameter name {2}.
+ ///
+ internal static string NI1704_TypeTypeParameter_Message {
+ get {
+ return ResourceManager.GetString("NI1704_TypeTypeParameter_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to On type {0}, consider providing a more meaningful name than generic type parameter name {1}.
+ ///
+ internal static string NI1704_TypeTypeParameterMoreMeaningful_Message {
+ get {
+ return ResourceManager.GetString("NI1704_TypeTypeParameterMoreMeaningful_Message", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Correct the spelling of '{0}' in variable name {1}.
+ ///
+ internal static string NI1704_Variable_Message {
+ get {
+ return ResourceManager.GetString("NI1704_Variable_Message", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Add this namespace to {0}.
///
diff --git a/src/NationalInstruments.Analyzers/Properties/Resources.resx b/src/NationalInstruments.Analyzers/Properties/Resources.resx
index 134a966..6bbf88b 100644
--- a/src/NationalInstruments.Analyzers/Properties/Resources.resx
+++ b/src/NationalInstruments.Analyzers/Properties/Resources.resx
@@ -279,64 +279,64 @@
Inaccessible internal member/type
The title of the diagnostic.
-
+
The name of an externally visible identifier contains one or more words that are not recognized by the Microsoft spelling checker library.
-
+
Error parsing dictionary '{0}': {1}
-
+
Correct the spelling of '{0}' in assembly name {1}
-
+
Consider providing a more meaningful name than assembly name {0}
-
+
In delegate {0}, correct the spelling of '{1}' in parameter name {2}
-
+
In delegate {0}, consider providing a more meaningful name than parameter name {1}
-
+
Correct the spelling of '{0}' in member name {1}
-
+
Consider providing a more meaningful name than member name {0}
-
+
In method {0}, correct the spelling of '{1}' in parameter name {2}
-
+
In method {0}, consider providing a more meaningful name than parameter name {1}
-
+
On method {0}, correct the spelling of '{1}' in generic type parameter name {2}
-
+
On method {0}, consider providing a more meaningful name than generic type parameter name {1}
-
+
Correct the spelling of '{0}' in namespace name '{1}'
-
+
Consider providing a more meaningful name than namespace name '{0}'
-
+
Correct the spelling of '{0}' in type name {1}
-
+
Consider providing a more meaningful name than type name {0}
-
+
On type {0}, correct the spelling of '{1}' in generic type parameter name {2}
-
+
On type {0}, consider providing a more meaningful name than generic type parameter name {1}
-
+
Correct the spelling of '{0}' in variable name {1}
-
+
Identifiers should be spelled correctly
@@ -414,4 +414,8 @@
Disposable should not have finalizer
+
+
+ Dictionary.dic;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252
+
\ No newline at end of file
diff --git a/src/NationalInstruments.Analyzers/Style/SpellingAnalyzer.cs b/src/NationalInstruments.Analyzers/Style/SpellingAnalyzer.cs
index f6457b9..f1c5803 100644
--- a/src/NationalInstruments.Analyzers/Style/SpellingAnalyzer.cs
+++ b/src/NationalInstruments.Analyzers/Style/SpellingAnalyzer.cs
@@ -25,26 +25,9 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
private const DiagnosticSeverity DefaultDiagnosticSeverity = DiagnosticSeverity.Warning;
- private static readonly LocalizableString LocalizableTitle = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyTitle), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageFileParse = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyFileParse), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageAssembly = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageAssembly), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageNamespace = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageNamespace), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageType = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageType), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageMember = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageMember), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageVariable = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageVariable), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageMemberParameter = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageMemberParameter), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageDelegateParameter = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageDelegateParameter), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageTypeTypeParameter = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageTypeTypeParameter), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageMethodTypeParameter = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageMethodTypeParameter), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageAssemblyMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageAssemblyMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageNamespaceMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageNamespaceMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageTypeMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageTypeMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageMemberMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageMemberMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageMemberParameterMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageMemberParameterMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageDelegateParameterMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageDelegateParameterMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageTypeTypeParameterMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageTypeTypeParameterMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableMessageMethodTypeParameterMoreMeaningfulName = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyMessageMethodTypeParameterMoreMeaningfulName), Resources.ResourceManager, typeof(Resources));
- private static readonly LocalizableString LocalizableDescription = new LocalizableResourceString(nameof(Resources.IdentifiersShouldBeSpelledCorrectlyDescription), Resources.ResourceManager, typeof(Resources));
+ private static readonly Func CreateLocalizableResourceString = (string nameOfLocalizableResource) => new LocalizableResourceString(nameOfLocalizableResource, Resources.ResourceManager, typeof(Resources));
+ private static readonly LocalizableString LocalizableTitle = CreateLocalizableResourceString(nameof(Resources.NI1704_Title));
+ private static readonly LocalizableString LocalizableDescription = CreateLocalizableResourceString(nameof(Resources.NI1704_Description));
private static readonly SourceTextValueProvider _xmlDictionaryProvider = new SourceTextValueProvider(ParseXmlDictionary);
private static readonly SourceTextValueProvider _dicDictionaryProvider = new SourceTextValueProvider(ParseDicDictionary);
@@ -53,7 +36,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor FileParseRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageFileParse,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_DictionaryParseError_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true);
@@ -61,7 +44,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor AssemblyRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageAssembly,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_Assembly_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -71,7 +54,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor NamespaceRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageNamespace,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_Namespace_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -81,7 +64,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor TypeRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageType,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_Type_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -91,7 +74,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor MemberRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageMember,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_Member_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -101,7 +84,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor VariableRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageVariable,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_Variable_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -110,7 +93,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor MemberParameterRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageMemberParameter,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_MemberParameter_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -120,7 +103,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor DelegateParameterRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageDelegateParameter,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_DelegateParameter_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -130,7 +113,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor TypeTypeParameterRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageTypeTypeParameter,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_TypeTypeParameter_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -140,7 +123,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor MethodTypeParameterRule = new DiagnosticDescriptor(
MisspelledDiagnosticId,
LocalizableTitle,
- LocalizableMessageMethodTypeParameter,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_MethodTypeParameter_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: true,
@@ -150,7 +133,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor AssemblyMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageAssemblyMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_AssemblyMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,
@@ -160,7 +143,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor NamespaceMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageNamespaceMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_NamespaceMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,
@@ -170,7 +153,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor TypeMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageTypeMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_TypeMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,
@@ -180,7 +163,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor MemberMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageMemberMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_MemberMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,
@@ -190,7 +173,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor MemberParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageMemberParameterMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_MemberParameterMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,
@@ -200,7 +183,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor DelegateParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageDelegateParameterMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_DelegateParameterMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,
@@ -210,7 +193,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor TypeTypeParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageTypeTypeParameterMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_TypeTypeParameterMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,
@@ -220,7 +203,7 @@ public class SpellingAnalyzer : NIDiagnosticAnalyzer
public static readonly DiagnosticDescriptor MethodTypeParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(
UnmeaningfulDiagnosticId,
LocalizableTitle,
- LocalizableMessageMethodTypeParameterMoreMeaningfulName,
+ CreateLocalizableResourceString(nameof(Resources.NI1704_MethodTypeParameterMoreMeaningful_Message)),
Category.Style,
DefaultDiagnosticSeverity,
isEnabledByDefault: false,