-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added editorconfig to enforce private and public member naming conven…
…tion Signed-off-by: Daniel Robinson <[email protected]>
- Loading branch information
1 parent
1f939a5
commit 4bf2a21
Showing
2 changed files
with
68 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Remove the line below if you want to inherit .editorconfig settings from higher directories | ||
root = true | ||
|
||
# C# files | ||
[*.cs] | ||
|
||
#### Core EditorConfig Options #### | ||
|
||
# Indentation and spacing | ||
indent_size = 4 | ||
indent_style = space | ||
tab_width = 4 | ||
|
||
# New line preferences | ||
end_of_line = crlf | ||
insert_final_newline = false | ||
|
||
#### .NET Coding Conventions #### | ||
|
||
# Naming Rules | ||
dotnet_naming_rule.private_fields_should_start_with_underscore.severity = error | ||
dotnet_naming_rule.private_fields_should_start_with_underscore.symbols = private_fields | ||
dotnet_naming_rule.private_fields_should_start_with_underscore.style = private_underscore_style | ||
|
||
dotnet_naming_symbols.private_fields.applicable_kinds = field | ||
dotnet_naming_symbols.private_fields.applicable_accessibilities = private | ||
dotnet_naming_symbols.private_fields.required_modifiers = | ||
|
||
dotnet_naming_style.private_underscore_style.capitalization = camel_case | ||
dotnet_naming_style.private_underscore_style.required_prefix = _ | ||
|
||
dotnet_naming_rule.public_members_should_start_with_uppercase.severity = error | ||
dotnet_naming_rule.public_members_should_start_with_uppercase.symbols = public_members | ||
dotnet_naming_rule.public_members_should_start_with_uppercase.style = public_uppercase_style | ||
|
||
dotnet_naming_symbols.public_members.applicable_kinds = property, field, method | ||
dotnet_naming_symbols.public_members.applicable_accessibilities = public | ||
dotnet_naming_symbols.public_members.required_modifiers = | ||
|
||
dotnet_naming_style.public_uppercase_style.capitalization = pascal_case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters