csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Ignore blocks don't forgive syntax errors

Open shmax opened this issue 9 years ago • 2 comments

Hi there, I've got a few lines of non-standard CSS I'd like to ignore. Something like this:

   /* csslint ignore:start */
   background-color: $myCustomColor; // syntax error!
   /* csslint ignore:end */

However, this doesn't help; the errors are still let through. I dove into the code a bit, and apparently this is because the ignore stuff is only considered in the "report" function, and not the "error" function. Is this by design, or an oversight? If it's the latter, I'd be happy to open a PR.

Some of you may be considering suggesting that I run CSSLint on the compiled CSS, but this is not a SASS situation; the CSS I'm working with is ultimately consumed by a custom framework (that happens to support SASS-like variables), and is never compiled.

@frvge

shmax avatar Jun 07 '16 18:06 shmax