-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
37 lines (31 loc) · 1.11 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = crlf
indent_size = tab
indent_style = tab
insert_final_newline = false
tab_width = 4
trim_trailing_whitespace = true
[*.cshtml]
charset = utf-8-bom
# Tabs are not supported in YAML: https://yaml.org/faq.html
[*.{yaml,yml}]
indent_size = 2
indent_style = space
[*.cs]
# Set all, https://docs.microsoft.com/en-us/visualstudio/code-quality/use-roslyn-analyzers?view=vs-2019#set-rule-severity-of-multiple-analyzer-rules-at-once-in-an-editorconfig-file
dotnet_analyzer_diagnostic.severity = error
# Suppress (suppress any rule you need to suppress)
#dotnet_diagnostic.CA1860.severity = none
dotnet_diagnostic.IDE0003.severity = none
dotnet_diagnostic.IDE0008.severity = none
dotnet_diagnostic.IDE0011.severity = none
dotnet_diagnostic.IDE0046.severity = none
#dotnet_diagnostic.IDE0055.severity = none
dotnet_diagnostic.IDE0058.severity = none
dotnet_diagnostic.IDE0063.severity = none
dotnet_diagnostic.IDE0305.severity = none
# Visual Studio
csharp_space_after_keywords_in_control_flow_statements = false # Avoid space after if in if-statement. Eg. if() and not if ()