ekino / ekino/phpstan-banned-code
Advanced configuration doesn't work
- Dominant language
- PHP
- Stars
- 299
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
It seems advanced configuration is not easy to get going.
According to PHPstan docs you shouldn't use extension installer when not wanting all rules of an extension.
I tried both with and without.
What I think is happening is that the list of banned nodes from the extension config is merged with the list specified in my project config. (Similar to how `ignoreErrors` is merged from the baseline file and project config).
This means that removing an item because I don't care about `echo` usage is not possible.
A workaround is to ignore the specific error manually, but doesn't feel very clean.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.