How i can add custom rules for CSS language in Sonarqube?

Hi,
I want to add Custom rules for CSS but I am unable to find out how I can create them in the Sonarqube application.

Hi,

Welcome to the community!

Per the docs, there’s no way to add CSS rules directly inside SonarQube. You’ll need to run your custom rules in some other process before analysis, generate a generic issues report and import that.

 
HTH,
Ann

and about custom rules in some other process before analysis , how can we do that?

Hi,

You’ll need to find a tool that allows you to craft custom rules. Then you’ll run it before analysis, get the reports into a format SonarQube understands and pass then into analysis.

 
Ann

1 Like