Skip to content

Commit fafbc26

Browse files
committed
ci(config): Remove unused faker mappings and commented properties
- Removed 'faker' mapping from the array for clarity. - Commented out 'property-read' and 'property-write' replacements in phpdoc_no_alias_tag. - These changes streamline the configuration and improve readability. Signed-off-by: guanguans <ityaozm@gmail.com>
1 parent e451f2d commit fafbc26

File tree

12 files changed

+75
-37
lines changed

12 files changed

+75
-37
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ jobs:
2020
env:
2121
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222

23+
- name: Get composer cache directory
24+
id: composer-cache
25+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
26+
2327
- name: Cache composer dependencies
2428
uses: actions/cache@v4
2529
with:
26-
path: vendor
27-
key: composer-${{ hashFiles('composer.lock') }}
30+
path: ${{ steps.composer-cache.outputs.dir }}
31+
# Use composer.json for key, if composer.lock is not committed.
32+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
33+
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
34+
restore-keys: ${{ runner.os }}-composer-
2835

2936
- name: Run composer install
3037
run: composer install --no-interaction --prefer-dist --ansi -v

.github/workflows/phpstan.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,18 @@ jobs:
2727
env:
2828
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2929

30+
- name: Get composer cache directory
31+
id: composer-cache
32+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
33+
3034
- name: Cache composer dependencies
3135
uses: actions/cache@v4
3236
with:
33-
path: vendor
34-
key: composer-${{ hashFiles('composer.lock') }}
37+
path: ${{ steps.composer-cache.outputs.dir }}
38+
# Use composer.json for key, if composer.lock is not committed.
39+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
40+
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
41+
restore-keys: ${{ runner.os }}-composer-
3542

3643
- name: Run composer install
3744
run: composer install --no-interaction --prefer-dist --ansi -v

.github/workflows/rector.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,18 @@ jobs:
2626
env:
2727
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

29+
- name: Get composer cache directory
30+
id: composer-cache
31+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
32+
2933
- name: Cache composer dependencies
3034
uses: actions/cache@v4
3135
with:
32-
path: vendor
33-
key: composer-${{ hashFiles('composer.lock') }}
36+
path: ${{ steps.composer-cache.outputs.dir }}
37+
# Use composer.json for key, if composer.lock is not committed.
38+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
39+
# key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
40+
restore-keys: ${{ runner.os }}-composer-
3441

3542
- name: Run composer install
3643
run: composer install --no-interaction --prefer-dist --ansi -v

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,8 @@
216216
'phpdoc_no_alias_tag' => [
217217
'replacements' => [
218218
'link' => 'see',
219+
// 'property-read' => 'property',
220+
// 'property-write' => 'property',
219221
'type' => 'var',
220222
],
221223
],

baselines/loader.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# total 6 errors
1+
# total 7 errors
22

33
includes:
44
- assign.propertyType.neon
55
- callable.nonCallable.neon
66
- complexity.functionLike.neon
77
- disallowed.function.neon
88
- new.static.neon
9+
- property.notFound.neon
910
- typePerfect.narrowPublicClassMethodParamType.neon

baselines/property.notFound.neon

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# total 1 error
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Access to an undefined property Composer\\IO\\IOInterface\:\:\$output\.$#'
7+
count: 1
8+
path: ../src/Support/ComposerScripts.php

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@
222222
"class-leak:check": "@class-leak check examples/ src/ --skip-type=\\Contracts\\Channel --skip-suffix=Channel --skip-path=Support/Rectors/",
223223
"composer-bump": [
224224
"@putenv:php",
225-
"@putenv:xdebug-off",
226225
"@composer-config:disable-process-timeout",
227226
"@php composer-bump --highest-php-binary=$PHP85 --except-package=foo/bar --ansi"
228227
],

monorepo-builder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
use Symfony\Component\Process\PhpExecutableFinder;
2626
use Symfony\Component\Process\Process;
2727
use Symplify\MonorepoBuilder\Config\MBConfig;
28+
use Symplify\MonorepoBuilder\Contract\Git\TagResolverInterface;
29+
use Symplify\MonorepoBuilder\Git\BranchAwareTagResolver;
2830
use Symplify\MonorepoBuilder\Release\ReleaseWorker\AddTagToChangelogReleaseWorker;
2931
use Symplify\MonorepoBuilder\Release\ReleaseWorker\PushNextDevReleaseWorker;
3032
use Symplify\MonorepoBuilder\Release\ReleaseWorker\PushTagReleaseWorker;
@@ -39,6 +41,10 @@
3941
$mbConfig->defaultBranch('master');
4042
MBConfig::disableDefaultWorkers();
4143

44+
// $services = $mbConfig->services();
45+
// $services->set(BranchAwareTagResolver::class);
46+
// $services->alias(TagResolverInterface::class, BranchAwareTagResolver::class);
47+
4248
/**
4349
* release workers - in order to execute.
4450
*

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ parameters:
3838
phpVersion: 80100
3939
level: max
4040
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
41-
# errorFormat: friendly
41+
errorFormat: friendly
4242
friendly:
4343
lineBefore: 3
4444
lineAfter: 3

rector-soar-options.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
])
2525
->withPhpVersion(PhpVersion::PHP_81)
2626
->withoutParallel()
27-
// ->withImportNames(importNames: false)
2827
->withImportNames(importDocBlockNames: false, importShortClasses: false)
2928
->withRules([
3029
AddDocCommentForSoarOptionsRector::class,

0 commit comments

Comments
 (0)