@@ -6,7 +6,6 @@ root = true
6
6
# All files
7
7
[* ]
8
8
indent_style = space
9
- file_header_template = WinNUT-Client is a NUT windows client for monitoring your ups hooked up to your favorite linux server.\nCopyright (C) 2019 -2021 Gawindx (Decaux Nicolas)\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the\nGNU General Public License as published by the Free Software Foundation, either version 3 of the\nLicense, or any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY ; without\neven the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\nGeneral Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program.\nIf not, see https://www.gnu.org/licenses/.\n
10
9
# Code files
11
10
[* .{cs,csx,vb,vbx} ]
12
11
indent_size = 4
@@ -54,18 +53,29 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
54
53
# Use PascalCase for constant fields
55
54
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
56
55
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
57
- dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
56
+ dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
58
57
dotnet_naming_symbols.constant_fields.applicable_kinds = field
59
58
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
60
59
dotnet_naming_symbols.constant_fields.required_modifiers = const
60
+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
61
+ dotnet_style_prefer_compound_assignment = true :suggestion
62
+ dotnet_style_prefer_simplified_interpolation = true :suggestion
63
+ dotnet_style_namespace_match_folder = true :suggestion
64
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
65
+ tab_width = 4
66
+ end_of_line = crlf
67
+ dotnet_style_allow_multiple_blank_lines_experimental = true :silent
68
+ dotnet_style_allow_statement_immediately_after_block_experimental = true :silent
69
+ dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
70
+ dotnet_code_quality_unused_parameters = all:suggestion
61
71
# ##############################
62
72
# C# Coding Conventions #
63
73
# ##############################
64
74
[* .cs ]
65
75
# var preferences
66
- csharp_style_var_for_built_in_types = true :silent
67
- csharp_style_var_when_type_is_apparent = true :silent
68
- csharp_style_var_elsewhere = true :silent
76
+ csharp_style_var_for_built_in_types = false :silent
77
+ csharp_style_var_when_type_is_apparent = false :silent
78
+ csharp_style_var_elsewhere = false :silent
69
79
# Expression-bodied members
70
80
csharp_style_expression_bodied_methods = false :silent
71
81
csharp_style_expression_bodied_constructors = false :silent
@@ -101,7 +111,7 @@ csharp_new_line_between_query_expression_clauses = true
101
111
# Indentation preferences
102
112
csharp_indent_case_contents = true
103
113
csharp_indent_switch_labels = true
104
- csharp_indent_labels = flush_left
114
+ csharp_indent_labels = one_less_than_current
105
115
# Space preferences
106
116
csharp_space_after_cast = false
107
117
csharp_space_after_keywords_in_control_flow_statements = true
@@ -117,6 +127,35 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false
117
127
# Wrapping preferences
118
128
csharp_preserve_single_line_statements = true
119
129
csharp_preserve_single_line_blocks = true
130
+ csharp_using_directive_placement = outside_namespace:silent
131
+ csharp_prefer_simple_using_statement = true :suggestion
132
+ csharp_style_namespace_declarations = block_scoped:silent
133
+ csharp_style_prefer_method_group_conversion = true :silent
134
+ csharp_style_prefer_top_level_statements = true :silent
135
+ csharp_style_prefer_primary_constructors = true :suggestion
136
+ csharp_style_expression_bodied_lambdas = true :silent
137
+ csharp_style_expression_bodied_local_functions = false :silent
138
+ csharp_style_prefer_null_check_over_type_check = true :suggestion
139
+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
140
+ csharp_style_prefer_index_operator = true :suggestion
141
+ csharp_style_prefer_range_operator = true :suggestion
142
+ csharp_style_implicit_object_creation_when_type_is_apparent = true :suggestion
143
+ csharp_style_prefer_tuple_swap = true :suggestion
144
+ csharp_style_prefer_utf8_string_literals = true :suggestion
145
+ csharp_style_unused_value_assignment_preference = discard_variable:suggestion
146
+ csharp_style_unused_value_expression_statement_preference = discard_variable:silent
147
+ csharp_prefer_static_local_function = true :suggestion
148
+ csharp_style_prefer_readonly_struct = true :suggestion
149
+ csharp_style_prefer_readonly_struct_member = true :suggestion
150
+ csharp_style_allow_embedded_statements_on_same_line_experimental = true :silent
151
+ csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true :silent
152
+ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true :silent
153
+ csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true :silent
154
+ csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true :silent
155
+ csharp_style_prefer_switch_expression = true :suggestion
156
+ csharp_style_prefer_pattern_matching = true :silent
157
+ csharp_style_prefer_not_pattern = true :suggestion
158
+ csharp_style_prefer_extended_property_pattern = true :suggestion
120
159
# ##############################
121
160
# VB Coding Conventions #
122
161
# ##############################
0 commit comments