diff --git a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/OperatorOverloadsHaveNamedAlternates.cs b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/OperatorOverloadsHaveNamedAlternates.cs index e37069c48c..35b18dd8fa 100644 --- a/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/OperatorOverloadsHaveNamedAlternates.cs +++ b/src/NetAnalyzers/Core/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/OperatorOverloadsHaveNamedAlternates.cs @@ -188,7 +188,7 @@ internal static bool IsPropertyExpected(string operatorName) internal static ExpectedAlternateMethodGroup? GetExpectedAlternateMethodGroup(string operatorName, ITypeSymbol returnType, ITypeSymbol? parameterType) { - // list of operator alternate names: https://docs.microsoft.com/visualstudio/code-quality/ca2225-operator-overloads-have-named-alternates + // list of operator alternate names: https://docs.microsoft.com/visualstudio/code-quality/ca2225 // the most common case; create a static method with the already specified types static ExpectedAlternateMethodGroup createSingle(string methodName) => new ExpectedAlternateMethodGroup(methodName); diff --git a/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/DisposeObjectsBeforeLosingScopeTests.cs b/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/DisposeObjectsBeforeLosingScopeTests.cs index d4eec97afd..2bae868914 100644 --- a/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/DisposeObjectsBeforeLosingScopeTests.cs +++ b/src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/DisposeObjectsBeforeLosingScopeTests.cs @@ -1437,7 +1437,7 @@ End Class [InlineData(DisposeAnalysisKind.NonExceptionPathsOnlyNotDisposed)] internal async Task DocsMicrosoft_Sample(DisposeAnalysisKind disposeAnalysisKind) { - // See https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2000-dispose-objects-before-losing-scope + // See https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2000 var editorConfigFile = GetEditorConfigContent(disposeAnalysisKind); diff --git a/src/Text.Analyzers/Core/IdentifiersShouldBeSpelledCorrectly.cs b/src/Text.Analyzers/Core/IdentifiersShouldBeSpelledCorrectly.cs index a1e1204e3f..49f8738944 100644 --- a/src/Text.Analyzers/Core/IdentifiersShouldBeSpelledCorrectly.cs +++ b/src/Text.Analyzers/Core/IdentifiersShouldBeSpelledCorrectly.cs @@ -41,7 +41,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor NamespaceRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -50,7 +50,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor TypeRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -59,7 +59,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor MemberRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -68,7 +68,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor MemberParameterRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -77,7 +77,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor DelegateParameterRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -86,7 +86,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor TypeTypeParameterRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -95,7 +95,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor MethodTypeParameterRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -104,7 +104,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor AssemblyMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -113,7 +113,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor NamespaceMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -122,7 +122,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor TypeMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -131,7 +131,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor MemberMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -140,7 +140,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor MemberParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -149,7 +149,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor DelegateParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -158,7 +158,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor TypeTypeParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -167,7 +167,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); internal static DiagnosticDescriptor MethodTypeParameterMoreMeaningfulNameRule = new DiagnosticDescriptor(RuleId, s_localizableTitle, @@ -176,7 +176,7 @@ public abstract class IdentifiersShouldBeSpelledCorrectlyAnalyzer : DiagnosticAn DiagnosticSeverity.Warning, isEnabledByDefault: false, description: s_localizableDescription, - helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704-identifiers-should-be-spelled-correctly", + helpLinkUri: "https://docs.microsoft.com/visualstudio/code-quality/ca1704", customTags: FxCopWellKnownDiagnosticTags.PortedFxCopRule); public override ImmutableArray SupportedDiagnostics => ImmutableArray.Empty; diff --git a/src/Utilities/Compiler/Options/EditorConfigOptionNames.cs b/src/Utilities/Compiler/Options/EditorConfigOptionNames.cs index 2a335d33be..80884fd192 100644 --- a/src/Utilities/Compiler/Options/EditorConfigOptionNames.cs +++ b/src/Utilities/Compiler/Options/EditorConfigOptionNames.cs @@ -35,7 +35,7 @@ internal static partial class EditorConfigOptionNames public const string OutputKind = "output_kind"; /// - /// Boolean option to configure if single letter type parameter names are not flagged for CA1715 (https://docs.microsoft.com/visualstudio/code-quality/ca1715-identifiers-should-have-correct-prefix). + /// Boolean option to configure if single letter type parameter names are not flagged for CA1715 (https://docs.microsoft.com/visualstudio/code-quality/ca1715). /// public const string ExcludeSingleLetterTypeParameters = "exclude_single_letter_type_parameters"; @@ -50,7 +50,7 @@ internal static partial class EditorConfigOptionNames public const string ExcludeExtensionMethodThisParameter = "exclude_extension_method_this_parameter"; /// - /// String option to configure names of null check validation methods (separated by '|') that validate arguments passed to the method are non-null for CA1062 (https://docs.microsoft.com/visualstudio/code-quality/ca1062-validate-arguments-of-public-methods). + /// String option to configure names of null check validation methods (separated by '|') that validate arguments passed to the method are non-null for CA1062 (https://docs.microsoft.com/visualstudio/code-quality/ca1062). /// Allowed method name formats: /// 1. Method name only (includes all methods with the name, regardless of the containing type or namespace) /// 2. Fully qualified names in the symbol's documentation ID format: https://github.com/dotnet/csharplang/blob/master/spec/documentation-comments.md#id-string-format @@ -59,7 +59,7 @@ internal static partial class EditorConfigOptionNames public const string NullCheckValidationMethods = "null_check_validation_methods"; /// - /// String option to configure names of additional string formatting methods (separated by '|') for CA2241 (https://docs.microsoft.com/visualstudio/code-quality/ca2241-provide-correct-arguments-to-formatting-methods). + /// String option to configure names of additional string formatting methods (separated by '|') for CA2241 (https://docs.microsoft.com/visualstudio/code-quality/ca2241). /// Allowed method name formats: /// 1. Method name only (includes all methods with the name, regardless of the containing type or namespace) /// 2. Fully qualified names in the symbol's documentation ID format: https://github.com/dotnet/csharplang/blob/master/spec/documentation-comments.md#id-string-format @@ -69,7 +69,7 @@ internal static partial class EditorConfigOptionNames /// /// String option to configure names of symbols (separated by '|') that are excluded for analysis. - /// Configurable rules: CA1303 (https://docs.microsoft.com/visualstudio/code-quality/ca1303-do-not-pass-literals-as-localized-parameters). + /// Configurable rules: CA1303 (https://docs.microsoft.com/visualstudio/code-quality/ca1303). /// Allowed method name formats: /// 1. Symbol name only (includes all symbols with the name, regardless of the containing type or namespace) /// 2. Fully qualified names in the symbol's documentation ID format: https://github.com/dotnet/csharplang/blob/master/spec/documentation-comments.md#id-string-format. @@ -80,7 +80,7 @@ internal static partial class EditorConfigOptionNames /// /// String option to configure names of types (separated by '|'), so that the type and all its derived types are excluded for analysis. - /// Configurable rules: CA1303 (https://docs.microsoft.com/visualstudio/code-quality/ca1303-do-not-pass-literals-as-localized-parameters). + /// Configurable rules: CA1303 (https://docs.microsoft.com/visualstudio/code-quality/ca1303). /// Allowed method name formats: /// 1. Type name only (includes all types with the name, regardless of the containing type or namespace) /// 2. Fully qualified names in the symbol's documentation ID format: https://github.com/dotnet/csharplang/blob/master/spec/documentation-comments.md#id-string-format @@ -90,7 +90,7 @@ internal static partial class EditorConfigOptionNames /// /// String option to configure names of symbols (separated by '|') that are disallowed in analysis. - /// Configurable rules: CA1031 (https://docs.microsoft.com/visualstudio/code-quality/ca1031-do-not-catch-general-exception-types). + /// Configurable rules: CA1031 (https://docs.microsoft.com/visualstudio/code-quality/ca1031). /// Allowed method name formats: /// 1. Symbol name only (includes all symbols with the name, regardless of the containing type or namespace) /// 2. Fully qualified names in the symbol's documentation ID format: https://github.com/dotnet/csharplang/blob/master/spec/documentation-comments.md#id-string-format. @@ -122,7 +122,7 @@ internal static partial class EditorConfigOptionNames /// /// String option to configure names of types (separated by '|'), with their suffixes (separated by '->'). - /// Configurable rules: CA1710 (https://docs.microsoft.com/visualstudio/code-quality/ca1710-identifiers-should-have-correct-suffix). + /// Configurable rules: CA1710 (https://docs.microsoft.com/visualstudio/code-quality/ca1710). /// Allowed type name formats: /// 1. Type name only (includes all types with the name, regardless of the containing type or namespace) /// 2. Fully qualified names in the symbol's documentation ID format: https://github.com/dotnet/csharplang/blob/master/spec/documentation-comments.md#id-string-format