Skip to content

Commit 7bcac7d

Browse files
committed
build: Enforcing use of file-scoped namespacing in root .editorconfig
1 parent 0e4038e commit 7bcac7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ csharp_style_var_for_built_in_types = true
152152
csharp_style_var_when_type_is_apparent = true # IDE0007 and IDE0008
153153
csharp_style_var_elsewhere = true # IDE0007 and IDE0008
154154

155+
# Namespace declaration preferences
156+
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0160-ide0161?view=vs-2022
157+
csharp_style_namespace_declarations = file_scoped # IDE0160 and IDE0161
158+
155159
# Expression-bodied members
156160
# https://docs.microsoft.com/visualstudio/ide/editorconfig-language-conventions#expression-bodied-members
157161
csharp_style_expression_bodied_constructors = when_on_single_line # IDE0021

0 commit comments

Comments
 (0)