phpstan-banned-code
phpstan-banned-code copied to clipboard
Detect banned code through PHPStan
Our tests don't start with `Tests\`, but with `App\Tests\`. It would be nice if this would be configurable, for `use_from_tests`.
Tackling some code mishabits I'd love to disable else and elseif aka enable detection. How would one do that ?
Would be great if one could also ban single classes or even namespaces. This is especially usefull when you wanne get rid of a external dependency in which you cannot...
Hi Ekino, As the detection of die/exit is enabled by default in the extension.neon. Is it possible to disable such detection in my project? If so, how to do it?...
I stumbled upon this when trying to ban the use of `sprintf` in our project. Because we are using the amazing https://github.com/thecodingmachine/safe, we also have to ban `\Safe\printf`. The configuration...
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...