33help :
44 @echo " "
55 @echo " Available tasks:"
6- @echo " test Run all tests and generate coverage"
7- @echo " watch Run all tests and coverage when a source file is upaded"
8- @echo " lint Run linter and code style checker"
9- @echo " lint-fix Fix linter and code style checker errors"
10- @echo " unit Run unit tests and generate coverage"
11- @echo " static Run static analysis"
12- @echo " vendor Install dependencies"
13- @echo " clean Remove vendor and composer.lock"
6+ @echo " test Run all tests and generate coverage"
7+ @echo " watch Run all tests and coverage when a source file is upaded"
8+ @echo " lint Run linter and code style checker"
9+ @echo " lint-fix Fix linter and code style checker errors"
10+ @echo " rector Do a Rector dry run"
11+ @echo " rector-fix Apply Rector rules to the code"
12+ @echo " unit Run unit tests and generate coverage"
13+ @echo " static Run static analysis"
14+ @echo " vendor Install dependencies"
15+ @echo " clean Remove vendor and composer.lock"
1416 @echo " "
1517
1618vendor : $(wildcard composer.lock)
@@ -23,6 +25,13 @@ lint: vendor
2325lint-fix : vendor
2426 vendor/bin/ecs check src tests demo --fix
2527
28+ rector : vendor
29+ vendor/bin/rector --dry-run
30+
31+ rector-fix : vendor
32+ vendor/bin/rector
33+ vendor/bin/ecs check src tests --fix
34+
2635unit : vendor
2736 phpdbg -qrr vendor/bin/phpunit --testdox --coverage-text --coverage-clover=coverage.xml --coverage-html=./report/
2837
0 commit comments