Unverified Commit 9c36f05e authored by Oliver Klee's avatar Oliver Klee Committed by GitHub
Browse files

[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.
parent 0b3527c1
......@@ -82,11 +82,11 @@ jobs:
fail-fast: false
matrix:
command:
- "composer:normalize"
- "json:lint"
- "php:cs-fixer"
- "php:sniff"
- "php:codestyle"
- "php:stan"
- "composer:normalize"
php-version:
- 7.4
code-quality-frontend:
......
......@@ -25,15 +25,15 @@ All of those checks are available in Github Actions and in Gitlab CI.
`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`
### 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`
......
......@@ -81,11 +81,11 @@
],
"ci:json:lint": "find . ! -path '*.Build/*' -name '*.json' | xargs .Build/vendor/bin/jsonlint -q",
"ci:php": [
"@ci:php:codestyle",
"@ci:php:cs-fixer",
"@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: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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment