New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix FP css:S5362 ('function-calc-no-invalid'): Consider SCSS-specific syntaxes #3136
Comments
Has there been progress on this ticket? I'm still getting false positives when using valid SCSS interpolation in conjunction with the CSS calc function... |
any progress? I still recieve this as critical! |
Hello there is there any progress we are getting critical issues because of this? |
This is an old issue. We have hundreds of this. Please fix this |
An initial investigation of the false positive shows that the parsing of Given the definition p {
width: calc(100% - #{$foo} - #{bar(20)});
} we observe that the term As the original implementation from Stylelint did, we need to implement a proper parser not only for the calc syntax but also to consider SCSS-specific syntax. For now, we advise disabling the rule when it is executed outside the scope of a plain CSS stylesheet until a proper fix is implemented. |
link to stylelint removal: stylelint/stylelint#5296 |
We chose to deprecate this rule because:
You can track its deprecation in here: #3470 |
Reported in https://community.sonarsource.com/t/scss-css-s5362-invalid-malformed-calc-function/62691
The text was updated successfully, but these errors were encountered: