summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 17647f0e238df47d06534363dea482b8654d443b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

VENDOR=./vendor/bin/

test:
	{ php -S 127.0.0.1:8081 >& /dev/null & }; \
	PID=$$!; \
	$(VENDOR)phpunit; \
	RES=$$?; \
	kill $$PID; \
	exit $$RES

fmt:
	$(VENDOR)phpcbf

cs:
	$(VENDOR)phpcs

lint:
	$(VENDOR)parallel-lint --exclude vendor .

stan:
	$(VENDOR)phpstan analyze -c phpstan.neon

report:
	$(VENDOR)phpmd \
		admin,app,custom,docs,tests,atom.php,cron.php,index.php,install.php,postload.php \
		html \
		cleancode,codesize,controversial,design,naming,unusedcode > tmp/report.html

serve:
	php -S localhost:5555 -t .