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 1
1
# ## 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
2
4
3
5
linters-init : # # init linters on local machine
4
6
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
8
10
vendor/space48/magento2-code-quality/script/add-hook.sh
9
11
10
12
analyse : # # 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
12
14
13
15
analyse-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
15
17
16
18
precommit : # # 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
18
20
19
21
precommit-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
21
23
22
24
analyse-ci : # Called during build on CI
23
25
git fetch --shallow-since=${CQ_STARTING_COMMIT_DATE}
You can’t perform that action at this time.
0 commit comments