mqtt2prom/Makefile

17 lines
422 B
Makefile
Raw Permalink Normal View History

.PHONY: format check phpstan phpmd phpsyntaxcheck precommit
precommit: check format
format:
prettier -w $$(find -not -path "./.*" -not -path "./data/*" -not -name Makefile -not -name "*.conf" -type f)
check: phpsyntaxcheck phpmd phpstan
phpsyntaxcheck:
php -l mqtt2prom/run
phpstan:
phpstan analyse --level 9 mqtt2prom/run
phpmd:
phpmd mqtt2prom/run ansi cleancode,codesize,controversial,design,naming,unusedcode