Skip to content

Commit 319bb6e

Browse files
committed
ci(config): Update config files
1 parent 63741eb commit 319bb6e

File tree

7 files changed

+73
-81
lines changed

7 files changed

+73
-81
lines changed

.all-contributorsrc

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
{
2-
"files": [
3-
"README.md",
4-
"README-zh_CN.md"
5-
],
6-
"imageSize": 100,
7-
"commit": false,
8-
"contributors": [
9-
{
10-
"login": "kamly",
11-
"name": "kamly",
12-
"avatar_url": "https://avatars2.githubusercontent.com/u/15706085?v=4",
13-
"profile": "https://github.com/kamly",
14-
"contributions": [
15-
"bug"
16-
]
17-
},
18-
{
19-
"login": "leslieeilsel",
20-
"name": "Leslie Lau",
21-
"avatar_url": "https://avatars1.githubusercontent.com/u/25165449?v=4",
22-
"profile": "https://github.com/leslieeilsel",
23-
"contributions": [
24-
"bug"
25-
]
26-
},
27-
{
28-
"login": "huangdijia",
29-
"name": "D.J.Hwang",
30-
"avatar_url": "https://avatars1.githubusercontent.com/u/8337659?v=4",
31-
"profile": "https://github.com/huangdijia",
32-
"contributions": [
33-
"ideas"
34-
]
35-
},
36-
{
37-
"login": "zhonghaibin",
38-
"name": "海彬",
39-
"avatar_url": "https://avatars.githubusercontent.com/u/22255693?v=4",
40-
"profile": "https://github.com/zhonghaibin",
41-
"contributions": [
42-
"bug"
43-
]
44-
},
45-
{
46-
"login": "Aexus",
47-
"name": "imcm",
48-
"avatar_url": "https://avatars.githubusercontent.com/u/3403478?v=4",
49-
"profile": "https://github.com/Aexus",
50-
"contributions": [
51-
"ideas"
52-
]
53-
}
54-
],
55-
"contributorsPerLine": 7,
56-
"projectName": "soar-php",
57-
"projectOwner": "guanguans",
58-
"repoType": "github",
59-
"repoHost": "https://github.com",
60-
"skipCi": true
2+
"files": [
3+
"README.md",
4+
"README-zh_CN.md"
5+
],
6+
"imageSize": 100,
7+
"commit": false,
8+
"contributors": [
9+
{
10+
"login": "kamly",
11+
"name": "kamly",
12+
"avatar_url": "https://avatars2.githubusercontent.com/u/15706085?v=4",
13+
"profile": "https://github.com/kamly",
14+
"contributions": [
15+
"bug"
16+
]
17+
},
18+
{
19+
"login": "leslieeilsel",
20+
"name": "Leslie Lau",
21+
"avatar_url": "https://avatars1.githubusercontent.com/u/25165449?v=4",
22+
"profile": "https://github.com/leslieeilsel",
23+
"contributions": [
24+
"bug"
25+
]
26+
},
27+
{
28+
"login": "huangdijia",
29+
"name": "D.J.Hwang",
30+
"avatar_url": "https://avatars1.githubusercontent.com/u/8337659?v=4",
31+
"profile": "https://github.com/huangdijia",
32+
"contributions": [
33+
"ideas"
34+
]
35+
},
36+
{
37+
"login": "zhonghaibin",
38+
"name": "海彬",
39+
"avatar_url": "https://avatars.githubusercontent.com/u/22255693?v=4",
40+
"profile": "https://github.com/zhonghaibin",
41+
"contributions": [
42+
"bug"
43+
]
44+
},
45+
{
46+
"login": "Aexus",
47+
"name": "imcm",
48+
"avatar_url": "https://avatars.githubusercontent.com/u/3403478?v=4",
49+
"profile": "https://github.com/Aexus",
50+
"contributions": [
51+
"ideas"
52+
]
53+
}
54+
],
55+
"contributorsPerLine": 7,
56+
"projectName": "soar-php",
57+
"projectOwner": "guanguans",
58+
"repoType": "github",
59+
"repoHost": "https://github.com",
60+
"skipCi": true
6161
}

.yamlfmt.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

rector-soar-options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @see https://github.com/guanguans/soar-php
1616
*/
1717

18-
use Guanguans\SoarPHP\Support\Rectors\AddSoarOptionsDocCommentRector;
18+
use Guanguans\SoarPHP\Support\Rectors\AddDocCommentForSoarOptionsRector;
1919
use Guanguans\SoarPHP\Support\Rectors\SimplifyListIndexRector;
2020
use Rector\Config\RectorConfig;
2121
use Rector\ValueObject\PhpVersion;
@@ -29,6 +29,6 @@
2929
// ->withImportNames(importNames: false)
3030
->withImportNames(importDocBlockNames: false, importShortClasses: false)
3131
->withRules([
32-
AddSoarOptionsDocCommentRector::class,
32+
AddDocCommentForSoarOptionsRector::class,
3333
SimplifyListIndexRector::class,
3434
]);

rector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Guanguans\MonorepoBuilderWorker\Support\Rectors\NewExceptionToNewAnonymousExtendsExceptionImplementsRector;
2121
use Guanguans\MonorepoBuilderWorker\Support\Rectors\RemoveNamespaceRector;
2222
use Guanguans\SoarPHP\Contracts\Throwable;
23-
use Guanguans\SoarPHP\Support\Rectors\AddHasOptionsDocCommentRector;
23+
use Guanguans\SoarPHP\Support\Rectors\AddDocCommentForHasOptionsRector;
2424
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
2525
use Rector\CodeQuality\Rector\LogicalAnd\LogicalToBooleanRector;
2626
use Rector\CodingStyle\Rector\ArrowFunction\StaticArrowFunctionRector;
@@ -99,7 +99,7 @@
9999
StaticArrowFunctionRector::class,
100100
StaticClosureRector::class,
101101
SortAssociativeArrayByKeyRector::class,
102-
AddHasOptionsDocCommentRector::class,
102+
AddDocCommentForHasOptionsRector::class,
103103
])
104104
->withConfiguredRule(AddNoinspectionsDocCommentToDeclareRector::class, [
105105
'AnonymousFunctionStaticInspection',

src/Support/Rectors/AddHasOptionsDocCommentRector.php renamed to src/Support/Rectors/AddDocCommentForHasOptionsRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
* @internal
3535
*/
36-
final class AddHasOptionsDocCommentRector extends AbstractRector implements DocumentedRuleInterface
36+
final class AddDocCommentForHasOptionsRector extends AbstractRector implements DocumentedRuleInterface
3737
{
3838
public function __construct(
3939
private readonly DocBlockUpdater $docBlockUpdater,
@@ -46,7 +46,7 @@ public function __construct(
4646
public function getRuleDefinition(): RuleDefinition
4747
{
4848
return new RuleDefinition(
49-
'Add has options doc comment',
49+
'Add doc comment for has options rector',
5050
[
5151
new CodeSample(
5252
<<<'CODE_SAMPLE'

src/Support/Rectors/AddSoarOptionsDocCommentRector.php renamed to src/Support/Rectors/AddDocCommentForSoarOptionsRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* @internal
2929
*/
30-
final class AddSoarOptionsDocCommentRector extends AbstractRector implements DocumentedRuleInterface
30+
final class AddDocCommentForSoarOptionsRector extends AbstractRector implements DocumentedRuleInterface
3131
{
3232
public function __construct(
3333
private readonly ValueResolver $valueResolver
@@ -39,7 +39,7 @@ public function __construct(
3939
public function getRuleDefinition(): RuleDefinition
4040
{
4141
return new RuleDefinition(
42-
'Add soar options doc comment',
42+
'Add doc comment for soar options rector',
4343
[
4444
new CodeSample(
4545
<<<'CODE_SAMPLE'

src/Support/Rectors/rector-rules-overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# 3 Rules Overview
22

3-
## AddHasOptionsDocCommentRector
3+
## AddDocCommentForHasOptionsRector
44

5-
Add has options doc comment
5+
Add doc comment for has options rector
66

7-
- class: [`Guanguans\SoarPHP\Support\Rectors\AddHasOptionsDocCommentRector`](AddHasOptionsDocCommentRector.php)
7+
- class: [`Guanguans\SoarPHP\Support\Rectors\AddDocCommentForHasOptionsRector`](AddDocCommentForHasOptionsRector.php)
88

99
```diff
1010
+/**
@@ -21,11 +21,11 @@ Add has options doc comment
2121

2222
<br>
2323

24-
## AddSoarOptionsDocCommentRector
24+
## AddDocCommentForSoarOptionsRector
2525

26-
Add soar options doc comment
26+
Add doc comment for soar options rector
2727

28-
- class: [`Guanguans\SoarPHP\Support\Rectors\AddSoarOptionsDocCommentRector`](AddSoarOptionsDocCommentRector.php)
28+
- class: [`Guanguans\SoarPHP\Support\Rectors\AddDocCommentForSoarOptionsRector`](AddDocCommentForSoarOptionsRector.php)
2929

3030
```diff
3131
return [

0 commit comments

Comments
 (0)