@@ -11,7 +11,6 @@ insert_final_newline = true
1111# XML project files
1212[* .{csproj,fsproj,vcxproj,vcxproj.filters,proj,projitems,shproj} ]
1313indent_size = 2
14-
1514# XML config files
1615[* .{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct} ]
1716indent_size = 2
@@ -52,36 +51,39 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent
5251
5352# Style Definitions
5453dotnet_naming_style.pascal_case_style.capitalization = pascal_case
54+ dotnet_naming_style.pascal_case_style.required_prefix =
55+
5556dotnet_naming_style.camel_case_style.capitalization = camel_case
57+ dotnet_naming_style.camel_case_style.required_prefix =
5658
5759# constant case preferences
5860dotnet_naming_symbols.constant_fields.applicable_kinds = field
5961dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
6062dotnet_naming_symbols.constant_fields.required_modifiers = const
61-
6263dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
6364dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
6465dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
6566
6667# fields case preferences
67- dotnet_naming_symbols.private_field_symbols .applicable_kinds = field
68- dotnet_naming_symbols.private_field_symbols .applicable_accessibilities = private
68+ dotnet_naming_symbols.private_fields .applicable_kinds = field
69+ dotnet_naming_symbols.private_fields .applicable_accessibilities = private
6970
70- dotnet_naming_rule.private_field_symbols_should_be_camel_case.symbols = private_field_symbols
71+ dotnet_naming_rule.private_field_symbols_should_be_camel_case.symbols = private_fields
7172dotnet_naming_rule.private_field_symbols_should_be_camel_case.severity = warning
7273dotnet_naming_rule.private_field_symbols_should_be_camel_case.style = camel_case_style
7374
74- dotnet_naming_symbols.protected_field_symbols.applicable_kinds = field, property
75- dotnet_naming_symbols.protected_field_symbols.applicable_accessibilities = protected
76- dotnet_naming_rule.protected_field_symbols_should_be_camel_case.symbols = protected_field_symbols
75+
76+ dotnet_naming_symbols.protected_fields.applicable_kinds = field
77+ dotnet_naming_symbols.protected_fields.applicable_accessibilities = protected
78+
79+ dotnet_naming_rule.protected_field_symbols_should_be_camel_case.symbols = protected_fields
7780dotnet_naming_rule.protected_field_symbols_should_be_camel_case.severity = suggestion
7881dotnet_naming_rule.protected_field_symbols_should_be_camel_case.style = camel_case_style
7982
8083# var preferences
8184csharp_style_var_for_built_in_types = true :silent
8285csharp_style_var_when_type_is_apparent = true :silent
8386csharp_style_var_elsewhere = true :silent
84-
8587# Expression-bodied members
8688csharp_style_expression_bodied_methods = true :suggestion
8789csharp_style_expression_bodied_constructors = true :suggestion
@@ -91,24 +93,19 @@ csharp_style_expression_bodied_indexers = true:suggestion
9193csharp_style_expression_bodied_accessors = true :suggestion
9294csharp_style_expression_bodied_lambdas = true :suggestion
9395csharp_style_expression_bodied_local_functions = true :suggestion
94-
9596# Pattern matching preferences
9697csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
9798csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
98-
9999# Null-checking preferences
100100csharp_style_throw_expression = true :suggestion
101101csharp_style_conditional_delegate_call = true :suggestion
102-
103102# Modifier preferences
104103csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion
105-
106104# Expression-level preferences
107105csharp_prefer_braces = false
108106csharp_style_deconstructed_variable_declaration = true :suggestion
109107csharp_prefer_simple_default_expression = true :suggestion
110108csharp_style_inlined_variable_declaration = true :suggestion
111-
112109# New line preferences
113110csharp_new_line_before_open_brace = all
114111csharp_new_line_before_else = true
@@ -117,12 +114,10 @@ csharp_new_line_before_finally = true
117114csharp_new_line_before_members_in_object_initializers = true
118115csharp_new_line_before_members_in_anonymous_types = true
119116csharp_new_line_between_query_expression_clauses = true
120-
121117# Indentation preferences
122118csharp_indent_case_contents = true
123119csharp_indent_switch_labels = true
124120csharp_indent_labels = flush_left
125-
126121# Space preferences
127122csharp_space_after_cast = false
128123csharp_space_after_keywords_in_control_flow_statements = true
@@ -138,36 +133,43 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false
138133# Wrapping preferences
139134csharp_preserve_single_line_statements = true
140135csharp_preserve_single_line_blocks = true
141-
142- # Analysers
136+ # Analyzers
143137# # dotnet
144138dotnet_diagnostic.IDE0011.severity = suggestion # require braces
145139dotnet_diagnostic.IDE0005.severity = warning # Using directive is unnecessary.
146- dotnet_diagnostic.IDE0005.severity = warning # Using directive is unnecessary.
147- dotnet_diagnostic.CA1860.severity = silent # Prefer comparing ' Length' to 0 rather than using ' Any()'
148-
140+ dotnet_diagnostic.IDE0251.severity = warning # member can be readonly
141+ dotnet_diagnostic.CA1860.severity = warning # Prefer comparing ' Length' to 0 rather than using ' Any()'
149142# # Sonar
150143dotnet_diagnostic.S1481.severity = warning # variable never used
151144dotnet_diagnostic.S1144.severity = suggestion # Remove the unused private constructor ' AddAuthorizationHeaderOperationFilter' .
152145dotnet_diagnostic.S1118.severity = suggestion # Add a ' protected' constructor or the ' static' keyword to the class declaration.
153146dotnet_diagnostic.S1075.severity = suggestion # hardcoded URIs
154147dotnet_diagnostic.S3459.severity = suggestion # Unassigned members should be removed
155- dotnet_diagnostic.S1104 .severity = suggestion # Make this field ' private ' and encapsulate it in a ' public ' property .
156- dotnet_diagnostic.S3878 .severity = suggestion # params array creation
157- dotnet_diagnostic.S3267 .severity = suggestion # loops simplified LINQ
158- dotnet_diagnostic.S2681 .severity = suggestion # loops single line
148+ dotnet_diagnostic.S1210 .severity = suggestion # When implementing IComparable , you should also override , = , >, and > = .
149+ dotnet_diagnostic.S2344 .severity = suggestion # remove Enum suffix
150+ dotnet_diagnostic.S6603 .severity = suggestion
151+ dotnet_diagnostic.S6602 .severity = suggestion # prefer array exists
159152dotnet_diagnostic.S3237.severity = silent # Use the ' value' contextual keyword in this property set accessor declaration.
160- dotnet_diagnostic.S1210 .severity = silent # When implementing IComparable , you should also override , = , >, and > = .
161- dotnet_diagnostic.S2219 .severity = silent # runtime type checking should be simplified
162- dotnet_diagnostic.S2094 .severity = silent # empty class (false positive )
163- dotnet_diagnostic.S3973 .severity = silent # braces
164- dotnet_diagnostic.S2346.severity = silent # enum None flags
165-
153+ dotnet_diagnostic.S1104 .severity = silent # encapsulate fields
154+ dotnet_diagnostic.S3877 .severity = silent # Remove this ' throw ' expression.
155+ dotnet_diagnostic.S2699 .severity = silent # add assert to test (not working with FsCheck )
156+ dotnet_diagnostic.S1117 .severity = silent # hiding field
157+ # # AsyncFixer
158+ dotnet_diagnostic.AsyncFixer01.severity = suggestion # The method dont needs async
166159# Resharper
167160resharper_space_within_single_line_array_initializer_braces = true
168161resharper_keep_existing_attribute_arrangement = true
162+ resharper_csharp_default_private_modifier = implicit
163+ resharper_csharp_default_internal_modifier = implicit
164+ resharper_csharp_object_creation_when_type_not_evident = target_typed
169165resharper_max_array_initializer_elements_on_line = 10
170166resharper_max_initializer_elements_on_line = 1
171167resharper_trailing_comma_in_multiline_lists = true
172168resharper_wrap_array_initializer_style = chop_if_long
173- resharper_empty_block_style = together_same_line
169+ resharper_empty_block_style = together_same_line
170+ # FALSE POSITIVES
171+ dotnet_diagnostic.S2094.severity = silent # empty class (false positive)
172+ dotnet_diagnostic.S3925.severity = silent # Update this implementation of ' ISerializable' to conform to the recommended serialization pattern.
173+
174+ [Usings.cs ]
175+ dotnet_diagnostic.IDE0005.severity = silent # Using directive is unnecessary.
0 commit comments