259 Commits

Author SHA1 Message Date
Abdul Malik Ikhsan
400d171ebd
Reduce jobsize on rector config 2024-02-04 08:12:25 +07:00
kenjis
b4dd2ab23b
Merge remote-tracking branch 'upstream/develop' into 4.5 2024-01-16 16:10:25 +09:00
Abdul Malik Ikhsan
6f045bf4e0
Update Rector parallel config 2024-01-16 13:59:33 +07:00
kenjis
088d01522f
Merge remote-tracking branch 'upstream/develop' into 4.5 2024-01-16 13:55:30 +09:00
Abdul Malik Ikhsan
9fef925532
Fix parallel timeout 2024-01-09 22:15:52 +07:00
kenjis
6d34289d12
Merge remote-tracking branch 'upstream/develop' into 4.5 2023-12-26 06:53:58 +09:00
kenjis
3cfbdf2b2e
chore: add StringClassNameToClassConstantRector option 2023-12-22 10:34:47 +09:00
kenjis
ed4fce13ab
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	phpstan-baseline.php
	rector.php
	system/Database/BaseBuilder.php
	system/Honeypot/Honeypot.php
	system/Router/RouteCollection.php
	system/Test/FeatureTestCase.php
	system/Test/FeatureTestTrait.php
	system/Validation/FormatRules.php
2023-12-22 07:07:52 +09:00
kenjis
9c93833f99
chore: add DisallowedEmptyRuleFixerRector 2023-12-21 09:46:49 +09:00
kenjis
145415e81a
chore: add EmptyOnNullableObjectToInstanceOfRector 2023-12-21 09:46:48 +09:00
kenjis
f2b7ff02d3
chore: add TernaryEmptyArrayArrayDimFetchToCoalesceRector 2023-12-21 09:46:48 +09:00
kenjis
bb9e60e916
Merge remote-tracking branch 'upstream/develop' into 4.5
Conflicts:
	phpstan-baseline.php
	system/BaseModel.php
	system/Controller.php
	system/Helpers/array_helper.php
2023-12-19 11:35:20 +09:00
kenjis
e9d1fcf986
chore: add SimplifyEmptyCheckOnEmptyArrayRector 2023-12-17 17:30:15 +09:00
kenjis
797c5d650e
chore: apply rector to files in tests/_support/ 2023-12-08 15:54:55 +09:00
kenjis
71de6c6fdc
chore: add DeclareStrictTypesRector 2023-11-30 16:14:50 +09:00
kenjis
4b923d5dbf
refactor: add declare(strict_types=1) to rector.php 2023-11-30 16:14:49 +09:00
kenjis
9dab5f12a7
Merge remote-tracking branch 'upstream/develop' into 4.5 2023-11-22 09:05:15 +09:00
kenjis
5fbef68358
chore: disable RemoveVarTagFromClassConstantRector
If we want to write @var to constants, we can write.
2023-11-21 06:31:15 +09:00
kenjis
71e4831c01
docs: add @deprecated to unused param 2023-11-03 17:03:49 +09:00
Abdul Malik Ikhsan
1de08fa47e
[Rector] Apply SingleInArrayToCompareRector 2023-10-27 13:22:26 +07:00
Abdul Malik Ikhsan
83ebb79d20
[Rector] Apply BooleanInIfConditionRuleFixerRector 2023-10-16 11:28:28 +07:00
Abdul Malik Ikhsan
576dd6853c
[Rector] Enable $rectorConfig->removeUnusedImports() 2023-10-16 06:59:56 +07:00
Abdul Malik Ikhsan
02e8805693
remove CountOnNullRector from skip list as now deprecated 2023-10-06 05:08:27 +07:00
Abdul Malik Ikhsan
ab30253a75
[PHPStan] Add @var string[] on array of string with enable StringifyStrNeedlesRector 2023-09-13 23:35:01 +07:00
Abdul Malik Ikhsan
a4ec34a50d
update parallel and skip config 2023-09-13 22:35:47 +07:00
John Paul E. Balandan, CPA
042eaaaffb
Use phpstan-codeigniter 2023-09-11 16:09:29 +08:00
kenjis
0276d89290
chore: skip the specific rule
See https://github.com/codeigniter4/CodeIgniter4/pull/7904#discussion_r1318507172
2023-09-08 17:39:55 +09:00
kenjis
f75e33d57b
chore: change PHPUnitLevelSetList::UP_TO_PHPUNIT_100 to PHPUnitSetList::PHPUNIT_100
It does not work for us.
See https://github.com/codeigniter4/CodeIgniter4/pull/7904#discussion_r1318145952
2023-09-08 17:35:27 +09:00
kenjis
94d546b9a8
chore: add system/Test/ControllerResponse.php to skip list
It caused an error.

Warning: Undefined array key 1852 in /home/runner/work/CodeIgniter4/CodeIgniter4/vendor/rector/rector/vendor/nikic/php-parser/lib/PhpParser/Internal/TokenStream.php on line 209

Error: ] Could not process
         "/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/ControllerResp
         onse.php" file, due to:
         "System error: "PhpParser\Internal\TokenStream::getIndentationBefore():
         Return value must be of type int, null returned"
         Run Rector with "--debug" option and post the report here: https://github.com/rectorphp/rector/issues/new". On line:
         209

Error: Process completed with exit code 1.
2023-09-08 17:35:27 +09:00
kenjis
d669efa9b8
chore: use PPHPUnitLevelSetList::UP_TO_PHPUNIT_100 instead of PHPUnitSetList::PHPUNIT_80 2023-09-08 17:35:27 +09:00
kenjis
ef15d933e5
chore: replace deprecated sets 2023-09-08 17:35:27 +09:00
kenjis
f6bf3d2329
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-08-07 05:53:43 +09:00
Abdul Malik Ikhsan
2c8ead62f7
[Rector] Remove skipped AssertPropertyExistsRector 2023-08-05 17:22:35 +07:00
kenjis
fcdf5da6f6
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-07-18 18:04:07 +09:00
Abdul Malik Ikhsan
eb39818489
[Rector] Enable skipped GetMockBuilderGetMockToCreateMockRector on EmailTest.php 2023-07-18 05:02:40 +07:00
kenjis
55b57df25f
chore: add system/HTTP/Request.php to skip 2023-06-27 07:14:36 +09:00
kenjis
42a31658cb
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-06-15 16:55:23 +09:00
Abdul Malik Ikhsan
f171b089a4
skip SimplifyRegexPatternRector 2023-06-15 09:50:44 +07:00
Abdul Malik Ikhsan
f658272c7b
update rector config and re-run rector 2023-06-14 23:01:49 +07:00
kenjis
eac3edac30
Merge remote-tracking branch 'upstream/develop' into 4.4
Conflicts:
	rector.php
	system/Router/AutoRouterImproved.php
2023-06-14 08:28:22 +09:00
kenjis
27729b17fd
chore: add skip rule for deprecated constructor param 2023-06-14 07:31:00 +09:00
kenjis
38b1c3b285
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-06-02 13:25:47 +09:00
Abdul Malik Ikhsan
c988fd712e
Remove ForToForeachRector and AddPregQuoteDelimiterRector and re-run rector 2023-06-02 06:55:10 +07:00
kenjis
ae2defef4e
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-03-01 15:36:51 +09:00
Abdul Malik Ikhsan
98c4c0d048
skip fixture 2023-02-28 23:08:25 +07:00
Abdul Malik Ikhsan
da9045c785
enable RemoveAlwaysTrueIfConditionRector 2023-02-28 22:58:18 +07:00
kenjis
5ae78928e8
Merge remote-tracking branch 'upstream/develop' into 4.4 2023-02-23 10:20:52 +09:00
Abdul Malik Ikhsan
85574fa7df
using @see 2023-02-23 01:15:56 +07:00
Abdul Malik Ikhsan
b7ceda5f29
temporary skip RemoveAlwaysTrueIfConditionRector as check truthy by @param doc 2023-02-23 01:13:36 +07:00
kenjis
0444608558
chore: add rule to skip 2023-02-09 08:46:23 +09:00