What it does
Does a stylesheet define a class that nothing in the project can produce, not as a literal, not in a class attribute, not added by a script at runtime, and matching no name the code builds from parts?
How it helps you
Unused CSS gets found, which keeps your stylesheets lighter.
Tested against itself
22 deliberate breaks, all caught
We change this check on purpose and watch its test fail. Each dot is one of those changes.
Details
| Category | Code quality |
|---|---|
| Also filed under | Design |
| Checks in this category | 216 |
| ISO/IEC 25010 | Maintainability: modifiability |
| Breaks caught | 22 |