-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy path.editorconfig
More file actions
41 lines (33 loc) · 1023 Bytes
/
Copy path.editorconfig
File metadata and controls
41 lines (33 loc) · 1023 Bytes
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
# top-most EditorConfig file
root = true
# Windows-style newlines with a newline ending every file
[*]
end_of_line = crlf
insert_final_newline = true
trim_trailing_whitespace = true
# 4 space indentation
[*.{cs, cshtml, razor}]
indent_style = space
indent_size = 4
# Default severity for analyzer diagnostics with category 'Style'
dotnet_analyzer_diagnostic.category-Style.severity = none
# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity = none
# 2 space indentation
# UA0013: 'ApiController' does not exist
dotnet_diagnostic.UA0013.severity = none
# annoying warnign to use Length==0 instead of !.Any()
dotnet_diagnostic.CA1860.severity = none
csharp_style_expression_bodied_methods=true
[*.csproj]
indent_style = space
indent_size = 2
charset = utf-8-bom
# 2 space indentation
[*.{xaml, wxs, config, yml}]
indent_style = space
indent_size = 2
# Matches the exact files package.json
[{packages.config}]
indent_style = space
indent_size = 2