SonarQube analysis of scss / sass files?

I have a TeamCity-SonarQube setup. I use TeamCity to launch the sonar and push the result to the local SonarQube instance. This is a .NET / C # solution, and we are moving towards SASS, especially SCSS. My current configuration parses the .cs, .js and .css files separately using the sonar.language configuration. Is there any support for scss (sass in general). Its a problem as sonarqube does not swallow the xml results from jshint, csshint and other lints. I have set up SCSS-LINT for lint.scss files in my solution, but I cannot find the SonarQube plugin for scss or any way to integrate the scss-lint result using SonarQube.

My question is: is there a way to analyze .scss files and display the results in SonarQube, as well as configure high-quality gates on it, etc.

+6
source share
2 answers

Unfortunately, there is currently no plugin that we know about that parses SCSS files.

Note. Since SonarQube 4.2 supports multilingual projects, you can analyze your CS, JS and CSS files on one. See Documentation Analysis for Multilingual Projects .

+1
source

Currently, official support for .scss files in version 3.0 (released in mid-January 2017) of the CSS plugin in SonarQube: https://github.com/racodond/sonar-css-plugin

Note. You should probably not use the sonar.language parameter. SonarQube automatically determines the languages ​​used in the project.

0
source

Source: https://habr.com/ru/post/981373/