Skip to content

User should be able to decide whether or not to see sonar rules as warning during buildΒ #674

@Evangelink

Description

@Evangelink

Description

Currently, when using the Scanner for MSBuild, the user will see all .net issues from any sonar rule (SonarC#, SonarVB, any plugin created via the SonarQube Roslyn SDK) raised as warnings during the build.

Some of our users think that this is too noisy. They want to focus on regular warnings and use SonarQube/SonarCloud for sonar-related issues.

Expected behavior

The user should be able to select between having sonar issues raised as warning or message during the build.

Known workarounds

After the begin step is run, the user can update the ruleset located at .sonarqube\conf\***.ruleset and replace all Action="Warning" with Action="Info".

Suggested solution

We could provide a new parameter available that can be passed to the begin step so that the sonar-related issues are raised as Message during the build and not as Warning.

Note that there is no need for the user to be able to specify Error (as it will result in a broken build) nor Hidden (as this prevent issues to be reported in the roslyn json 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