Enable CA10XX rules with suggestion severity (#13870)
CA1016: Mark assemblies with assembly version CA1018: Mark attributes with AttributeUsageAttribute CA1041: Provide ObsoleteAttribute message CA1047: Do not declare protected member in sealed type CA1061: Do not hide base class methods CA1070: Do not declare event fields as virtual
This commit is contained in:
parent
679a3a6bff
commit
91e49d42d4
|
@ -28,13 +28,13 @@ dotnet_diagnostic.CA1012.severity = none
|
|||
dotnet_diagnostic.CA1014.severity = none
|
||||
|
||||
# CA1016: Mark assemblies with assembly version
|
||||
dotnet_diagnostic.CA1016.severity = suggestion
|
||||
dotnet_diagnostic.CA1016.severity = warning
|
||||
|
||||
# CA1017: Mark assemblies with ComVisible
|
||||
dotnet_diagnostic.CA1017.severity = none
|
||||
|
||||
# CA1018: Mark attributes with AttributeUsageAttribute
|
||||
dotnet_diagnostic.CA1018.severity = suggestion
|
||||
dotnet_diagnostic.CA1018.severity = warning
|
||||
|
||||
# CA1019: Define accessors for attribute arguments
|
||||
dotnet_diagnostic.CA1019.severity = none
|
||||
|
@ -73,7 +73,7 @@ dotnet_diagnostic.CA1036.severity = silent
|
|||
dotnet_diagnostic.CA1040.severity = none
|
||||
|
||||
# CA1041: Provide ObsoleteAttribute message
|
||||
dotnet_diagnostic.CA1041.severity = suggestion
|
||||
dotnet_diagnostic.CA1041.severity = warning
|
||||
|
||||
# CA1043: Use Integral Or String Argument For Indexers
|
||||
dotnet_diagnostic.CA1043.severity = none
|
||||
|
@ -88,7 +88,7 @@ dotnet_diagnostic.CA1045.severity = none
|
|||
dotnet_diagnostic.CA1046.severity = none
|
||||
|
||||
# CA1047: Do not declare protected member in sealed type
|
||||
dotnet_diagnostic.CA1047.severity = suggestion
|
||||
dotnet_diagnostic.CA1047.severity = warning
|
||||
|
||||
# CA1050: Declare types in namespaces
|
||||
dotnet_diagnostic.CA1050.severity = warning
|
||||
|
@ -115,7 +115,7 @@ dotnet_diagnostic.CA1058.severity = none
|
|||
dotnet_diagnostic.CA1060.severity = none
|
||||
|
||||
# CA1061: Do not hide base class methods
|
||||
dotnet_diagnostic.CA1061.severity = suggestion
|
||||
dotnet_diagnostic.CA1061.severity = warning
|
||||
|
||||
# CA1062: Validate arguments of public methods
|
||||
dotnet_diagnostic.CA1062.severity = none
|
||||
|
@ -142,7 +142,7 @@ dotnet_diagnostic.CA1068.severity = suggestion
|
|||
dotnet_diagnostic.CA1069.severity = suggestion
|
||||
|
||||
# CA1070: Do not declare event fields as virtual
|
||||
dotnet_diagnostic.CA1070.severity = suggestion
|
||||
dotnet_diagnostic.CA1070.severity = warning
|
||||
|
||||
# CA1200: Avoid using cref tags with a prefix
|
||||
dotnet_diagnostic.CA1200.severity = silent
|
||||
|
|
Loading…
Reference in a new issue