chore(deps): update actions/checkout action to v4.1.5
[ArchiSteamFarm.git] / .editorconfig
blobcd2b66dfc8db3f926420b701c35ac68eedc5b3f7
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
127 dotnet_diagnostic.ca1863.severity = silent
129 # Rule - almost everything
130 dotnet_naming_rule.almost_everything_must_be_pascal_case.severity = warning
131 dotnet_naming_rule.almost_everything_must_be_pascal_case.style = pascal_case
132 dotnet_naming_rule.almost_everything_must_be_pascal_case.symbols = almost_everything
134 # Rule - enums
135 dotnet_naming_rule.enums_must_be_e_pascal_case.severity = warning
136 dotnet_naming_rule.enums_must_be_e_pascal_case.style = e_pascal_case
137 dotnet_naming_rule.enums_must_be_e_pascal_case.symbols = enums
139 # Rule - interfaces
140 dotnet_naming_rule.interfaces_must_be_i_pascal_case.severity = warning
141 dotnet_naming_rule.interfaces_must_be_i_pascal_case.style = i_pascal_case
142 dotnet_naming_rule.interfaces_must_be_i_pascal_case.symbols = interfaces
144 # Rule - local parameters
145 dotnet_naming_rule.local_parameters_must_be_camel_case.severity = warning
146 dotnet_naming_rule.local_parameters_must_be_camel_case.style = camel_case
147 dotnet_naming_rule.local_parameters_must_be_camel_case.symbols = local_parameters
149 # Rule - type parameters
150 dotnet_naming_rule.type_parameters_must_be_t_pascal_case.severity = warning
151 dotnet_naming_rule.type_parameters_must_be_t_pascal_case.style = t_pascal_case
152 dotnet_naming_rule.type_parameters_must_be_t_pascal_case.symbols = type_parameters
154 # Style - camelCase
155 dotnet_naming_style.camel_case.capitalization = camel_case
157 # Style - EPascalCase
158 dotnet_naming_style.e_pascal_case.capitalization = pascal_case
159 dotnet_naming_style.e_pascal_case.required_prefix = E
161 # Style - IPascalCase
162 dotnet_naming_style.i_pascal_case.capitalization = pascal_case
163 dotnet_naming_style.i_pascal_case.required_prefix = I
165 # Style - PascalCase
166 dotnet_naming_style.pascal_case.capitalization = pascal_case
168 # Style - TPascalCase
169 dotnet_naming_style.t_pascal_case.capitalization = pascal_case
170 dotnet_naming_style.t_pascal_case.required_prefix = T
172 # Symbol - almost everything
173 dotnet_naming_symbols.almost_everything.applicable_accessibilities = *
174 dotnet_naming_symbols.almost_everything.applicable_kinds = namespace, class, struct, property, method, field, event, delegate
176 # Symbol - enums
177 dotnet_naming_symbols.enums.applicable_accessibilities = *
178 dotnet_naming_symbols.enums.applicable_kinds = enum
180 # Symbol - interfaces
181 dotnet_naming_symbols.interfaces.applicable_accessibilities = *
182 dotnet_naming_symbols.interfaces.applicable_kinds = interface
184 # Symbol - local parameters
185 dotnet_naming_symbols.local_parameters.applicable_accessibilities = *
186 dotnet_naming_symbols.local_parameters.applicable_kinds = parameter, local, local_function
188 # Symbol - type parameters
189 dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
190 dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
192 dotnet_remove_unnecessary_suppression_exclusions = none:warning
193 dotnet_separate_import_directive_groups = false
194 dotnet_sort_system_directives_first = true
196 dotnet_style_coalesce_expression = true:warning
197 dotnet_style_collection_initializer = true:warning
198 dotnet_style_explicit_tuple_names = true:warning
199 dotnet_style_namespace_match_folder = true:warning
200 dotnet_style_null_propagation = true:warning
201 dotnet_style_object_initializer = true:warning
203 dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning
204 dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
205 dotnet_style_parentheses_in_other_operators = never_if_unnecessary:warning
206 dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning
208 dotnet_style_predefined_type_for_locals_parameters_members = true:warning
209 dotnet_style_predefined_type_for_member_access = true:warning
211 dotnet_style_prefer_auto_properties = true:warning
212 dotnet_style_prefer_compound_assignment = true:warning
213 dotnet_style_prefer_conditional_expression_over_assignment = true:warning
214 dotnet_style_prefer_conditional_expression_over_return = true:warning
215 dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
216 dotnet_style_prefer_inferred_tuple_names = true:warning
217 dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
218 dotnet_style_prefer_simplified_boolean_expressions = true:warning
219 dotnet_style_prefer_simplified_interpolation = true:warning
221 dotnet_style_qualification_for_event = false:warning
222 dotnet_style_qualification_for_field = false:warning
223 dotnet_style_qualification_for_method = false:warning
224 dotnet_style_qualification_for_property = false:warning
226 dotnet_style_readonly_field = true:warning
227 dotnet_style_require_accessibility_modifiers = always:warning
229 ###############################
230 # JetBrains, IntelliJ/Rider   #
231 ###############################
233 [*.{csproj,props,resx,xml}]
234 ij_xml_keep_blank_lines = 1
235 ij_xml_keep_line_breaks = false
236 ij_xml_keep_line_breaks_in_text = false
237 ij_xml_space_inside_empty_tag = true
239 [*.{json,json5}]
240 ij_json_keep_line_breaks = false