Skip to content

Commit

Permalink
chore: add additional rules for _fieldExample (#23)
Browse files Browse the repository at this point in the history
* fix: add additional rules for _fieldExample

* fix: add extra space for format ocd

Co-authored-by: Thijs Boerefijn <51719415+Tboefijn@users.noreply.github.com>

---------

Co-authored-by: Thijs Boerefijn <51719415+Tboefijn@users.noreply.github.com>
  • Loading branch information
SSelinn and Tboefijn authored Mar 26, 2024
1 parent b2d544c commit dc07266
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,14 @@ dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf

# Use underscores for private fields
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = internal, protected_internal, private

dotnet_naming_style.prefix_underscore.capitalization = camel_case
dotnet_naming_style.prefix_underscore.required_prefix = _

dotnet_naming_rule.private_fields_with_underscore.symbols = private_fields
dotnet_naming_rule.private_fields_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_fields_with_underscore.severity = warning

0 comments on commit dc07266

Please sign in to comment.