Easily integrate CSS Lint into your projects that use the Compass CSS Framework
This project is maintained by Comcast
Easily integrate Nicholas C. Zakas and Nicole Sullivan's CSS Lint into your projects that use the Compass CSS Framework by providing a compass csslint command line option.
There is currently a bug in Compass that prevents external Compass commands from being registered if they're required in a project's config.rb file. So until that is resolved, you'll have to build this custom version of Compass that includes compass-csslint:
https://github.com/Comcast/compass
Clone that project, then from the root run
$ gem build compass.gemspec
Be sure to take note of the .gem filename
Once that builds, you'll need to first uninstall your existing Compass gem
$ gem uninstall compass
And then install your locally-built version of Compass
$ gem install compass-0.12.2.<hash>.gem
Be sure to use the actual filename that the build command created.
Once that is installed, you can safely install compass-csslint:
$ gem install compass-csslint
Run the following command from the root of your Compass project:
$ compass csslint
To view options:
$ compass csslint --help
For a bare-bones sample project to see this in action, checkout the compass-csslint-sample repo
To run CSS Lint without Compass, you can use the standalone ruby gem:
$ gem install css_lint_ruby
Thanks for assistance and contributions: