Could not retrieve http://update.sonarsource.org/plugins/cssfamily-confluence-include.html - Page not found.
SonarCSS allows you to scan your CSS, LESS and SCSS files.
- Node.js >=6
- You must not have other community plugin dealing with CSS installed on your SonarQube. If you have one, it will conflict with SonarCSS, so it should be removed.
First Analysis of a CSS Project
- Install SonarQube Server (see Setup and Upgrade for more details)
- Install SonarQube Scanner and be sure your can call sonar-scanner from the directory where you have your source code
- Install SonarCSS (see Installing a Plugin for more details)
Run your analysis with the SonarQube Scanner by executing the following command from the root directory of the project:
- Follow the link provided at the end of the analysis to browse your project's quality in SonarQube UI
Assuming steps 1-3 above have already been completed, you'll want to encapsulate your analysis parameters in a sonar-project.properties file at the root of your project (see a sample project on GitHub: https://github.com/SonarSource/sonar-scanning-examples/tree/master/sonarqube-scanner). Then subsequent analyses can simply be run with:
SonarCSS Specific Properties
sonar.nodejs.executable SINCE 1.1
|Can be used to explicitly set the location of Node.js executable. If not set analysis will use node from the |
REMOVED IN 1.1
Can be used to explicitly set the location of Node.js executable. If not set analysis will use node from the
List of suffixes for files to analyze. Default value is `.css,.less,.scss`
With SonarCSS, you can also:
- import StyleLint.io issues report