phplint icon indicating copy to clipboard operation
phplint copied to clipboard

Cannot exclude files using grunt

Open ghost opened this issue 9 years ago • 1 comments

I'm in a situation where I need to explicitly exclude some files that fail verification because I won't fix these anytime soon. I expected that I would be able to do something like:

['files/**/*', 'files/my_file_to_exclude.php']

But with grunt this definition doesn't work. It seems that, contrary to the CLI and gulp, you don't leverage globby before you call iterate.

ghost avatar Aug 03 '16 17:08 ghost

That is not how you exclude files, you need to do it like this: ['files/**/*', '!files/my_file_to_exclude.php'] You forgot !

Glennmen avatar Jul 11 '17 08:07 Glennmen