All Analyzers are installed as Standalone via Composer in their own directory under tools
tree.
The Drupal and DrupalPractice Standard will automatically be applied following the rules on phpcs.xml.dist
file.
./vendor/bin/phpcs
Automatically fix coding standards
./vendor/bin/phpcbf
Analyzer of PHP code to search usages of deprecated functionality in newer interpreter versions
./tools/php-deprecation-detector/vendor/bin/phpdd --target 8.1 \
--file-extensions php,module,inc,install,test,profile,theme,info \
./web/modules/custom
./tools/php-deprecation-detector/vendor/bin/phpdd --target 8.1 --file-extensions php ./behat
It can modernize your code (like converting the pow function to the ** operator on PHP 5.6) and (micro) optimize it.
./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle
./tools/psalm/vendor/bin/psalm
./vendor/bin/phpstan analyse ./web/modules/custom ./behat ./web/themes --error-format=checkstyle --memory-limit=1024M