Inspectopedia 2026.3 Help

Deprecated if() function

Reports the comma form of the Sass if() function. Dart Sass 1.95.0 deprecated it, and plans to remove it in Dart Sass 3.0.0. Use the CSS-style form instead.

Example:

.a { width: if($wide, 70%, 50%); }
.a { width: if(sass($wide): 70%; else: 50%); }

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

SassScssDeprecatedIfFunction
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Sass/SCSS

Inspection ID: SassScssDeprecatedIfFunction

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection SassScssDeprecatedIfFunction

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Last modified: 20 November 2026