forked from ValveResourceFormat/ValveResourceFormat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
237 lines (184 loc) · 8.89 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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
root = true
[*]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.cs]
tab_width = 4
end_of_line = lf
# CA1002: Do not expose generic lists.
dotnet_diagnostic.CA1002.severity = none
# CA1003: Use generic event handler instances
dotnet_diagnostic.CA1003.severity = suggestion
# CA1008: Enums should have zero value
dotnet_diagnostic.CA1008.severity = none
# CA1010: Type directly or indirectly inherits 'ICollection' without implementing 'ICollection<T>'
dotnet_diagnostic.CA1010.severity = none
# CA1031: Do not catch general exception types
dotnet_diagnostic.CA1031.severity = none
# CA1034: Nested types should not be visible
dotnet_diagnostic.CA1034.severity = none
# CA1062: Validate arguments of public methods
dotnet_diagnostic.CA1062.severity = none
# CA1303: Do not pass literals as localized parameters
dotnet_diagnostic.CA1303.severity = none
# CA1304: Specify CultureInfo
dotnet_diagnostic.CA1304.severity = suggestion
# CA1305: Specify IFormatProvider
dotnet_diagnostic.CA1305.severity = suggestion
# CA1307: Specify StringComparison
dotnet_diagnostic.CA1307.severity = suggestion
# CA1310: Specify StringComparison for correctness
dotnet_diagnostic.CA1310.severity = suggestion
# CA1508: Avoid dead conditional code
dotnet_diagnostic.CA1508.severity = none
# CA1707: Remove the underscores from member name
dotnet_diagnostic.CA1707.severity = none
# CA1710: Rename to end in 'Dictionary'.
dotnet_diagnostic.CA1710.severity = none
# CA1711: Identifiers should not have incorrect suffix
dotnet_diagnostic.CA1711.severity = none
# CA1720: Identifier contains type name
dotnet_diagnostic.CA1720.severity = none
# CA1721: The property name is confusing given the existence of method. Rename or remove one of these members.
dotnet_diagnostic.CA1721.severity = none
# CA1724: The type name ClosedCaptions conflicts in whole or in part with the namespace name
dotnet_diagnostic.CA1724.severity = none
# CA1814: is a multidimensional array. Replace it with a jagged array if possible.
dotnet_diagnostic.CA1814.severity = none
# CA1815: Override equals and operator equals on value types
dotnet_diagnostic.CA1815.severity = none
# CA1819: Properties should not return arrays
dotnet_diagnostic.CA1819.severity = none
# CA2008: Do not create tasks without passing a TaskScheduler
dotnet_diagnostic.CA2008.severity = none
# CA2119: Seal methods that satisfy private interfaces
dotnet_diagnostic.CA2119.severity = none
# CA2201: Do not raise reserved exception types
dotnet_diagnostic.CA2201.severity = suggestion
# CA2214: Do not call overridable methods in constructors
dotnet_diagnostic.CA2214.severity = none
# CA5394: Do not use insecure randomness
dotnet_diagnostic.CA5394.severity = none
# CS0219: Variable is assigned but its value is never used
dotnet_diagnostic.CS0219.severity = suggestion
# CA1308: Normalize strings to uppercase
dotnet_diagnostic.CA1308.severity = none
# CA1852: Seal internal types
dotnet_diagnostic.CA1852.severity = none
# IDE0059: Remove unnecessary value assignment
dotnet_diagnostic.IDE0059.severity = none
# IDE0079: Remove unnecessary suppression
dotnet_diagnostic.IDE0079.severity = none
#
# Dotnet code style settings:
#
# IDE0055: Fix formatting
dotnet_diagnostic.IDE0055.severity = warning
# Sort using and Import directives with System.* appearing first
dotnet_separate_import_directive_groups = false:suggestion
# Avoid "this." and "Me." if not necessary
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
# Use language keywords instead of framework type names for type references
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion
# Suggest more modern language features when available
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion
# IDE0042: Deconstruct variable declaration
csharp_style_deconstructed_variable_declaration = false:silent
#
# CSharp code style settings:
#
# Newline settings
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true:suggestion
csharp_new_line_before_catch = true:suggestion
csharp_new_line_before_finally = true:suggestion
csharp_new_line_before_members_in_object_initializers = true:suggestion
csharp_new_line_before_members_in_anonymous_types = true:suggestion
csharp_new_line_between_query_expression_clauses = true:suggestion
# Indentation preferences
csharp_indent_block_contents = true:suggestion
csharp_indent_braces = false:suggestion
csharp_indent_case_contents = true:suggestion
csharp_indent_case_contents_when_block = false:suggestion
csharp_indent_switch_labels = true:suggestion
csharp_indent_labels = flush_left
# Prefer "var" everywhere
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
# Prefer method-like constructs to have a block body
csharp_style_expression_bodied_methods = false:none
csharp_style_expression_bodied_constructors = false:none
csharp_style_expression_bodied_operators = false:none
# Prefer property-like constructs to have an expression-body
csharp_style_expression_bodied_properties = true:none
csharp_style_expression_bodied_indexers = true:none
csharp_style_expression_bodied_accessors = true:none
# Suggest more modern language features when available
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
# Space preferences
csharp_space_after_cast = false:suggestion
csharp_space_after_colon_in_inheritance_clause = true:suggestion
csharp_space_after_comma = true:suggestion
csharp_space_after_dot = false:suggestion
csharp_space_after_keywords_in_control_flow_statements = true:suggestion
csharp_space_after_semicolon_in_for_statement = true:suggestion
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = false:suggestion
csharp_space_before_colon_in_inheritance_clause = true:suggestion
csharp_space_before_comma = false:suggestion
csharp_space_before_dot = false:suggestion
csharp_space_before_open_square_brackets = false:suggestion
csharp_space_before_semicolon_in_for_statement = false:suggestion
csharp_space_between_empty_square_brackets = false:suggestion
csharp_space_between_method_call_empty_parameter_list_parentheses = false:suggestion
csharp_space_between_method_call_name_and_opening_parenthesis = false:suggestion
csharp_space_between_method_call_parameter_list_parentheses = false:suggestion
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false:suggestion
csharp_space_between_method_declaration_name_and_open_parenthesis = false:suggestion
csharp_space_between_method_declaration_parameter_list_parentheses = false:suggestion
csharp_space_between_parentheses = false:suggestion
csharp_space_between_square_brackets = false:suggestion
# Code style defaults
csharp_using_directive_placement = outside_namespace:suggestion
dotnet_sort_system_directives_first = true:suggestion
csharp_prefer_braces = true:suggestion
csharp_preserve_single_line_blocks = true:suggestion
csharp_preserve_single_line_statements = false:suggestion
csharp_prefer_static_local_function = true:suggestion
csharp_prefer_simple_using_statement = true:suggestion
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent
csharp_style_prefer_null_check_over_type_check = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
csharp_style_prefer_tuple_swap = false:suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.severity = silent
dotnet_naming_rule.types_should_be_pascal_case.severity = silent
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = silent
# IDE1006: Naming Styles
dotnet_diagnostic.IDE1006.severity = none
# IDE0290: Use primary constructor
dotnet_diagnostic.IDE0290.severity = none
# Disable very slow analyzers - https://github.com/dotnet/roslyn-analyzers/issues/6737
dotnet_diagnostic.CA5403.severity = none # Do not hard-code certificate
dotnet_diagnostic.CA5390.severity = none # Do not hard-code encryption key