@@ -40,12 +40,6 @@ end_of_line = lf
4040dotnet_sort_system_directives_first = true
4141dotnet_separate_import_directive_groups = false
4242
43- # Avoid "this." and "Me." if not necessary
44- dotnet_style_qualification_for_field = false:refactoring
45- dotnet_style_qualification_for_property = false:refactoring
46- dotnet_style_qualification_for_method = false:refactoring
47- dotnet_style_qualification_for_event = false:refactoring
48-
4943# Use language keywords instead of framework type names for type references
5044dotnet_style_predefined_type_for_locals_parameters_members = true :error
5145dotnet_style_predefined_type_for_member_access = true :suggestion
@@ -159,6 +153,9 @@ dotnet_diagnostic.CA2231.severity = none # CA2231: Overload operator equals on o
159153# disabled, as NETFX doesn't have string.Contains overloads with comparison type
160154dotnet_diagnostic.CA2249.severity = none # CA2249: Consider using String.Contains instead of String.IndexOf
161155dotnet_diagnostic.CA3075.severity = error # CA3075: Insecure DTD Processing
156+ # very slow (https://github.com/dotnet/roslyn-analyzers/issues/4754)
157+ # also we don't have code that could be targeted by it
158+ dotnet_diagnostic.CA3076.severity = none # CA3076: Insecure XSLT Script Execution
162159
163160# ########################################################################################################
164161# inactive diagnostics (not reviewed yet => disabled to not fail build, basically TODO list for future) #
@@ -186,39 +183,78 @@ dotnet_diagnostic.CA1806.severity = none # CA1806: Do not ignore method results
186183dotnet_diagnostic.CA1822.severity = none # CA1822: Mark members as static
187184dotnet_diagnostic.CA2211.severity = none # CA2211: Non-constant fields should not be visible
188185
189- # ###############
190- # VS analyzers #
191- # ###############
192- # IDE0051: Remove unused private members
193- dotnet_diagnostic.IDE0051.severity = warning
194-
195- # IDE0055: Fix whitespace formatting
196- dotnet_diagnostic.IDE0055.severity = none
197-
198- # IDE0057: Use range operators (requires .net core 3 or higher)
199- dotnet_diagnostic.IDE0056.severity = none
200- dotnet_diagnostic.IDE0057.severity = none
201-
202- # IDE0060: unused parameters should be removed or have a discard symbol name
203- dotnet_diagnostic.IDE0060.severity = none
186+ # ##################################################################################
187+ # VS analyzers #
188+ # https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ #
189+ # ##################################################################################
190+ dotnet_diagnostic.IDE0001.severity = error # IDE0001: Simplify name
191+ dotnet_diagnostic.IDE0002.severity = error # IDE0002: Simplify member access
204192
205- # CS1998: Async method lacks 'await' operators and will run synchronously
206- dotnet_diagnostic.CS1998.severity = error
207-
208- # CS8618: Non-nullable field is uninitialized. Consider declaring as nullable.
209- dotnet_diagnostic.CS8618.severity = error
210-
211- # CS4014: Because this call is not awaited, execution of the current method continues before the call is completed
212- dotnet_diagnostic.CS4014.severity = error
193+ # IDE0003: Remove this or Me qualification
194+ # IDE0009: Add this or Me qualification
195+ dotnet_diagnostic.IDE0003.severity = error
196+ dotnet_style_qualification_for_field = false:refactoring
197+ dotnet_style_qualification_for_property = false:refactoring
198+ dotnet_style_qualification_for_method = false:refactoring
199+ dotnet_style_qualification_for_event = false:refactoring
213200
214- dotnet_diagnostic.IDE0058.severity = none # IDE0058: Expression value is never used
201+ dotnet_diagnostic.IDE0004.severity = error # IDE0004: Remove unnecessary cast
202+ dotnet_diagnostic.IDE0005.severity = error # IDE0005: Remove unnecessary import
203+
204+ # not reviewed yet rules
205+ dotnet_diagnostic.IDE0007.severity = none # IDE0007: Use ' var' instead of explicit type
206+ dotnet_diagnostic.IDE0010.severity = none # IDE0010: Add missing cases to switch statement
207+ dotnet_diagnostic.IDE0011.severity = none # IDE0011: Add braces
208+ dotnet_diagnostic.IDE0016.severity = none # IDE0016: Use throw expression
209+ dotnet_diagnostic.IDE0017.severity = none # IDE0017: Use object initializers
210+ dotnet_diagnostic.IDE0018.severity = none # IDE0018: Inline variable declaration
211+ dotnet_diagnostic.IDE0019.severity = none # IDE0019: Use pattern matching to avoid ' as' followed by a ' null' check
212+ dotnet_diagnostic.IDE0025.severity = none # IDE0025: Use expression body for properties
213+ dotnet_diagnostic.IDE0026.severity = none # IDE0026: Use expression body for indexers
214+ dotnet_diagnostic.IDE0027.severity = none # IDE0027: Use expression body for accessors
215+ dotnet_diagnostic.IDE0028.severity = none # IDE0028: Use collection initializers
216+ dotnet_diagnostic.IDE0029.severity = none # IDE0029: Use coalesce expression (non-nullable types)
217+ dotnet_diagnostic.IDE0030.severity = none # IDE0030: Use coalesce expression
218+ dotnet_diagnostic.IDE0031.severity = none # IDE0031: Use null propagation
219+ dotnet_diagnostic.IDE0032.severity = none # IDE0032: Use auto property
220+ dotnet_diagnostic.IDE0034.severity = none # IDE0034: Simplify ' default' expression
221+ dotnet_diagnostic.IDE0036.severity = none # IDE0036: Order modifiers
222+ dotnet_diagnostic.IDE0037.severity = none # IDE0037: Use inferred member name
223+ dotnet_diagnostic.IDE0038.severity = none # IDE0038: Use pattern matching to avoid ' is' check followed by a cast
215224dotnet_diagnostic.IDE0040.severity = none # IDE0040: Add accessibility modifiers
216- dotnet_diagnostic.IDE0046.severity = suggestion # IDE0046: Convert to conditional expression
225+ dotnet_diagnostic.IDE0041.severity = none # IDE0041: Use is null check
226+ dotnet_diagnostic.IDE0044.severity = none # IDE0044: Add readonly modifier
227+ dotnet_diagnostic.IDE0045.severity = none # IDE0045: Use conditional expression for assignment
228+ dotnet_diagnostic.IDE0046.severity = none # IDE0046: Convert to conditional expression
229+ dotnet_diagnostic.IDE0047.severity = none # IDE0047: Remove unnecessary parentheses
230+ dotnet_diagnostic.IDE0048.severity = none # IDE0048: Add parentheses for clarity
231+ dotnet_diagnostic.IDE0049.severity = none # IDE0049: Use language keywords instead of framework type names for type references
232+ dotnet_diagnostic.IDE0050.severity = none # IDE0050: Convert to tuple
233+ dotnet_diagnostic.IDE0051.severity = none # IDE0051: Remove unused private members
234+ dotnet_diagnostic.IDE0052.severity = none # IDE0052: Remove unread private member
235+ dotnet_diagnostic.IDE0054.severity = none # IDE0054: Use compound assignment
236+ dotnet_diagnostic.IDE0055.severity = none # IDE0055: Formatting rules
237+ dotnet_diagnostic.IDE0056.severity = none # IDE0056: Use index operator
238+ dotnet_diagnostic.IDE0057.severity = none # IDE0057: Use range operator
239+ dotnet_diagnostic.IDE0058.severity = none # IDE0058: computed value is never used
240+ dotnet_diagnostic.IDE0059.severity = none # IDE0059: Remove unnecessary value assignment
241+ dotnet_diagnostic.IDE0060.severity = none # IDE0060: Remove unused parameter
242+ dotnet_diagnostic.IDE0061.severity = none # IDE0061: Use expression body for local functions
243+ dotnet_diagnostic.IDE0062.severity = none # IDE0062: Make local function static
217244dotnet_diagnostic.IDE0065.severity = none # IDE0065: Misplaced using directive
218- dotnet_diagnostic.IDE0011.severity = suggestion # IDE0011: Add braces
219- dotnet_diagnostic.IDE0050.severity = suggestion # IDE0050: Convert to tuple
220- dotnet_diagnostic.IDE0072.severity = suggestion # IDE0072: Add missing cases
221- dotnet_diagnostic.IDE0054.severity = suggestion # IDE0054: Use compound assignment
222- dotnet_diagnostic.IDE0010.severity = suggestion # IDE0010: Add missing cases
223- dotnet_diagnostic.IDE0066.severity = suggestion # IDE0066: Convert switch statement to expression
224- dotnet_diagnostic.IDE0007.severity = suggestion # IDE0007: Use implicit type
245+ dotnet_diagnostic.IDE0066.severity = none # IDE0066: Convert switch statement to expression
246+ dotnet_diagnostic.IDE0070.severity = none # IDE0070: Use ' System.HashCode.Combine'
247+ dotnet_diagnostic.IDE0072.severity = none # IDE0072: Add missing cases
248+ dotnet_diagnostic.IDE0075.severity = none # IDE0075: Simplify conditional expression
249+ dotnet_diagnostic.IDE0078.severity = none # IDE0078: Use pattern matching
250+ dotnet_diagnostic.IDE0079.severity = none # IDE0079: Remove unnecessary suppression
251+ dotnet_diagnostic.IDE0080.severity = none # IDE0080: Remove unnecessary suppression operator
252+ dotnet_diagnostic.IDE0081.severity = none # IDE0081: Remove ByVal
253+ dotnet_diagnostic.IDE0083.severity = none # IDE0083: Use pattern matching (not operator)
254+ dotnet_diagnostic.IDE1006.severity = none # IDE1006: Naming rule violation
255+
256+ dotnet_diagnostic.CS1998.severity = error # CS1998: Async method lacks ' await' operators and will run synchronously
257+ dotnet_diagnostic.CS8618.severity = error # CS8618: Non-nullable field is uninitialized. Consider declaring as nullable.
258+ dotnet_diagnostic.CS4014.severity = error # CS4014: Because this call is not awaited, execution of the current method continues before the call is completed
259+
260+ #
0 commit comments