Add phpcs to Makefile

References #6
This commit is contained in:
Oliver Davies 2020-05-30 12:51:37 +01:00
parent a988d53da0
commit e9d6878899
2 changed files with 6 additions and 3 deletions

View file

@ -1,7 +1,9 @@
.PHONY: *
phpcs:
php vendor/bin/phpcs --standard=PSR2 src tests
phpunit:
php vendor/bin/phpunit -v --color=always --testdox tests
test: phpunit
test: phpunit phpcs

View file

@ -23,6 +23,7 @@
}
},
"require-dev": {
"phpunit/phpunit": "^9.1"
"phpunit/phpunit": "^9.1",
"squizlabs/php_codesniffer": "^3.5"
}
}