Closed aloupfor closed 7 years ago
Probably the only way to do this is by using the excludes_analyse
in the phpstan configuration:
https://github.com/phpstan/phpstan#exclude-files-from-analysis
Another option is to add an additional parameter to the grumphp task, but that isn't possible at this moment.
@veewee Thank you for the answer.
Another option is to add an additional parameter to the grumphp task, but that isn't possible at this moment.
Can you tell me why that isn't possible at this moment? Is it because nobody is available to work on this or that it isn't in the current planning or is it for another reason.
@aloupfor The reason GrumPHP can't do it is because there's no option in PHPStan to exclude files directly from the command line. PHPStan currently only supports exclusion of files through the phpstan.neon
file, and GrumPHP don't fiddle with other tools' config files (for good reason).
@aloupfor, Thanks for reporting. Currently this is indeed not possible. Since the phpstan task is rather new, I created a ticket to improve the phpstan task (#400). We'll continue the discussion from there.
0.11.6
My question is exactly the same as the one that someone posted here: https://stackoverflow.com/q/44613493.
So I am quoting it: