Skip to content

Commit

Permalink
Merge pull request #474 from Wahib-L/feature/add-ekino-phpstan-banned…
Browse files Browse the repository at this point in the history
…-code

Add ekino/phpstan-banned-code
  • Loading branch information
jakzal committed Feb 28, 2023
2 parents 3dc533b + 6ba763d commit ab14fca
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 ab14fca

Please sign in to comment.