chore(deps): update asf-ui digest to 28133ae
[ArchiSteamFarm.git] / .editorconfig
blob4f057cf46bbdc5f0ac7764df07ed027f8a2b2ec7
1 root = true
3 ###############################
4 # Core EditorConfig Options   #
5 ###############################
7 [*]
8 charset = utf-8
9 #file_header_template = ·   _                _      _  ____   _                           _____\n   / \    _ __  ___ | |__  (_)/ ___| | |_  ___   __ _  _ __ ___  |  ___|__ _  _ __  _ __ ___\n  / _ \  | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_  / _` || '__|| '_ ` _ \\n / ___ \ | |  | (__ | | | || | ___) || |_|  __/| (_| || | | | | ||  _|| (_| || |   | | | | | |\n/_/   \_\|_|   \___||_| |_||_||____/  \__|\___| \__,_||_| |_| |_||_|   \__,_||_|   |_| |_| |_|\n\nCopyright 2015-2021 Łukasz "JustArchi" Domeradzki\nContact: JustArchi@JustArchi.net\n\nLicensed under the Apache License, Version 2.0 (the "License")\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.
10 indent_style = tab
11 insert_final_newline = true
12 trim_trailing_whitespace = true
14 ###############################
15 # C# Coding Conventions       #
16 ###############################
18 [*.cs]
19 csharp_indent_block_contents = true
20 csharp_indent_braces = false
21 csharp_indent_case_contents = true
22 csharp_indent_case_contents_when_block = false
23 csharp_indent_labels = flush_left
24 csharp_indent_switch_labels = true
26 csharp_new_line_before_catch = false
27 csharp_new_line_before_else = false
28 csharp_new_line_before_finally = false
29 csharp_new_line_before_members_in_anonymous_types = false
30 csharp_new_line_before_members_in_object_initializers = false
31 csharp_new_line_before_open_brace = none
32 csharp_new_line_between_query_expression_clauses = false
34 csharp_prefer_braces = true:warning
35 csharp_prefer_simple_default_expression = true:warning
36 csharp_prefer_simple_using_statement = true:warning
37 csharp_prefer_static_local_function = true:warning
39 csharp_preferred_modifier_order = public, protected, internal, private, file, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, required, volatile, async:warning
41 csharp_preserve_single_line_blocks = true
42 csharp_preserve_single_line_statements = false
44 csharp_space_after_cast = true
45 csharp_space_after_colon_in_inheritance_clause = true
46 csharp_space_after_comma = true
47 csharp_space_after_dot = false
48 csharp_space_after_keywords_in_control_flow_statements = true
49 csharp_space_after_semicolon_in_for_statement = true
50 csharp_space_around_binary_operators = before_and_after
51 csharp_space_around_declaration_statements = false
52 csharp_space_before_colon_in_inheritance_clause = true
53 csharp_space_before_comma = false
54 csharp_space_before_dot = false
55 csharp_space_before_open_square_brackets = false
56 csharp_space_before_semicolon_in_for_statement = false
57 csharp_space_between_empty_square_brackets = false
58 csharp_space_between_method_call_empty_parameter_list_parentheses = false
59 csharp_space_between_method_call_name_and_opening_parenthesis = false
60 csharp_space_between_method_call_parameter_list_parentheses = false
61 csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
62 csharp_space_between_method_declaration_name_and_open_parenthesis = false
63 csharp_space_between_method_declaration_parameter_list_parentheses = false
64 csharp_space_between_square_brackets = false
66 csharp_style_conditional_delegate_call = true:warning
67 csharp_style_deconstructed_variable_declaration = true:warning
69 csharp_style_expression_bodied_accessors = true:warning
70 csharp_style_expression_bodied_constructors = true:warning
71 csharp_style_expression_bodied_indexers = true:warning
72 csharp_style_expression_bodied_lambdas = true:warning
73 csharp_style_expression_bodied_local_functions = true:warning
74 csharp_style_expression_bodied_methods = true:warning
75 csharp_style_expression_bodied_operators = true:warning
76 csharp_style_expression_bodied_properties = true:warning
78 csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
79 csharp_style_inlined_variable_declaration = true:warning
81 csharp_style_namespace_declarations = file_scoped:warning
83 csharp_style_pattern_matching_over_as_with_null_check = true:warning
84 csharp_style_pattern_matching_over_is_with_cast_check = true:warning
86 csharp_style_prefer_extended_property_pattern = true:warning
87 dotnet_style_prefer_foreach_explicit_cast_in_source = always:warning
88 csharp_style_prefer_index_operator = true:warning
89 csharp_style_prefer_local_over_anonymous_function = true:warning
90 csharp_style_prefer_method_group_conversion = true:warning
91 csharp_style_prefer_not_pattern = true:warning
92 csharp_style_prefer_null_check_over_type_check = true:warning
93 csharp_style_prefer_pattern_matching = true:warning
94 csharp_style_prefer_primary_constructors = true:warning
95 csharp_style_prefer_range_operator = true:warning
96 csharp_style_prefer_readonly_struct = true:warning
97 csharp_style_prefer_readonly_struct_member = true:warning
98 csharp_style_prefer_switch_expression = true:warning
99 csharp_style_prefer_top_level_statements = false:warning
100 csharp_style_prefer_tuple_swap = true:warning
101 csharp_style_prefer_utf8_string_literals = true:warning
103 csharp_style_throw_expression = true:warning
105 csharp_style_unused_value_assignment_preference = discard_variable:warning
106 csharp_style_unused_value_expression_statement_preference = discard_variable:warning
108 csharp_style_var_elsewhere = false:warning
109 csharp_style_var_for_built_in_types = false:warning
110 csharp_style_var_when_type_is_apparent = false:warning
112 csharp_using_directive_placement = outside_namespace:warning
114 ###############################
115 # .NET Coding Conventions     #
116 ###############################
118 dotnet_analyzer_diagnostic.severity = warning
120 dotnet_code_quality.ca3003.excluded_symbol_names = BotController
121 dotnet_code_quality.ca3012.excluded_symbol_names = BotController|CommandController
123 dotnet_code_quality_unused_parameters = all:warning
125 dotnet_diagnostic.CA1028.severity = silent
126 dotnet_diagnostic.CA1031.severity = silent
128 # Rule - almost everything
129 dotnet_naming_rule.almost_everything_must_be_pascal_case.severity = warning
130 dotnet_naming_rule.almost_everything_must_be_pascal_case.style = pascal_case
131 dotnet_naming_rule.almost_everything_must_be_pascal_case.symbols = almost_everything
133 # Rule - enums
134 dotnet_naming_rule.enums_must_be_e_pascal_case.severity = warning
135 dotnet_naming_rule.enums_must_be_e_pascal_case.style = e_pascal_case
136 dotnet_naming_rule.enums_must_be_e_pascal_case.symbols = enums
138 # Rule - interfaces
139 dotnet_naming_rule.interfaces_must_be_i_pascal_case.severity = warning
140 dotnet_naming_rule.interfaces_must_be_i_pascal_case.style = i_pascal_case
141 dotnet_naming_rule.interfaces_must_be_i_pascal_case.symbols = interfaces
143 # Rule - local parameters
144 dotnet_naming_rule.local_parameters_must_be_camel_case.severity = warning
145 dotnet_naming_rule.local_parameters_must_be_camel_case.style = camel_case
146 dotnet_naming_rule.local_parameters_must_be_camel_case.symbols = local_parameters
148 # Rule - type parameters
149 dotnet_naming_rule.type_parameters_must_be_t_pascal_case.severity = warning
150 dotnet_naming_rule.type_parameters_must_be_t_pascal_case.style = t_pascal_case
151 dotnet_naming_rule.type_parameters_must_be_t_pascal_case.symbols = type_parameters
153 # Style - camelCase
154 dotnet_naming_style.camel_case.capitalization = camel_case
156 # Style - EPascalCase
157 dotnet_naming_style.e_pascal_case.capitalization = pascal_case
158 dotnet_naming_style.e_pascal_case.required_prefix = E
160 # Style - IPascalCase
161 dotnet_naming_style.i_pascal_case.capitalization = pascal_case
162 dotnet_naming_style.i_pascal_case.required_prefix = I
164 # Style - PascalCase
165 dotnet_naming_style.pascal_case.capitalization = pascal_case
167 # Style - TPascalCase
168 dotnet_naming_style.t_pascal_case.capitalization = pascal_case
169 dotnet_naming_style.t_pascal_case.required_prefix = T
171 # Symbol - almost everything
172 dotnet_naming_symbols.almost_everything.applicable_accessibilities = *
173 dotnet_naming_symbols.almost_everything.applicable_kinds = namespace, class, struct, property, method, field, event, delegate
175 # Symbol - enums
176 dotnet_naming_symbols.enums.applicable_accessibilities = *
177 dotnet_naming_symbols.enums.applicable_kinds = enum
179 # Symbol - interfaces
180 dotnet_naming_symbols.interfaces.applicable_accessibilities = *
181 dotnet_naming_symbols.interfaces.applicable_kinds = interface
183 # Symbol - local parameters
184 dotnet_naming_symbols.local_parameters.applicable_accessibilities = *
185 dotnet_naming_symbols.local_parameters.applicable_kinds = parameter, local, local_function
187 # Symbol - type parameters
188 dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
189 dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
191 dotnet_remove_unnecessary_suppression_exclusions = none:warning
192 dotnet_separate_import_directive_groups = false
193 dotnet_sort_system_directives_first = true
195 dotnet_style_coalesce_expression = true:warning
196 dotnet_style_collection_initializer = true:warning
197 dotnet_style_explicit_tuple_names = true:warning
198 dotnet_style_namespace_match_folder = true:warning
199 dotnet_style_null_propagation = true:warning
200 dotnet_style_object_initializer = true:warning
202 dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
203 dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
204 dotnet_style_parentheses_in_other_operators = never_if_unnecessary:warning
205 dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
207 dotnet_style_predefined_type_for_locals_parameters_members = true:warning
208 dotnet_style_predefined_type_for_member_access = true:warning
210 dotnet_style_prefer_auto_properties = true:warning
211 dotnet_style_prefer_compound_assignment = true:warning
212 dotnet_style_prefer_conditional_expression_over_assignment = true:warning
213 dotnet_style_prefer_conditional_expression_over_return = true:warning
214 dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
215 dotnet_style_prefer_inferred_tuple_names = true:warning
216 dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
217 dotnet_style_prefer_simplified_boolean_expressions = true:warning
218 dotnet_style_prefer_simplified_interpolation = true:warning
220 dotnet_style_qualification_for_event = false:warning
221 dotnet_style_qualification_for_field = false:warning
222 dotnet_style_qualification_for_method = false:warning
223 dotnet_style_qualification_for_property = false:warning
225 dotnet_style_readonly_field = true:warning
226 dotnet_style_require_accessibility_modifiers = always:warning
228 [ArchiSteamFarm/**.cs]
229 # ASF project includes plugin system, therefore CA1515 typically doesn't make sense there
230 dotnet_diagnostic.CA1515.severity = silent
232 ###############################
233 # JetBrains, IntelliJ/Rider   #
234 ###############################
236 [*.{csproj,props,resx,xml}]
237 ij_xml_keep_blank_lines = 1
238 ij_xml_keep_line_breaks = false
239 ij_xml_keep_line_breaks_in_text = false
240 ij_xml_space_inside_empty_tag = true
242 [*.{json,json5}]
243 ij_json_keep_line_breaks = false