22it : refactoring coding-standards security-analysis static-code-analysis tests # # Runs the refactoring, coding-standards, security-analysis, static-code-analysis, and tests targets
33
44.PHONY : code-coverage
5- code-coverage : vendor # # Collects coverage from running unit tests with phpunit/phpunit
6- composer config platform.php --unset; composer remove ergebnis/php-cs-fixer-config psalm/plugin-phpunit vimeo/psalm --dev --no-interaction --no-progress; composer require phpunit/phpunit:^7.2.0 --no-interaction --quiet --update-with-all-dependencies; vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text; git checkout HEAD -- composer.json composer.lock
5+ code-coverage : vendor # # Collects code coverage from running unit tests with phpunit/phpunit
6+ composer config platform.php --unset; composer remove ergebnis/php-cs-fixer-config --dev --no-interaction --no-progress; composer require phpunit/phpunit:^7.2.0 --no-interaction --quiet --update-with-all-dependencies; vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text; git checkout HEAD -- composer.json composer.lock
77
88.PHONY : coding-standards
99coding-standards : vendor # # Lints YAML files with yamllint, normalizes composer.json with ergebnis/composer-normalize, and fixes code style issues with friendsofphp/php-cs-fixer
@@ -22,7 +22,7 @@ help: ## Displays this list of targets with descriptions
2222.PHONY : phar
2323phar : phive # # Builds a phar with humbug/box
2424 .phive/box validate box.json
25- composer remove ergebnis/php-cs-fixer-config psalm/plugin-phpunit vimeo/psalm -- dev --no-interaction --quiet
25+ composer remove phpstan/extension-installer -- dev --no-interaction
2626 composer remove phpunit/phpunit --no-interaction --quiet
2727 .phive/box compile --config=box.json
2828 git checkout HEAD -- composer.json composer.lock
@@ -41,14 +41,14 @@ security-analysis: vendor ## Runs a security analysis with composer
4141 composer audit
4242
4343.PHONY : static-code-analysis
44- static-code-analysis : vendor # # Runs a static code analysis with vimeo/psalm
45- vendor/bin/psalm --config=psalm.xml --clear-cache
46- vendor/bin/psalm --config=psalm.xml --show-info=false --stats --threads=4
44+ static-code-analysis : vendor # # Runs a static code analysis with phpstan/phpstan
45+ vendor/bin/phpstan clear-result-cache --configuration=phpstan.neon
46+ vendor/bin/phpstan --configuration=phpstan.neon --memory-limit=-1
4747
4848.PHONY : static-code-analysis-baseline
49- static-code-analysis-baseline : vendor # # Generates a baseline for static code analysis with vimeo/psalm
50- vendor/bin/psalm --config=psalm.xml --clear-cache
51- vendor/bin/psalm --config=psalm.xml --set -baseline=psalm -baseline.xml
49+ static-code-analysis-baseline : vendor # # Generates a baseline for static code analysis with phpstan/phpstan
50+ vendor/bin/phpstan clear-result-cache --configuration=phpstan.neon
51+ vendor/bin/phpstan --allow-empty-baseline --configuration=phpstan.neon --generate -baseline=phpstan -baseline.neon --memory-limit=-1
5252
5353.PHONY : tests
5454tests : phar # # Runs unit, end-to-end, and phar tests with phpunit/phpunit
0 commit comments