microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
core/.editorconfig
40lines · modecode
| 1 | root = true |
| 2 | |
| 3 | # All files |
| 4 | [*] |
| 5 | charset = utf-8 |
| 6 | insert_final_newline = true |
| 7 | trim_trailing_whitespace = true |
| 8 | |
| 9 | # C# files |
| 10 | [*.cs] |
| 11 | indent_style = space |
| 12 | indent_size = 4 |
| 13 | nullable = enable |
| 14 | #dotnet_diagnostic.CS1591.severity = none ## Suppress missing XML comment warnings |
| 15 | |
| 16 | #### Nullable Reference Types #### |
| 17 | # Make nullable warnings strict |
| 18 | dotnet_diagnostic.CS8600.severity = error |
| 19 | dotnet_diagnostic.CS8602.severity = error |
| 20 | dotnet_diagnostic.CS8603.severity = error |
| 21 | dotnet_diagnostic.CS8604.severity = error |
| 22 | dotnet_diagnostic.CS8618.severity = error # Non-nullable field uninitialized |
| 23 | |
| 24 | # Code quality rules |
| 25 | dotnet_code_quality_unused_parameters = all:suggestion |
| 26 | dotnet_diagnostic.IDE0079.severity = warning |
| 27 | |
| 28 | #### Coding conventions #### |
| 29 | dotnet_sort_system_directives_first = true |
| 30 | csharp_new_line_before_open_brace = all |
| 31 | csharp_new_line_before_else = true |
| 32 | |
| 33 | file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License. |
| 34 | |
| 35 | [samples/**/*.cs] |
| 36 | dotnet_diagnostic.CA1848.severity = none # Suppress Logger performance in samples |
| 37 | |
| 38 | # Test projects can be more lenient |
| 39 | [tests/**/*.cs] |
| 40 | dotnet_diagnostic.CS8602.severity = warning |
| 41 | |