@@ -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
@@ -273,23 +279,30 @@ dotnet_diagnostic.CA1725.severity = suggestion
273279dotnet_diagnostic.CA1805.severity = suggestion
274280dotnet_diagnostic.CA1816.severity = suggestion
275281dotnet_diagnostic.CA1822.severity = suggestion
282+ dotnet_diagnostic.CA1824.severity = none
276283dotnet_diagnostic.CA1825.severity = error
277284dotnet_diagnostic.CA1826.severity = silent
278285dotnet_diagnostic.CA1827.severity = error
279286dotnet_diagnostic.CA1829.severity = suggestion
280287dotnet_diagnostic.CA1834.severity = error
288+ dotnet_diagnostic.CA1845.severity = suggestion
289+ dotnet_diagnostic.CA1848.severity = suggestion
290+ dotnet_diagnostic.CA1852.severity = suggestion
281291dotnet_diagnostic.CA2016.severity = suggestion
282292dotnet_diagnostic.CA2201.severity = error
283293dotnet_diagnostic.CA2206.severity = error
284294dotnet_diagnostic.CA2208.severity = error
285295dotnet_diagnostic.CA2211.severity = error
286296dotnet_diagnostic.CA2249.severity = error
297+ dotnet_diagnostic.CA2251.severity = error
298+ dotnet_diagnostic.CA2252.severity = none
299+ dotnet_diagnostic.CA2254.severity = suggestion
287300
288301dotnet_diagnostic.CS0169.severity = error
289302dotnet_diagnostic.CS0219.severity = error
290303dotnet_diagnostic.CS1998.severity = error
291- dotnet_diagnostic.CS8602.severity = Default
292- dotnet_diagnostic.CS8604.severity = Default
304+ dotnet_diagnostic.CS8602.severity = error
305+ dotnet_diagnostic.CS8604.severity = error
293306dotnet_diagnostic.CS8618.severity = error
294307dotnet_diagnostic.CS0618.severity = error
295308dotnet_diagnostic.CS1998.severity = error
@@ -298,6 +311,58 @@ dotnet_diagnostic.CS8600.severity = error
298311dotnet_diagnostic.CS8603.severity = error
299312dotnet_diagnostic.CS8625.severity = error
300313
314+ dotnet_diagnostic.BL0005.severity = suggestion
315+
316+ dotnet_diagnostic.MVC1000.severity = suggestion
317+
318+ dotnet_diagnostic.RZ10012.severity = error
319+
320+ dotnet_diagnostic.IDE0004.severity = error # redundant cast
321+ dotnet_diagnostic.IDE0005.severity = suggestion
322+ dotnet_diagnostic.IDE0007.severity = error # Use var
323+ dotnet_diagnostic.IDE0011.severity = error # Use braces on if statements
324+ dotnet_diagnostic.IDE0010.severity = silent # populate switch
325+ dotnet_diagnostic.IDE0017.severity = suggestion # initialization can be simplified
326+ dotnet_diagnostic.IDE0021.severity = silent # expression body for constructors
327+ dotnet_diagnostic.IDE0022.severity = silent # expression body for methods
328+ dotnet_diagnostic.IDE0023.severity = suggestion # use expression body for operators
329+ dotnet_diagnostic.IDE0024.severity = silent # expression body for operators
330+ dotnet_diagnostic.IDE0025.severity = suggestion # use expression body for properties
331+ dotnet_diagnostic.IDE0027.severity = suggestion # Use expression body for accessors
332+ dotnet_diagnostic.IDE0028.severity = silent
333+ dotnet_diagnostic.IDE0032.severity = suggestion # Use auto property
334+ dotnet_diagnostic.IDE0033.severity = error # prefer tuple name
335+ dotnet_diagnostic.IDE0037.severity = suggestion # simplify anonymous type
336+ dotnet_diagnostic.IDE0040.severity = error # modifiers required
337+ dotnet_diagnostic.IDE0041.severity = error # simplify null
338+ dotnet_diagnostic.IDE0042.severity = error # deconstruct variable
339+ dotnet_diagnostic.IDE0044.severity = suggestion # make field only when possible
340+ dotnet_diagnostic.IDE0047.severity = suggestion # paratemeter name
341+ dotnet_diagnostic.IDE0051.severity = error # unused field
342+ dotnet_diagnostic.IDE0052.severity = error # unused member
343+ dotnet_diagnostic.IDE0053.severity = suggestion # lambda not needed
344+ dotnet_diagnostic.IDE0055.severity = suggestion # Fix formatting
345+ dotnet_diagnostic.IDE0057.severity = suggestion # substring can be simplified
346+ dotnet_diagnostic.IDE0060.severity = suggestion # unused parameters
347+ dotnet_diagnostic.IDE0061.severity = suggestion # local expression body
348+ dotnet_diagnostic.IDE0062.severity = suggestion # local to static
349+ dotnet_diagnostic.IDE0063.severity = error # simplify using
350+ dotnet_diagnostic.IDE0066.severity = suggestion # switch expression
351+ dotnet_diagnostic.IDE0072.severity = suggestion # Populate switch - forces population of all cases even when default specified
352+ dotnet_diagnostic.IDE0078.severity = suggestion # use pattern matching
353+ dotnet_diagnostic.IDE0090.severity = suggestion # new can be simplified
354+ dotnet_diagnostic.IDE0130.severity = suggestion # namespace folder structure
355+ dotnet_diagnostic.IDE0160.severity = silent # Use block namespaces ARE NOT required
356+ dotnet_diagnostic.IDE0161.severity = error # Please use file namespaces
357+ dotnet_diagnostic.IDE0200.severity = suggestion # lambda not needed
358+ dotnet_diagnostic.IDE1006.severity = suggestion # Naming rule violation: These words cannot contain lower case characters
359+ dotnet_diagnostic.IDE0270.severity = suggestion # Null check simplifcation
360+ dotnet_diagnostic.IDE0260.severity = suggestion # Use pattern matching
361+
362+ dotnet_diagnostic.NX0001.severity = error
363+ dotnet_diagnostic.NX0002.severity = silent
364+ dotnet_diagnostic.NX0003.severity = silent
365+
301366# #########################################
302367# Styles
303368# #########################################
0 commit comments