Skip to content

AlwaysEnabledRules

Actionbot edited this page Jul 13, 2026 · 1 revision

πŸ“™ Description

πŸ”’ Always enabled rules | Override selected rules (e.g., formatting rules) so they remain active even when you run the Disable command

πŸ’» Usage

.biak/.editorconfig-main

root = true

[*]
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

^biak^ always-enabled start
# Method invocation is skipped [InvocationIsSkipped] | https://www.jetbrains.com/help/resharper/InvocationIsSkipped.html
resharper_invocation_is_skipped_highlighting = error

# Part of the code cannot be parsed [NonParsableElement] | https://www.jetbrains.com/help/resharper/NonParsableElement.html
resharper_non_parsable_element_highlighting = error

# Access to a static member of a type via a derived type [AccessToStaticMemberViaDerivedType] | https://www.jetbrains.com/help/resharper/AccessToStaticMemberViaDerivedType.html
resharper_access_to_static_member_via_derived_type_highlighting = error
^biak^ always-enabled end

dotnet_diagnostic.rcs0009.severity = error # RCS0009: Add blank line between declaration and documentation comment https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0009
dotnet_diagnostic.rcs0021.severity = error # RCS0021: Format block's braces on a single line or multiple lines https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0021
dotnet_diagnostic.rcs0027.severity = error # RCS0027: Place new line after/before binary operator https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0027
dotnet_diagnostic.rcs0031.severity = error # RCS0031: Put enum member on its own line https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0031

...

After running the Disable command, the .editorconfig file is converted to:

.editorconfig

root = true

[*]
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# Method invocation is skipped [InvocationIsSkipped] | https://www.jetbrains.com/help/resharper/InvocationIsSkipped.html
resharper_invocation_is_skipped_highlighting = error

# Part of the code cannot be parsed [NonParsableElement] | https://www.jetbrains.com/help/resharper/NonParsableElement.html
resharper_non_parsable_element_highlighting = error

# Access to a static member of a type via a derived type [AccessToStaticMemberViaDerivedType] | https://www.jetbrains.com/help/resharper/AccessToStaticMemberViaDerivedType.html
resharper_access_to_static_member_via_derived_type_highlighting = error

dotnet_diagnostic.rcs0009.severity = none # RCS0009: Add blank line between declaration and documentation comment https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0009
dotnet_diagnostic.rcs0021.severity = none # RCS0021: Format block's braces on a single line or multiple lines https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0021
dotnet_diagnostic.rcs0027.severity = none # RCS0027: Place new line after/before binary operator https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0027
dotnet_diagnostic.rcs0031.severity = none # RCS0031: Put enum member on its own line https://josefpihrt.github.io/docs/roslynator/analyzers/RCS0031

...

As you can see, the rules inside the ^biak^ always-enabled section keep their original severity values.

πŸ”— Links

βš™οΈ Enable / Disable .editorconfig rules

πŸ”’ Always enabled rules

πŸ—‚οΈ Imports

πŸ“¦ Variables

πŸ”Ž Include / Exclude filter

πŸ§‘β€πŸ’» Find activity

βš”οΈ Find conflicts

🚧 Warnings baseline

Clone this wiki locally