Last active
July 15, 2016 09:49
-
-
Save seiz/00fdb1f3fb94871661995ba756e8b967 to your computer and use it in GitHub Desktop.
BBedit Script to syntax check a CSS-File with csslint.
This file contains hidden or 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
#!/bin/bash | |
/usr/local/bin/csslint --errors=errors,selector-max --warnings=known-properties,box-model,compatible-vendor-prefixes,regex-selectors,empty-rules,selector-max-approaching,zero-units --format=compact --quiet "$BB_DOC_PATH" | bbresults -e --pattern '(?P<file>.+?):\sline\s(?P<line>\d+),\scol\s(?P<col>\d+),\s((?P<type>\w+)\s-\s)?(?P<msg>.*)$' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See also https://gist.github.com/seiz/c96ecef7d30093bd3fcb571a5cc83853 for a script to use jsonlint to syntax check JSON-Files
See also https://gist.github.com/seiz/50b9551be4d3a061636aebf43afba714 for a script to use jsonlint to syntax check JavaScript-Files