CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.76k stars 483 forks source link

Detect missing files #683

Closed szepeviktor closed 7 years ago

szepeviktor commented 7 years ago

Would it be possible to detect url() and @import non-existent files with relative path?

frvge commented 7 years ago

@szepeviktor , no. There's no information on that given to csslint from parser-lib. Maybe a crawler-bot can help you find 404s.

szepeviktor commented 7 years ago

Thank you.

szepeviktor commented 7 years ago

Is there a way to list urls in url()-s and @import-s?

frvge commented 7 years ago

@szepeviktor , Parserlib apparently does gives some info, for example for @import , see https://github.com/CSSLint/parser-lib/blob/master/src/css/Parser.js#L286 . You should be able to create a rule that then subsequently does a curl to check if the URL exists.

szepeviktor commented 7 years ago

Thank you.