Skip to content

Instantly share code, notes, and snippets.

@norwd
Created July 23, 2026 02:03
Show Gist options
  • Select an option

  • Save norwd/62d9c96f85416d19637354a656730552 to your computer and use it in GitHub Desktop.

Select an option

Save norwd/62d9c96f85416d19637354a656730552 to your computer and use it in GitHub Desktop.
DotNet EditorConfigs
[*.cs]
# Use inferred member names (IDE0037)
dotnet_style_prefer_inferred_anonymous_type_member_names = false:suggestion
# Dispose objects before losing scope
dotnet_diagnostic.CA2000.severity = warning
# Possible mistaken empty statement - a semicolon after a conditional statement may cause your code to execute differently than intended.
dotnet_diagnostic.CS0642.severity = warning
# RCS1138: Add summary to documentation comment
dotnet_diagnostic.RCS1138.severity = warning
# RCS1139: Add summary element to documentation comment
dotnet_diagnostic.RCS1139.severity = warning
# RCS1139: Add summary element to documentation comment
dotnet_diagnostic.RCS1139.severity = warning
# RCS1140: Add exception to documentation comment
dotnet_diagnostic.RCS1140.severity = warning
# RCS1141: Add 'param' element to documentation comment
dotnet_diagnostic.RCS1141.severity = warning
# RCS1142: Add 'typeparam' element to documentation comment
dotnet_diagnostic.RCS1142.severity = warning
# IDE0011: Add braces
dotnet_diagnostic.IDE0011.severity = warning
# IDE0063: Use simple 'using' statement
dotnet_diagnostic.IDE0063.severity = warning
# IDE0001: Simplify Names
dotnet_diagnostic.IDE0001.severity = warning
# IDE2000: Avoid multiple blank lines
dotnet_diagnostic.IDE2000.severity = warning
# RCS1036: Remove unnecessary blank line.
dotnet_diagnostic.RCS1036.severity = warning
# RCS1001: Add braces (when expression spans over multiple lines).
dotnet_diagnostic.RCS1001.severity = warning
# IDE2002: Consecutive braces must not have blank line between them
dotnet_diagnostic.IDE2002.severity = warning
# IDE0005: Using directive is unnecessary.
dotnet_diagnostic.IDE0005.severity = warning
# RCS1077: Optimize LINQ method call
dotnet_diagnostic.RCS1077.severity = warning
# RCS1084: Use coalesce expression instead of conditional expression
dotnet_diagnostic.RCS1084.severity = warning
# RCS1037: Remove trailing white-space
dotnet_diagnostic.RCS1037.severity = warning
# RCS1021: Convert lambda expression body to expression body.
dotnet_diagnostic.RCS1021.severity = warning
# RCS1015: Use nameof operator.
dotnet_diagnostic.RCS1015.severity = warning
# IDE0007: Use var instead of explicit type
dotnet_diagnostic.IDE0007.severity = warning
# IDE0018: Inline variable declaration
dotnet_diagnostic.IDE0018.severity = warning
# IDE0037: Use inferred member names
dotnet_diagnostic.IDE0037.severity = warning
# IDE0046: Use conditional expression for return
dotnet_diagnostic.IDE0046.severity = warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment