Skip to content

Commit

Permalink
Makefile target for php-cs-fixer in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Mar 9, 2020
1 parent e655a60 commit 2fa467f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ test:
vendor/bin/phpunit --testdox --exclude-group=none --colors=always

.PHONY: qa
qa: php-cs-fixer phpstan
qa: php-cs-fixer-ci phpstan

.PHONY: php-cs-fixer
php-cs-fixer:
vendor/bin/php-cs-fixer fix --no-interaction --allow-risky=yes --diff --verbose

.PHONY: php-cs-fixer-ci
php-cs-fixer-ci:
vendor/bin/php-cs-fixer fix --dry-run --no-interaction --allow-risky=yes --diff --verbose

PHONY: phpstan
phpstan:
vendor/bin/phpstan analyse --level=2 src/
Expand Down

0 comments on commit 2fa467f

Please sign in to comment.