Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ekino/phpstan-banned-code #474

Merged
merged 1 commit into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) | ✅ | ✅ | ✅ |
Expand Down
15 changes: 15 additions & 0 deletions resources/phpstan.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]
}