Merge pull request #5866 from kenjis/rename-php-cs-fixer-config-files

chore: rename php-cs-fixer config files
This commit is contained in:
kenjis 2022-04-05 17:49:18 +09:00 committed by GitHub
commit ecc7317840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -52,10 +52,10 @@ jobs:
run: composer update --ansi --no-interaction
- name: Run lint on `app/`, `admin/`, `public/`
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.no-header.php-cs-fixer.dist.php --using-cache=no --diff
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.php-cs-fixer.no-header.php --using-cache=no --diff
- name: Run lint on `system/`, `tests`, `utils/`, and root PHP files
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --using-cache=no --diff
- name: Run lint on `user_guide_src/source/`
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.user-guide.php-cs-fixer.dist.php --using-cache=no --diff
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --config=.php-cs-fixer.user-guide.php --using-cache=no --diff

View File

@ -29,8 +29,8 @@ $finder = Finder::create()
->notName('#Foobar.php$#')
->append([
__FILE__,
__DIR__ . '/.no-header.php-cs-fixer.dist.php',
__DIR__ . '/.user-guide.php-cs-fixer.dist.php',
__DIR__ . '/.php-cs-fixer.no-header.php',
__DIR__ . '/.php-cs-fixer.user-guide.php',
__DIR__ . '/rector.php',
__DIR__ . '/spark',
__DIR__ . '/user_guide_src/renumerate.php',

View File

@ -33,7 +33,7 @@ $finder = Finder::create()
$overrides = [];
$options = [
'cacheFile' => 'build/.no-header.php-cs-fixer.cache',
'cacheFile' => 'build/.php-cs-fixer.no-header.cache',
'finder' => $finder,
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'),
'customRules' => [

View File

@ -37,7 +37,7 @@ $overrides = [
];
$options = [
'cacheFile' => 'build/.user-guide.php-cs-fixer.cache',
'cacheFile' => 'build/.php-cs-fixer.user-guide.cache',
'finder' => $finder,
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'),
'customRules' => [

View File

@ -42,9 +42,9 @@ if [ "$FILES" != "" ]; then
# Run on whole codebase to skip on unnecessary filtering
# Run first on app, admin, public
if [ -d /proc/cygdrive ]; then
./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.no-header.php-cs-fixer.dist.php
./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.php-cs-fixer.no-header.php
else
php ./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.no-header.php-cs-fixer.dist.php
php ./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.php-cs-fixer.no-header.php
fi
if [ $? != 0 ]; then
@ -66,9 +66,9 @@ if [ "$FILES" != "" ]; then
# Next, run on user_guide_src/source PHP files
if [ -d /proc/cygdrive ]; then
./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.user-guide.php-cs-fixer.dist.php
./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.php-cs-fixer.user-guide.php
else
php ./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.user-guide.php-cs-fixer.dist.php
php ./vendor/bin/php-cs-fixer fix --verbose --dry-run --diff --config=.php-cs-fixer.user-guide.php
fi
if [ $? != 0 ]; then