Skip to content

Commit 3997f6e

Browse files
authored
chore(editorconfig): update encoding config (#805)
1 parent 7a3aebd commit 3997f6e

1 file changed

Lines changed: 6 additions & 232 deletions

File tree

.editorconfig

Lines changed: 6 additions & 232 deletions
Original file line numberDiff line numberDiff line change
@@ -1,248 +1,22 @@
11
root = true
22

33
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
4-
###############################
5-
# Core EditorConfig Options #
6-
###############################
7-
8-
# All files
94
[*]
10-
indent_style = space
115
charset = utf-8
6+
indent_style = space
127
trim_trailing_whitespace = true
138
insert_final_newline = true
149
spelling_exclusion_path = .\exclusion.dic
1510

16-
# Microsoft .NET properties
17-
csharp_new_line_before_members_in_object_initializers = false
18-
csharp_preferred_modifier_order = public, private, protected, internal, file, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestion
19-
csharp_style_prefer_utf8_string_literals = true:suggestion
20-
csharp_style_var_elsewhere = true:suggestion
21-
csharp_style_var_for_built_in_types = true:suggestion
22-
csharp_style_var_when_type_is_apparent = true:suggestion
23-
dotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = True
24-
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field
25-
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
26-
dotnet_naming_rule.unity_serialized_field_rule.severity = warning
27-
dotnet_naming_rule.unity_serialized_field_rule.style = lower_camel_case_style
28-
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols
29-
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
30-
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = *
31-
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds =
32-
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field
33-
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance
34-
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
35-
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
36-
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
37-
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
38-
dotnet_style_predefined_type_for_member_access = true:suggestion
39-
dotnet_style_qualification_for_event = false:suggestion
40-
dotnet_style_qualification_for_field = false:suggestion
41-
dotnet_style_qualification_for_method = false:suggestion
42-
dotnet_style_qualification_for_property = false:suggestion
43-
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
44-
45-
# ReSharper properties
46-
resharper_autodetect_indent_settings = true
47-
resharper_formatter_off_tag = @formatter:off
48-
resharper_formatter_on_tag = @formatter:on
49-
resharper_formatter_tags_enabled = true
50-
resharper_new_line_before_while = true
51-
resharper_place_attribute_on_same_line = false
52-
resharper_show_autodetect_configure_formatting_tip = false
53-
resharper_use_indent_from_vs = false
54-
55-
# ReSharper inspection severities
56-
resharper_arrange_redundant_parentheses_highlighting = hint
57-
resharper_arrange_this_qualifier_highlighting = hint
58-
resharper_arrange_type_member_modifiers_highlighting = hint
59-
resharper_arrange_type_modifiers_highlighting = hint
60-
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
61-
resharper_built_in_type_reference_style_highlighting = hint
62-
resharper_redundant_base_qualifier_highlighting = warning
63-
resharper_suggest_var_or_type_built_in_types_highlighting = hint
64-
resharper_suggest_var_or_type_elsewhere_highlighting = hint
65-
resharper_suggest_var_or_type_simple_types_highlighting = hint
66-
resharper_web_config_module_not_resolved_highlighting = warning
67-
resharper_web_config_type_not_resolved_highlighting = warning
68-
resharper_web_config_wrong_module_highlighting = warning
69-
70-
# Code files
71-
[*.{cs,csx,vb,vbx}]
72-
indent_size = 4
73-
74-
[*.{xml,config,*proj,nuspec,props,resx,targets,yml,tasks}]
75-
indent_size = 2
76-
77-
# Xml config files
78-
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
79-
indent_size = 2
80-
81-
[*.json]
11+
[*.{xml,config,csproj,nuspec,props,resx,targets,yml,tasks,json}]
8212
indent_size = 2
8313

84-
[*.{ps1,psm1}]
85-
indent_size = 4
86-
8714
[*.sh]
88-
indent_size = 4
8915
end_of_line = lf
9016

91-
[*.csproj]
92-
charset = utf-8
93-
94-
###############################
95-
# .NET Coding Conventions #
96-
###############################
97-
[*.{cs,vb}]
98-
# Organize usings
99-
dotnet_sort_system_directives_first = false
100-
# this. preferences
101-
dotnet_style_qualification_for_field = false:silent
102-
dotnet_style_qualification_for_property = false:silent
103-
dotnet_style_qualification_for_method = false:silent
104-
dotnet_style_qualification_for_event = false:silent
105-
# Language keywords vs BCL types preferences
106-
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
107-
dotnet_style_predefined_type_for_member_access = true:silent
108-
# Parentheses preferences
109-
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
110-
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
111-
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
112-
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
113-
# Modifier preferences
114-
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
115-
dotnet_style_readonly_field = true:suggestion
116-
# Expression-level preferences
117-
dotnet_style_object_initializer = true:suggestion
118-
dotnet_style_collection_initializer = true:suggestion
119-
dotnet_style_explicit_tuple_names = true:suggestion
120-
dotnet_style_null_propagation = true:suggestion
121-
dotnet_style_coalesce_expression = true:suggestion
122-
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
123-
dotnet_style_prefer_inferred_tuple_names = true:suggestion
124-
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
125-
dotnet_style_prefer_auto_properties = true:silent
126-
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
127-
dotnet_style_prefer_conditional_expression_over_return = true:silent
128-
###############################
129-
# Naming Conventions #
130-
###############################
131-
# Style Definitions
132-
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
133-
# Use PascalCase for constant fields
134-
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
135-
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
136-
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
137-
dotnet_naming_symbols.constant_fields.applicable_kinds = field
138-
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
139-
dotnet_naming_symbols.constant_fields.required_modifiers = const
140-
dotnet_style_operator_placement_when_wrapping = beginning_of_line
141-
tab_width = 4
142-
end_of_line = crlf
143-
dotnet_style_prefer_collection_expression = when_types_exactly_match:suggestion
144-
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
145-
dotnet_style_prefer_compound_assignment = true:suggestion
146-
dotnet_style_prefer_simplified_interpolation = true:suggestion
147-
dotnet_style_namespace_match_folder = false:suggestion
148-
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
149-
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
150-
dotnet_code_quality_unused_parameters = all:suggestion
151-
###############################
152-
# C# Coding Conventions #
153-
###############################
154-
[*.cs]
155-
# var preferences
156-
csharp_style_var_for_built_in_types = true:silent
157-
csharp_style_var_when_type_is_apparent = true:silent
158-
csharp_style_var_elsewhere = true:silent
159-
csharp_prefer_static_local_function = true:silent
160-
# Expression-bodied members
161-
csharp_style_expression_bodied_methods = false:silent
162-
csharp_style_expression_bodied_constructors = false:silent
163-
csharp_style_expression_bodied_operators = false:silent
164-
csharp_style_expression_bodied_properties = true:silent
165-
csharp_style_expression_bodied_indexers = true:silent
166-
csharp_style_expression_bodied_accessors = true:silent
167-
# Pattern matching preferences
168-
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
169-
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
170-
# Null-checking preferences
171-
csharp_style_throw_expression = true:suggestion
172-
csharp_style_conditional_delegate_call = true:suggestion
173-
# Modifier preferences
174-
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
175-
# Expression-level preferences
176-
csharp_prefer_braces = true:silent
177-
csharp_style_deconstructed_variable_declaration = true:suggestion
178-
csharp_prefer_simple_default_expression = true:suggestion
179-
csharp_style_pattern_local_over_anonymous_function = true:suggestion
180-
csharp_style_inlined_variable_declaration = true:suggestion
181-
###############################
182-
# C# Formatting Rules #
183-
###############################
184-
# New line preferences
185-
csharp_new_line_before_open_brace = all
186-
csharp_new_line_before_else = true
187-
csharp_new_line_before_catch = true
188-
csharp_new_line_before_finally = true
189-
csharp_new_line_before_members_in_object_initializers = true
190-
csharp_new_line_before_members_in_anonymous_types = true
191-
csharp_new_line_between_query_expression_clauses = true
192-
# Indentation preferences
193-
csharp_indent_case_contents = true
194-
csharp_indent_switch_labels = true
195-
csharp_indent_labels = flush_left
196-
# Space preferences
197-
csharp_space_after_cast = false
198-
csharp_space_after_keywords_in_control_flow_statements = true
199-
csharp_space_between_method_call_parameter_list_parentheses = false
200-
csharp_space_between_method_declaration_parameter_list_parentheses = false
201-
csharp_space_between_parentheses = false
202-
csharp_space_before_colon_in_inheritance_clause = true
203-
csharp_space_after_colon_in_inheritance_clause = true
204-
csharp_space_around_binary_operators = before_and_after
205-
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
206-
csharp_space_between_method_call_name_and_opening_parenthesis = false
207-
csharp_space_between_method_call_empty_parameter_list_parentheses = false
208-
# Wrapping preferences
209-
csharp_preserve_single_line_statements = true
210-
csharp_preserve_single_line_blocks = true
211-
###############################
212-
# VB Coding Conventions #
213-
###############################
214-
[*.vb]
215-
# Modifier preferences
216-
visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
21717
[*.cs]
18+
dotnet_analyzer_diagnostic.category-Style.severity = none
19+
csharp_style_namespace_declarations = file_scoped:silent
20+
21821
# Add file header
219-
file_header_template = Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved.\nLicensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\nWebsite: https://www.blazor.zone or https://argozhang.github.io/
220-
csharp_style_namespace_declarations = file_scoped:suggestion
221-
csharp_style_expression_bodied_local_functions = true:silent
222-
csharp_using_directive_placement = outside_namespace:silent
223-
csharp_prefer_simple_using_statement = true:suggestion
224-
csharp_style_prefer_method_group_conversion = true:silent
225-
csharp_style_prefer_top_level_statements = true:silent
226-
csharp_style_prefer_primary_constructors = true:suggestion
227-
csharp_style_expression_bodied_lambdas = true:silent
228-
csharp_style_prefer_null_check_over_type_check = true:suggestion
229-
csharp_style_prefer_local_over_anonymous_function = true:suggestion
230-
csharp_style_prefer_index_operator = true:suggestion
231-
csharp_style_prefer_range_operator = true:suggestion
232-
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
233-
csharp_style_prefer_utf8_string_literals = true:suggestion
234-
csharp_style_prefer_tuple_swap = true:suggestion
235-
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
236-
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
237-
csharp_style_prefer_readonly_struct_member = true:suggestion
238-
csharp_style_prefer_readonly_struct = true:suggestion
239-
csharp_style_allow_embedded_statements_on_same_line_experimental = true:silent
240-
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true:silent
241-
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true:silent
242-
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true:silent
243-
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true:silent
244-
csharp_style_prefer_switch_expression = true:suggestion
245-
csharp_style_prefer_pattern_matching = true:silent
246-
csharp_style_prefer_not_pattern = true:suggestion
247-
csharp_style_prefer_extended_property_pattern = true:suggestion
248-
csharp_prefer_static_anonymous_function = true:suggestion
22+
file_header_template = Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved.\nLicensed under the Apache License, Version 2.0. See License.txt in the project root for license information.\nWebsite: https://www.blazor.zone

0 commit comments

Comments
 (0)