File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ csharp_space_after_cast = true
1515csharp_indent_switch_labels = true
1616csharp_indent_case_contents = true
1717csharp_indent_labels = one_less_than_current
18+ dotnet_style_require_accessibility_modifiers = for_non_interface_members # for IDE0040
1819trim_trailing_whitespace = true
1920
2021# Style rules
@@ -64,6 +65,8 @@ dotnet_diagnostic.IDE0032.severity = suggestion
6465dotnet_diagnostic.IDE0034.severity = suggestion
6566# Use pattern matching to avoid is check followed by a cast (without variable)
6667dotnet_diagnostic.IDE0038.severity = warning
68+ # Add accessibility modifiers
69+ dotnet_diagnostic.IDE0040.severity = error # redundant with SA1400, but that's not running by default, but maybe this one and its config will affect VS2022 autocompletion
6770# Use is null check
6871dotnet_diagnostic.IDE0041.severity = warning
6972# Deconstruct variable declaration
You can’t perform that action at this time.
0 commit comments