mu-se/yii2-rector-rules

There is no license information available for the latest version (dev-main) of this package.

Collection of rector rules

dev-main 2023-03-14 13:52 UTC

This package is not auto-updated.

Last update: 2024-12-18 20:17:37 UTC


README

Rule's list

Useful commands

Composer install

docker run --rm --interactive --tty --volume "$PWD":/app composer install

Run tests

docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:8.1-cli vendor/bin/phpunit

Run phpstan

docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:8.1-cli vendor/bin/phpstan analyse -c phpstan.neon

Run fixer

docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:8.1-cli vendor/squizlabs/php_codesniffer/bin/phpcbf --standard=PSR12 --extensions=php  --ignore=./vendor/ -p ./

Regenerate docs for rules

docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp php:8.1-cli vendor/bin/rule-doc-generator generate src --output-file RULES.md --ansi