Skip to content

Commit d577163

Browse files
author
Gonzalo Diaz
committed
[CONFIG] .NET C# code style rules refined. Editorconfig
1 parent 048da82 commit d577163

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.editorconfig

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,17 @@ indent_size = 2
4141

4242
[*.cs]
4343
#IDE1006
44-
dotnet_naming_style.camel_case.capitalization = camel_case
45-
dotnet_naming_symbols.private_symbols.applicable_accessibilities = private
46-
dotnet_naming_rule.camel_case_for_private.severity = warning
47-
dotnet_naming_rule.camel_case_for_private.symbols = private_symbols
48-
dotnet_naming_rule.camel_case_for_private.style = camel_case
44+
# Defining the 'all_methods' symbol group
45+
dotnet_naming_symbols.all_methods.applicable_kinds = method
46+
dotnet_naming_symbols.public_symbols.applicable_accessibilities = public
47+
dotnet_naming_symbols.public_symbols.required_modifiers = readonly
48+
# Defining the 'first_word_upper_case_style' naming style
49+
dotnet_naming_style.camel_case_style.capitalization = camel_case
50+
51+
# Defining the 'all_methods_must_be_camel_case' naming rule, by setting the
52+
# symbol group to the 'public symbols' symbol group,
53+
dotnet_naming_rule.all_methods_must_be_camel_case.symbols = all_methods
54+
# setting the naming style to the 'first_word_upper_case_style' naming style,
55+
dotnet_naming_rule.all_methods_must_be_camel_case.style = camel_case_style
56+
# and setting the severity.
57+
dotnet_naming_rule.all_methods_must_be_camel_case.severity = warning

0 commit comments

Comments
 (0)