Commit 60369883 authored by Tobias Munk's avatar Tobias Munk

fixed lint target

parent 4aea8ca8
Pipeline #13863 passed with stages
in 2 minutes and 14 seconds
......@@ -54,9 +54,9 @@ clean:
lint:
mkdir -p _artifacts/lint && chmod -R 777 _artifacts/lint
docker run --rm -v "${PWD}:/project" jolicode/phaudit php-cs-fixer fix --format=txt -v --dry-run src || export ERROR=1; \
docker run --rm -v "${PWD}:/project" jolicode/phaudit phpmetrics --report-html=_artifacts/lint/metrics.html src/ || ERROR=1; \
docker run --rm -v "${PWD}:/project" jolicode/phaudit phpmd src html cleancode,codesize,controversial,design,unusedcode > _artifacts/lint/mess.html || ERROR=1; \
docker run --rm -v "${PWD}/..:/project" jolicode/phaudit php-cs-fixer fix --format=txt -v --dry-run src || export ERROR=1; \
docker run --rm -v "${PWD}/..:/project" jolicode/phaudit phpmetrics --report-html=_artifacts/lint/metrics.html src/ || ERROR=1; \
docker run --rm -v "${PWD}/..:/project" jolicode/phaudit phpmd src html cleancode,codesize,controversial,design,unusedcode > _artifacts/lint/mess.html || ERROR=1; \
exit ${ERROR}
# Help based on https://gist.github.com/prwhite/8168133 thanks to @nowox and @prwhite
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment