chore: add code quality tools
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
SHELL := /bin/bash
|
||||
export PATH := $(HOME)/.symfony/bin:$(PATH)
|
||||
|
||||
deps:
|
||||
wget https://get.symfony.com/cli/installer -O - | bash
|
||||
symfony composer install
|
||||
symfony composer install --working-dir=tools/php-cs-fixer
|
||||
symfony composer install --working-dir=tools/phpstan
|
||||
npm ci
|
||||
|
||||
phpstan:
|
||||
symfony php tools/phpstan/vendor/bin/phpstan analyze ./src
|
||||
|
||||
php-cs-fixer:
|
||||
tools/php-cs-fixer/symfony-php-cs-fixer.sh fix --verbose --show-progress=dots
|
||||
|
||||
install-git-hooks:
|
||||
git config core.hooksPath .githooks
|
Reference in New Issue
Block a user