SonarLint for IntelliJ not loading CSS plugin/rules

  • versions used (SonarQube 8.9.6 (build 50800), Scanner, Plugin 6.5.1.43866)
  • error observed
    When running SonarLint Plugin in IntelliJ no CSS reports are made. Running the sonar scanner or letting our CI server run it does report CSS.
  • steps to reproduce
    When running in IntelliJ with the logging on, no CSS rules are loaded:
[SYNC] Active rules for 'java' are up-to-date
[SYNC] Active rules for 'js' are up-to-date
[SYNC] Active rules for 'kotlin' are up-to-date
[SYNC] Active rules for 'php' are up-to-date
[SYNC] Active rules for 'py' are up-to-date
[SYNC] Active rules for 'ruby' are up-to-date
[SYNC] Active rules for 'scala' are up-to-date
[SYNC] Active rules for 'swift' are up-to-date
[SYNC] Active rules for 'ts' are up-to-date
[SYNC] Active rules for 'web' are up-to-date
[SYNC] Active rules for 'xml' are up-to-date

Running the sonar-scanner DOES load these rules:

INFO: Quality profile for css: Sonar way
INFO: Quality profile for java: Sonar way
INFO: Quality profile for js: Sonar way
INFO: Quality profile for scala: Sonar way
INFO: Quality profile for web: Sonar way
INFO: Quality profile for xml: Sonar way

Note that intellij didn’t load the css rules at all, resulting in to css errors when running under sonarlint, but css errors when run through the CI server.

Hello, welcome to the community! And thanks for your report.

Analysis of CSS code is not enabled (yet) in SonarLint for IntelliJ, you might want to add your voice on the product portal.