JetBrains Rider 2017.3 Help

Code Inspections in CSS

In CSS, JetBrains Rider 2017.3 provides 21 proprietary code inspections, any of which you can disable or change its severity level.
These code inspections help you detect code issues in design time in all open files, and additionally they allow you to find code issues in specific scope.

Configurable CSS inspections are listed below, grouped by their categories.

Common Practices and Code Improvements (1 inspection)

This category groups inspections that hunt for medium severity issues that mainly affect code readability.
InspectionDefault Severity
Two colons preferred Suggestion

Potential Code Quality Issues (16 inspections)

This category includes inspections that detect critical issues (code smells), mostly with Error or Warning level. This category also includes inspections that ensure localization assistance.
InspectionDefault Severity
Cannot resolve file system path Error
CSS feature is not supported by a specific browser Hint
CSS feature requires vendor prefix for a specific browser Hint
CSS symbol / syntax is not compatible with a specific browser Warning
CSS symbol is obsolete Hint
Invalid hexadecimal value of color Error
Invalid value Error
Property does not override vendor-prefixed property Warning
Requires fallback color Warning
Syntax is not allowed in specified CSS version Warning
Two colons expected Error
Unknown CSS class Warning
Unknown CSS symbol Error
Unknown custom property Warning
Unknown vendor-specific extension Hint
Value is unexpected Error

Redundancies in Code (3 inspections)

Code inspections in this category look for redundancies and dead code, which affect code readability and style, and could be safely removed. Some code redundancies cannot be fixed automatically, and quick-fixes for them are performed in the interactive mode, requiring the user input. But the majority of the redundancies can be fixed without user interaction, using either fix in scope or code cleanup.
InspectionDefault Severity
Redundant code Warning
Redundant CSS hack Warning
Redundant measure unit Warning

Redundancies in Symbol Declarations (1 inspection)

This category includes code inspections, mostly with the warning severity level, which detect empty and unused symbol declarations.
InspectionDefault Severity
Declaration is empty Warning
Last modified: 19 April 2018