Skip to content

Allow to exclude rules via .editorconfigΒ #1000

@cmenzi

Description

@cmenzi

Is your feature request related to a problem? Please describe.

Currently, when executing Sonar Analysis, it changes the active ruleset and inject the ruleset from the servers profile. It also possible to exclude/suppress some of the rules via attribute, NoWarn or additional ruleset file with some overridden values. But all settings from GlobalAnalyzerConfig or .editorconfig in a particular directory are not taken into account.

Describe the solution you'd like
Settings from GlobalAnalyzerConfig and the additional settings from the .editorconfigs inside a directory should also taken into account as rule configuration source.

This is anyway the new style on how to configure rules, because they provide more detailed options. Also Microsoft already moved ruleset to Legacy

Describe alternatives you've considered
Maybe use the GlobalAnalyzerConfig and .editorconfig and generate a legacy ruleset for sonarqube use the SourceGenerators to generate a GlobalSuppression file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions