mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-10 04:36:12 +01:00

[CLEANUP] Rename the CS fixer composer script (#227)

Also sort the style checks in the GitHub Actions run.

Also improve some headings in the README.
This commit is contained in:
Oliver Klee 2021-03-30 00:55:20 +02:00 committed by GitHub
parent 0b3527c125
commit 9c36f05e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -82,11 +82,11 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
command: command:
- "json:lint"
- "php:sniff"
- "php:codestyle"
- "php:stan"
- "composer:normalize" - "composer:normalize"
- "json:lint"
- "php:cs-fixer"
- "php:sniff"
- "php:stan"
php-version: php-version:
- 7.4 - 7.4
code-quality-frontend: code-quality-frontend:

View file

@ -25,15 +25,15 @@ All of those checks are available in Github Actions and in Gitlab CI.
`composer ci:php:lint` `composer ci:php:lint`
### PHP CodeStyle check by [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) ### PHP code style fixer checks by [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)
`composer ci:php:codestyle` `composer ci:php:cs-fixer`
### PHP Sniff by [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) ### PHP code sniffing by [phpcs](https://github.com/squizlabs/PHP_CodeSniffer)
`composer ci:php:sniff` `composer ci:php:sniff`
### PHP Copypaste check by [phpcpd](https://github.com/sebastianbergmann/phpcpd) ### PHP copy'n'paste check by [phpcpd](https://github.com/sebastianbergmann/phpcpd)
`composer ci:php:copypaste` `composer ci:php:copypaste`

View file

@ -81,11 +81,11 @@
], ],
"ci:json:lint": "find . ! -path '*.Build/*' -name '*.json' | xargs .Build/vendor/bin/jsonlint -q", "ci:json:lint": "find . ! -path '*.Build/*' -name '*.json' | xargs .Build/vendor/bin/jsonlint -q",
"ci:php": [ "ci:php": [
"@ci:php:codestyle", "@ci:php:cs-fixer",
"@ci:php:sniff" "@ci:php:sniff"
], ],
"ci:php:codestyle": "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: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: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:sniff": "php ./tools/phpcs Classes Configuration Tests",
"ci:php:stan": "php ./tools/phpstan analyse Classes", "ci:php:stan": "php ./tools/phpstan analyse Classes",