BUG: false positive invalid pseudo-class selector in .vue files

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    9.3.0.51899

  • what are you trying to achieve
    Scan the SCSS/CSS in *.vue files. Sonar reports invalid pseudo-class selector when it encounters the Vue :deep pseudo-class selector (css:S4659). See Vue 3 pseudo-class selectors SFC CSS Features | Vue.js

  • what have you tried so far to achieve this
    Create a valid .vue file with Vue 3 containing valid SCSS using Vue’s :deep pseudo-class selector. Sonar reports bad pseudo-class selector.

2 Likes

Hey there.

I’ve moved this thread to the section on reporting false-postives. Make sure to read this post here, and provide a code snippet demonstrating the FP.