How to change CSS rule "Selectors should be known"

Hello @mrbighokage,

You probably can’t change it because you are using the default read-only Sonar Way quality profile of SonarCloud. To change this:

  • Browse to quality profiles --> CSS, and then on the gear icon right of Sonar Way select Extend
  • Create your own quality profile named what you want (Yurii’s Way for instance)
  • Then browse to the rules, search the rule you want to customize, and next to the Yurii’s Way quality profile you’ll have a change button that will allow you to customize selectors, like below

Let me know if you could fix your problem.

Olivier

1 Like