[Feature] lib/services has 93 flat files and a parts/ directory mixing four libraries #632
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck#632
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found in the pre-publication architecture review. Relates to #518, which established that the
partsplit quieted the size gate; this is the second cost of that same split.Evidence:
ls lib/services/*.dart | wc -l→ 93 files flat in one directory, alongside eight subdirectories that do follow the convention (git/31,privacy/35,cve/7,s3/,cvss/,net/,info_safety/,finding_templates/33). The inconsistency is demonstrable:lib/services/cve_search_service.dartandcve_transport*.dart(4 files) sit flat whilelib/services/cve/exists. Also flat:markdown_*(9),finding_*(6),image_*(5), the mastg/maswe/wstg/miauw catalogues (9),ai_*(4).And
lib/services/parts/(23 files) is not a subject but a mechanism: it holds the internalparts of four unrelated libraries mixed together —file_service_*(9),marp_html_service_*(11),markdown_service_parse_*(3),slide_quality_analyzer_density.dart.Why this matters now: an outsider navigates an unfamiliar repository with
ls, not withSOURCE_MAP.md.lib/services/parts/answers the question "what does this belong to" with "to a language construct". This can wait until after publication, but it gets more expensive once there are open pull requests from third parties, because a directory move conflicts with everything.Proposal: one step — dissolve
lib/services/parts/by placing eachpartbeside its library (lib/services/marp_html/,lib/services/file/, and so on). Pure movement plus updatedpartpaths, and it makes the directory an answer to "which subject" again. Grouping the 93 flat files can follow later, or never.Opgepakt. Tak:
refactor/services-parts-opsplitsen-632. Reikwijdte:lib/services/parts/oplossen — elkepartnaar een onderwerpmap naast zijn library (file/,marp_html/,markdown_parse/,slide_quality/), depart- enpart of-paden bijwerken, en SOURCE_MAP volgen. Pure verplaatsing, geen gedragswijziging; compiler en tests bewaken het. Ik land snel om het conflictvenster klein te houden.Gepauzeerd door een toolchain-uitval, niet door het werk. De refactor is klaar en lokaal gecommit (verplaatsing van alle
parts/naarfile/,marp_html/,markdown_parse/,slide_quality/, met de hardgecodeerde paden incheck_audience_boundary.dart,network_sink_guard_test.darten de docs mee), maar niet gepusht: de Dart/Flutter-toolchain van de machine viel mid-sessie uit — de dart-SDK-cache verdween en flutter segfault bij zelfherstel, precies de instabiele toolchain uit #598.dart analyze lib/en de SOURCE_MAP-poort waren groen tot dat moment.Zonder werkende
make checkland ik dit niet. Zodra de toolchain hersteld is (de openstaande stap van #598), draait de gate en gaat het de deur uit. Blijftin-progress.