Skip to content

Commit f673661

Browse files
committed
.editorconfig updates
1 parent f2307f3 commit f673661

File tree

2 files changed

+168
-77
lines changed

2 files changed

+168
-77
lines changed

.editorconfig

Lines changed: 166 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -7,76 +7,203 @@ guidelines = 80 dotted, 114 dotted
77

88
# VSSPELL: Spell checker settings for all files
99
vsspell_section_id = c3dde3791ccd496a9a3bfd0c6940e0dd
10+
vsspell_code_analyzer_ignore_identifier_if_private = true
11+
vsspell_code_analyzer_ignore_identifier_if_internal = true
12+
vsspell_code_analyzer_ignore_identifier_if_all_uppercase = true
13+
vsspell_code_analyzer_ignore_identifiers_within_member_bodies = true
14+
vsspell_code_analyzer_ignore_if_compiler_generated = true
15+
vsspell_code_analyzer_ignore_delimited_comments = true
16+
vsspell_code_analyzer_ignore_quadruple_slash_comments = true
17+
vsspell_code_analyzer_apply_to_all_c_style_languages = true
1018
vsspell_ignored_words_c3dde3791ccd496a9a3bfd0c6940e0dd = File:IgnoredWords.dic
1119

1220
[*.{ics,vcf}]
1321
# VSSPELL: Ignore spell checking in .ics and .vcf files
1422
vsspell_spell_check_as_you_type = false
1523
vsspell_include_in_project_spell_check = false
1624

17-
# XML files of various types
1825
[*.{aml,asax,ascx,asmx,asp,aspx,axml,config,content,cshtml,csproj,database,datasource,dbml,disco,discomap,dtsx,edmx,exclude,fxcop,htm,html,items,layout,maml,manifest,master,msha,myapp,nunit,nuspec,proj,projitems,props,publishproj,pubxml,rdl,rdlc,resx,ruleset,settings,shfbproj,shproj,sitemap,snippets,soap,svc,svcinfo,svcmap,targets,tasks,tokens,vbhtml,vbproj,vcxproj,vcxproj.filters,vsct,vsixmanifest,vstemplate,webinfo,wsdl,xaml,xamlcfg,xml,xsd,xsl,xslt,xsx}]
26+
# XML files of various types
1927
indent_style = tab
28+
indent_size = 2
29+
tab_width = 2
2030

21-
# C#/VB settings
2231
[*.{cs,vb}]
32+
# C#/VB settings
2333
indent_size = 4
34+
tab_width = 4
2435

2536
dotnet_sort_system_directives_first = true
2637

38+
# Naming rules
39+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
40+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
41+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
42+
43+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
44+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
45+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
46+
47+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
48+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
49+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
50+
51+
# Symbol specifications
52+
dotnet_naming_symbols.interface.applicable_kinds = interface
53+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
54+
dotnet_naming_symbols.interface.required_modifiers =
55+
56+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
57+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
58+
dotnet_naming_symbols.types.required_modifiers =
59+
60+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
61+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
62+
dotnet_naming_symbols.non_field_members.required_modifiers =
63+
64+
# Naming styles
65+
dotnet_naming_style.begins_with_i.required_prefix = I
66+
dotnet_naming_style.begins_with_i.required_suffix =
67+
dotnet_naming_style.begins_with_i.word_separator =
68+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
69+
70+
dotnet_naming_style.pascal_case.required_prefix =
71+
dotnet_naming_style.pascal_case.required_suffix =
72+
dotnet_naming_style.pascal_case.word_separator =
73+
dotnet_naming_style.pascal_case.capitalization = pascal_case
74+
75+
dotnet_naming_style.pascal_case.required_prefix =
76+
dotnet_naming_style.pascal_case.required_suffix =
77+
dotnet_naming_style.pascal_case.word_separator =
78+
dotnet_naming_style.pascal_case.capitalization = pascal_case
79+
80+
# Code style settings
81+
dotnet_style_predefined_type_for_locals_parameters_members = true:none
82+
dotnet_style_predefined_type_for_member_access = false:error
83+
dotnet_style_coalesce_expression = true:suggestion
84+
dotnet_style_collection_initializer = true:suggestion
85+
dotnet_style_explicit_tuple_names = true:error
86+
dotnet_style_null_propagation = true:suggestion
87+
dotnet_style_object_initializer = true:suggestion
88+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
89+
dotnet_style_prefer_auto_properties = true:silent
90+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
91+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
92+
dotnet_style_prefer_conditional_expression_over_return = true:silent
93+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
94+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
95+
dotnet_style_prefer_compound_assignment = true:none
96+
dotnet_style_prefer_simplified_interpolation = true:suggestion
97+
dotnet_style_namespace_match_folder = true:suggestion
98+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
99+
27100
# "This." and "Me." qualification. Use is preferred where true but the lightbulbs tend to show up in places
28101
# they aren't wanted (within static methods and nameof parameters etc.) so no suggestions are enabled.
29-
dotnet_style_qualification_for_event = true : none
30-
dotnet_style_qualification_for_field = false : none
31-
dotnet_style_qualification_for_method = true : none
32-
dotnet_style_qualification_for_property = true : none
33-
34-
# Language keywords vs framework type names
35-
dotnet_style_predefined_type_for_locals_parameters_members = true : none
36-
dotnet_style_predefined_type_for_member_access = false : error
37-
38-
# Modern language feature settings
39-
dotnet_style_coalesce_expression = true : suggestion
40-
dotnet_style_collection_initializer = true : suggestion
41-
dotnet_style_explicit_tuple_names = true : error
42-
dotnet_style_null_propagation = true : suggestion
43-
dotnet_style_object_initializer = true : suggestion
102+
dotnet_style_qualification_for_event = true:none
103+
dotnet_style_qualification_for_field = false:none
104+
dotnet_style_qualification_for_method = true:none
105+
dotnet_style_qualification_for_property = true:none
44106

107+
# Code analyzer settings
45108
# CA1303: Do not pass literals as localized parameters
46109
dotnet_diagnostic.CA1303.severity = none
47110

111+
# IDE0010: Add missing cases
112+
dotnet_diagnostic.IDE0010.severity = none
113+
114+
# IDE0032: Use auto property
115+
dotnet_diagnostic.IDE0032.severity = none
116+
117+
# IDE0045: Convert to conditional expression
118+
dotnet_diagnostic.IDE0045.severity = none
119+
120+
# IDE0046: Convert to conditional expression
121+
dotnet_diagnostic.IDE0046.severity = none
122+
123+
# IDE0047: Remove unnecessary parentheses
124+
dotnet_diagnostic.IDE0047.severity = none
125+
126+
# IDE0055: Fix formatting
127+
dotnet_diagnostic.IDE0055.severity = none
128+
129+
# IDE0058: Expression value is never used
130+
dotnet_diagnostic.IDE0058.severity = none
131+
48132
# IDE1006: Naming Styles
49133
dotnet_diagnostic.IDE1006.severity = none
50134

51-
# CSharp code style settings
52-
[*.cs]
53-
csharp_style_var_elsewhere = false : none
54-
csharp_style_var_for_built_in_types = false : none
55-
csharp_style_var_when_type_is_apparent = false : none
56-
57-
csharp_style_expression_bodied_accessors = true : suggestion
58-
csharp_style_expression_bodied_constructors = false : none
59-
csharp_style_expression_bodied_indexers = true : suggestion
60-
csharp_style_expression_bodied_methods = false : none
61-
csharp_style_expression_bodied_operators = false : none
62-
csharp_style_expression_bodied_properties = true : suggestion
63-
64-
csharp_style_conditional_delegate_call = true : suggestion
65-
csharp_style_deconstructed_variable_declaration = false : none
66-
csharp_style_inlined_variable_declaration = true : suggestion
67-
csharp_style_pattern_local_over_anonymous_function = true : suggestion
68-
csharp_style_pattern_matching_over_as_with_null_check = true : suggestion
69-
csharp_style_pattern_matching_over_is_with_cast_check = true : suggestion
70-
csharp_style_throw_expression = true : suggestion
71-
72-
csharp_prefer_simple_default_expression = true : suggestion
135+
# These are disabled as we're still targeting .NET Framework as well and I don't want a lot of conditional code
136+
# to suppress these.
137+
# IDE0056: Use index operator
138+
dotnet_diagnostic.IDE0056.severity = none
139+
140+
# IDE0057: Use range operator
141+
dotnet_diagnostic.IDE0057.severity = none
142+
143+
# IDE0063: Use simple 'using' statement
144+
dotnet_diagnostic.IDE0063.severity = none
73145

146+
# IDE0066: Convert switch statement to expression
147+
dotnet_diagnostic.IDE0066.severity = none
148+
149+
# IDE0074: Use compound assignment
150+
dotnet_diagnostic.IDE0074.severity = none
151+
152+
# IDE0090: Use 'new(...)'
153+
dotnet_diagnostic.IDE0090.severity = none
154+
155+
# CA1845: Use span-based 'string.Concat'
156+
dotnet_diagnostic.CA1845.severity = none
157+
158+
# CA1846: Prefer 'AsSpan' over 'Substring'
159+
dotnet_diagnostic.CA1846.severity = none
160+
161+
[*.cs]
162+
# CSharp code style settings
163+
csharp_style_var_elsewhere = false:none
164+
csharp_style_var_for_built_in_types = false:none
165+
csharp_style_var_when_type_is_apparent = false:none
166+
167+
csharp_style_expression_bodied_accessors = true:suggestion
168+
csharp_style_expression_bodied_constructors = false:none
169+
csharp_style_expression_bodied_indexers = true:suggestion
170+
csharp_style_expression_bodied_methods = false:none
171+
csharp_style_expression_bodied_operators = false:none
172+
csharp_style_expression_bodied_properties = true:suggestion
173+
174+
csharp_style_conditional_delegate_call = true:suggestion
175+
csharp_style_deconstructed_variable_declaration = false:none
176+
csharp_style_inlined_variable_declaration = true:suggestion
177+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
178+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
179+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
180+
csharp_style_throw_expression = true:suggestion
181+
csharp_style_namespace_declarations = block_scoped:silent
182+
csharp_style_prefer_method_group_conversion = true:silent
183+
csharp_style_prefer_top_level_statements = true:silent
184+
csharp_style_expression_bodied_lambdas = true:silent
185+
csharp_style_expression_bodied_local_functions = false:silent
186+
csharp_style_prefer_null_check_over_type_check = true:suggestion
187+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
188+
csharp_style_prefer_index_operator = true:suggestion
189+
csharp_style_prefer_range_operator = true:suggestion
190+
csharp_style_implicit_object_creation_when_type_is_apparent = true:none
191+
csharp_style_prefer_tuple_swap = true:suggestion
192+
csharp_style_prefer_utf8_string_literals = true:suggestion
193+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
194+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
195+
196+
csharp_prefer_braces = when_multiline:none
197+
csharp_prefer_simple_default_expression = true:suggestion
198+
csharp_prefer_simple_using_statement = true:none
74199
csharp_preserve_single_line_blocks = true
200+
csharp_using_directive_placement = outside_namespace:silent
75201

76202
# Indentation options
77203
csharp_indent_block_contents = true
78204
csharp_indent_braces = false
79205
csharp_indent_case_contents = true
206+
csharp_indent_labels = no_change
80207

81208
# New line options
82209
csharp_new_line_before_catch = true
@@ -106,41 +233,3 @@ csharp_space_between_method_call_parameter_list_parentheses = false
106233
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
107234
csharp_space_between_method_declaration_name_and_open_parenthesis = false
108235
csharp_space_between_method_declaration_parameter_list_parentheses = false
109-
110-
# IDE0010: Add missing cases
111-
dotnet_diagnostic.IDE0010.severity = none
112-
113-
# IDE0032: Use auto property
114-
dotnet_diagnostic.IDE0032.severity = none
115-
116-
# IDE0045: Convert to conditional expression
117-
dotnet_diagnostic.IDE0045.severity = none
118-
119-
# IDE0046: Convert to conditional expression
120-
dotnet_diagnostic.IDE0046.severity = none
121-
122-
# IDE0047: Remove unnecessary parentheses
123-
dotnet_diagnostic.IDE0047.severity = none
124-
125-
# IDE0055: Fix formatting
126-
dotnet_diagnostic.IDE0055.severity = none
127-
128-
# IDE0058: Expression value is never used
129-
dotnet_diagnostic.IDE0058.severity = none
130-
131-
# These are disabled as we're still targeting .NET Framework as well and I don't want a lot of conditional code
132-
# to suppress these.
133-
# IDE0056: Use index operator
134-
dotnet_diagnostic.IDE0056.severity = none
135-
136-
# IDE0057: Use range operator
137-
dotnet_diagnostic.IDE0057.severity = none
138-
139-
# IDE0063: Use simple 'using' statement
140-
dotnet_diagnostic.IDE0063.severity = none
141-
142-
# IDE0066: Convert switch statement to expression
143-
dotnet_diagnostic.IDE0066.severity = none
144-
145-
# IDE0090: Use 'new(...)'
146-
dotnet_diagnostic.IDE0090.severity = none

IgnoredWords.dic

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ iso
44
Mins
55
navbar
66
nd
7+
rdt
8+
utils
79
vcalendar
810
vcard
911
vcf

0 commit comments

Comments
 (0)