-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
120 lines (107 loc) · 6.11 KB
/
.editorconfig
File metadata and controls
120 lines (107 loc) · 6.11 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.{csproj,props,targets,config,xml}]
indent_size = 2
[*.{json,yml,yaml}]
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[*.cs]
indent_size = 4
max_line_length = 120
# Naming
dotnet_naming_rule.types_should_be_pascal_case.severity = warning
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
dotnet_naming_symbols.types.applicable_kinds = class,struct,interface,enum,delegate
dotnet_naming_symbols.types.applicable_accessibilities = *
dotnet_naming_style.pascal_case.capitalization = pascal_case
# Nullable
dotnet_diagnostic.CS8600.severity = error
dotnet_diagnostic.CS8601.severity = error
dotnet_diagnostic.CS8602.severity = error
dotnet_diagnostic.CS8603.severity = error
dotnet_diagnostic.CS8604.severity = error
dotnet_diagnostic.CS8618.severity = error
dotnet_diagnostic.CS8625.severity = error
# XML doc comments are required in src/ (CS1591); tests override
dotnet_diagnostic.CS1591.severity = error
# Async naming
dotnet_diagnostic.VSTHRD200.severity = none
# StyleCop noise tuning
# Keep StyleCop rules that catch real bugs / unsafe patterns; disable the
# ones that are purely stylistic where our .editorconfig + dotnet format
# already enforce a consistent style.
dotnet_diagnostic.SA1101.severity = none # prefix local calls with this
dotnet_diagnostic.SA1116.severity = none # parameters on next line after declaration
dotnet_diagnostic.SA1118.severity = none # parameter must not span multiple lines
dotnet_diagnostic.SA1124.severity = none # do not use regions
dotnet_diagnostic.SA1200.severity = none # using directives must be inside namespace
dotnet_diagnostic.SA1201.severity = none # member ordering
dotnet_diagnostic.SA1202.severity = none # public-before-private ordering
dotnet_diagnostic.SA1203.severity = none # constants before fields
dotnet_diagnostic.SA1204.severity = none # static-before-instance ordering
dotnet_diagnostic.SA1214.severity = none # readonly fields ordering
dotnet_diagnostic.SA1300.severity = none # element should begin with uppercase letter
dotnet_diagnostic.SA1309.severity = none # field names must not begin with underscore
dotnet_diagnostic.SA1311.severity = none # static readonly Pascal naming
dotnet_diagnostic.SA1313.severity = none # parameter names must begin with lowercase
dotnet_diagnostic.SA1402.severity = none # one type per file
dotnet_diagnostic.SA1413.severity = none # use trailing comma in initializers
dotnet_diagnostic.SA1500.severity = none # braces for multi-line statements
dotnet_diagnostic.SA1501.severity = none # statement should not be on a single line
dotnet_diagnostic.SA1502.severity = none # element must not be on a single line
dotnet_diagnostic.SA1503.severity = none # braces must not be omitted
dotnet_diagnostic.SA1512.severity = none # single-line comment not followed by blank line
dotnet_diagnostic.SA1513.severity = none # closing brace followed by blank line
dotnet_diagnostic.SA1514.severity = none # element documentation header
dotnet_diagnostic.SA1515.severity = none # single-line comment preceded by blank line
dotnet_diagnostic.SA1516.severity = none # elements separated by blank line
dotnet_diagnostic.SA1600.severity = none # CS1591 covers documentation
dotnet_diagnostic.SA1601.severity = none
dotnet_diagnostic.SA1602.severity = none
dotnet_diagnostic.SA1611.severity = none # all documented parameters
dotnet_diagnostic.SA1614.severity = none # parameter doc must have text
dotnet_diagnostic.SA1615.severity = none # return value must be documented
dotnet_diagnostic.SA1618.severity = none # generic type parameters
dotnet_diagnostic.SA1622.severity = none # generic type parameter doc must have text
dotnet_diagnostic.SA1623.severity = none # property summary text
dotnet_diagnostic.SA1629.severity = none # documentation must end with period
dotnet_diagnostic.SA1633.severity = none # file must have header
dotnet_diagnostic.SA1642.severity = none # constructor summary boilerplate
dotnet_diagnostic.SA1643.severity = none # destructor summary boilerplate
dotnet_diagnostic.SA1648.severity = none # inheritdoc
dotnet_diagnostic.SA1649.severity = none # filename matches type
dotnet_diagnostic.SA1652.severity = none # enable XML doc
dotnet_diagnostic.SA1124.severity = none
# Roslyn analyzers — relax some that don't add value here
dotnet_diagnostic.CA1014.severity = none # mark assemblies as CLS-compliant
dotnet_diagnostic.CA1303.severity = none # do not pass literals as localized parameters
dotnet_diagnostic.CA2007.severity = none # consider calling ConfigureAwait
dotnet_diagnostic.CA1062.severity = none # validate arguments of public methods (we use `required`)
dotnet_diagnostic.CA1848.severity = none # use LoggerMessage delegates (overkill for v0.1)
dotnet_diagnostic.CA1716.severity = none # identifiers should not match keywords (Stop, Wait)
dotnet_diagnostic.CA1711.severity = none # type names ending in suffix (AgentDelegate is RFC vocabulary)
dotnet_diagnostic.CA1873.severity = none # logger arg eval (LoggerMessage source-gen deferred to v0.2)
dotnet_diagnostic.CA1861.severity = none # array literals in [Theory] data
dotnet_diagnostic.SA1117.severity = none # parameter placement (use dotnet format if needed)
dotnet_diagnostic.CA1305.severity = none # specify IFormatProvider
dotnet_diagnostic.CA1310.severity = none # specify StringComparison
dotnet_diagnostic.CA1311.severity = none # specify culture for ToUpperInvariant
dotnet_diagnostic.CA1715.severity = none # T prefix on type parameters
dotnet_diagnostic.CA1819.severity = none # properties should not return arrays
dotnet_diagnostic.CA1056.severity = none # uri parameters should not be strings
dotnet_diagnostic.CA1054.severity = none # uri parameters should not be strings
dotnet_diagnostic.CA1055.severity = none
# Code style
csharp_style_namespace_declarations = file_scoped:warning
csharp_indent_braces = false
csharp_new_line_before_open_brace = all
dotnet_sort_system_directives_first = true
csharp_using_directive_placement = outside_namespace:warning