Skip to content

Commit 23baa82

Browse files
committed
Fix "Not a TTY device" issue
1 parent e3d9adc commit 23baa82

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

code-quality.mk

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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

35
linters-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

1012
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
1214

1315
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
1517

1618
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
1820

1921
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
2123

2224
analyse-ci: # Called during build on CI
2325
git fetch --shallow-since=${CQ_STARTING_COMMIT_DATE}

0 commit comments

Comments
 (0)