-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
199 lines (172 loc) · 6.94 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
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
root = true
# C# files
[*.cs]
####################################
# Core EditorConfig Options #
####################################
# Indentation and spacing
indent_style = tab
####################################
# .NET Coding Conventions #
####################################
# Organize usings
dotnet_separate_import_directive_groups = false
dotnet_sort_system_directives_first = true
# Modifier preferences
dotnet_style_readonly_field = true:silent
####################################
# C# Coding Conventions #
####################################
# var preferences
csharp_style_var_elsewhere = false:silent
csharp_style_var_for_built_in_types = false:silent
csharp_style_var_when_type_is_apparent = false:silent
# Pattern matching preferences ???
csharp_style_prefer_switch_expression = true:suggestion
# Code-block preferences
csharp_prefer_braces = true:suggestion
# 'using' directive preferences
csharp_using_directive_placement = outside_namespace:suggestion
####################################
# C# Formatting Rules #
####################################
## Indentation preferences ???
#csharp_indent_block_contents = true
#csharp_indent_braces = false
#csharp_indent_case_contents_when_block = true
#csharp_indent_labels = one_less_than_current
####################################
# Naming Conventions #
####################################
# Warning: implemented via IDExxxx analyzers (thus they're not evaluated outside of VS yet)
# Use camelCase for private fields
dotnet_naming_style.camel_case_style.capitalization = camel_case
dotnet_naming_rule.private_fields_should_be_camel_case_prefixed.symbols = private_fields
dotnet_naming_rule.private_fields_should_be_camel_case_prefixed.style = camel_case_style
dotnet_naming_rule.private_fields_should_be_camel_case_prefixed.severity = suggestion
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
###############################
#### IDE analyzers options ####
###############################
# Warning: they're not evaluated outside of VS yet
# IDE0055: Fix formatting
dotnet_diagnostic.IDE0055.severity = suggestion
####################################
#### StyleCop analyzers options ####
####################################
# Adopted from:
# \\topol.havit.local\Library\VS2019\CodeAnalysis\HavitMain.ruleset
dotnet_diagnostic.SA0001.severity=None
dotnet_diagnostic.SA1002.severity=None
dotnet_diagnostic.SA1005.severity=None
dotnet_diagnostic.SA1009.severity=None
dotnet_diagnostic.SA1025.severity=None
dotnet_diagnostic.SA1027.severity=None
dotnet_diagnostic.SA1028.severity=None
dotnet_diagnostic.SA1101.severity=None
dotnet_diagnostic.SA1108.severity=None
dotnet_diagnostic.SA1111.severity=None
dotnet_diagnostic.SA1114.severity=None
dotnet_diagnostic.SA1115.severity=None
dotnet_diagnostic.SA1116.severity=None
dotnet_diagnostic.SA1117.severity=None
dotnet_diagnostic.SA1118.severity=None
dotnet_diagnostic.SA1119.severity=None
dotnet_diagnostic.SA1121.severity=None
dotnet_diagnostic.SA1122.severity=None
dotnet_diagnostic.SA1123.severity=None
dotnet_diagnostic.SA1124.severity=None
dotnet_diagnostic.SA1128.severity=None
dotnet_diagnostic.SA1129.severity=None
dotnet_diagnostic.SA1130.severity=None
dotnet_diagnostic.SA1200.severity=None
dotnet_diagnostic.SA1201.severity=None
dotnet_diagnostic.SA1202.severity=None
dotnet_diagnostic.SA1203.severity=None
dotnet_diagnostic.SA1204.severity=None
dotnet_diagnostic.SA1205.severity=None
dotnet_diagnostic.SA1206.severity=None
dotnet_diagnostic.SA1207.severity=None
dotnet_diagnostic.SA1208.severity=None
dotnet_diagnostic.SA1209.severity=None
dotnet_diagnostic.SA1210.severity=None
dotnet_diagnostic.SA1211.severity=None
dotnet_diagnostic.SA1212.severity=None
dotnet_diagnostic.SA1213.severity=None
dotnet_diagnostic.SA1214.severity=None
dotnet_diagnostic.SA1215.severity=None
dotnet_diagnostic.SA1216.severity=None
dotnet_diagnostic.SA1217.severity=None
dotnet_diagnostic.SA1303.severity=None
dotnet_diagnostic.SA1306.severity=None
dotnet_diagnostic.SA1309.severity=None
dotnet_diagnostic.SA1310.severity=None
dotnet_diagnostic.SA1311.severity=None
dotnet_diagnostic.SA1401.severity=None
dotnet_diagnostic.SA1405.severity=None
dotnet_diagnostic.SA1406.severity=None
dotnet_diagnostic.SA1407.severity=None
dotnet_diagnostic.SA1410.severity=None
dotnet_diagnostic.SA1413.severity=None
dotnet_diagnostic.SA1502.severity=None
dotnet_diagnostic.SA1505.severity=None
dotnet_diagnostic.SA1508.severity=None
dotnet_diagnostic.SA1512.severity=None
dotnet_diagnostic.SA1513.severity=None
dotnet_diagnostic.SA1514.severity=None
dotnet_diagnostic.SA1515.severity=None
dotnet_diagnostic.SA1516.severity=None
dotnet_diagnostic.SA1518.severity=None
dotnet_diagnostic.SA1600.severity=None
dotnet_diagnostic.SA1601.severity=None
dotnet_diagnostic.SA1602.severity=None
dotnet_diagnostic.SA1603.severity=None
dotnet_diagnostic.SA1610.severity=None
dotnet_diagnostic.SA1611.severity=None
dotnet_diagnostic.SA1613.severity=Error
dotnet_diagnostic.SA1615.severity=None
dotnet_diagnostic.SA1618.severity=None
dotnet_diagnostic.SA1619.severity=None
dotnet_diagnostic.SA1625.severity=Warning
dotnet_diagnostic.SA1627.severity=Warning
dotnet_diagnostic.SA1633.severity=None
dotnet_diagnostic.SA1634.severity=None
dotnet_diagnostic.SA1635.severity=None
dotnet_diagnostic.SA1637.severity=None
dotnet_diagnostic.SA1638.severity=None
dotnet_diagnostic.SA1640.severity=None
dotnet_diagnostic.SA1642.severity=None
dotnet_diagnostic.SA1643.severity=None
dotnet_diagnostic.SA1645.severity=Warning
dotnet_diagnostic.SA1646.severity=Warning
dotnet_diagnostic.SA1647.severity=Warning
dotnet_diagnostic.SA1652.severity=None
dotnet_diagnostic.SA1623.severity=None
dotnet_diagnostic.SA1004.severity=None
dotnet_diagnostic.SA1008.severity=None
dotnet_diagnostic.SA1102.severity=None
dotnet_diagnostic.SA1131.severity=None
dotnet_diagnostic.SA1649.severity=None
dotnet_diagnostic.SA1507.severity=None
#### FxCop analyzers options ####
# Adopted from:
# \\topol.havit.local\Library\VS2019\CodeAnalysis\HavitMain.ruleset
dotnet_diagnostic.CA1010.severity=warning
dotnet_diagnostic.CA1012.severity=warning
dotnet_diagnostic.CA1013.severity=warning
dotnet_diagnostic.CA1016.severity=warning
dotnet_diagnostic.CA1041.severity=warning
dotnet_diagnostic.CA1044.severity=warning
dotnet_diagnostic.CA1047.severity=warning
dotnet_diagnostic.CA1048.severity=warning
dotnet_diagnostic.CA1049.severity=warning
dotnet_diagnostic.CA1050.severity=warning
dotnet_diagnostic.CA1064.severity=warning
dotnet_diagnostic.CA1065.severity=warning
# CA1303: Method '{1}' passes a literal string as parameter '{1}' of a call to '{2}'. Retrieve the following string(s) from a resource table instead: "{3}"
#dotnet_diagnostic.CA1303.severity=silent
dotnet_diagnostic.CA1500.severity=warning
dotnet_diagnostic.CA1504.severity=warning
# CA1822: Member '{0}' does not access instance data and can be marked as static
dotnet_diagnostic.CA1822.severity=warning