Skip to content

Commit ae6d6b9

Browse files
authored
Fix typos and code style (microsoft#741)
* Fix filename containing a space (`ApiKeyAuthenticationHandler .cs`) * Fix typos * Fix code style * Add missing rule for local constants * Add commented code to automate code style checks. These don't work with .NET Standard 2.0, so we'll need some extra research. * Fix one incorrect ILogger naming * Add some TODOs about unused code * Fix xmldocs
1 parent 63e09fc commit ae6d6b9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.editorconfig

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,17 @@ dotnet_diagnostic.CA2201.severity = warning # Exception type System.Exception is
131131

132132
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
133133

134+
dotnet_naming_style.camel_case_style.capitalization = camel_case
135+
134136
dotnet_naming_style.static_underscored.capitalization = camel_case
135137
dotnet_naming_style.static_underscored.required_prefix = s_
136138

137139
dotnet_naming_style.underscored.capitalization = camel_case
138140
dotnet_naming_style.underscored.required_prefix = _
139141

142+
dotnet_naming_style.uppercase_with_underscore_separator.capitalization = all_upper
143+
dotnet_naming_style.uppercase_with_underscore_separator.word_separator = _
144+
140145
dotnet_naming_style.end_in_async.required_prefix =
141146
dotnet_naming_style.end_in_async.required_suffix = Async
142147
dotnet_naming_style.end_in_async.capitalization = pascal_case
@@ -148,6 +153,10 @@ dotnet_naming_symbols.constant_fields.applicable_kinds = field
148153
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
149154
dotnet_naming_symbols.constant_fields.required_modifiers = const
150155

156+
dotnet_naming_symbols.local_constant.applicable_kinds = local
157+
dotnet_naming_symbols.local_constant.applicable_accessibilities = *
158+
dotnet_naming_symbols.local_constant.required_modifiers = const
159+
151160
dotnet_naming_symbols.private_static_fields.applicable_kinds = field
152161
dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private
153162
dotnet_naming_symbols.private_static_fields.required_modifiers = static
@@ -161,9 +170,13 @@ dotnet_naming_symbols.any_async_methods.required_modifiers = async
161170

162171
# Rules
163172

164-
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = error
165-
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
173+
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
166174
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
175+
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = error
176+
177+
dotnet_naming_rule.local_constant_should_be_pascal_case.symbols = local_constant
178+
dotnet_naming_rule.local_constant_should_be_pascal_case.style = pascal_case_style
179+
dotnet_naming_rule.local_constant_should_be_pascal_case.severity = error
167180

168181
dotnet_naming_rule.private_static_fields_underscored.symbols = private_static_fields
169182
dotnet_naming_rule.private_static_fields_underscored.style = static_underscored

0 commit comments

Comments
 (0)