File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11# ## Code Quality section
2+ # requires var "CQ_STARTING_COMMIT_HASH" set to starting commit hash
3+ # requires var "CQ_STARTING_COMMIT_DATE" set to starting commit date
24
35linters-init : # # init linters on local machine
46 warden env exec php-fpm chmod +x vendor/space48/magento2-code-quality/script/install.sh
@@ -8,16 +10,16 @@ linters-init: ## init linters on local machine
810 vendor/space48/magento2-code-quality/script/add-hook.sh
911
1012analyse : # # analyses all code from starting commit hash to HEAD
11- git diff ${CQ_STARTING_COMMIT_HASH} ..HEAD | warden env run --rm php-fpm ' vendor/phpro/grumphp/bin/grumphp' run
13+ git diff ${CQ_STARTING_COMMIT_HASH} ..HEAD | warden env exec -T php-fpm ' vendor/phpro/grumphp/bin/grumphp' run
1214
1315analyse-fix : # # analyses all code from starting commit hash to HEAD and fixes all autofixable errors
14- git diff ${CQ_STARTING_COMMIT_HASH} ..HEAD | warden env run --rm php-fpm ' vendor/phpro/grumphp/bin/grumphp' run --fix
16+ git diff ${CQ_STARTING_COMMIT_HASH} ..HEAD | warden env exec -T php-fpm ' vendor/phpro/grumphp/bin/grumphp' run --fix
1517
1618precommit : # # analyses code staged for commit
17- git diff --staged | warden env run --rm php-fpm ' vendor/phpro/grumphp/bin/grumphp' run
19+ git diff --staged | warden env exec -T php-fpm ' vendor/phpro/grumphp/bin/grumphp' run
1820
1921precommit-fix : # # analyses code staged for commit and fixes all autofixable errors
20- git diff --staged | warden env run --rm php-fpm ' vendor/phpro/grumphp/bin/grumphp' run --fix
22+ git diff --staged | warden env exec -T php-fpm ' vendor/phpro/grumphp/bin/grumphp' run --fix
2123
2224analyse-ci : # Called during build on CI
2325 git fetch --shallow-since=${CQ_STARTING_COMMIT_DATE}
You can’t perform that action at this time.
0 commit comments