Skip to content

Commit dbbd61d

Browse files
committed
[Config] Updated .editorconfig
1 parent 9d39a6a commit dbbd61d

File tree

1 file changed

+114
-5
lines changed

1 file changed

+114
-5
lines changed

.editorconfig

Lines changed: 114 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,24 +196,107 @@ roslynator_object_creation_type_style=implicit_when_type_is_obvious
196196
#roslynator_use_var_instead_of_implicit_object_creation = true|false
197197
roslynator_use_var_instead_of_implicit_object_creation=false
198198

199+
200+
#Simplify name (IDE0001)
201+
dotnet_diagnostic.IDE0001.severity = error
202+
#Simplify member access (IDE0002)
203+
dotnet_diagnostic.IDE0002.severity = error
204+
#Remove unnecessary cast (IDE0004)
205+
dotnet_diagnostic.IDE0004.severity = error
199206
# Enable GenerateDocumentationFile to enable Remove unnecessary usings/imports on build.. except this turns on xmlDocs
200207
dotnet_diagnostic.IDE0005.severity = none
201208
# Populate all cases of switch
202209
dotnet_diagnostic.IDE0010.severity = none
203-
# Use Expression body for accessor
210+
#Use throw expression (IDE0016)
211+
dotnet_diagnostic.IDE0016.severity = none
212+
#Inline variable declaration (IDE0018)
213+
dotnet_diagnostic.IDE0018.severity = none
214+
#Use object initializers (IDE0017)
204215
dotnet_diagnostic.IDE0027.severity = none
205-
# 'if' statement can be simplified
216+
#Use collection initializers (IDE0028)
217+
dotnet_diagnostic.IDE0028.severity = error
218+
#Null check can be simplified (IDE0029)
219+
dotnet_diagnostic.IDE0029.severity = error
220+
#Null check can be simplified (IDE0030)
221+
dotnet_diagnostic.IDE0030.severity = error
222+
#Use null propagation (IDE0031)
223+
dotnet_diagnostic.IDE0031.severity = error
224+
#Use auto-implemented property (IDE0032)
225+
dotnet_diagnostic.IDE0032.severity = error
226+
#Use explicitly provided tuple name (IDE0033)
227+
dotnet_diagnostic.IDE0033.severity = error
228+
#Simplify 'default' expression (IDE0034)
229+
dotnet_diagnostic.IDE0034.severity = error
230+
#Remove unreachable code (IDE0035)
231+
dotnet_diagnostic.IDE0035.severity = error
232+
#Use inferred member names (IDE0037)
233+
dotnet_diagnostic.IDE0037.severity = error
234+
#Use local function instead of lambda (IDE0039)
235+
dotnet_diagnostic.IDE0041.severity = error
236+
#Use 'is null' check (IDE0041)
237+
dotnet_diagnostic.IDE0041.severity = suggestion
238+
#Deconstruct variable declaration (IDE0042)
239+
dotnet_diagnostic.IDE0042.severity = error
240+
#Use conditional expression for assignment (IDE0045)
241+
dotnet_diagnostic.IDE0045.severity = suggestion
242+
#Use conditional expression for return (IDE0046)
206243
dotnet_diagnostic.IDE0046.severity = suggestion
244+
#Convert anonymous type to tuple (IDE0050)
245+
dotnet_diagnostic.IDE0050.severity = suggestion
246+
#Remove unused private member (IDE0051)
247+
dotnet_diagnostic.IDE0051.severity = suggestion
248+
#Remove unread private member (IDE0052)
249+
dotnet_diagnostic.IDE0052.severity = suggestion
250+
#Use compound assignment (IDE0054)
251+
dotnet_diagnostic.IDE0054.severity = suggestion
207252
# Fix Formatting
208253
dotnet_diagnostic.IDE0055.severity = none
209-
# Expression value is never used
254+
#Use index operator (IDE0056)
255+
dotnet_diagnostic.IDE0056.severity = error
256+
#Use range operator (IDE0057)
257+
dotnet_diagnostic.IDE0057.severity = error
258+
#Remove unnecessary expression value (IDE0058)
210259
dotnet_diagnostic.IDE0058.severity = suggestion
260+
#Remove unnecessary value assignment (IDE0059)
261+
dotnet_diagnostic.IDE0059.severity = suggestion
211262
# Remove unused parameter
212263
dotnet_diagnostic.IDE0060.severity = suggestion
213264
# Using statement can be simplified
214265
dotnet_diagnostic.IDE0063.severity = none
215-
# Populate all cases of switch
266+
#Use 'System.HashCode.Combine' (IDE0070)
267+
dotnet_diagnostic.IDE0070.severity = error
268+
#Simplify interpolation (IDE0071)
269+
dotnet_diagnostic.IDE0071.severity = error
270+
#Add missing cases to switch expression (IDE0072)
216271
dotnet_diagnostic.IDE0072.severity = none
272+
#Use compound assignment (IDE0074)
273+
dotnet_diagnostic.IDE0074.severity = error
274+
#Simplify conditional expression (IDE0075)
275+
dotnet_diagnostic.IDE0075.severity = error
276+
# Use pattern matching
277+
dotnet_diagnostic.IDE0078.severity = error
278+
# Remove unnecessary suppression
279+
dotnet_diagnostic.IDE0079.severity = error
280+
#Remove unnecessary suppression operator (IDE0080)
281+
dotnet_diagnostic.IDE0080.severity = error
282+
#Convert typeof to nameof (IDE0082)
283+
dotnet_diagnostic.IDE0082.severity = error
284+
#Simplify new expression (IDE0090)
285+
dotnet_diagnostic.IDE0090.severity = error
286+
#Remove unnecessary equality operator (IDE0100)
287+
dotnet_diagnostic.IDE0100.severity = error
288+
#Remove unnecessary discard (IDE0110)
289+
dotnet_diagnostic.IDE0110.severity = error
290+
#Simplify LINQ expression (IDE0120)
291+
dotnet_diagnostic.IDE0120.severity = error
292+
#Simplify LINQ type check and cast (IDE0121)
293+
dotnet_diagnostic.IDE0121.severity = error
294+
#Namespace does not match folder structure (IDE0130)
295+
dotnet_diagnostic.IDE0130.severity = error
296+
#Prefer 'null' check over type check (IDE0150)
297+
dotnet_diagnostic.IDE0150.severity = error
298+
#Use tuple to swap values (IDE0180)
299+
dotnet_diagnostic.IDE0180.severity = error
217300
# Use block scoped namespace
218301
dotnet_diagnostic.IDE0160.severity = none
219302
# Use tuple to swap values
@@ -222,7 +305,33 @@ dotnet_diagnostic.IDE0180.severity = error
222305
dotnet_diagnostic.IDE0200.severity = error
223306
# Convert to top level statements (Program.Main)
224307
dotnet_diagnostic.IDE0210.severity = none
225-
# Use UTF-8 string literal
308+
#Add explicit cast in foreach loop (IDE0220)
309+
dotnet_diagnostic.IDE0220.severity = error
310+
#Use UTF-8 string literal (IDE0230)
311+
dotnet_diagnostic.IDE0230.severity = error
312+
#Nullable directive is redundant (IDE0240)
313+
dotnet_diagnostic.IDE0240.severity = error
314+
#Nullable directive is unnecessary (IDE0241)
315+
dotnet_diagnostic.IDE0241.severity = error
316+
#Use collection expression for array (IDE0300)
317+
dotnet_diagnostic.IDE0300).severity = error
318+
#Use collection expression for empty (IDE0301)
319+
dotnet_diagnostic.IDE0301.severity = error
320+
#Use collection expression for stack alloc (IDE0302)
321+
dotnet_diagnostic.IDE0302.severity = error
322+
#Use collection expression for Create() (IDE0303)
323+
dotnet_diagnostic.IDE0303.severity = error
324+
#Use collection expression for builder (IDE0304)
325+
dotnet_diagnostic.IDE0304.severity = error
326+
#Use collection expression for fluent (IDE0305)
327+
dotnet_diagnostic.IDE0305.severity = error
328+
#Use collection expression for new (IDE0306)
329+
dotnet_diagnostic.IDE0306.severity = error
330+
#Use unbound generic type (IDE0340)
331+
dotnet_diagnostic.IDE0340.severity = error
332+
#Use implicitly typed lambda (IDE0350)
333+
dotnet_diagnostic.IDE0350.severity = error
334+
#Null check can be simplified (IDE0270)
226335
dotnet_diagnostic.IDE0230.severity = error
227336
# Use Primary constructor
228337
dotnet_diagnostic.IDE0290.severity = none

0 commit comments

Comments
 (0)