Skip to content

Commit

Permalink
feat(phpstan): add ekino/phpstan-banned-code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wahib-L committed Feb 28, 2023
1 parent 3dc533b commit 6ba763d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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"
]
}
]
}

0 comments on commit 6ba763d

Please sign in to comment.