Skip to content

Commit 1a7158f

Browse files
author
ityaozm@gmail.com
committed
build(composer): Update dependencies in composer.json
- Remove redundant entries from `require` and `require-dev`. - Add new development dependencies to enhance the development environment. - Update the `repositories` section to include the facade-documenter repository. - Adjust plugins allowed in `config` for better control over composer plugins. These changes will facilitate easier package management and improve the overall development workflow.
1 parent 38c30f1 commit 1a7158f

30 files changed

Lines changed: 9393 additions & 4499 deletions

app/Support/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
namespace App\Support;
1515

16-
class Utils {}
16+
final class Utils {}

baselines/assign.propertyType.neon

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# total 6 errors
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Static property App\\Clients\\Ernie\:\:\$accessToken \(string\|null\) does not accept mixed\.$#'
7+
count: 1
8+
path: ../app/Clients/Ernie.php
9+
10+
-
11+
message: '#^Property App\\Commands\\CommitCommand\:\:\$configManager \(App\\ConfigManager\) does not accept mixed\.$#'
12+
count: 1
13+
path: ../app/Commands/CommitCommand.php
14+
15+
-
16+
message: '#^Property App\\Commands\\ConfigCommand\:\:\$configManager \(App\\ConfigManager\) does not accept mixed\.$#'
17+
count: 1
18+
path: ../app/Commands/ConfigCommand.php
19+
20+
-
21+
message: '#^Property Illuminate\\Config\\Repository\:\:\$items \(array\<string, mixed\>\) does not accept array\.$#'
22+
count: 2
23+
path: ../app/ConfigManager.php
24+
25+
-
26+
message: '#^Property App\\Generators\\Generator\:\:\$helperSet \(Symfony\\Component\\Console\\Helper\\HelperSet\) does not accept mixed\.$#'
27+
count: 1
28+
path: ../app/Generators/Generator.php
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# total 3 errors
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Trying to invoke \(callable\(\)\: mixed\)\|null but it might not be a callable\.$#'
7+
count: 1
8+
path: ../app/Clients/Ernie.php
9+
10+
-
11+
message: '#^Trying to invoke \(callable\(\)\: mixed\)\|null but it might not be a callable\.$#'
12+
count: 1
13+
path: ../app/Clients/Moonshot.php
14+
15+
-
16+
message: '#^Trying to invoke \(callable\(\)\: mixed\)\|null but it might not be a callable\.$#'
17+
count: 1
18+
path: ../app/Clients/OpenAI.php
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: '#^Cognitive complexity for "App\\Commands\\ConfigCommand\:\:handle\(\)" is 15, keep it under 8$#'
7+
count: 1
8+
path: ../app/Commands/ConfigCommand.php

baselines/disallowed.function.neon

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# total 16 errors
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Calling exec\(\) is forbidden\.$#'
7+
count: 3
8+
path: ../app/Commands/ThanksCommand.php
9+
10+
-
11+
message: '#^Calling exec\(\) is forbidden\.$#'
12+
count: 1
13+
path: ../app/ConfigManager.php
14+
15+
-
16+
message: '#^Calling env\(\) is forbidden, use config\(\) instead\.$#'
17+
count: 11
18+
path: ../config/ai-commit.php
19+
20+
-
21+
message: '#^Calling env\(\) is forbidden, use config\(\) instead\.$#'
22+
count: 1
23+
path: ../config/app.php

baselines/empty.notAllowed.neon

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# total 4 errors
2+
3+
parameters:
4+
ignoreErrors:
5+
-
6+
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
7+
count: 1
8+
path: ../app/Clients/Ernie.php
9+
10+
-
11+
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
12+
count: 1
13+
path: ../app/Clients/Moonshot.php
14+
15+
-
16+
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
17+
count: 1
18+
path: ../app/Clients/OpenAI.php
19+
20+
-
21+
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
22+
count: 1
23+
path: ../app/Commands/CommitCommand.php
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: '#^Foreach overwrites \$editor with its value variable\.$#'
7+
count: 1
8+
path: ../app/Commands/ConfigCommand.php

baselines/loader.neon

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,23 @@
1-
# total 8 errors
1+
# total 73 errors
22
includes:
3+
- assign.propertyType.neon
4+
- callable.nonCallable.neon
5+
- complexity.functionLike.neon
6+
- disallowed.function.neon
7+
- empty.notAllowed.neon
8+
- foreach.valueOverwrite.neon
9+
- method.dynamicName.neon
10+
- method.notFound.neon
11+
- method.unused.neon
12+
- missing-identifier.neon
13+
- missingType.parameter.neon
14+
- offsetAccess.nonOffsetAccessible.neon
15+
- property.nonObject.neon
16+
- symplify.explicitAbstractPrefixName.neon
17+
- symplify.forbiddenExtendOfNonAbstractClass.neon
18+
- symplify.noDynamicName.neon
19+
- symplify.noReference.neon
20+
- typeCoverage.paramTypeCoverage.neon
21+
- typePerfect.noArrayAccessOnObject.neon
22+
- typePerfect.noMixedPropertyFetcher.neon
23+
- typePerfect.noParamTypeRemoval.neon

baselines/method.dynamicName.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: '#^Variable method call on \$this\(App\\GeneratorManager\)\.$#'
7+
count: 1
8+
path: ../app/GeneratorManager.php

baselines/method.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: '#^Call to an undefined method Symfony\\Component\\Console\\Helper\\HelperInterface\:\:run\(\)\.$#'
7+
count: 1
8+
path: ../app/Generators/Generator.php

0 commit comments

Comments
 (0)