Skip to content

Commit c7d0ac5

Browse files
authored
Item #10 - Use the new modifier only to react to base class updates (#44)
Resolves #35 This is prohibited by CA1061. To implement this requirement, CA1061 is enabled as a warning
1 parent 82deca6 commit c7d0ac5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: src/EffectiveCSharp.Analyzers/Build/Config/General.globalconfig

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ csharp_style_var_when_type_is_apparent = true
2020
csharp_style_pattern_matching_over_as_with_null_check = true:warning
2121
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
2222
csharp_style_prefer_not_pattern = true:warning
23-
csharp_style_prefer_pattern_matching = true:warning
23+
csharp_style_prefer_pattern_matching = true:warning
24+
25+
# Title : Use the new Modifier Only to React to Base Class Updates
26+
# Category : Style
27+
# Help Link: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1061
28+
#
29+
# Effective C# Item #10 - Use the new modifier only to react to base class Updates
30+
dotnet_diagnostic.CA1061.severity = warning

0 commit comments

Comments
 (0)