Skip to content

Commit

Permalink
Merge pull request #252 from dkarlovi/psalm-plugins
Browse files Browse the repository at this point in the history
Psalm plugins revamp + PHPUnit, Symfony
  • Loading branch information
jakzal authored Mar 21, 2021
2 parents 24316ad + 8e4939f commit c19a208
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 11 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ It has been extracted as a separate project to make maintenance easier and enabl
| deprecation-detector | [Finds usages of deprecated code](https://github.com/sensiolabs-de/deprecation-detector) | ✅ | ✅ | ✅ |
| deptrac | [Enforces dependency rules between software layers](https://github.com/qossmic/deptrac) | ✅ | ✅ | ✅ |
| diffFilter | [Applies QA tools to run on a single pull request](https://github.com/exussum12/coverageChecker) | ✅ | ✅ | ❌ |
| doctrine-psalm-plugin | [Stubs to let Psalm understand Doctrine better](https://github.com/weirdan/doctrine-psalm-plugin) | ✅ | ✅ | ✅ |
| ecs | [Sets up and runs coding standard checks](https://github.com/Symplify/EasyCodingStandard) | ✅ | ✅ | ✅ |
| infection | [AST based PHP Mutation Testing Framework](https://infection.github.io/) | ❌ | ✅ | ✅ |
| larastan | [PHPStan extension for Laravel](https://github.com/nunomaduro/larastan) | ✅ | ✅ | ✅ |
Expand Down Expand Up @@ -83,6 +82,9 @@ It has been extracted as a separate project to make maintenance easier and enabl
| phpunit-7 | [The PHP testing framework (7.x version)](https://phpunit.de/) | ✅ | ✅ | ❌ |
| phpunit-8 | [The PHP testing framework (8.x version)](https://phpunit.de/) | ✅ | ✅ | ✅ |
| psalm | [Finds errors in PHP applications](https://psalm.dev/) | ✅ | ✅ | ✅ |
| psalm-plugin-doctrine | [Stubs to let Psalm understand Doctrine better](https://github.com/weirdan/doctrine-psalm-plugin) | ✅ | ✅ | ✅ |
| psalm-plugin-phpunit | [Psalm plugin for PHPUnit](https://github.com/psalm/psalm-plugin-phpunit) | ✅ | ✅ | ✅ |
| psalm-plugin-symfony | [Psalm Plugin for Symfony](https://github.com/psalm/psalm-plugin-symfony) | ✅ | ✅ | ✅ |
| psecio-parse | [Scans code for potential security-related issues](https://github.com/psecio/parse) | ✅ | ✅ | ✅ |
| rector | [Tool for instant code upgrades and refactoring](https://github.com/rectorphp/rector) | ✅ | ✅ | ✅ |
| roave-backward-compatibility-check | [Tool to compare two revisions of a class API to check for BC breaks](https://github.com/Roave/BackwardCompatibilityCheck) | ❌ | ✅ | ❌ |
Expand Down
49 changes: 39 additions & 10 deletions resources/psalm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,58 @@
"summary": "Finds errors in PHP applications",
"website": "https://psalm.dev/",
"command": {
"file-download": {
"url": "https://github.com/vimeo/psalm/releases/download/4.6.4/psalm.phar.asc",
"file": "%target-dir%/psalm.phar.asc"
},
"phar-download": {
"phar": "https://github.com/vimeo/psalm/releases/download/4.6.4/psalm.phar",
"bin": "%target-dir%/psalm"
"composer-bin-plugin": {
"package": "vimeo/psalm",
"namespace": "psalm",
"links": {
"%target-dir%/psalm": "psalm",
"%target-dir%/psalm-language-server": "psalm-language-server",
"%target-dir%/psalm-plugin": "psalm-plugin",
"%target-dir%/psalm-refactor": "psalm-refactor",
"%target-dir%/psalter": "psalter"
}
}
},
"test": "psalm -h",
"tags": ["featured", "psalm"]
},
{
"name": "doctrine-psalm-plugin",
"name": "psalm-plugin-doctrine",
"summary": "Stubs to let Psalm understand Doctrine better",
"website": "https://github.com/weirdan/doctrine-psalm-plugin",
"command": {
"composer-bin-plugin": {
"package": "weirdan/doctrine-psalm-plugin",
"namespace": "doctrine-psalm-plugin"
"namespace": "psalm"
}
},
"test": "cd / && psalm-plugin show | grep weirdan/doctrine-psalm-plugin",
"tags": ["psalm"]
},
{
"name": "psalm-plugin-phpunit",
"summary": "Psalm plugin for PHPUnit",
"website": "https://github.com/psalm/psalm-plugin-phpunit",
"command": {
"composer-bin-plugin": {
"package": "psalm/plugin-phpunit",
"namespace": "psalm"
}
},
"test": "cd / && psalm-plugin show | grep psalm/plugin-phpunit",
"tags": ["psalm"]
},
{
"name": "psalm-plugin-symfony",
"summary": "Psalm Plugin for Symfony",
"website": "https://github.com/psalm/psalm-plugin-symfony",
"command": {
"composer-bin-plugin": {
"package": "psalm/plugin-symfony",
"namespace": "psalm"
}
},
"test": "composer global bin doctrine-psalm-plugin show weirdan/doctrine-psalm-plugin",
"test": "cd / && psalm-plugin show | grep psalm/plugin-symfony",
"tags": ["psalm"]
}
]
Expand Down

0 comments on commit c19a208

Please sign in to comment.