Skip to content

Instantly share code, notes, and snippets.

@ramiroluz
Created October 25, 2013 11:15
Show Gist options
  • Save ramiroluz/7153081 to your computer and use it in GitHub Desktop.
Save ramiroluz/7153081 to your computer and use it in GitHub Desktop.
CSSLint usage example.
# csslint incorrect.css correct.css
csslint: There are 2 problems in incorrect.css.
incorrect.css
1: error at line 2, col 1
Unexpected token '{' at line 2, col 1.
{}
incorrect.css
2: error at line 2, col 2
Unexpected token '}' at line 2, col 2.
{}
csslint: No errors in correct.css.
# csslint --quiet incorrect.css correct.css
csslint: There are 2 problems in incorrect.css.
incorrect.css
1: error at line 2, col 1
Unexpected token '{' at line 2, col 1.
{}
incorrect.css
2: error at line 2, col 2
Unexpected token '}' at line 2, col 2.
{}
# csslint --format=compact incorrect.css correct.css
incorrect.css: line 2, col 1, Error - Unexpected token '{' at line 2, col 1.
incorrect.css: line 2, col 2, Error - Unexpected token '}' at line 2, col 2.
correct.css: Lint Free!
# csslint --format=compact --quiet incorrect.css correct.css
incorrect.css: line 2, col 1, Error - Unexpected token '{' at line 2, col 1.
incorrect.css: line 2, col 2, Error - Unexpected token '}' at line 2, col 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment