-
Notifications
You must be signed in to change notification settings - Fork 6
/
.editorconfig
55 lines (39 loc) · 1.33 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
root = true
[*]
indent_style = space
end_of_line = crlf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{targets,props,csproj,nuspec,json}]
tab_width = 2
indent_size = 2
[*.md]
max_line_length = off
[*.cs]
indent_size = 4
tab_width = 4
# Code Quality
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = warning
# Make sure string.Format methods are balanced
dotnet_diagnostic.CA2241.severity=warning
# Been there - done that.
dotnet_diagnostic.CA2245.severity=warning
# Code Style
# Default severity for analyzer diagnostics with category 'Style'
dotnet_analyzer_diagnostic.category-Style.severity = warning
# Do not force braces for single statement if scopes
csharp_prefer_braces = when_multiline
# I do like me my var
csharp_style_var_when_type_is_apparent = true
csharp_style_var_for_built_in_types = true
csharp_style_var_elsewhere = true
# Prefer if/else returns over single line symbol hell
dotnet_style_prefer_conditional_expression_over_return=false:silent
# IDE0063: Use simple 'using' statement
dotnet_diagnostic.IDE0063.severity = silent
# IDE0072: Add missing cases
dotnet_diagnostic.IDE0072.severity = silent
# IDE0130: Namespace does not match folder structure
# Analyzer is buggy atm - TODO: try to reenable it with dotnet6-sdk
dotnet_diagnostic.IDE0130.severity = silent