-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
170 lines (158 loc) · 6.22 KB
/
.editorconfig
File metadata and controls
170 lines (158 loc) · 6.22 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# All files
[*]
indent_style = space
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# C# files
[*.cs]
# .NET Code Quality Rules
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/
# === SECURITY RULES (Keep as Errors) ===
# CA2100: Review SQL queries for security vulnerabilities
dotnet_diagnostic.CA2100.severity = error
# CA2109: Review visible event handlers
dotnet_diagnostic.CA2109.severity = error
# CA2119: Seal methods that satisfy private interfaces
dotnet_diagnostic.CA2119.severity = error
# CA2153: Avoid handling Corrupted State Exceptions
dotnet_diagnostic.CA2153.severity = error
# CA2300-CA2330: Deserialization security
dotnet_diagnostic.CA2300.severity = error
dotnet_diagnostic.CA2301.severity = error
dotnet_diagnostic.CA2302.severity = error
dotnet_diagnostic.CA2305.severity = error
dotnet_diagnostic.CA2310.severity = error
dotnet_diagnostic.CA2311.severity = error
dotnet_diagnostic.CA2312.severity = error
dotnet_diagnostic.CA2315.severity = error
dotnet_diagnostic.CA2321.severity = error
dotnet_diagnostic.CA2322.severity = error
dotnet_diagnostic.CA2326.severity = error
dotnet_diagnostic.CA2327.severity = error
dotnet_diagnostic.CA2328.severity = error
dotnet_diagnostic.CA2329.severity = error
dotnet_diagnostic.CA2330.severity = error
# CA3001-CA3012: Web security
dotnet_diagnostic.CA3001.severity = error
dotnet_diagnostic.CA3002.severity = error
dotnet_diagnostic.CA3003.severity = error
dotnet_diagnostic.CA3004.severity = error
dotnet_diagnostic.CA3005.severity = error
dotnet_diagnostic.CA3006.severity = error
dotnet_diagnostic.CA3007.severity = error
dotnet_diagnostic.CA3008.severity = error
dotnet_diagnostic.CA3009.severity = error
dotnet_diagnostic.CA3010.severity = error
dotnet_diagnostic.CA3011.severity = error
dotnet_diagnostic.CA3012.severity = error
# CA3061: Do not add schema by URL
dotnet_diagnostic.CA3061.severity = error
# CA3075: Insecure DTD processing
dotnet_diagnostic.CA3075.severity = error
# CA3076: Insecure XSLT script processing
dotnet_diagnostic.CA3076.severity = error
# CA3077: Insecure Processing in API Design
dotnet_diagnostic.CA3077.severity = error
# CA3147: Mark Verb Handlers With ValidateAntiForgeryToken
dotnet_diagnostic.CA3147.severity = error
# CA5350-CA5405: Cryptography rules
dotnet_diagnostic.CA5350.severity = error
dotnet_diagnostic.CA5351.severity = error
dotnet_diagnostic.CA5358.severity = error
dotnet_diagnostic.CA5359.severity = error
dotnet_diagnostic.CA5360.severity = error
dotnet_diagnostic.CA5361.severity = error
dotnet_diagnostic.CA5362.severity = error
dotnet_diagnostic.CA5363.severity = error
dotnet_diagnostic.CA5364.severity = error
dotnet_diagnostic.CA5365.severity = error
dotnet_diagnostic.CA5366.severity = error
dotnet_diagnostic.CA5367.severity = error
dotnet_diagnostic.CA5368.severity = error
dotnet_diagnostic.CA5369.severity = error
dotnet_diagnostic.CA5370.severity = error
dotnet_diagnostic.CA5371.severity = error
dotnet_diagnostic.CA5372.severity = error
dotnet_diagnostic.CA5373.severity = error
dotnet_diagnostic.CA5374.severity = error
dotnet_diagnostic.CA5375.severity = error
dotnet_diagnostic.CA5376.severity = error
dotnet_diagnostic.CA5377.severity = error
dotnet_diagnostic.CA5378.severity = error
dotnet_diagnostic.CA5379.severity = error
dotnet_diagnostic.CA5380.severity = error
dotnet_diagnostic.CA5381.severity = error
dotnet_diagnostic.CA5382.severity = error
dotnet_diagnostic.CA5383.severity = error
dotnet_diagnostic.CA5384.severity = error
dotnet_diagnostic.CA5385.severity = error
dotnet_diagnostic.CA5386.severity = error
dotnet_diagnostic.CA5387.severity = error
dotnet_diagnostic.CA5388.severity = error
dotnet_diagnostic.CA5389.severity = error
dotnet_diagnostic.CA5390.severity = error
dotnet_diagnostic.CA5391.severity = error
dotnet_diagnostic.CA5392.severity = error
dotnet_diagnostic.CA5393.severity = error
dotnet_diagnostic.CA5394.severity = error
dotnet_diagnostic.CA5395.severity = error
dotnet_diagnostic.CA5396.severity = error
dotnet_diagnostic.CA5397.severity = error
dotnet_diagnostic.CA5398.severity = error
dotnet_diagnostic.CA5399.severity = error
dotnet_diagnostic.CA5400.severity = error
dotnet_diagnostic.CA5401.severity = error
dotnet_diagnostic.CA5402.severity = error
dotnet_diagnostic.CA5403.severity = error
dotnet_diagnostic.CA5404.severity = error
dotnet_diagnostic.CA5405.severity = error
# === PERFORMANCE RULES (Keep as Warnings) ===
# CA1848: Use LoggerMessage delegates
dotnet_diagnostic.CA1848.severity = warning
# CA1826: Use indexable collections directly
dotnet_diagnostic.CA1826.severity = warning
# CA1829: Use Count property
dotnet_diagnostic.CA1829.severity = warning
# CA1869: Cache JsonSerializerOptions
dotnet_diagnostic.CA1869.severity = warning
# CA1805: Don't initialize fields to default
dotnet_diagnostic.CA1805.severity = warning
# CA1305: Specify IFormatProvider
dotnet_diagnostic.CA1305.severity = warning
# === GLOBALIZATION RULES (Warnings) ===
# CA1310: Specify StringComparison
dotnet_diagnostic.CA1310.severity = warning
# === DESIGN RULES (Warnings for now) ===
# CA1062: Validate arguments of public methods
dotnet_diagnostic.CA1062.severity = warning
# CA1002: Do not expose generic lists
dotnet_diagnostic.CA1002.severity = warning
# CA2227: Collection properties should be read only
dotnet_diagnostic.CA2227.severity = warning
# CA2225: Operator overloads have named alternates
dotnet_diagnostic.CA2225.severity = warning
# CA1032: Implement standard exception constructors
dotnet_diagnostic.CA1032.severity = warning
# CA1859: Use concrete types when possible
dotnet_diagnostic.CA1859.severity = warning
# === ASYNC RULES (Warnings) ===
# CA2007: Consider calling ConfigureAwait
dotnet_diagnostic.CA2007.severity = warning
# === RELIABILITY RULES (Warnings) ===
# CA1851: Possible multiple enumerations
dotnet_diagnostic.CA1851.severity = warning
# JSON files
[*.json]
indent_size = 2
# XML files
[*.{xml,csproj,props,targets}]
indent_size = 2
# YAML files
[*.{yml,yaml}]
indent_size = 2