jsoverson / grunt-plato

Generate static analysis reports with plato through grunt
MIT License
205 stars 23 forks source link

Feature/exclude from file #8

Closed serginator closed 10 years ago

serginator commented 11 years ago

Added an option excludeFromFile, which will look inside a file and make a regexp with what's inside that file to add it as the export option.

For example, from a file with this content::.

test/ignore_this.js
lib/external_lib.js
node_modules

It will convert it to:

/test\/ignore_this\.js|lib\/external_lib\.js|node_modules/

And pass it as the exclude option.

localnerve commented 11 years ago

+1

serginator commented 11 years ago

@jsoverson have you tried to port this to grunt itself as we talked in Twitter? If not, I still think should be useful to have it merged here at least :smile:

jsoverson commented 11 years ago

No, grunt would be further down the line. I'll try to get to merging this here soon so that the functionality at least exists for those who need it.

serginator commented 11 years ago

Ok. Thanks! Currently I have all my Gruntfiles with that anonymous function and it's ugly hehe.

serginator commented 10 years ago

Still don't see this useful @jsoverson?

jsoverson commented 10 years ago

Merged this a whopping year later. Thanks @serginator

serginator commented 10 years ago

Hahaha, better late than never @jsoverson ;)