mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-25 22:16:13 +01:00

[TASK] Add more files to php sniffing and fixing (#123)

Co-authored-by: Oliver Klee <typo3-coding@oliverklee.de>
This commit is contained in:
Łukasz Uznański 2020-10-14 11:42:00 +02:00 committed by GitHub
parent 2052efda26
commit 3f0e697c1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View file

@ -178,6 +178,8 @@ $config = \PhpCsFixer\Config::create()
->setRules($rules);
$finder = \PhpCsFixer\Finder::create()
->in('Classes')->in('Tests');
->in('Classes')
->in('Tests')
->in('Configuration');
return $config->setFinder($finder);

View file

@ -68,7 +68,7 @@
"scripts": {
"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 Tests",
"ci:php:sniff": ".Build/vendor/bin/phpcs 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",
@ -93,8 +93,8 @@
"@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);'"
],
"fix:php-cs": "php-cs-fixer fix --config .php_cs.php",
"fix:php-sniff": "phpcbf Classes Tests",
"fix:php:cs": "php-cs-fixer fix --config .php_cs.php",
"fix:php:sniff": ".Build/vendor/bin/phpcs Classes Configuration Tests",
"post-autoload-dump": [
"@link-extension"
]