From 6b7684ba77fd830d91b7c534d518122562a5be4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Uzna=C5=84ski?= Date: Tue, 18 May 2021 23:28:37 +0200 Subject: [PATCH] [TASK] Remove php occurencies in lint scripts (#236) --- composer.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 788b386..e7812fd 100644 --- a/composer.json +++ b/composer.json @@ -76,11 +76,11 @@ "ci": [ "@ci:static" ], - "ci:composer:normalize": "php ./tools/composer-normalize --dry-run", + "ci:composer:normalize": "@php ./tools/composer-normalize --dry-run", "ci:dynamic": [ "@ci:tests" ], - "ci:json:lint": "find . ! -path '*.Build/*' ! -path '*Resources/Private/node_modules/*' -name '*.json' | xargs .Build/vendor/bin/jsonlint -q", + "ci:json:lint": "find . ! -path '*.Build/*' ! -path '*Resources/Private/node_modules/*' -name '*.json' | xargs php .Build/vendor/bin/jsonlint -q", "ci:php": [ "@ci:php:copypaste", "@ci:php:cs-fixer", @@ -88,11 +88,11 @@ "@ci:php:sniff", "@ci:php:stan" ], - "ci:php:copypaste": "php ./tools/phpcpd Classes Configuration Tests", - "ci:php:cs-fixer": "php ./tools/php-cs-fixer fix --config .php_cs.php -v --dry-run --using-cache false --diff --diff-format=udiff", + "ci:php:copypaste": "@php ./tools/phpcpd Classes Configuration Tests", + "ci:php:cs-fixer": "@php ./tools/php-cs-fixer fix --config .php_cs.php -v --dry-run --using-cache false --diff --diff-format=udiff", "ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l", - "ci:php:sniff": "php ./tools/phpcs Classes Configuration Tests", - "ci:php:stan": "php ./tools/phpstan analyse Classes", + "ci:php:sniff": "@php ./tools/phpcs Classes Configuration Tests", + "ci:php:stan": "@php ./tools/phpstan analyse Classes", "ci:static": [ "@ci:composer:normalize", "@ci:json:lint", @@ -110,14 +110,14 @@ ], "ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';", "ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit", - "ci:ts:lint": "php ./tools/typo3-typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript", + "ci:ts:lint": "@php ./tools/typo3-typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript", "ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*Resources/Private/node_modules/*' -name '*.yml' | xargs php ./tools/yaml-lint", "fix:php": [ "@fix:php:cs", "@fix:php:sniff" ], - "fix:php:cs": "./tools/php-cs-fixer fix --config .php_cs.php", - "fix:php:sniff": ".Build/vendor/bin/phpcs Classes Configuration Tests", + "fix:php:cs": "@php ./tools/php-cs-fixer fix --config .php_cs.php", + "fix:php:sniff": "@php .Build/vendor/bin/phpcs Classes Configuration Tests", "link-extension": [ "@php -r 'is_dir($extFolder=__DIR__.\"/.Build/public/typo3conf/ext/\") || mkdir($extFolder, 0777, true);'", "@php -r 'file_exists($extFolder=__DIR__.\"/.Build/public/typo3conf/ext/tea\") || symlink(__DIR__,$extFolder);'"