scss-lint is a static analysis tool for stylesheets written using SCSS, the CSS-compatible syntax of Sass. The software examines source files for violations of coding conventions, inconsistent formatting and potentially problematic stylesheet structures. Unlike tools that operate on compiled CSS, scss-lint examines the original source, including Sass-specific constructs such as variables, mixins and nested rules.
Developers can configure the analysis through YAML files, selecting individual inspections and adjusting their parameters to match project-specific coding standards. The tool distinguishes between warnings and errors through configurable severity levels and corresponding exit statuses, making it suitable for automated code quality checks.
The software relies on the older Ruby Sass implementation. As development of Sass has moved to Dart, scss-lint does not support newer language features introduced subsequently.
This is free and open source software.
Key Features
- Check naming conventions for variables, mixins and selectors.
- Detect excessive selector nesting and selector complexity.
- Enforce consistent indentation, whitespace and quotation marks.
- Check property ordering and declaration formatting.
- Identify duplicate properties and empty rule sets.
- Check colour notation and redundant units.
- Identify unnecessary parent selectors and redundant nesting.
- Configurable individual inspections with project-specific parameters.
- Exclude files globally or from selected inspections using glob patterns.
- Suppress individual inspections through inline source comments.
- Generate an initial configuration that disables rules violated by an existing codebase, facilitating gradual adoption.
- Recursively analyse directories or explicitly selected source files.
- Process stylesheet content supplied through standard input.
- Multiple diagnostic output formats.
- Support for custom linting rules and formatters.
- Integration with source control hooks, editors and automated development workflows.
Website: github.com/sds/scss-lint
Support:
Developer: Shane da Silva
License: MIT License
scss-lint is written in Ruby. Learn Ruby with our recommended free books and free tutorials.
Related Software
| CSS Linter Tools | |
|---|---|
| Stylelint | CSS linter that helps you avoid errors and enforce conventions |
| CSSLint | CSS code quality tool |
| SCSS-Lint | Keep SCSS files clean and readable |
| Cppcheck | Static analysis tool |
| postcss-bem-linter | BEM linter for PostCSS |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.