Suspiciouss is a CSS/Sass/Less linter that will provide you a report of common minor errors in your CSS development.
You can use it from the command line:
git diff | suspiciouss
Or you can use it in your Ruby code:
require 'suspiciouss'
Suspiciouss::Linter.new.process(your_git_diff_as_text)
You will be warned about the following issues in your code:
- camel case selectors
- excessive indentation
- overqualified element selectors
- styling #id selectors
- styling js prefixed selectors
- underscores in selectors
- property with units if value is 0
The report will be as text or markdown, depending if you got provided a command line input or was used programatically.
- Fork it
- Write your feature with a test
- Issue a pull request
- ...
- Profit!