|
| 1 | +root = true |
| 2 | + |
| 3 | +[*] |
| 4 | +charset = utf-8 |
| 5 | +indent_size = 2 |
| 6 | +indent_style = space |
| 7 | +insert_final_newline = true |
| 8 | + |
| 9 | +[*.cs] |
| 10 | +indent_size = 4 |
| 11 | + |
| 12 | +# Remove this or Me qualification |
| 13 | +dotnet_diagnostic.IDE0003.severity = error |
| 14 | +dotnet_style_qualification_for_event = false:error |
| 15 | +dotnet_style_qualification_for_field = false:error |
| 16 | +dotnet_style_qualification_for_method = false:error |
| 17 | +dotnet_style_qualification_for_property = false:error |
| 18 | + |
| 19 | +# Use var instead of explicit type |
| 20 | +dotnet_diagnostic.IDE0007.severity = error |
| 21 | +csharp_style_var_elsewhere = true |
| 22 | +csharp_style_var_for_built_in_types = true |
| 23 | +csharp_style_var_when_type_is_apparent = true |
| 24 | + |
| 25 | +# Remove unnecessary using directives |
| 26 | +dotnet_diagnostic.IDE0005.severity = warning |
| 27 | + |
| 28 | +# Use language keywords instead of framework type names for type references |
| 29 | +dotnet_diagnostic.IDE0049.severity = error |
| 30 | +dotnet_style_predefined_type_for_locals_parameters_members = true |
| 31 | +dotnet_style_predefined_type_for_member_access = true |
| 32 | + |
| 33 | + # Formatting rule |
| 34 | +dotnet_diagnostic.IDE0055.severity = warning |
| 35 | +dotnet_sort_system_directives_first = true |
| 36 | + |
| 37 | +# Require file header |
| 38 | +dotnet_diagnostic.IDE0073.severity = warning |
| 39 | +file_header_template = Copyright (c) Duende Software. All rights reserved.\nLicensed under the MIT License. See LICENSE in the project root for license information. |
| 40 | + |
| 41 | +# Use file-scoped namespace |
| 42 | +dotnet_diagnostic.IDE0161.severity = error |
| 43 | +csharp_style_namespace_declarations = file_scoped |
0 commit comments