PhpStorm 2021.2 Help

Code Inspections in Sass/SCSS

This topic lists all PhpStorm code inspections available in Sass/SCSS.

You can toggle specific inspections or change their severity level on the Editor | Inspections page of the IDE settings Ctrl+Alt+S.

InspectionDescriptionDefault Severity
Missing import

Reports a reference to a variable, mixin, or function that is declared in another file but this file isn't explicitly imported in the current file.


* {   margin: $var-in-other-file; }

Weak Warning Weak warning
Unresolved mixin

Reports an unresolved Sass/SCSS mixin reference.

* {   @include unknown-mixin; }

Warning Warning
Unresolved placeholder selector

Reports an unresolved Sass/SCSS placeholder selector reference.


* {   @extend %unknown-placeholder-selector; }

Warning Warning
Unresolved variable

Reports an unresolved Sass/SCSS variable reference.

* {   margin: $unknown-var; }

Warning Warning
Last modified: 15 September 2021