-
Notifications
You must be signed in to change notification settings - Fork 199
/
.editorconfig
46 lines (37 loc) · 1.39 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
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = crlf
trim_trailing_whitespace = true
insert_final_newline = false
[*.{html,config,csproj,targets,props,yml}]
indent_size = 2
[{package,appsettings*}.json]
indent_size = 2
[*.cs]
csharp_new_line_before_open_brace = none
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = true:warning
csharp_style_namespace_declarations=file_scoped:warning
dotnet_style_readonly_field = true:warning
# CA1822: Mark members as static
dotnet_diagnostic.CA1822.severity = none
# IDE0005: Using directive is unnecessary.
dotnet_diagnostic.IDE0005.severity = warning
# IDE0090: 'new' expression can be simplified.
dotnet_diagnostic.IDE0090.severity = warning
# IDE0300: Use collection expression for array
# IDE0301: Use collection expression for empty
# IDE0302: Use collection expression for stackalloc
# IDE0303: Use collection expression for Create()
# IDE0304: Use collection expression for builder
# IDE0305: Use collection expression for fluent
dotnet_diagnostic.IDE0300.severity = warning
dotnet_diagnostic.IDE0301.severity = warning
dotnet_diagnostic.IDE0302.severity = warning
dotnet_diagnostic.IDE0303.severity = warning
dotnet_diagnostic.IDE0304.severity = warning
dotnet_diagnostic.IDE0305.severity = warning