ekino / ekino/phpstan-banned-code

Advanced configuration doesn't work

Open
#60 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.