Skip to content

Commit 59f40d0

Browse files
committed
ci(config): Update config files
1 parent 972c052 commit 59f40d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+62
-57
lines changed

.php-cs-fixer-custom.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
declare(strict_types=1);
77

88
/**
9-
* Copyright (c) 2019-2025 guanguans<[email protected]>
9+
* Copyright (c) 2019-2026 guanguans<[email protected]>
1010
*
1111
* For the full copyright and license information, please view
1212
* the LICENSE file that was distributed with this source code.
@@ -104,7 +104,6 @@
104104
'.chglog/CHANGELOG.tpl.md',
105105
'CHANGELOG.md',
106106
// 'composer.json',
107-
'README-zh_CN.md',
108107
'README.md',
109108
])
110109
->name($fixers->extensionPatterns())

.php-cs-fixer.dist.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2019-2025 guanguans<[email protected]>
6+
* Copyright (c) 2019-2026 guanguans<[email protected]>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.
@@ -52,6 +52,9 @@
5252
})()
5353
)
5454
->withCustomFixers(Fixers::fromFixers($forceFQCNFixer = new ForceFQCNFixer))
55+
->withRules(Rules::fromArray([
56+
$forceFQCNFixer->getName() => true,
57+
]))
5558
->withCustomFixers(Fixers::fromFixers(...$erickSkrauchFixers = array_filter(
5659
iterator_to_array(new ErickSkrauch\PhpCsFixer\Fixers),
5760
static fn (FixerInterface $fixer): bool => !$fixer instanceof DeprecatedFixerInterface
@@ -129,7 +132,6 @@ static function (array $carry, FixerInterface $fixer): array {
129132
'@PHPUnit10x0Migration:risky' => true,
130133
]))
131134
->withRules(Rules::fromArray([
132-
$forceFQCNFixer->getName() => true,
133135
'align_multiline_comment' => [
134136
'comment_type' => 'phpdocs_only',
135137
],

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019-2025 guanguans<[email protected]>
3+
Copyright (c) 2019-2026 guanguans<[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
66
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

benchmarks/SoarBench.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
declare(strict_types=1);
77

88
/**
9-
* Copyright (c) 2019-2025 guanguans<[email protected]>
9+
* Copyright (c) 2019-2026 guanguans<[email protected]>
1010
*
1111
* For the full copyright and license information, please view
1212
* the LICENSE file that was distributed with this source code.

composer-bump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
declare(strict_types=1);
55

66
/**
7-
* Copyright (c) 2019-2025 guanguans<[email protected]>
7+
* Copyright (c) 2019-2026 guanguans<[email protected]>
88
*
99
* For the full copyright and license information, please view
1010
* the LICENSE file that was distributed with this source code.

composer-dependency-analyser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2019-2025 guanguans<[email protected]>
6+
* Copyright (c) 2019-2026 guanguans<[email protected]>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

composer.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"phpstan/phpstan-strict-rules": "^2.0",
7070
"phpstan/phpstan-webmozart-assert": "^2.0",
7171
"povils/phpmnd": "^3.6",
72-
"rector/jack": "^0.4",
72+
"rector/jack": "^0.5",
7373
"rector/rector": "^2.3",
7474
"rector/swiss-knife": "^2.3",
7575
"rector/type-perfect": "^2.1",
@@ -182,7 +182,6 @@
182182
"@jack:open-versions-dry-run",
183183
"@jack:raise-to-installed-dry-run",
184184
"@jsonlint",
185-
"@php-cs-fixer:custom-fix-dry-run",
186185
"@phpmnd",
187186
"@phpstan:analyse",
188187
"@rector:process-dry-run",
@@ -201,7 +200,9 @@
201200
"@gitleaks",
202201
"@lint-md",
203202
"@peck",
204-
"@rule-doc-generator:rector-generate",
203+
"@php-cs-fixer:custom-fix-dry-run",
204+
"@php-cs-fixer:custom-ln-config",
205+
"@rule-doc-generator:generate",
205206
"@zhlint"
206207
],
207208
"checks:required": [
@@ -324,7 +325,10 @@
324325
"@php-cs-fixer:custom-fix --dry-run"
325326
],
326327
"php-cs-fixer:custom-list-files": "@php-cs-fixer:custom list-files",
327-
"php-cs-fixer:custom-ln-config": "ln -f vendor/guanguans/php-cs-fixer-custom-fixers/.php-cs-fixer-custom.php .php-cs-fixer-custom.php",
328+
"php-cs-fixer:custom-ln-config": [
329+
"ln -f vendor/guanguans/php-cs-fixer-custom-fixers/.php-cs-fixer-custom.php .php-cs-fixer-custom.php",
330+
"YEAR=$(date +%Y); sed -i '' -e 's|guanguans/php-cs-fixer-custom-fixers|guanguans/soar-php|g' -e \"s|2025-$YEAR|2019-$YEAR|g\" -e \"s|2025|2019-$YEAR|g\" .php-cs-fixer-custom.php"
331+
],
328332
"php-cs-fixer:fix": "@php-cs-fixer fix --show-progress=dots --diff",
329333
"php-cs-fixer:fix-dry-run": "@php-cs-fixer:fix --dry-run",
330334
"php-cs-fixer:list-files": "@php-cs-fixer list-files",
@@ -381,8 +385,8 @@
381385
"@putenv:php",
382386
"$PHP82 rule-doc-generator --ansi -vv"
383387
],
384-
"rule-doc-generator:rector-generate": "@rule-doc-generator generate src/Support/Rectors/ --output-file=src/Support/Rectors/rector-rules-overview.md --categorize=rector",
385-
"rule-doc-generator:rector-validate": "@rule-doc-generator validate src/Support/Rectors/",
388+
"rule-doc-generator:generate": "@rule-doc-generator generate src/Support/Rectors/ --output-file=src/Support/Rectors/rules-overview.md",
389+
"rule-doc-generator:validate": "@rule-doc-generator validate src/Support/Rectors/",
386390
"sk": "@php vendor/bin/swiss-knife --ansi -vv",
387391
"sk:alice-yaml-fixtures-to-php": "@sk alice-yaml-fixtures-to-php --help",
388392
"sk:check-commented-code": "@sk check-commented-code src/ --line-limit=5 --skip-file=src/Soar.php",

examples/example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
declare(strict_types=1);
99

1010
/**
11-
* Copyright (c) 2019-2025 guanguans<[email protected]>
11+
* Copyright (c) 2019-2026 guanguans<[email protected]>
1212
*
1313
* For the full copyright and license information, please view
1414
* the LICENSE file that was distributed with this source code.

examples/options-example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2019-2025 guanguans<[email protected]>
6+
* Copyright (c) 2019-2026 guanguans<[email protected]>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

examples/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2019-2025 guanguans<[email protected]>
6+
* Copyright (c) 2019-2026 guanguans<[email protected]>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

0 commit comments

Comments
 (0)