Analyze on every build.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jens True 2023-06-13 09:44:53 +00:00
parent 4ffac17b62
commit 4e9248c8fd
2 changed files with 9 additions and 12 deletions

@ -12,11 +12,8 @@ pipeline:
commands:
- composer install
- ./vendor/bin/phpunit tests
# tools:
# image: php
# commands:
# - "./vendor/bin/phpmd src text cleancode,codesize,controversial,design,naming,unusedcode"
# - "./vendor/bin/phpstan analyze --level=7 src/ backup"
# - "./vendor/bin/psalm"
# - "./vendor/bin/phpcs src"
# - "exit 0"
tools:
image: php
commands:
- make analyze
#

@ -1,13 +1,13 @@
analyze: analyze-phpmd analyze-phpstan analyze-psalm analyze-phpcs
analyze-phpmd:
-./vendor/bin/phpmd src text cleancode,codesize,controversial,design,naming,unusedcode
./vendor/bin/phpmd src text cleancode,codesize,controversial,design,naming,unusedcode
analyze-phpstan:
-./vendor/bin/phpstan analyze --level=7 --error-format=raw src/ backup
./vendor/bin/phpstan analyze --level=7 --error-format=raw src/ backup
analyze-psalm:
-./vendor/bin/psalm
./vendor/bin/psalm
analyze-phpcs:
-./vendor/bin/phpcs src backup --report=emacs --standard=PSR12
./vendor/bin/phpcs src backup --report=emacs --standard=PSR12
install:
php composer.phar install --no-dev