ArchiSteamFarm/.editorconfig
2019-05-29 19:19:29 +02:00

79 lines
3.4 KiB
INI

###############################
# Core EditorConfig Options #
###############################
root = true
[*]
charset = utf-8
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
###############################
# .NET Coding Conventions #
###############################
[*.cs]
csharp_new_line_before_catch = false
csharp_new_line_before_else = false
csharp_new_line_before_finally = false
csharp_new_line_before_members_in_anonymous_types = false
csharp_new_line_before_members_in_object_initializers = false
csharp_new_line_before_open_brace = none
csharp_new_line_between_query_expression_clauses = false
csharp_prefer_braces = true:suggestion
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
csharp_preserve_single_line_statements = false
csharp_space_after_cast = true
csharp_style_expression_bodied_accessors = true:suggestion
csharp_style_expression_bodied_constructors = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
csharp_style_expression_bodied_methods = true:suggestion
csharp_style_expression_bodied_operators = true:suggestion
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_var_elsewhere = false:suggestion
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = false:suggestion
csharp_using_directive_placement = outside_namespace:suggestion
[*.{cs,vb}]
# PascalCase for naming everything but parameters
dotnet_naming_rule.all_members_must_be_capitalized.severity = suggestion
dotnet_naming_rule.all_members_must_be_capitalized.style = all_symbols
dotnet_naming_rule.all_members_must_be_capitalized.symbols = all_symbols
dotnet_naming_style.all_symbols.capitalization = pascal_case
dotnet_naming_symbols.all_symbols.applicable_accessibilities = *
dotnet_naming_symbols.all_symbols.applicable_kinds = class,struct,interface,enum,property,method,field,event,delegate
# camelCase for naming parameters
dotnet_naming_rule.parameters_must_be_camel_case.severity = suggestion
dotnet_naming_rule.parameters_must_be_camel_case.style = params
dotnet_naming_rule.parameters_must_be_camel_case.symbols = params
dotnet_naming_style.params.capitalization = camel_case
dotnet_naming_symbols.params.applicable_accessibilities = *
dotnet_naming_symbols.params.applicable_kinds = parameter
dotnet_sort_system_directives_first = true:suggestion
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggestion
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion
dotnet_style_prefer_auto_properties = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = false:suggestion
dotnet_style_qualification_for_event = false:suggestion
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_require_accessibility_modifiers = always:suggestion