Compare commits

..

No commits in common. "2e2a1fa12fa6a41d517911c53bdf32e484d2fac3" and "dc795793911314959f1ce64d11f6bbc47ef1c80e" have entirely different histories.

3 changed files with 27 additions and 34 deletions

View File

@ -13,15 +13,14 @@ 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 220 eligible files).
- **71 files** currently exceed 250 lines (of 222 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`
@ -33,23 +32,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,12 +16,6 @@ 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: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
url: "https://pub.dev"
source: hosted
version: "0.12.20"
version: "0.12.19"
material_color_utilities:
dependency: transitive
description:
@ -461,10 +461,10 @@ packages:
dependency: transitive
description:
name: meta
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
url: "https://pub.dev"
source: hosted
version: "1.19.0"
version: "1.18.0"
native_toolchain_c:
dependency: transitive
description:
@ -819,10 +819,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
url: "https://pub.dev"
source: hosted
version: "0.7.12"
version: "0.7.11"
typed_data:
dependency: transitive
description:
@ -907,10 +907,10 @@ packages:
dependency: transitive
description:
name: vector_math
sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
url: "https://pub.dev"
source: hosted
version: "2.4.2"
version: "2.2.0"
very_good_analysis:
dependency: "direct dev"
description: