Abdul Malik Ikhsan
1925f692bc
fix Revert "refactor: re-run rector"
...
This reverts commit 65b71e963b1cb6f36b284ae0e5be13faabe33ff4.
fix: skip rector.php
2025-02-11 14:31:44 +07:00
John Paul E. Balandan, CPA
797d37751a
Merge branch 'develop' into 4.6
2025-01-13 11:15:24 +08:00
John Paul E. Balandan, CPA
c3ac0f9483
chore: add more trailing commas in more places ( #9395 )
...
* Apply to parameters
* Apply to array destructuring
* Apply to match
* Apply for arguments
2025-01-13 11:03:02 +08:00
John Paul E. Balandan, CPA
eec3739823
Merge remote-tracking branch 'upstream/develop' into 4.6
2024-12-31 20:22:12 +08:00
John Paul E. Balandan, CPA
c7548a3771
Merge branch 'develop' into 4.6
2024-12-29 00:21:53 +08:00
Abdul Malik Ikhsan
a2ec5054d7
refactor: enable AddArrowFunctionReturnTypeRector
2024-12-28 23:00:15 +07:00
Abdul Malik Ikhsan
ee4ee987b1
refactor: enable instanceof and strictBooleans rector set ( #9339 )
...
* refactor: enable instanceof and strictBooleans rector set
* refactor: bump to rector 2.0.4
* refactor: clean condition check
* refactor: revert ThirdParty change
* refactor: re-run phpstan baseline
* refactor: fix never empty array on Image
* refactor: avoid repetitive call pg_last_error()
* refactor: pg_last_error() always returns string
* refactor: use return empty string on pg_last_error() got empty "0"
* refactor: various compare !== 1 on preg_match()
* refactor: use falsy check on getenv()
* refactor: more !== 1 compare on preg_match()
* refactor: use empty string check on guessExtension
* refactor: run cs fix
* refactor: more !== 1 compare on preg_match()
* use direct result of pg_last_error()
* refactor: use str_contains() over strpos on Forge
* refactor: fix unused variable
* refactor: check empty string on ResponseTrait
* refactor: more preg_match() and empty string only check
* refactor: compare to 0 on preg_match_all()
* refactor: re-run rector
* refactor: preg_match_all() likely less to return false
2024-12-28 23:16:32 +08:00
Abdul Malik Ikhsan
345e1c3b9c
refactor: enable code quality level 34 for rector ( #9311 )
...
* refactor: enable code quality level 34 for rector
* refactor: run cs fix
* refactor: fix phpstan and regenerate baseline
* refactor: cs fix
* refactor: Cors: before never returns string
* refactor: return EXIT_ERROR on check verify command
* refactor: returns null on DebugToolbar and HoneyPot
2024-12-21 19:40:05 +08:00
John Paul E. Balandan, CPA
242745c661
refactor: split phpstan-baseline into smaller files ( #9299 )
...
* refactor: split phpstan-baseline into smaller files
* Checkout base branch to resolve codeigniter4/framework
* Fix rector changes
2024-12-15 08:38:40 +08:00
Abdul Malik Ikhsan
608b869a20
refactor: enable level 31: ThrowWithPreviousExceptionRector
2024-12-07 17:46:25 +07:00
Abdul Malik Ikhsan
37e63299f5
refactor: skip CompactToVariablesRector
2024-12-07 17:42:53 +07:00
Abdul Malik Ikhsan
21b8877620
refactor: Apply code quality level 27 for rector
2024-12-05 23:58:11 +07:00
Abdul Malik Ikhsan
b64aeef0ea
refactor: Apply code quality level 24 for Rector
2024-11-11 09:00:41 +07:00
Abdul Malik Ikhsan
862cef65ad
enable skipped NarrowUnusedSetUpDefinedPropertyRector
2024-11-09 07:41:48 +07:00
Abdul Malik Ikhsan
a933bf79bd
run cs fix on rector.php
...
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2024-11-05 22:11:19 +07:00
Abdul Malik Ikhsan
e63774d932
skip NarrowUnusedSetUpDefinedPropertyRector as buggy with default value
...
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
2024-11-05 22:10:16 +07:00
Abdul Malik Ikhsan
3e672fadc6
refactor: enable FlipTypeControlToUseExclusiveTypeRector
2024-11-05 05:03:14 +07:00
Abdul Malik Ikhsan
dede747236
refactor: enable SimplifyBoolIdenticalTrueRector
2024-10-30 16:37:37 +07:00
Abdul Malik Ikhsan
70816be6c8
refactor: Apply code quality level 15 for Rector
2024-10-28 22:16:15 +07:00
Abdul Malik Ikhsan
ff2f756baa
refactor: enable rector code quality level 14
2024-10-21 02:47:51 +07:00
Abdul Malik Ikhsan
7c8216ffbc
Refactor: enable Rector Code Quality level, apply level 9 for SimplifyConditionsRector
2024-10-16 02:28:17 +07:00
Abdul Malik Ikhsan
3f29f2883a
refactor: enable ClosureReturnTypeRector
2024-09-10 16:18:25 +07:00
Abdul Malik Ikhsan
45a002fbc1
refactor: enable TypedPropertyFromAssignsRector
2024-09-10 05:56:06 +07:00
Abdul Malik Ikhsan
87eb71ce29
refactor: enable AddMethodCallBasedStrictParamTypeRector
2024-08-28 08:54:48 +07:00
John Paul E. Balandan, CPA
90ea5c7cc1
Move phpstan and rector to root composer.json
2024-07-23 20:58:52 +08:00
John Paul E. Balandan, CPA
e7b7686405
Fix rector errors
2024-07-23 20:58:51 +08:00
Abdul Malik Ikhsan
1a180645de
chore: skip tests View fixtures from rector
2024-07-02 14:13:16 +07:00
Abdul Malik Ikhsan
fb7e4f1fed
refactor: Enable phpunit 10 attribute Rector rules
2024-06-30 18:17:12 +07:00
Abdul Malik Ikhsan
e792d438cf
refactor: enable AddFunctionVoidReturnTypeWhereNoReturnRector to add void to functions
2024-06-30 14:39:29 +07:00
Abdul Malik Ikhsan
9e4777a0c8
refactor: enable AddClosureVoidReturnTypeWhereNoReturnRector to add void return on closure
2024-06-27 22:19:28 +07:00
Abdul Malik Ikhsan
86480f498a
chore: fallback null on cache directory to use default rector cache directory
2024-06-26 07:36:11 +07:00
Abdul Malik Ikhsan
2d5d8a577c
chore: update to new RectorConfig::configure() syntax for config
2024-06-26 00:36:20 +07:00
Abdul Malik Ikhsan
48f36ef37a
remove SimplifyRegexPatternRector from rule()
2024-06-10 09:17:56 +07:00
Abdul Malik Ikhsan
260c379681
chore: Clean up Rector skip config on SimplifyRegexPatternRector and RemoveUnusedPromotedPropertyRector
2024-06-10 06:20:59 +07:00
Abdul Malik Ikhsan
3e90a29e6f
chore: remove JsonThrowOnErrorRector and FinalizePublicClassConstantRector from skip() config as no longer part of sets
2024-05-29 17:39:03 +07:00
kenjis
aaa37ad416
chore: skip FatalLocator in ReturnNeverTypeRector
...
The parent method return type is not never.
2024-04-06 09:24:49 +09:00
kenjis
b5a05a07f1
chore: change for upgrade to PHP 8.1
2024-04-06 09:24:45 +09:00
kenjis
e78c92994f
Merge remote-tracking branch 'upstream/develop' into 4.5
2024-04-05 16:59:18 +09:00
Abdul Malik Ikhsan
0987c9ac0b
chore: [Rector] Apply ExplicitBoolCompareRector
2024-04-03 22:25:35 +07:00
kenjis
98a671e3f5
Merge remote-tracking branch 'upstream/develop' into 4.5
...
Conflicts:
.github/workflows/test-rector.yml
2024-03-24 12:46:13 +09:00
Abdul Malik Ikhsan
ec54a6b207
combine paths
2024-03-24 02:24:02 +07:00
Abdul Malik Ikhsan
5b2bf1399b
set cache directory
2024-03-24 02:06:38 +07:00
Abdul Malik Ikhsan
f304d95048
set cache directory
2024-03-24 02:06:21 +07:00
kenjis
8737b4b8ce
Merge remote-tracking branch 'upstream/develop' into 4.5
...
Conflicts:
system/Autoloader/Autoloader.php
2024-03-15 09:26:59 +09:00
justbyitself
f3e53914b7
refactor: apply cs-fix and rector
2024-03-12 00:03:30 +01:00
justbyitself
6bcd1011e7
chore: add version-compare-func-call-to-constant rule
...
Add Rector rule in order to replace PHP_VERSION by PHP_VERSION_ID.
@samsonasik suggestion: https://github.com/codeigniter4/CodeIgniter4/pull/8619
2024-03-11 13:16:34 +01:00
kenjis
94c7f087b7
chore: skip rector bug
2024-02-13 08:53:12 +09:00
kenjis
059b085a3d
chore: add skip to use $created_at
2024-02-13 08:49:28 +09:00
kenjis
a253e475c3
chore: skip PHPUnit 10 rules
2024-02-06 09:14:58 +09:00
kenjis
437ce02bf2
Merge remote-tracking branch 'upstream/develop' into 4.5
...
Conflicts:
system/Router/RouteCollection.php
2024-02-04 17:46:36 +09:00