Skip to content

Commit 710da74

Browse files
authored
Simplify .editorconfig (#117)
- Remove opinionated style rules - Reorganize with section headers
1 parent 77c25c0 commit 710da74

File tree

1 file changed

+9
-43
lines changed

1 file changed

+9
-43
lines changed

.editorconfig

Lines changed: 9 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,33 @@ charset = utf-8
55
end_of_line = lf
66
indent_size = 2
77
indent_style = space
8-
max_line_length = 160
8+
max_line_length = 100
99
insert_final_newline = true
1010
trim_trailing_whitespace = true
1111

1212
[*.cs]
1313
indent_size = 4
14+
max_line_length = 160
1415

15-
## Dotnet code style settings:
16-
17-
# Sort using and Import directives with System.* appearing first
18-
dotnet_sort_system_directives_first = true
19-
# Avoid "this." and "Me." if not necessary
20-
dotnet_style_qualification_for_field = false:suggestion
21-
dotnet_style_qualification_for_property = false:suggestion
22-
dotnet_style_qualification_for_method = false:suggestion
23-
dotnet_style_qualification_for_event = false:suggestion
24-
25-
# Use language keywords instead of framework type names for type references
26-
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
27-
dotnet_style_predefined_type_for_member_access = true:suggestion
28-
29-
# Suggest more modern language features when available
30-
dotnet_style_object_initializer = true:suggestion
31-
dotnet_style_collection_initializer = true:suggestion
32-
dotnet_style_coalesce_expression = true:suggestion
33-
dotnet_style_null_propagation = true:suggestion
34-
dotnet_style_explicit_tuple_names = true:suggestion
35-
36-
# CSharp code style settings:
16+
# ==============================================================================
17+
# C# Code Style Settings
18+
# ==============================================================================
3719

38-
# Prefer "var" everywhere
3920
csharp_style_var_for_built_in_types = false:none
4021
csharp_style_var_when_type_is_apparent = true:suggestion
4122
csharp_style_var_elsewhere = true:suggestion
42-
43-
# Prefer method-like constructs to have a block body
4423
csharp_style_expression_bodied_methods = false:none
4524
csharp_style_expression_bodied_constructors = false:none
4625
csharp_style_expression_bodied_operators = false:none
47-
48-
# Prefer property-like constructs to have an expression-body
4926
csharp_style_expression_bodied_properties = true:none
5027
csharp_style_expression_bodied_indexers = true:none
5128
csharp_style_expression_bodied_accessors = true:none
5229

53-
# Suggest more modern language features when available
54-
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
55-
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
56-
csharp_style_inlined_variable_declaration = true:suggestion
57-
csharp_style_throw_expression = true:suggestion
58-
csharp_style_conditional_delegate_call = true:suggestion
59-
60-
# Newline settings
61-
csharp_new_line_before_else = true
62-
csharp_new_line_before_catch = true
63-
csharp_new_line_before_finally = true
64-
65-
## Naming
66-
67-
### private fields should be _camelCase
30+
# ==============================================================================
31+
# Naming Conventions
32+
# ==============================================================================
6833

34+
# Private fields should be _camelCase
6935
dotnet_naming_style.underscore_prefix.capitalization = camel_case
7036
dotnet_naming_style.underscore_prefix.required_prefix = _
7137

0 commit comments

Comments
 (0)