phplint
phplint copied to clipboard
Cannot exclude files using grunt
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.
That is not how you exclude files, you need to do it like this:
['files/**/*', '!files/my_file_to_exclude.php']
You forgot !