Created
October 25, 2013 11:15
-
-
Save ramiroluz/7153081 to your computer and use it in GitHub Desktop.
CSSLint usage example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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