You are right, the @use rule that you mention is perfectly valid and should not be flagged as an issue. That said, I was not able to reproduce the problem. Can you please tell us more about your SonarQube setup and your project?
The build of SonarQube 10.3 you are using
The name of the SASS file that exhibits the issue
The path of this SASS file relative to your project root
Thanks for the information. We checked internally and I can confirm that the @use at-rule is whitelisted in the “Sonar way” default Quality Profile. Can you please check if your project is using a custom Quality Profile that does not whitelist this at-rule?
You can easily check this by clicking on the Rules tab, searching for “S4662” and looking at the list of Quality profiles that this rule is included in. Typically, I was able to reproduce your issue by creating a custom Quality profile and removing the “use” token from the ignoreAtRules parameter, as you can see in the following screenshots: