Skip to content

Commit

Permalink
Add private field naming rule to editorconfig (#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Nov 21, 2024
1 parent 1b8e3f1 commit 718cd23
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,24 @@ indent_size = 4

[*.cs]
indent_size = 4

dotnet_diagnostic.IDE0005.severity = error
dotnet_diagnostic.VSTHRD003.severity = none
dotnet_diagnostic.VSTHRD103.severity = none
dotnet_diagnostic.VSTHRD105.severity = none

dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = suggestion

dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private

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

dotnet_sort_system_directives_first = true

csharp_style_namespace_declarations = file_scoped:warning
csharp_prefer_braces = true:warning

Expand Down

0 comments on commit 718cd23

Please sign in to comment.