From e59f58e27afe3219d28f12ab79cd24665bce93ae Mon Sep 17 00:00:00 2001 From: Leonam Pereira Dias Date: Wed, 26 Jun 2019 07:40:51 -0300 Subject: [PATCH] tools: add vimeo/psalm Psalm is a php static analyze tool for PHP applications. It can report bugs on your application without running it. --- Dockerfile | 1 + README.md | 31 +++++++++++++++++++------------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a9b4f4..7ccfd5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,7 @@ RUN composer global require \ behat/behat \ phploc/phploc \ phpstan/phpstan \ + vimeo/psalm \ icanhazstring/composer-unused > /dev/null 2>&1 RUN ln -s /root/.composer/vendor/bin/* /usr/local/bin/ > /dev/null 2>&1 diff --git a/README.md b/README.md index 8cadca4..76265e2 100644 --- a/README.md +++ b/README.md @@ -8,18 +8,19 @@ Available on Docker Hub at [devdrops/php-toolbox](https://hub.docker.com/r/devdr ## Features -|TOOL|RELEASE| -|:---|:------| -|PHP|PHP 7.3.3 (cli) (built: Mar 9 2019 00:27:53) ( NTS )| -|Composer|Composer version 1.8.4 2019-02-11 10:52:10| -|phpunit/phpunit|PHPUnit 8.0.5 by Sebastian Bergmann and contributors.| -|squizlabs/php_codesniffer|PHP_CodeSniffer version 3.4.1 (stable) by Squiz (http://www.squiz.net)| -|friendsofphp/php-cs-fixer|PHP CS Fixer 2.14.2 Sunrise by Fabien Potencier and Dariusz Ruminski| -|phpmd/phpmd|PHPMD 2.6.0| -|behat/behat|behat 3.5.0| -|phploc/phploc|phploc 5.0.0 by Sebastian Bergmann.| -|phpstan/phpstan|PHPStan - PHP Static Analysis Tool 0.11.4| -|icanhazstring/composer-unused|0.1.0| +| TOOL | RELEASE +| :--- | :------ +| PHP | PHP 7.3.3 (cli) (built: Mar 9 2019 00:27:53) ( NTS ) +| Composer | Composer version 1.8.4 2019-02-11 10:52:10 +| phpunit/phpunit | PHPUnit 8.0.5 by Sebastian Bergmann and contributors. +| squizlabs/php_codesniffer | PHP_CodeSniffer version 3.4.1 (stable) by Squiz (http://www.squiz.net) +| friendsofphp/php-cs-fixer | PHP CS Fixer 2.14.2 Sunrise by Fabien Potencier and Dariusz Ruminski +| phpmd/phpmd | PHPMD 2.6.0 +| behat/behat | behat 3.5.0 +| phploc/phploc | phploc 5.0.0 by Sebastian Bergmann. +| phpstan/phpstan | PHPStan - PHP Static Analysis Tool 0.11.4 +| vimeo/psalm | A static analysis tool for finding errors in PHP applications 3.4.5 +| icanhazstring/composer-unused| 0.1.0 ## Install @@ -115,3 +116,9 @@ docker run -ti --rm -v $(pwd):/code -w /code devdrops/php-toolbox:latest phploc ```bash docker run -ti --rm -v $(pwd):/code -w /code devdrops/php-toolbox:latest phpstan --version ``` + +### psalm + +```bash +docker run -ti --rm -v $(pwd):/code -w /code devdrops/php-toolbox:latest phpsalm --version +```