JetBrains Rider 2018.2 Help

Code Inspections in CSS

InspectionDescriptionDefault Severity
Missing measure unit

This inspection highlights CSS number property values for which no unitsof measurement are specified.

Warning
Float px length

This inspection detects float values of pixel lengths.

Weak warning
Missing generic font name

This inspection verifies that the CSS font-family property contains a generic font name as a fallback alternative.

Warning
Missing comma

This inspection detects missing comma between selectors at the end of line.

Warning
Redundant measure unit

This inspection highlights zero values with specified unit of measurement.

Warning
Missing semicolon

This inspection detects missing semicolon at the end of declarations.

Disabled
Overwritten property value

This inspection highlights CSS properties, which are being overwritten in the same ruleset block.

Warning
Unknown CSS property

Highlights CSS properties that are unknown or used in wrong context, and allows to define such properties as 'custom' to avoid highlighting them as invalid.

Warning
Unresolved CSS Custom Property

This inspection warns about CSS custom property variable references which cannot be resolved to any valid target.

Error
Unresolved CSS Custom Property Set

This inspection warns about CSS custom property set variable references which cannot be resolved to any valid target.

Error
Unresolved CSS Class

This inspection warns about CSS class references which cannot be resolved to any valid target.

Error
Invalid CSS property value

This inspection detects illegal property's values.

Error
Unknown file or directory

This inspection checks references to files and directories.

Error
Invalid CSS pseudo-selector

This inspection detects unknown and inappropriate pseudo-classes and pseudo-elements.

Error
Invalid CSS @charset rule

This inspection detects misplaced @charset rules and inappropriate charset values.

Warning
Invalid CSS selector

This inspection detects unknown CSS selectors and provides ability to declare them as a class or an id.

Warning
Negative CSS value

This inspection detects negative values assigned to CSS attributes that should never benegative. For example, object width or height.

Error
Invalid CSS element

This inspection detects inappropriate values assigned to CSS attributes. For example,invalid measurement units or values out of range.

Error
Unused CSS selector

This inspection detects unused CSS classes or IDs within a file.

Warning
Misplaced CSS @import

This inspection detects misplaced CSS @import declarations.

Warning
Unknown CSS at-rule

This inspection detects unknown CSS at-rules.

Error
Properties can be replaced with shorthand

This inspection tries to find similar CSS properties, which can be transformed to shorter form (shorthand; padding for individual sides can be shortened to 'padding' shorthand if possible, etc).

Weak warning
#HEX color representation instead of RGB color function

This inspection detects CSS colors which are defined as HEX, and provides a quickfix action to convert such values to a CSS rgb() functioncall.

Disabled
RGB color function instead of #HEX representation

This inspection detects CSS colors which are defined as CSS rgb() function and provides anintention to convert such values to its HEX representation.

Disabled
Invalid CSS function

This inspection detects unknown functions and illegal function parameters.

Error
Invalid CSS media feature

This inspection detects unknown media features and illegal media feature values.

Error
W3C CSS validator

This inspection validates the CSS with W3C CSS validator library.

Disabled
Stylelint

Runs Stylelint validator for specified stylesheet file.

The severity level of the inspection is applied only for the 'Inspect code...' action.Severity levels used in the editor can be configured in the Stylelint configuration file for each individual rule.

Disabled
Last modified: 12 September 2018