mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 08:56:56 +01:00
parent
091e00e478
commit
ddecb3009f
4 changed files with 19 additions and 2 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -64,6 +64,7 @@ jobs:
|
|||
- "json:lint"
|
||||
- "php:sniff"
|
||||
- "php:codestyle"
|
||||
- "php:copypaste"
|
||||
php-version:
|
||||
- 7.4
|
||||
code-quality-frontend:
|
||||
|
|
|
@ -261,3 +261,13 @@ phpcs:
|
|||
- php-lint-php7.4
|
||||
script:
|
||||
- composer ci:php:sniff
|
||||
|
||||
php-copypaste-check:
|
||||
stage: codestyle
|
||||
needs:
|
||||
- build-composer-dependencies
|
||||
- php-lint-php7.2
|
||||
- php-lint-php7.3
|
||||
- php-lint-php7.4
|
||||
script:
|
||||
- composer ci:php:copypaste
|
||||
|
|
|
@ -27,10 +27,14 @@ All of those checks are available in Github Actions and in Gitlab CI.
|
|||
|
||||
`composer ci:php:codestyle`
|
||||
|
||||
### PHP Sniff by phpcs [phpcs](https://github.com/squizlabs/PHP_CodeSniffer)
|
||||
### PHP Sniff by [phpcs](https://github.com/squizlabs/PHP_CodeSniffer)
|
||||
|
||||
`composer ci:php:sniff`
|
||||
|
||||
### PHP Copypaste check by [phpcpd](https://github.com/sebastianbergmann/phpcpd)
|
||||
|
||||
`composer ci:php:copypaste`
|
||||
|
||||
### JSON Lint check by [jsonlint](https://github.com/Seldaek/jsonlint)
|
||||
|
||||
`composer ci:json:lint`
|
||||
|
|
|
@ -42,7 +42,8 @@
|
|||
"typo3/cms-fluid-styled-content": "^9.5 || ^10.4",
|
||||
"seld/jsonlint": "^1.8",
|
||||
"phpdocumentor/reflection-docblock": "<= 5.1 || > 5.2",
|
||||
"j13k/yaml-lint": "1.1.x-dev"
|
||||
"j13k/yaml-lint": "1.1.x-dev",
|
||||
"sebastian/phpcpd": "^4.1.0"
|
||||
},
|
||||
"replace": {
|
||||
"typo3-ter/tea": "self.version"
|
||||
|
@ -69,6 +70,7 @@
|
|||
"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.php -v --dry-run --using-cache false --diff --diff-format=udiff",
|
||||
"ci:php:sniff": ".Build/vendor/bin/phpcs Classes Configuration Tests",
|
||||
"ci:php:copypaste": ".Build/vendor/bin/phpcpd Classes Configuration Tests",
|
||||
"ci:json:lint": "find . ! -path '*.Build/*' -name '*.json' | xargs .Build/vendor/bin/jsonlint -q",
|
||||
"ci:yaml:lint": "find . ! -path '*.Build/*' -name '*.yml' | xargs .Build/vendor/bin/yaml-lint",
|
||||
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
||||
|
|
Loading…
Reference in a new issue