@@ -33,7 +33,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
33
33
messageFormat : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . DeclarePublicApiMessage ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
34
34
category : AnalyzerCategory . ApiDesign ,
35
35
defaultSeverity : DiagnosticSeverity . Warning ,
36
- isEnabledByDefault : true ,
36
+ isEnabledByDefault : AnalyzerConstants . EnabledByDefault ,
37
37
description : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . DeclarePublicApiDescription ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
38
38
helpLinkUri : $ "https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{ RoslynDiagnosticIds . DeclarePublicApiRuleId } .md",
39
39
customTags : new string [ 0 ] ) ;
@@ -44,7 +44,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
44
44
messageFormat : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . RemoveDeletedApiMessage ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
45
45
category : AnalyzerCategory . ApiDesign ,
46
46
defaultSeverity : DiagnosticSeverity . Warning ,
47
- isEnabledByDefault : true ,
47
+ isEnabledByDefault : AnalyzerConstants . EnabledByDefault ,
48
48
description : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . RemoveDeletedApiDescription ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
49
49
helpLinkUri : $ "https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{ RoslynDiagnosticIds . RemoveDeletedApiRuleId } .md",
50
50
customTags : new string [ 0 ] ) ;
@@ -55,7 +55,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
55
55
messageFormat : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . ExposedNoninstantiableTypeMessage ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
56
56
category : AnalyzerCategory . ApiDesign ,
57
57
defaultSeverity : DiagnosticSeverity . Warning ,
58
- isEnabledByDefault : true ,
58
+ isEnabledByDefault : AnalyzerConstants . EnabledByDefault ,
59
59
description : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . ExposedNoninstantiableTypeDescription ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
60
60
helpLinkUri : $ "https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{ RoslynDiagnosticIds . ExposedNoninstantiableTypeRuleId } .md",
61
61
customTags : new string [ 0 ] ) ;
@@ -66,7 +66,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
66
66
messageFormat : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . PublicApiFilesInvalidMessage ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
67
67
category : AnalyzerCategory . ApiDesign ,
68
68
defaultSeverity : DiagnosticSeverity . Warning ,
69
- isEnabledByDefault : true ,
69
+ isEnabledByDefault : AnalyzerConstants . EnabledByDefault ,
70
70
helpLinkUri : $ "https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{ RoslynDiagnosticIds . PublicApiFilesInvalid } .md",
71
71
customTags : new string [ 0 ] ) ;
72
72
@@ -76,7 +76,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
76
76
messageFormat : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . DuplicateSymbolsInPublicApiFilesMessage ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
77
77
category : AnalyzerCategory . ApiDesign ,
78
78
defaultSeverity : DiagnosticSeverity . Warning ,
79
- isEnabledByDefault : true ,
79
+ isEnabledByDefault : AnalyzerConstants . EnabledByDefault ,
80
80
helpLinkUri : $ "https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{ RoslynDiagnosticIds . DuplicatedSymbolInPublicApiFiles } .md",
81
81
customTags : new string [ 0 ] ) ;
82
82
@@ -86,7 +86,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
86
86
messageFormat : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . AvoidMultipleOverloadsWithOptionalParametersMessage ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
87
87
category : AnalyzerCategory . ApiDesign ,
88
88
defaultSeverity : DiagnosticSeverity . Warning ,
89
- isEnabledByDefault : true ,
89
+ isEnabledByDefault : AnalyzerConstants . EnabledByDefault ,
90
90
helpLinkUri : $ "https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{ RoslynDiagnosticIds . AvoidMultipleOverloadsWithOptionalParameters } .md",
91
91
customTags : new string [ 0 ] ) ;
92
92
@@ -96,7 +96,7 @@ internal sealed partial class DeclarePublicAPIAnalyzer : DiagnosticAnalyzer
96
96
messageFormat : new LocalizableResourceString ( nameof ( RoslynDiagnosticsResources . OverloadWithOptionalParametersShouldHaveMostParametersMessage ) , RoslynDiagnosticsResources . ResourceManager , typeof ( RoslynDiagnosticsResources ) ) ,
97
97
category : AnalyzerCategory . ApiDesign ,
98
98
defaultSeverity : DiagnosticSeverity . Warning ,
99
- isEnabledByDefault : true ,
99
+ isEnabledByDefault : AnalyzerConstants . EnabledByDefault ,
100
100
helpLinkUri : $ "https://github.com/DotNetAnalyzers/PublicApiAnalyzer/blob/master/documentation/{ RoslynDiagnosticIds . OverloadWithOptionalParametersShouldHaveMostParameters } .md",
101
101
customTags : new string [ 0 ] ) ;
102
102
0 commit comments