Skip to content

Commit 719cba8

Browse files
committed
Make block-scoped namespaces an error
1 parent e13927f commit 719cba8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ dotnet_naming_style.pascal_case_and_prefix_with_I_style.capitalization
133133
# CSharp code style settings:
134134
[*.cs]
135135

136+
# Use file-scoped namespaces
137+
csharp_style_namespace_declarations = file_scoped:error
138+
136139
# Prefer "var" only when the type is apparent
137140
csharp_style_var_for_built_in_types = false:suggestion
138141
csharp_style_var_when_type_is_apparent = true:suggestion

0 commit comments

Comments
 (0)