@@ -5,14 +5,13 @@ root = true
55
66# Don't use tabs for indentation.
77[* ]
8- insert_final_newline = true
8+ insert_final_newline = false
99end_of_line = crlf
1010indent_style = space
1111
1212# Code files
1313[* .{cs,csx,vb,vbx} ]
1414indent_size = 4
15- insert_final_newline = true
1615charset = utf-8-bom
1716
1817# XML files
@@ -33,7 +32,7 @@ indent_size = 2
3332indent_size = 2
3433
3534# Appveyor yml files
36- [{ * . yml} ]
35+ [* .{ yml} ]
3736indent_style = space
3837indent_size = 2
3938
@@ -44,14 +43,27 @@ indent_size = 2
4443
4544# Naming conventions
4645
47- dotnet_naming_rule.everything_pascal_case.symbols = everything
48- dotnet_naming_symbols.everything.applicable_kinds = *
49- dotnet_naming_symbols.everything.applicable_accessibilities = *
46+ # Public methods, properties, fields etc must be PascalCase
5047
51- dotnet_naming_rule.everything_pascal_case.style = pascal_style
52- dotnet_naming_style.pascal_style.capitalization = pascal_case
48+ dotnet_naming_rule.public_members_must_be_capitalized.symbols = public_symbols
49+ dotnet_naming_symbols.public_symbols.applicable_kinds = property,method,field,event,delegate,class,struct,interface,enum
50+ dotnet_naming_symbols.public_symbols.applicable_accessibilities = public
5351
54- dotnet_naming_rule.everything_pascal_case.severity = error
52+ dotnet_naming_rule.public_members_must_be_capitalized.style = first_word_upper_case_style
53+ dotnet_naming_style.first_word_upper_case_style.capitalization = pascal_case
54+
55+ dotnet_naming_rule.public_members_must_be_capitalized.severity = error
56+
57+ # Local variables (declared inside a method) must be camelCase
58+
59+ dotnet_naming_rule.private_local_fields_must_be_lower.symbols = local_symbols
60+ dotnet_naming_symbols.local_symbols.applicable_kinds = method,field
61+ dotnet_naming_symbols.local_symbols.applicable_accessibilities = local
62+
63+ dotnet_naming_rule.private_local_fields_must_be_lower.style = first_letter_lower_case_style
64+ dotnet_naming_style.first_letter_lower_case_style.capitalization = camel_case
65+
66+ dotnet_naming_rule.private_local_fields_must_be_lower.severity = error
5567
5668# ###################################################################################################################
5769
0 commit comments