mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-28 03:49:13 +01:00
Compare commits
2 Commits
dc79579391
...
2e2a1fa12f
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e2a1fa12f | |||
| 8cbcabdcae |
@ -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,
|
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
|
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
|
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
|
## 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**.
|
- **26,768 lines** sit in violation; longest file is **897 lines**.
|
||||||
|
|
||||||
Exempt (do NOT split these):
|
Exempt (do NOT split these):
|
||||||
|
|
||||||
- generated files — `*.g.dart`, `*.freezed.dart`, `*.gr.dart`, `**/l10n/generated/**`,
|
- generated files — `*.g.dart`, `*.freezed.dart`, `*.gr.dart`, `**/l10n/generated/**`,
|
||||||
anything with a `GENERATED` header
|
anything with a `GENERATED` header
|
||||||
- markup — `.html`, `.css`, `.scss`
|
- 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
|
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.
|
has near-zero payoff and should not be first.
|
||||||
|
|
||||||
| lines | commits/yr | kind | file |
|
| lines | commits/yr | kind | file |
|
||||||
|------:|-----------:|:-----|:-----|
|
| ----: | ---------: | :--- | :-------------------------------------------------------------------------------- |
|
||||||
| 390 | 48 | code | `screen_locker/screen_lock.py` |
|
| 390 | 48 | code | `screen_locker/screen_lock.py` |
|
||||||
| 771 | 12 | code | `stronglift_replacement/workout_app/lib/screens/settings_screen.dart` |
|
| 771 | 12 | code | `stronglift_replacement/workout_app/lib/screens/settings_screen.dart` |
|
||||||
| 897 | 8 | code | `stronglift_replacement/workout_app/lib/screens/history_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` |
|
| 752 | 9 | code | `stronglift_replacement/workout_app/lib/services/storage_service.dart` |
|
||||||
| 319 | 21 | code | `screen_locker/tests/conftest.py` |
|
| 319 | 21 | code | `screen_locker/tests/conftest.py` |
|
||||||
| 480 | 12 | code | `stronglift_replacement/workout_app/test/screens/settings_screen_test.dart` |
|
| 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` |
|
| 633 | 9 | code | `stronglift_replacement/workout_app/lib/screens/workout_screen.dart` |
|
||||||
| 343 | 16 | code | `screen_locker/tests/test_init_and_log.py` |
|
| 343 | 16 | code | `screen_locker/tests/test_init_and_log.py` |
|
||||||
| 370 | 14 | code | `screen_locker/_ui_flows.py` |
|
| 370 | 14 | code | `screen_locker/_ui_flows.py` |
|
||||||
| 377 | 12 | code | `screen_locker/_phone_verification.py` |
|
| 377 | 12 | code | `screen_locker/_phone_verification.py` |
|
||||||
| 590 | 6 | code | `stronglift_replacement/workout_app/test/services/workout_sync_service_test.dart` |
|
| 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` |
|
| 256 | 13 | code | `screen_locker/tests/test_adb_and_phone.py` |
|
||||||
| 357 | 9 | code | `screen_locker/_manual_workout_dialog.py` |
|
| 357 | 9 | code | `screen_locker/_manual_workout_dialog.py` |
|
||||||
| 384 | 8 | code | `screen_locker/_shutdown.py` |
|
| 384 | 8 | code | `screen_locker/_shutdown.py` |
|
||||||
| 714 | 4 | code | `stronglift_replacement/workout_app/test/services/storage_service_test.dart` |
|
| 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.)_
|
_(56 further files over 250 lines not listed — re-run the survey for the full set.)_
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,12 @@ analyzer:
|
|||||||
- "**/*.g.dart"
|
- "**/*.g.dart"
|
||||||
- "**/*.freezed.dart"
|
- "**/*.freezed.dart"
|
||||||
- "test/**"
|
- "test/**"
|
||||||
|
- android/**
|
||||||
|
- ios/**
|
||||||
|
- web/**
|
||||||
|
- windows/**
|
||||||
|
- macos/**
|
||||||
|
- linux/**
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@ -445,10 +445,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: matcher
|
name: matcher
|
||||||
sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
|
sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.12.19"
|
version: "0.12.20"
|
||||||
material_color_utilities:
|
material_color_utilities:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -461,10 +461,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: meta
|
name: meta
|
||||||
sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349"
|
sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.18.0"
|
version: "1.19.0"
|
||||||
native_toolchain_c:
|
native_toolchain_c:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -819,10 +819,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: test_api
|
name: test_api
|
||||||
sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e"
|
sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.11"
|
version: "0.7.12"
|
||||||
typed_data:
|
typed_data:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -907,10 +907,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: vector_math
|
name: vector_math
|
||||||
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
|
sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.0"
|
version: "2.4.2"
|
||||||
very_good_analysis:
|
very_good_analysis:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user