Skip to content

Commit

Permalink
Update editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
ocoanet committed Jan 14, 2024
1 parent 5e03774 commit ca34760
Showing 1 changed file with 69 additions and 1 deletion.
70 changes: 69 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = crlf

[*.{cs,csx,xaml,cake}]
[*.{cs,csx,xaml,cake,tt}]
indent_size = 4
indent_style = space

Expand All @@ -23,3 +23,71 @@ indent_style = tab

[*.md]
trim_trailing_whitespace = false

### dotnet settings
[*.cs]

# "this" qualification
dotnet_style_qualification_for_event = false:warning
dotnet_style_qualification_for_field = false:warning
dotnet_style_qualification_for_method = false:warning
dotnet_style_qualification_for_property = false:warning

# Use language keywords vs BCL type names
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion

# Modifiers
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
dotnet_style_readonly_field = true:suggestion

### Naming rules

# Rules
dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.symbols = non_public_fields
dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.style = underscore_camel_case
dotnet_naming_rule.non_public_fields_should_be_underscore_camel_case.severity = warning

# Symbols
dotnet_naming_symbols.non_public_fields.applicable_accessibilities = private, protected, private_protected
dotnet_naming_symbols.non_public_fields.applicable_kinds = field

# Styles
dotnet_naming_style.underscore_camel_case.capitalization = camel_case
dotnet_naming_style.underscore_camel_case.required_prefix = _

### csharp settings
[*.cs]
csharp_indent_labels = no_change

### ReSharper settings (these need to be in a [*] section)

[*]
resharper_align_linq_query = true
resharper_align_multiline_argument = true
resharper_align_multiline_calls_chain = true
resharper_align_multiline_extends_list = true
resharper_align_multiline_parameter = true
resharper_align_multiple_declaration = true
resharper_align_multline_type_parameter_constrains = true
resharper_align_multline_type_parameter_list = true
resharper_align_tuple_components = true
resharper_int_align_switch_expressions = true

resharper_csharp_keep_blank_lines_in_code = 1
resharper_csharp_keep_blank_lines_in_declarations = 1
resharper_keep_existing_attribute_arrangement = true
resharper_keep_existing_embedded_arrangement = false

resharper_place_accessorholder_attribute_on_same_line = false
resharper_place_constructor_initializer_on_same_line = false
resharper_place_field_attribute_on_same_line = false
resharper_place_simple_embedded_statement_on_same_line = false
resharper_csharp_place_type_constraints_on_same_line = false

resharper_new_line_before_while = true
resharper_csharp_stick_comment = false

resharper_wrap_before_arrow_with_expressions = true
resharper_csharp_wrap_before_binary_opsign = true
resharper_csharp_wrap_multiple_type_parameter_constraints_style = chop_always

0 comments on commit ca34760

Please sign in to comment.