0.2.0-dev Download ZIP
68 lines ·3.2 KB Raw
| 1 | [*.{sln,csproj}] |
| 2 | end_of_line = crlf |
| 3 | charset = utf-8-bom |
| 4 | |
| 5 | [*.{csproj,props,targets,nuspec,resx}] |
| 6 | indent_style = space |
| 7 | indent_size = 2 |
| 8 | |
| 9 | [*.cs] |
| 10 | indent_style = space |
| 11 | |
| 12 | csharp_indent_case_contents_when_block = false |
| 13 | csharp_new_line_before_open_brace = all |
| 14 | csharp_new_line_before_else = true |
| 15 | csharp_new_line_before_catch = true |
| 16 | csharp_new_line_before_finally = true |
| 17 | csharp_new_line_before_members_in_object_initializers = true |
| 18 | csharp_new_line_before_members_in_anonymous_types = true |
| 19 | |
| 20 | dotnet_style_require_accessibility_modifiers = always |
| 21 | |
| 22 | # Diagnostics to prevent defensive copies of `in` struct parameters |
| 23 | resharper_possibly_impure_method_call_on_readonly_variable_highlighting = error |
| 24 | |
| 25 | # IDE0040: Add accessibility modifiers |
| 26 | dotnet_diagnostic.IDE0040.severity = warning |
| 27 | |
| 28 | # IDE1006: Naming rule violation |
| 29 | dotnet_diagnostic.IDE1006.severity = suggestion |
| 30 | |
| 31 | # Severity levels for dotnet_naming_rule only affect IDE environments. |
| 32 | # To have them extra visible to people, we can set them as 'warning' here without affecting compilation. |
| 33 | |
| 34 | # Everything should be PascalCase by default |
| 35 | dotnet_naming_rule.all_should_be_camel_case.severity = warning |
| 36 | dotnet_naming_rule.all_should_be_camel_case.symbols = all |
| 37 | dotnet_naming_rule.all_should_be_camel_case.style = pascal_case_style |
| 38 | # Non-public fields should be _camelCase |
| 39 | dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.severity = warning |
| 40 | dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.symbols = non_public_fields |
| 41 | dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.style = underscore_camel_case_style |
| 42 | # Constant fields (and local vars) should be PascalCase |
| 43 | dotnet_naming_rule.constants_should_be_pascal_case.severity = warning |
| 44 | dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants |
| 45 | dotnet_naming_rule.constants_should_be_pascal_case.style = pascal_case_style |
| 46 | # Locals variables should be camelCase |
| 47 | dotnet_naming_rule.local_vars_should_be_camel_case.severity = warning |
| 48 | dotnet_naming_rule.local_vars_should_be_camel_case.symbols = local_vars |
| 49 | dotnet_naming_rule.local_vars_should_be_camel_case.style = camel_case_style |
| 50 | # Parameters should be camelCase |
| 51 | dotnet_naming_rule.parameters_should_be_camel_case.severity = warning |
| 52 | dotnet_naming_rule.parameters_should_be_camel_case.symbols = parameters |
| 53 | dotnet_naming_rule.parameters_should_be_camel_case.style = camel_case_style |
| 54 | |
| 55 | dotnet_naming_symbols.all.applicable_kinds = * |
| 56 | dotnet_naming_symbols.local_vars.applicable_kinds = local |
| 57 | dotnet_naming_symbols.parameters.applicable_kinds = parameter |
| 58 | dotnet_naming_symbols.constants.applicable_kinds = field, local |
| 59 | dotnet_naming_symbols.constants.required_modifiers = const |
| 60 | dotnet_naming_symbols.non_public_fields.applicable_kinds = field |
| 61 | dotnet_naming_symbols.non_public_fields.applicable_accessibilities = private, protected, private_protected |
| 62 | |
| 63 | dotnet_naming_style.camel_case_style.capitalization = camel_case |
| 64 | dotnet_naming_style.camel_case_style.required_prefix = |
| 65 | dotnet_naming_style.underscore_camel_case_style.capitalization = camel_case |
| 66 | dotnet_naming_style.underscore_camel_case_style.required_prefix = _ |
| 67 | dotnet_naming_style.pascal_case_style.capitalization = pascal_case |
| 68 | dotnet_naming_style.pascal_case_style.required_prefix = |