diff --git a/.phplint.yml b/.phplint.yml new file mode 100644 index 0000000..419445b --- /dev/null +++ b/.phplint.yml @@ -0,0 +1,6 @@ +path: ./ +jobs: 10 +cache: .phplint.cache +exclude: + - build + - vendor diff --git a/composer.json b/composer.json index d7b1360..6608498 100644 --- a/composer.json +++ b/composer.json @@ -31,10 +31,11 @@ "require-dev": { "brainmaestro/composer-git-hooks": "^2.8", "doctrine/annotations": "^1.4", - "friendsofphp/php-cs-fixer": "^2.0", - "infection/infection": "^0.9", + "friendsofphp/php-cs-fixer": "^2.16", + "infection/infection": "^0.13|^0.15", "mikey179/vfsstream": "^1.6", - "phpmd/phpmd": "^2.0", + "overtrue/phplint": "^1.2", + "phpmd/phpmd": "^2.8", "phpstan/extension-installer": "^1.0.3", "phpstan/phpstan": "^0.12", "phpstan/phpstan-deprecation-rules": "^0.12", @@ -45,7 +46,7 @@ "sebastian/phpcpd": "^4.0", "slim/twig-view": "^2.3", "spatie/array-to-xml": "^2.2", - "squizlabs/php_codesniffer": "^3.0", + "squizlabs/php_codesniffer": "^3.5", "thecodingmachine/phpstan-strict-rules": "^0.12", "laminas/laminas-diactoros": "^2.0" }, @@ -75,7 +76,7 @@ "cghooks": "cghooks", "post-install-cmd": "cghooks add --ignore-lock", "post-update-cmd": "cghooks update", - "lint-php": "php -l src && php -l tests", + "lint-php": "phplint --configuration=.phplint.yml", "lint-phpcs": "phpcs --standard=PSR2 src tests", "lint-phpcs-fixer": "php-cs-fixer fix --config=.php_cs --dry-run --verbose", "fix-phpcs": "php-cs-fixer fix --config=.php_cs --verbose",