@@ -249,6 +249,8 @@ csharp_space_between_square_brackets = false
249249csharp_preserve_single_line_statements = false
250250csharp_preserve_single_line_blocks = true
251251
252+ csharp_style_namespace_declarations = file_scoped
253+
252254# #########################################
253255# .NET Naming Conventions
254256# https://docs.microsoft.com/visualstudio/ide/editorconfig-naming-conventions
@@ -258,12 +260,16 @@ csharp_preserve_single_line_blocks = true
258260dotnet_diagnostic.CA1000.severity = suggestion
259261dotnet_diagnostic.CA1001.severity = error
260262dotnet_diagnostic.CA1018.severity = error
263+ dotnet_diagnostic.CA1036.severity = silent
261264dotnet_diagnostic.CA1051.severity = suggestion
265+ dotnet_diagnostic.CA1068.severity = error
262266dotnet_diagnostic.CA1069.severity = error
263267dotnet_diagnostic.CA1304.severity = error
264268dotnet_diagnostic.CA1305.severity = suggestion
269+ dotnet_diagnostic.CA1307.severity = suggestion
265270dotnet_diagnostic.CA1309.severity = suggestion
266271dotnet_diagnostic.CA1310.severity = error
272+ dotnet_diagnostic.CA1507.severity = suggestion
267273dotnet_diagnostic.CA1707.severity = suggestion
268274dotnet_diagnostic.CA1708.severity = suggestion
269275dotnet_diagnostic.CA1711.severity = suggestion
@@ -278,18 +284,24 @@ dotnet_diagnostic.CA1826.severity = silent
278284dotnet_diagnostic.CA1827.severity = error
279285dotnet_diagnostic.CA1829.severity = suggestion
280286dotnet_diagnostic.CA1834.severity = error
287+ dotnet_diagnostic.CA1845.severity = suggestion
288+ dotnet_diagnostic.CA1848.severity = suggestion
289+ dotnet_diagnostic.CA1852.severity = suggestion
281290dotnet_diagnostic.CA2016.severity = suggestion
282291dotnet_diagnostic.CA2201.severity = error
283292dotnet_diagnostic.CA2206.severity = error
284293dotnet_diagnostic.CA2208.severity = error
285294dotnet_diagnostic.CA2211.severity = error
286295dotnet_diagnostic.CA2249.severity = error
296+ dotnet_diagnostic.CA2251.severity = error
297+ dotnet_diagnostic.CA2252.severity = none
298+ dotnet_diagnostic.CA2254.severity = suggestion
287299
288300dotnet_diagnostic.CS0169.severity = error
289301dotnet_diagnostic.CS0219.severity = error
290302dotnet_diagnostic.CS1998.severity = error
291- dotnet_diagnostic.CS8602.severity = Default
292- dotnet_diagnostic.CS8604.severity = Default
303+ dotnet_diagnostic.CS8602.severity = error
304+ dotnet_diagnostic.CS8604.severity = error
293305dotnet_diagnostic.CS8618.severity = error
294306dotnet_diagnostic.CS0618.severity = error
295307dotnet_diagnostic.CS1998.severity = error
@@ -298,6 +310,58 @@ dotnet_diagnostic.CS8600.severity = error
298310dotnet_diagnostic.CS8603.severity = error
299311dotnet_diagnostic.CS8625.severity = error
300312
313+ dotnet_diagnostic.BL0005.severity = suggestion
314+
315+ dotnet_diagnostic.MVC1000.severity = suggestion
316+
317+ dotnet_diagnostic.RZ10012.severity = error
318+
319+ dotnet_diagnostic.IDE0004.severity = error # redundant cast
320+ dotnet_diagnostic.IDE0005.severity = suggestion
321+ dotnet_diagnostic.IDE0007.severity = error # Use var
322+ dotnet_diagnostic.IDE0011.severity = error # Use braces on if statements
323+ dotnet_diagnostic.IDE0010.severity = silent # populate switch
324+ dotnet_diagnostic.IDE0017.severity = suggestion # initialization can be simplified
325+ dotnet_diagnostic.IDE0021.severity = silent # expression body for constructors
326+ dotnet_diagnostic.IDE0022.severity = silent # expression body for methods
327+ dotnet_diagnostic.IDE0023.severity = suggestion # use expression body for operators
328+ dotnet_diagnostic.IDE0024.severity = silent # expression body for operators
329+ dotnet_diagnostic.IDE0025.severity = suggestion # use expression body for properties
330+ dotnet_diagnostic.IDE0027.severity = suggestion # Use expression body for accessors
331+ dotnet_diagnostic.IDE0028.severity = silent
332+ dotnet_diagnostic.IDE0032.severity = suggestion # Use auto property
333+ dotnet_diagnostic.IDE0033.severity = error # prefer tuple name
334+ dotnet_diagnostic.IDE0037.severity = suggestion # simplify anonymous type
335+ dotnet_diagnostic.IDE0040.severity = error # modifiers required
336+ dotnet_diagnostic.IDE0041.severity = error # simplify null
337+ dotnet_diagnostic.IDE0042.severity = error # deconstruct variable
338+ dotnet_diagnostic.IDE0044.severity = suggestion # make field only when possible
339+ dotnet_diagnostic.IDE0047.severity = suggestion # paratemeter name
340+ dotnet_diagnostic.IDE0051.severity = error # unused field
341+ dotnet_diagnostic.IDE0052.severity = error # unused member
342+ dotnet_diagnostic.IDE0053.severity = suggestion # lambda not needed
343+ dotnet_diagnostic.IDE0055.severity = suggestion # Fix formatting
344+ dotnet_diagnostic.IDE0057.severity = suggestion # substring can be simplified
345+ dotnet_diagnostic.IDE0060.severity = suggestion # unused parameters
346+ dotnet_diagnostic.IDE0061.severity = suggestion # local expression body
347+ dotnet_diagnostic.IDE0062.severity = suggestion # local to static
348+ dotnet_diagnostic.IDE0063.severity = error # simplify using
349+ dotnet_diagnostic.IDE0066.severity = suggestion # switch expression
350+ dotnet_diagnostic.IDE0072.severity = suggestion # Populate switch - forces population of all cases even when default specified
351+ dotnet_diagnostic.IDE0078.severity = suggestion # use pattern matching
352+ dotnet_diagnostic.IDE0090.severity = suggestion # new can be simplified
353+ dotnet_diagnostic.IDE0130.severity = suggestion # namespace folder structure
354+ dotnet_diagnostic.IDE0160.severity = silent # Use block namespaces ARE NOT required
355+ dotnet_diagnostic.IDE0161.severity = error # Please use file namespaces
356+ dotnet_diagnostic.IDE0200.severity = suggestion # lambda not needed
357+ dotnet_diagnostic.IDE1006.severity = suggestion # Naming rule violation: These words cannot contain lower case characters
358+ dotnet_diagnostic.IDE0270.severity = suggestion # Null check simplifcation
359+ dotnet_diagnostic.IDE0260.severity = suggestion # Use pattern matching
360+
361+ dotnet_diagnostic.NX0001.severity = error
362+ dotnet_diagnostic.NX0002.severity = silent
363+ dotnet_diagnostic.NX0003.severity = silent
364+
301365# #########################################
302366# Styles
303367# #########################################
0 commit comments