Compare commits

...

2 Commits

Author SHA1 Message Date
2e2a1fa12f Persist the CI-mirror's analyzer excludes and dependency upgrades
Some checks are pending
pre-commit / pre-commit (push) Waiting to run
Tests / test (3.10) (push) Waiting to run
Tests / test (3.11) (push) Waiting to run
Tests / test (3.12) (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
The ci-mirror hook regenerates these on every run and then leaves them
dirty. Pre-commit stashes the dirty tree, the hook rewrites the same files,
and restoring the stash conflicts -- which rolled back the fixes and failed
every push regardless of whether the checks themselves passed.

Committing the hook's own output makes the tree clean, so there is nothing
to stash and the collision cannot recur.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7yZz45ezmzCB89Cv5gAtZ
2026-08-14 16:13:46 +02:00
8cbcabdcae Update refactor_claude_todo.md counts after gate exemption fixes
Git-ignored files, vendored agent-skill bundles and the CI checkout dir are
now exempt, since no commit could ever fix them. Repo counts and the ranked
violation lists are regenerated accordingly; the global baseline drops from
657 to 597.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7yZz45ezmzCB89Cv5gAtZ
2026-08-14 16:03:01 +02:00
3 changed files with 34 additions and 27 deletions

View File

@ -13,14 +13,15 @@ enforced by a gate that fails the commit, not by a note anyone can ignore.
Why: a file that cannot be read in one piece forces re-reads and partial edits,
which is the single largest avoidable cost in an LLM-assisted workflow. Aim by
churn, not size alone — refactoring pays where code is read and changed often
(Fowler, *refactoring economic benefit*).
(Fowler, _refactoring economic benefit_).
## Scope in this repo
- **71 files** currently exceed 250 lines (of 222 eligible files).
- **71 files** currently exceed 250 lines (of 220 eligible files).
- **26,768 lines** sit in violation; longest file is **897 lines**.
Exempt (do NOT split these):
- generated files — `*.g.dart`, `*.freezed.dart`, `*.gr.dart`, `**/l10n/generated/**`,
anything with a `GENERATED` header
- markup — `.html`, `.css`, `.scss`
@ -32,23 +33,23 @@ Exempt (do NOT split these):
ROI = lines x commits in the last year. Work top-down; a long file nobody edits
has near-zero payoff and should not be first.
| lines | commits/yr | kind | file |
|------:|-----------:|:-----|:-----|
| 390 | 48 | code | `screen_locker/screen_lock.py` |
| 771 | 12 | code | `stronglift_replacement/workout_app/lib/screens/settings_screen.dart` |
| 897 | 8 | code | `stronglift_replacement/workout_app/lib/screens/history_screen.dart` |
| 752 | 9 | code | `stronglift_replacement/workout_app/lib/services/storage_service.dart` |
| 319 | 21 | code | `screen_locker/tests/conftest.py` |
| 480 | 12 | code | `stronglift_replacement/workout_app/test/screens/settings_screen_test.dart` |
| 633 | 9 | code | `stronglift_replacement/workout_app/lib/screens/workout_screen.dart` |
| 343 | 16 | code | `screen_locker/tests/test_init_and_log.py` |
| 370 | 14 | code | `screen_locker/_ui_flows.py` |
| 377 | 12 | code | `screen_locker/_phone_verification.py` |
| 590 | 6 | code | `stronglift_replacement/workout_app/test/services/workout_sync_service_test.dart` |
| 256 | 13 | code | `screen_locker/tests/test_adb_and_phone.py` |
| 357 | 9 | code | `screen_locker/_manual_workout_dialog.py` |
| 384 | 8 | code | `screen_locker/_shutdown.py` |
| 714 | 4 | code | `stronglift_replacement/workout_app/test/services/storage_service_test.dart` |
| lines | commits/yr | kind | file |
| ----: | ---------: | :--- | :-------------------------------------------------------------------------------- |
| 390 | 48 | code | `screen_locker/screen_lock.py` |
| 771 | 12 | code | `stronglift_replacement/workout_app/lib/screens/settings_screen.dart` |
| 897 | 8 | code | `stronglift_replacement/workout_app/lib/screens/history_screen.dart` |
| 752 | 9 | code | `stronglift_replacement/workout_app/lib/services/storage_service.dart` |
| 319 | 21 | code | `screen_locker/tests/conftest.py` |
| 480 | 12 | code | `stronglift_replacement/workout_app/test/screens/settings_screen_test.dart` |
| 633 | 9 | code | `stronglift_replacement/workout_app/lib/screens/workout_screen.dart` |
| 343 | 16 | code | `screen_locker/tests/test_init_and_log.py` |
| 370 | 14 | code | `screen_locker/_ui_flows.py` |
| 377 | 12 | code | `screen_locker/_phone_verification.py` |
| 590 | 6 | code | `stronglift_replacement/workout_app/test/services/workout_sync_service_test.dart` |
| 256 | 13 | code | `screen_locker/tests/test_adb_and_phone.py` |
| 357 | 9 | code | `screen_locker/_manual_workout_dialog.py` |
| 384 | 8 | code | `screen_locker/_shutdown.py` |
| 714 | 4 | code | `stronglift_replacement/workout_app/test/services/storage_service_test.dart` |
_(56 further files over 250 lines not listed — re-run the survey for the full set.)_

View File

@ -16,6 +16,12 @@ analyzer:
- "**/*.g.dart"
- "**/*.freezed.dart"
- "test/**"
- android/**
- ios/**
- web/**
- windows/**
- macos/**
- linux/**
linter:
rules:

View File

@ -445,10 +445,10 @@ packages:
dependency: transitive
description:
name: matcher
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
url: "https://pub.dev"
source: hosted
version: "0.12.19"
version: "0.12.20"
material_color_utilities:
dependency: transitive
description:
@ -461,10 +461,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
url: "https://pub.dev"
source: hosted
version: "1.18.0"
version: "1.19.0"
native_toolchain_c:
dependency: transitive
description:
@ -819,10 +819,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
url: "https://pub.dev"
source: hosted
version: "0.7.11"
version: "0.7.12"
typed_data:
dependency: transitive
description:
@ -907,10 +907,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.4.2"
very_good_analysis:
dependency: "direct dev"
description: