Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit 8e28bd6

Browse files
authored
Merge pull request #18 from sharwell/enabled-by-default
Enable diagnostics using AnalyzerConstants.EnabledByDefault
2 parents 8b52f8a + 66d468a commit 8e28bd6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PublicApiAnalyzer/PublicApiAnalyzer/ApiDesign/DeclarePublicAPIAnalyzer.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
3333
messageFormat: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.DeclarePublicApiMessage), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
3434
category: AnalyzerCategory.ApiDesign,
3535
defaultSeverity: DiagnosticSeverity.Warning,
36-
isEnabledByDefault: true,
36+
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
3737
description: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.DeclarePublicApiDescription), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
3838
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.DeclarePublicApiRuleId}.md",
3939
customTags: new string[0]);
@@ -44,7 +44,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
4444
messageFormat: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.RemoveDeletedApiMessage), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
4545
category: AnalyzerCategory.ApiDesign,
4646
defaultSeverity: DiagnosticSeverity.Warning,
47-
isEnabledByDefault: true,
47+
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
4848
description: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.RemoveDeletedApiDescription), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
4949
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.RemoveDeletedApiRuleId}.md",
5050
customTags: new string[0]);
@@ -55,7 +55,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
5555
messageFormat: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.ExposedNoninstantiableTypeMessage), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
5656
category: AnalyzerCategory.ApiDesign,
5757
defaultSeverity: DiagnosticSeverity.Warning,
58-
isEnabledByDefault: true,
58+
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
5959
description: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.ExposedNoninstantiableTypeDescription), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
6060
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.ExposedNoninstantiableTypeRuleId}.md",
6161
customTags: new string[0]);
@@ -66,7 +66,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
6666
messageFormat: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.PublicApiFilesInvalidMessage), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
6767
category: AnalyzerCategory.ApiDesign,
6868
defaultSeverity: DiagnosticSeverity.Warning,
69-
isEnabledByDefault: true,
69+
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
7070
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.PublicApiFilesInvalid}.md",
7171
customTags: new string[0]);
7272

@@ -76,7 +76,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
7676
messageFormat: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.DuplicateSymbolsInPublicApiFilesMessage), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
7777
category: AnalyzerCategory.ApiDesign,
7878
defaultSeverity: DiagnosticSeverity.Warning,
79-
isEnabledByDefault: true,
79+
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
8080
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.DuplicatedSymbolInPublicApiFiles}.md",
8181
customTags: new string[0]);
8282

@@ -86,7 +86,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
8686
messageFormat: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.AvoidMultipleOverloadsWithOptionalParametersMessage), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
8787
category: AnalyzerCategory.ApiDesign,
8888
defaultSeverity: DiagnosticSeverity.Warning,
89-
isEnabledByDefault: true,
89+
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
9090
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.AvoidMultipleOverloadsWithOptionalParameters}.md",
9191
customTags: new string[0]);
9292

@@ -96,7 +96,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
9696
messageFormat: new LocalizableResourceString(nameof(RoslynDiagnosticsResources.OverloadWithOptionalParametersShouldHaveMostParametersMessage), RoslynDiagnosticsResources.ResourceManager, typeof(RoslynDiagnosticsResources)),
9797
category: AnalyzerCategory.ApiDesign,
9898
defaultSeverity: DiagnosticSeverity.Warning,
99-
isEnabledByDefault: true,
99+
isEnabledByDefault: AnalyzerConstants.EnabledByDefault,
100100
helpLinkUri: $"https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{RoslynDiagnosticIds.OverloadWithOptionalParametersShouldHaveMostParameters}.md",
101101
customTags: new string[0]);
102102

0 commit comments

Comments
 (0)