Skip to content

Commit

Permalink
phpstan - add suggested tool
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenekdrahos committed Dec 21, 2016
1 parent 3f01f32 commit 8870bae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/ci.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

./phpqa --verbose --report --tools phpcs:0,phpmd:0,phpcpd:0,parallel-lint:0,phpmetrics,phploc,pdepend
./phpqa --verbose --report --tools phpcs:0,phpmd:0,phpcpd:0,parallel-lint:0,phpstan:0,phpmetrics,phploc,pdepend
4 changes: 2 additions & 2 deletions bin/suggested-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ mode="$1"
if [ $mode = "install" ]
then
echo "Installing suggested tools"
composer require jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter
composer require jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter phpstan/phpstan
else
echo "Removing suggested tools"
composer remove jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter
composer remove jakub-onderka/php-parallel-lint jakub-onderka/php-console-highlighter phpstan/phpstan
fi
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
},
"suggest": {
"jakub-onderka/php-parallel-lint": "Check PHP syntax",
"jakub-onderka/php-console-highlighter": "Colored output in parallel-lint"
"jakub-onderka/php-console-highlighter": "Colored output in parallel-lint",
"phpstan/phpstan": "PHP Static Analysis Tool - discover bugs in your code without running it!"
},
"require-dev": {
"phpunit/phpunit": "~4.8",
Expand Down

0 comments on commit 8870bae

Please sign in to comment.