bert.hausmans
a043b88bc0
chore: install rector with accept-current-state baseline
Installs rector/rector ^2.0 (v2.4.2) + driftingly/rector-laravel
^2.0 as dev-dependencies. Configures PHP 8.2 language sets + safe
quality rule sets (CODE_QUALITY, DEAD_CODE, EARLY_RETURN,
TYPE_DECLARATION, PRIVATIZATION) + Laravel-specific sets
(LARAVEL_CODE_QUALITY, LARAVEL_COLLECTION).
Dry-run baseline: 487 rule-applications across 357 files. NO
changes applied in this commit — adoption is incremental via per-
set sprints documented in BACKLOG.md.
Top rules by volume:
103 AddClosureVoidReturnTypeWhereNoReturnRector
71 AddArrowFunctionReturnTypeRector
51 AppToResolveRector
34 ConvertStaticToSelfRector
27 ReadOnlyClassRector
18 NullToStrictStringFuncCallArgRector
16 ReturnBinaryOrToEarlyReturnRector
16 MakeModelAttributesAndScopesProtectedRector
13 RemoveUnusedVariableAssignRector
13 OptionalToNullsafeOperatorRector
13 FlipTypeControlToUseExclusiveTypeRector
Composer scripts:
- composer rector — DRY-RUN (default)
- composer rector:apply — apply changes
- composer rector:clear-cache — clear Rector cache
Dry-run exits with code 2 when suggestions exist (Rector convention,
not an error state). Apply-mode exits 0 on clean runs.
Documentation: /dev-docs/RECTOR.md added; CLAUDE.md updated.
Backlog: per-set application sprints seeded
(TECH-RECTOR-01..05 + TECH-RECTOR-CI). DEAD_CODE (smallest scope)
and TYPE_DECLARATION (biggest volume, will help reduce Larastan
baseline) are the natural first two.
Disruptive sets deliberately deferred:
- LaravelLevelSetList::UP_TO_LARAVEL_* — broad bulk upgrades
- SetList::NAMING — high-churn variable renames
- SetList::INSTANCEOF — substantial logic changes
Memory limit 2G (dry-run completed within it).
No production behavior change. No code modified — Rector ran
dry-run only.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 03:50:41 +02:00
..
2026-04-23 17:21:15 +02:00
2026-04-23 20:34:34 +02:00
2026-04-24 11:51:28 +02:00
2026-04-25 03:00:20 +02:00
2026-04-24 13:08:00 +02:00
2026-04-25 03:00:20 +02:00
2026-04-16 02:42:53 +02:00
2026-04-25 03:50:41 +02:00
2026-04-23 17:27:08 +02:00
2026-04-23 20:34:34 +02:00
2026-04-24 00:20:15 +02:00
2026-04-24 10:18:44 +02:00
2026-04-17 17:06:53 +02:00
2026-04-17 17:06:53 +02:00
2026-04-25 03:46:27 +02:00
2026-04-15 08:21:44 +02:00
2026-04-15 08:21:44 +02:00
2026-04-25 03:50:41 +02:00
2026-04-25 03:00:20 +02:00
2026-04-15 08:21:44 +02:00
2026-04-15 08:21:44 +02:00
2026-04-15 08:44:10 +02:00
2026-04-16 22:21:22 +02:00
2026-04-14 19:04:19 +02:00
2026-04-14 01:23:47 +02:00