mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-23 00:36:12 +01:00
[FEATURE] Add phpcs fixer (#60)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
This commit is contained in:
parent
c38b8fc3e4
commit
0cd15131a3
2 changed files with 2 additions and 0 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -53,6 +53,7 @@ jobs:
|
||||||
command:
|
command:
|
||||||
- "ts:lint"
|
- "ts:lint"
|
||||||
- "php:sniff"
|
- "php:sniff"
|
||||||
|
- "php:codestyle"
|
||||||
php-version:
|
php-version:
|
||||||
- 7.3
|
- 7.3
|
||||||
xliff-lint:
|
xliff-lint:
|
||||||
|
|
|
@ -64,6 +64,7 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
|
"ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
|
||||||
|
"ci:php:codestyle": "php-cs-fixer fix --config .php_cs.dist -v --dry-run --using-cache false --diff --diff-format=udiff",
|
||||||
"ci:php:sniff": ".Build/vendor/bin/phpcs Classes Tests",
|
"ci:php:sniff": ".Build/vendor/bin/phpcs Classes Tests",
|
||||||
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
||||||
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
|
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
|
||||||
|
|
Loading…
Reference in a new issue