diff --git a/README.md b/README.md index 680e9939..a68861b8 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ It has been extracted as a separate project to make maintenance easier and enabl | phpmnd | [Helps to detect magic numbers](https://github.com/povils/phpmnd) | ✅ | ✅ | ✅ | | phpspec | [SpecBDD Framework](http://www.phpspec.net/) | ✅ | ✅ | ❌ | | phpstan | [Static Analysis Tool](https://github.com/phpstan/phpstan) | ✅ | ✅ | ✅ | +| phpstan-banned-code | [PHPStan rules for detecting calls to specific functions you don't want in your project](https://github.com/ekino/phpstan-banned-code) | ✅ | ✅ | ✅ | | phpstan-beberlei-assert | [PHPStan extension for beberlei/assert](https://github.com/phpstan/phpstan-beberlei-assert) | ✅ | ✅ | ✅ | | phpstan-deprecation-rules | [PHPStan rules for detecting deprecated code](https://github.com/phpstan/phpstan-deprecation-rules) | ✅ | ✅ | ✅ | | phpstan-doctrine | [Doctrine extensions for PHPStan](https://github.com/phpstan/phpstan-doctrine) | ✅ | ✅ | ✅ | diff --git a/resources/phpstan.json b/resources/phpstan.json index 5670b171..5dcf3c54 100644 --- a/resources/phpstan.json +++ b/resources/phpstan.json @@ -170,6 +170,21 @@ }, "test": "composer global bin phpstan show ergebnis/phpstan-rules", "tags": ["phpstan"] + }, + { + "name": "phpstan-banned-code", + "summary": "PHPStan rules for detecting calls to specific functions you don't want in your project", + "website": "https://github.com/ekino/phpstan-banned-code", + "command": { + "composer-bin-plugin": { + "package": "ekino/phpstan-banned-code", + "namespace": "phpstan" + } + }, + "test": "composer global bin phpstan show ekino/phpstan-banned-code", + "tags": [ + "phpstan" + ] } ] }