OpenGost
/
.editorconfig
125 строк · 6.6 Кб
1root = true
2
3[*]
4insert_final_newline = true
5indent_style = space
6trim_trailing_whitespace = true
7
8[*.{cs,csx,vb,vbx}]
9indent_size = 4
10max_line_length = 120
11charset = utf-8-bom
12
13[*.{cs,vb}]
14dotnet_sort_system_directives_first = true
15dotnet_style_qualification_for_field = false:silent
16dotnet_style_qualification_for_property = false:silent
17dotnet_style_qualification_for_method = false:silent
18dotnet_style_qualification_for_event = false:silent
19dotnet_style_predefined_type_for_locals_parameters_members = true:silent
20dotnet_style_predefined_type_for_member_access = true:silent
21dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
22dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
23dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
24dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
25dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
26dotnet_style_readonly_field = true:suggestion
27dotnet_style_object_initializer = true:suggestion
28dotnet_style_collection_initializer = true:suggestion
29dotnet_style_explicit_tuple_names = true:suggestion
30dotnet_style_null_propagation = true:suggestion
31dotnet_style_coalesce_expression = true:suggestion
32dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
33dotnet_style_prefer_inferred_tuple_names = true:suggestion
34dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
35dotnet_style_prefer_auto_properties = true:silent
36dotnet_style_prefer_conditional_expression_over_assignment = true:silent
37dotnet_style_prefer_conditional_expression_over_return = true:silent
38dotnet_naming_style.pascal_case_style.capitalization = pascal_case
39dotnet_naming_style.camel_case_style.capitalization = camel_case
40dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
41dotnet_naming_style.camel_case_underscore_style.required_prefix = _
42dotnet_naming_style.pascal_case_type_parameter_style.capitalization = pascal_case
43dotnet_naming_style.pascal_case_type_parameter_style.required_prefix = T
44dotnet_naming_style.pascal_case_interface_style.capitalization = pascal_case
45dotnet_naming_style.pascal_case_interface_style.required_prefix = I
46dotnet_naming_rule.pascal_case_symbols.severity = suggestion
47dotnet_naming_rule.pascal_case_symbols.symbols = pascal_case_symbols
48dotnet_naming_rule.pascal_case_symbols.style = pascal_case
49dotnet_naming_symbols.pascal_case_symbols.applicable_kinds = namespace,class,struct,enum,property,method,field,event,delegate,local_function
50dotnet_naming_rule.camel_case_symbols.severity = suggestion
51dotnet_naming_rule.camel_case_symbols.symbols = camel_case_symbols
52dotnet_naming_rule.camel_case_symbols.style = camel_case
53dotnet_naming_symbols.camel_case_symbols.applicable_kinds = parameter,local
54dotnet_naming_rule.interfaces.severity = suggestion
55dotnet_naming_rule.interfaces.symbols = interfaces
56dotnet_naming_rule.interfaces.style = pascal_case_interface_style
57dotnet_naming_symbols.interfaces.applicable_kinds = interface
58dotnet_naming_symbols.interfaces.applicable_accessibilities = *
59dotnet_naming_rule.type_parameters.severity = suggestion
60dotnet_naming_rule.type_parameters.symbols = type_parameters
61dotnet_naming_rule.type_parameters.style = pascal_case_type_parameter_style
62dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
63dotnet_naming_rule.constant_fields.severity = suggestion
64dotnet_naming_rule.constant_fields.symbols = constant_fields
65dotnet_naming_rule.constant_fields.style = pascal_case_style
66dotnet_naming_symbols.constant_fields.applicable_kinds = field
67dotnet_naming_symbols.constant_fields.required_modifiers = const
68dotnet_naming_rule.private_fields.severity = suggestion
69dotnet_naming_rule.private_fields.symbols= private_fields
70dotnet_naming_rule.private_fields.style= camel_case_underscore_style
71dotnet_naming_symbols.private_fields.applicable_kinds = field
72dotnet_naming_symbols.private_fields.applicable_accessibilities = private
73
74[*.cs]
75csharp_style_var_for_built_in_types = true:silent
76csharp_style_var_when_type_is_apparent = true:silent
77csharp_style_var_elsewhere = true:silent
78csharp_style_expression_bodied_methods = false:silent
79csharp_style_expression_bodied_constructors = false:silent
80csharp_style_expression_bodied_operators = false:silent
81csharp_style_expression_bodied_properties = true:silent
82csharp_style_expression_bodied_indexers = true:silent
83csharp_style_expression_bodied_accessors = true:silent
84csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
85csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
86csharp_style_throw_expression = true:suggestion
87csharp_style_conditional_delegate_call = true:suggestion
88csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
89csharp_prefer_braces = false:silent
90csharp_style_deconstructed_variable_declaration = true:suggestion
91csharp_prefer_simple_default_expression = true:suggestion
92csharp_style_pattern_local_over_anonymous_function = true:suggestion
93csharp_style_inlined_variable_declaration = true:suggestion
94csharp_new_line_before_open_brace = all
95csharp_new_line_before_else = true
96csharp_new_line_before_catch = true
97csharp_new_line_before_finally = true
98csharp_new_line_before_members_in_object_initializers = true
99csharp_new_line_before_members_in_anonymous_types = true
100csharp_new_line_between_query_expression_clauses = true
101csharp_indent_case_contents = true
102csharp_indent_switch_labels = true
103csharp_indent_labels = flush_left
104csharp_space_after_cast = false
105csharp_space_after_keywords_in_control_flow_statements = true
106csharp_space_between_method_call_parameter_list_parentheses = false
107csharp_space_between_method_declaration_parameter_list_parentheses = false
108csharp_space_between_parentheses = false
109csharp_space_before_colon_in_inheritance_clause = true
110csharp_space_after_colon_in_inheritance_clause = true
111csharp_space_around_binary_operators = before_and_after
112csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
113csharp_space_between_method_call_name_and_opening_parenthesis = false
114csharp_space_between_method_call_empty_parameter_list_parentheses = false
115csharp_preserve_single_line_statements = true
116csharp_preserve_single_line_blocks = true
117
118[*.vb]
119visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
120
121[*.{xml,config,*proj,props,resx,targets,ruleset}]
122indent_size = 2
123
124[*.json]
125indent_size = 2
126