phpro / grumphp

A PHP code-quality tool
MIT License
4.11k stars 429 forks source link

Support for multiple PHPStan tasks #1130

Closed szymach closed 2 months ago

szymach commented 2 months ago
Q A
Version any
Bug? no
New feature? no
Question? yes
Documentation? no
Related tickets comma-separated list of related tickets

From what I understand, you can only describe a single PHPStan task. In my company, we have introduced PHPStan to a legacy project, where we defined multiple configuration files. We have a bash script that runs all of them, however we would prefer to configure these as actual PHPStan tasks. Is this possible? Would you consider it? Thank you :)

veewee commented 2 months ago

That's already possible: https://github.com/phpro/grumphp/blob/v2.x/doc/tasks.md#run-the-same-task-twice-with-different-configuration

szymach commented 2 months ago

Ah, thank you, I did miss that :)