Skip to content

Commit f859459

Browse files
committed
.editorconfig updates
1 parent 6ccb978 commit f859459

5 files changed

Lines changed: 204 additions & 140 deletions

File tree

.editorconfig

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
[*]
2+
# Don't use tabs for indentation unless otherwise overridden
3+
indent_style = space
4+
end_of_line = crlf
5+
guidelines = 80 dotted, 114 dotted
6+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
7+
8+
# VSSPELL: Spell checker settings for all files
9+
vsspell_code_analyzer_ignore_identifier_if_private = true
10+
vsspell_code_analyzer_ignore_identifier_if_internal = true
11+
vsspell_code_analyzer_ignore_identifier_if_all_uppercase = true
12+
vsspell_code_analyzer_ignore_identifiers_within_member_bodies = true
13+
vsspell_code_analyzer_ignore_if_compiler_generated = true
14+
vsspell_code_analyzer_ignore_delimited_comments = true
15+
vsspell_code_analyzer_ignore_quadruple_slash_comments = true
16+
vsspell_code_analyzer_apply_to_all_c_style_languages = true
17+
18+
[*.{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}]
19+
# XML files of various types
20+
indent_style = tab
21+
indent_size = 2
22+
tab_width = 2
23+
24+
[*.{cs,vb}]
25+
# C#/VB settings
26+
indent_size = 4
27+
tab_width = 4
28+
29+
dotnet_sort_system_directives_first = true
30+
31+
# Naming rules
32+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
33+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
34+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
35+
36+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
37+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
38+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
39+
40+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
41+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
42+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
43+
44+
# Symbol specifications
45+
dotnet_naming_symbols.interface.applicable_kinds = interface
46+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
47+
dotnet_naming_symbols.interface.required_modifiers =
48+
49+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
50+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
51+
dotnet_naming_symbols.types.required_modifiers =
52+
53+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
54+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
55+
dotnet_naming_symbols.non_field_members.required_modifiers =
56+
57+
# Naming styles
58+
dotnet_naming_style.begins_with_i.required_prefix = I
59+
dotnet_naming_style.begins_with_i.required_suffix =
60+
dotnet_naming_style.begins_with_i.word_separator =
61+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
62+
63+
dotnet_naming_style.pascal_case.required_prefix =
64+
dotnet_naming_style.pascal_case.required_suffix =
65+
dotnet_naming_style.pascal_case.word_separator =
66+
dotnet_naming_style.pascal_case.capitalization = pascal_case
67+
68+
dotnet_naming_style.pascal_case.required_prefix =
69+
dotnet_naming_style.pascal_case.required_suffix =
70+
dotnet_naming_style.pascal_case.word_separator =
71+
dotnet_naming_style.pascal_case.capitalization = pascal_case
72+
73+
# Code style settings
74+
dotnet_style_predefined_type_for_locals_parameters_members = true:none
75+
dotnet_style_predefined_type_for_member_access = false:error
76+
dotnet_style_coalesce_expression = true:suggestion
77+
dotnet_style_collection_initializer = true:suggestion
78+
dotnet_style_explicit_tuple_names = true:error
79+
dotnet_style_null_propagation = true:suggestion
80+
dotnet_style_object_initializer = true:suggestion
81+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
82+
dotnet_style_prefer_auto_properties = true:silent
83+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
84+
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
85+
dotnet_style_prefer_conditional_expression_over_return = true:silent
86+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
87+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
88+
dotnet_style_prefer_compound_assignment = true:suggestion
89+
dotnet_style_prefer_simplified_interpolation = true:suggestion
90+
dotnet_style_namespace_match_folder = true:suggestion
91+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
92+
93+
# "This." and "Me." qualification. Use is preferred where true but the lightbulbs tend to show up in places
94+
# they aren't wanted (within static methods and nameof parameters etc.) so no suggestions are enabled.
95+
dotnet_style_qualification_for_event = true:none
96+
dotnet_style_qualification_for_field = false:none
97+
dotnet_style_qualification_for_method = true:none
98+
dotnet_style_qualification_for_property = true:none
99+
100+
# Code analyzer settings
101+
# CA1303: Do not pass literals as localized parameters
102+
dotnet_diagnostic.CA1303.severity = none
103+
104+
# IDE0010: Add missing cases
105+
dotnet_diagnostic.IDE0010.severity = none
106+
107+
# IDE0032: Use auto property
108+
dotnet_diagnostic.IDE0032.severity = none
109+
110+
# IDE0045: Convert to conditional expression
111+
dotnet_diagnostic.IDE0045.severity = none
112+
113+
# IDE0046: Convert to conditional expression
114+
dotnet_diagnostic.IDE0046.severity = none
115+
116+
# IDE0047: Remove unnecessary parentheses
117+
dotnet_diagnostic.IDE0047.severity = none
118+
119+
# IDE0055: Fix formatting
120+
dotnet_diagnostic.IDE0055.severity = none
121+
122+
# IDE0058: Expression value is never used
123+
dotnet_diagnostic.IDE0058.severity = none
124+
125+
# IDE1006: Naming Styles
126+
dotnet_diagnostic.IDE1006.severity = none
127+
128+
[*.cs]
129+
# CSharp code style settings
130+
csharp_style_var_elsewhere = false:none
131+
csharp_style_var_for_built_in_types = false:none
132+
csharp_style_var_when_type_is_apparent = false:none
133+
134+
csharp_style_expression_bodied_accessors = true:suggestion
135+
csharp_style_expression_bodied_constructors = false:none
136+
csharp_style_expression_bodied_indexers = true:suggestion
137+
csharp_style_expression_bodied_methods = false:none
138+
csharp_style_expression_bodied_operators = false:none
139+
csharp_style_expression_bodied_properties = true:suggestion
140+
141+
csharp_style_conditional_delegate_call = true:suggestion
142+
csharp_style_deconstructed_variable_declaration = false:none
143+
csharp_style_inlined_variable_declaration = true:suggestion
144+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
145+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
146+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
147+
csharp_style_throw_expression = true:suggestion
148+
csharp_style_namespace_declarations = block_scoped:silent
149+
csharp_style_prefer_method_group_conversion = true:silent
150+
csharp_style_prefer_top_level_statements = true:silent
151+
csharp_style_expression_bodied_lambdas = true:silent
152+
csharp_style_expression_bodied_local_functions = false:silent
153+
csharp_style_prefer_null_check_over_type_check = true:suggestion
154+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
155+
csharp_style_prefer_index_operator = true:suggestion
156+
csharp_style_prefer_range_operator = true:suggestion
157+
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
158+
csharp_style_prefer_tuple_swap = true:suggestion
159+
csharp_style_prefer_utf8_string_literals = true:suggestion
160+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
161+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
162+
163+
csharp_prefer_braces = when_multiline:none
164+
csharp_prefer_simple_default_expression = true:suggestion
165+
csharp_prefer_simple_using_statement = true:suggestion
166+
csharp_preserve_single_line_blocks = true
167+
csharp_using_directive_placement = outside_namespace:silent
168+
169+
# Indentation options
170+
csharp_indent_block_contents = true
171+
csharp_indent_braces = false
172+
csharp_indent_case_contents = true
173+
csharp_indent_labels = no_change
174+
175+
# New line options
176+
csharp_new_line_before_catch = true
177+
csharp_new_line_before_else = true
178+
csharp_new_line_before_finally = true
179+
csharp_new_line_before_members_in_anonymous_types = true
180+
csharp_new_line_before_members_in_object_initializers = true
181+
csharp_new_line_before_open_brace = all
182+
csharp_new_line_between_query_expression_clauses = true
183+
184+
# Spacing options
185+
csharp_space_after_cast = false
186+
csharp_space_after_colon_in_inheritance_clause = true
187+
csharp_space_after_comma = true
188+
csharp_space_after_dot = false
189+
csharp_space_after_keywords_in_control_flow_statements = false
190+
csharp_space_after_semicolon_in_for_statement = true
191+
csharp_space_around_binary_operators = before_and_after
192+
csharp_space_before_colon_in_inheritance_clause = true
193+
csharp_space_before_comma = false
194+
csharp_space_before_dot = false
195+
csharp_space_before_open_square_brackets = false
196+
csharp_space_before_semicolon_in_for_statement = false
197+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
198+
csharp_space_between_method_call_name_and_opening_parenthesis = false
199+
csharp_space_between_method_call_parameter_list_parentheses = false
200+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
201+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
202+
csharp_space_between_method_declaration_parameter_list_parentheses = false

Docs/.editorconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

Source/.editorconfig

Lines changed: 0 additions & 126 deletions
This file was deleted.

Source/ExtendedDocCommentsProvider2019.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{A2FF48
1212
EndProject
1313
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A4DAA35D-130C-4800-8430-0B25FB2DC754}"
1414
ProjectSection(SolutionItems) = preProject
15-
.editorconfig = .editorconfig
15+
..\.editorconfig = ..\.editorconfig
1616
ExtendedDocCommentsProvider.snk = ExtendedDocCommentsProvider.snk
1717
EndProjectSection
1818
EndProject

Source/ExtendedDocCommentsProvider2022.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{A2FF48
1010
EndProject
1111
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A4DAA35D-130C-4800-8430-0B25FB2DC754}"
1212
ProjectSection(SolutionItems) = preProject
13-
.editorconfig = .editorconfig
13+
..\.editorconfig = ..\.editorconfig
1414
ExtendedDocCommentsProvider.snk = ExtendedDocCommentsProvider.snk
1515
EndProjectSection
1616
EndProject

0 commit comments

Comments
 (0)