-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
56 lines (39 loc) · 1.7 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
56
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
tab_width = 4
# New line preferences
end_of_line = lf
insert_final_newline = true
# Spell checker exclusions
spelling_exclusion_path = .\exclusion.dic
#### Code Style Options ####
# Disable 'Use explicit type instead of 'var'' message
# - specifying explicit types for tuples is way too redundant
dotnet_diagnostic.IDE0008.severity = none
# Disable 'Use expression body for method' message
# - Having method bodies is more convenient when writing code with #if directives
dotnet_diagnostic.IDE0022.severity = none
# Disable 'Slice can be simplified' message
# - Not all target frameworks support ranges, and using the range syntax doesn't have any significant benefits
dotnet_diagnostic.IDE0057.severity = none
# Disable ''new' expression can be simplified' message
dotnet_diagnostic.IDE0090.severity = none
# Disable 'Use collection expression for fluent' message
# - I think ToArray() calls are more readable than [..list]
dotnet_diagnostic.IDE0305.severity = none
# Disable 'Use ArgumentNullException.ThrowIfNull' message
# - It was only introduced in .NET 6, and I want to support older targets
dotnet_diagnostic.CA1510.severity = none
# Disable 'Use primary constructor' message
# - Having explicit constructors is more convenient, and better for version control
dotnet_diagnostic.IDE0290.severity = none
# Disable 'Place using directives outside namespace'
# - Sometimes it's just shorter and more concise to use "using static" inside namespaces
dotnet_diagnostic.IDE0065.severity = none
# Disable 'Namespace does not match folder structure' message
dotnet_diagnostic.IDE0130.severity = none