After changing from @ import to @ use I’m getting this error:
Unexpected unknown at-rule “@ use”
@ use is the correct format to use and I see this post from 2020 which says so as well as a workaround:
That post is over 6 years old though. Has this still not been fixed?
Is Sonarqube waiting for something before fixing?
Or has it been fixed and I just need to upgrade my SonarQube version? (If so what version was the fix in?)
Hi @Reskun, we are in the process of fixing it just now, in fact the next version of SonarQube will include a reworked version of this rule that will avoid certain false positives like the one you’re encountering, but the rule will only run on plain CSS file, not SCSS. In future versions, the SCSS logic will be fixed and re-enabled. So to recap:
If you’re using plain CSS, the next version of SonarQube will fix this rule.
If you’re using SCSS, the next version of SonarQube won’t run this rule on SCSS files.
Another future version of SonarQube will fix this rule for SCSS.