csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Allow disabling rules at block level

Open btilford opened this issue 11 years ago • 8 comments

It would be nice to be able to disable rules per block (or line). Currently a lot of false positives are being generated due to limitiations or bugs in csslint like reporting no fallback bg color for


background-color: transparent;
background-color: rgba(0, 0, 0, 0.5);

Due to the complexity of some of the rules it's quite probable they will never get fixed or new ones will crop up. Being able to disable these rules when a false positive is encountered would be really useful.

Currently were able to use other code style and linters to reject a pull request but with css we are unable to because there are to many false positives reported by csslint.

btilford avatar May 12 '15 16:05 btilford

I've spent around 3 hours with CSSlint trying to make it viable for production use.

The one thing that would make it more viable is the ability to over-ride CSSlint mistakes.

If I could just add a simple /*csslint ignoreline */ or something like

/*csslint ignore:true */
@-ms-viewport { width: device-width; } 
@viewport { width: device-width; } 
/*csslint ignore:false */

I would be so happy. I would feel like csslint wasn't a waste of time.

replete avatar May 24 '15 11:05 replete

:+1:

a-x- avatar Aug 05 '15 10:08 a-x-

and + #607

a-x- avatar Aug 05 '15 10:08 a-x-

:+1:

XOP avatar Sep 21 '15 10:09 XOP

+1

Pikktee avatar Oct 12 '15 20:10 Pikktee

After some thinking I've decided to drop CSS Lint in favor of far way flexible Stylelint (https://github.com/stylelint/stylelint) built on top of PostCSS.

XOP avatar Oct 13 '15 11:10 XOP

+1

diogogomes avatar Oct 30 '15 00:10 diogogomes

Fixed in #630 .

frvge avatar Feb 10 '16 00:02 frvge