Skip to content

Commit 7e684df

Browse files
committed
Set dotnet_style_require_accessibility_modifiers
1 parent 15f3e97 commit 7e684df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ csharp_space_after_cast = true
1515
csharp_indent_switch_labels = true
1616
csharp_indent_case_contents = true
1717
csharp_indent_labels = one_less_than_current
18+
dotnet_style_require_accessibility_modifiers = for_non_interface_members # for IDE0040
1819
trim_trailing_whitespace = true
1920

2021
# Style rules
@@ -64,6 +65,8 @@ dotnet_diagnostic.IDE0032.severity = suggestion
6465
dotnet_diagnostic.IDE0034.severity = suggestion
6566
# Use pattern matching to avoid is check followed by a cast (without variable)
6667
dotnet_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
6871
dotnet_diagnostic.IDE0041.severity = warning
6972
# Deconstruct variable declaration

0 commit comments

Comments
 (0)