Code Inspections in CSS
In CSS, ReSharper 2020.1 provides 22 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.
Potential Code Quality Issues (17 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.
|ID||EditorConfig property||Default 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|
|Value should have units|| || ||Error|