Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Exclude list for command line use

177 views
Skip to first unread message

Jonathan Klein

unread,
Nov 9, 2012, 3:57:29 PM11/9/12
to css-...@googlegroups.com
I'm thinking about writing a quick option into the .csslintrc to exclude specified directories/files - is anyone currently working on this?  

The reasoning behind it is that we have third party CSS libraries (e.g. bootstrap) that we don't want to run through the linter when we run CSSLint as part of a Jenkins job.

Cheers,

Jonathan

Nicholas Zakas

unread,
Nov 9, 2012, 5:01:34 PM11/9/12
to css-...@googlegroups.com
No one is working on that right now. If you have some ideas about how you might implement it, feel free to share and I can give you feedback.

In the meantime, I typically use a build system like Ant or Grunt to selectively identify which files to run CSS Lint on. That might be something to consider if you'd like to get this done more quickly.

-N

Jonathan Klein

unread,
Nov 9, 2012, 5:07:10 PM11/9/12
to css-...@googlegroups.com
I actually just finished adding the code that I think I'll need (zero testing done so far), so let me know if you think this direction makes sense:

Jonathan Klein

unread,
Nov 12, 2012, 12:12:51 PM11/12/12
to css-...@googlegroups.com
Pull request submitted:


I need to find out why rhino isn't working and test it, but let me know if you see any obvious design flaws.  

-Jonathan

Nicholas C. Zakas

unread,
Nov 12, 2012, 12:48:14 PM11/12/12
to css-...@googlegroups.com
I think this is a good start, but I also think it's a little bit more limited than it should be. Most tools that allow exclusions allow excluding files and directories. If CSS Lint is going to support exclusions, I would like it to also allow exclusions by directory.

-N

Jonathan Klein

unread,
Nov 12, 2012, 2:12:21 PM11/12/12
to css-...@googlegroups.com
Good call, I updated the pull request to add that functionality.  It's not the most elegant way to do it, but from my testing it seems pretty robust.  Totally open to suggestions if you have a better approach.  
Reply all
Reply to author
Forward
0 new messages