{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"CaptureStore.store (cyclomatic 29): CaptureStore.store has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/java/com/ethereal/openscan/CaptureStore.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"179f03e4c92b34918f44d2176526662900828ed0029466021e9022921348e12e"}},{"ruleId":"D1","level":"warning","message":{"text":"CropScreenState.updatePolygon (cyclomatic 25): CropScreenState.updatePolygon has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/crop/crop_screen_state.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"411d210b12130d2bbf141ca7814ecf7751209c349b5eec4613111de8b4ae530f"}},{"ruleId":"D1","level":"warning","message":{"text":"CropScreenState.checkPolygon (cyclomatic 17): CropScreenState.checkPolygon has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/crop/crop_screen_state.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf746829a9003732ffbbf6d1641a9267a0b30b974622ec7f20ff6231e8d0794"}},{"ruleId":"D1","level":"warning","message":{"text":"OSButton.build (cyclomatic 16): OSButton.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/Widgets/os/os_components.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"878e34bbda3e5b4390b8d5405777dc0a766aee0d7a0e7757d82620b52d65fd2f"}},{"ruleId":"D2","level":"warning","message":{"text":"CropScreenState.updatePolygon (cognitive 48): CropScreenState.updatePolygon has cognitive complexity 48 (threshold 15). Drivers by points: if/else 24 (48 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/view/screens/crop/crop_screen_state.dart holds 2 of the 7 methods over the threshold \u2014 including the worst \u2014 and 34 of the 85 points over it (40%), 2.1\u00D7 the next-largest file (android/app/src/main/java/com/ethereal/openscan/CaptureStore.java at 16). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/crop/crop_screen_state.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9b2988bd14eb5f0ce9b1cd200c23fe90b177dcbaf92065b996d03eec3056c3"}},{"ruleId":"D2","level":"warning","message":{"text":"CaptureStore.store (cognitive 31): CaptureStore.store has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 5 (7 pts), loops 5 (6 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/java/com/ethereal/openscan/CaptureStore.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"506512d983b122ce671b482f5eba2355ef676cf112228486aed9733c3c40a25b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ExportSheetState._run (cognitive 30): _ExportSheetState._run has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 4 (10 pts), loops 1 (3 pts), error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/Widgets/view/export_bottomsheet.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f58ef1cc222335765ce504fde1afd7f6a852fef49bbe4a206ec20393967098"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectoryCubit._applyFilter (cognitive 27): DirectoryCubit._applyFilter has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (25 pts), error handling 1 (2 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/logic/cubit/directory_cubit.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"3927408b8e720f080458a86c363f2d20c5f6f050a13c752732c0ae079f0e2b07"}},{"ruleId":"D2","level":"warning","message":{"text":"_LiveScanScreenState._onCapturePressed (cognitive 22): _LiveScanScreenState._onCapturePressed has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, ternaries 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/live_scan/live_scan_screen.dart"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25a59dc77b6c2e2c3d3ca7c88ae8327a0e26e06847eab0400ddb53cb80a69a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CropScreenState.checkPolygon (cognitive 16): CropScreenState.checkPolygon has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/view/screens/crop/crop_screen_state.dart holds 2 of the 7 methods over the threshold \u2014 including the worst \u2014 and 34 of the 85 points over it (40%), 2.1\u00D7 the next-largest file (android/app/src/main/java/com/ethereal/openscan/CaptureStore.java at 16). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/crop/crop_screen_state.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8afc63a1af584b83da412937d3a151ba2ae43d80a016f19bf9bb7135a1e4ef"}},{"ruleId":"D2","level":"warning","message":{"text":"_LiveScanScreenState._reviewCapture (cognitive 16): _LiveScanScreenState._reviewCapture has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/live_scan/live_scan_screen.dart"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd22461e46e83716b663fc3586db9c8450ffc7edd7aed1b2bb019916da81e15"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _LiveScanScreenState: ClassTooLong \u2014 928 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 528 over it, 2.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/live_scan/live_scan_screen.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"260b13b16e054dd9076cb562f922d78fc65f034db76c57730cb5c7978f207c68"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: live_scan/live_scan_screen.dart: FileTooLong \u2014 1062 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: _LiveScanScreenState (107-1663). The bar is 500 significant lines; this is 562 over it, 2.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/live_scan/live_scan_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa0652a26a689c63c9d886859835ece14c4afecb841a694dd462472e96c20ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppTheme._build: MethodTooLong \u2014 _build runs 190 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 90 over it, 1.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/theme/appTheme.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e608e2aa7c2da480e325d88d2847cab915815f54e4cde3026e547a8183eb0179"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CropImageState.build: MethodTooLong \u2014 build runs 176 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 76 over it, 1.76\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/crop/crop_screen.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd68824c845fa161806bd69efe70322f7c68161513d7afae8db6586d98a2fa8c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _LiveScanScreenState: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/live_scan/live_scan_screen.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"24164bdb4b256f78ae7ec853473f423c6b0737c632abc53e9c52bb3c1291974e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/home_screen.dart: FileTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: _HomeScreenState (35-741). The bar is 500 significant lines; this is 136 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/home_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4506056ca9eccba560965c1889eab0ac1f60a8312f129d9e14091b3c42b22aa8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileOperations: ClassTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 107 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e16c426c536284f9514b29bcc2d6d4f23c74c753e89c3fa85564ad1529d70e07"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _HomeScreenState: ClassTooLong \u2014 479 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 79 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/home_screen.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01479839624b1a3e46ee1601ca5dc02eea2c84b870836e700c99420c25f95fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CropScreenState.updatePolygon: MethodTooLong \u2014 updatePolygon runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/crop/crop_screen_state.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3870e03f48deea2b8dc5253ceb0947ff45a3f670a27ec41c50e5124d232c50ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/file_operations.dart: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: FileOperations (23-968). The bar is 500 significant lines; this is 54 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1640172b5328d2bb0fb9149d4cd8e8afb68687116f0a9c792aa2c796f5a9afc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CropScreenState: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 34 over it, 1.09\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/crop/crop_screen_state.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc90943472a8227476e3c4157d5193f03bae9fea36ae0013020a9c0083c43ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileOperations: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5e8d44c26f71ee04e038813d7c9ded8cee5b66005469634e6376c22d622ecb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/view_screen.dart: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: _ViewScreenState (37-554). The bar is 500 significant lines; this is 11 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/view_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4698b9fbaa92a8d61b77961f3f0304fa11d908ec2a19cb04abfb54b8c44ca925"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/view/Widgets/loading.dart:13-42 | lib/view/screens/home_screen.dart:880-907 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/Widgets/loading.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c623988f0e05747d4c71f7dbd801eadcd6d6cc2006d3b1abbda8d8ba1aabb80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/core/theme/os_colors.dart:54-71 | lib/core/theme/os_colors.dart:73-90 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/theme/os_colors.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8a0a350dc4404641da81eda017fc618971dd650ce2e7438a1277986159a312"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/view/screens/settings_screen.dart:91-118 | lib/view/screens/settings_screen.dart:120-148 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/settings_screen.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab95be79095f1cf97f2300c315a54b085eb12098a9d1fa57e5f09e31b5716c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/view/Widgets/preview/preview_bottom_bar.dart:82-102 | lib/view/screens/crop/crop_screen.dart:537-558 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/Widgets/preview/preview_bottom_bar.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"576cbd7f35b97b2925c178f7ab9c51b7215d779c310d34c494e313b17cbfde67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/view/screens/settings_screen.dart:70-77 | lib/view/Widgets/view/export_bottomsheet.dart:163-168 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/settings_screen.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0037392eb679561a50d4ded697e4ba6ed3e34fdb167ea98c625a09d072731a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/view/Widgets/loading.dart:19-34 | lib/view/screens/home_screen.dart:886-900 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/view/Widgets/loading.dart:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/Widgets/loading.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e2a92c177abfcf3f12daf986c689c0b239df6dd1af04577561fb677e2a3140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/view/screens/about_screen.dart:132-145 | lib/view/screens/settings_screen.dart:238-250 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/view/screens/about_screen.dart:132\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/about_screen.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3482e126537cc49f6fb55dc3bdd54531c1f37b02433d92ff369769257d13177e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/view/screens/demo_screen.dart:71-82 | lib/view/screens/live_scan/live_scan_screen.dart:941-952 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/view/screens/demo_screen.dart:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/demo_screen.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"af89b784e11f0d563c1f04e28996d1a7fee4d7857de24fced5118b75572d670e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FileOperations (LCOM4 8): FileOperations\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1517d18d00414bc8fe199383505a84e0aee7bde483350aabaf29d8f2620906bf"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 29 significant file(s) lose their only recent owner: lib/view/screens/live_scan/live_scan_screen.dart, lib/core/data/file_operations.dart, lib/view/screens/home_screen.dart, lib/view/screens/crop/crop_screen_state.dart, lib/view/screens/view_screen.dart, lib/logic/cubit/directory_cubit.dart, lib/view/screens/crop/crop_screen.dart, lib/core/cv/contours.dart (\u002B21 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b563311a85f52816dd9256ee9072cfd601bf21d2602cbacd50e84189ab9cf4dc"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060lib/main.dart\u0060 makes this repository a deployable product (line 16)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8716bba673c3075887c415d08f1c9dd48ba3b1fdb124bf3e079c529efec988ec"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (15211 LoC, 93 module-visible types across 21 directories) overshoots its size bounds. 1 of 3 build unit(s) (Gradle, Xcode, pub) overshoot their size bounds, lowering Project Cohesion to 3.3/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AppLocalizations (193 abstract methods): \u0060AppLocalizations\u0060 declares 193 abstract methods: \u0060about\u0060, \u0060cancel\u0060, \u0060save\u0060, \u0060open\u0060, \u0060share\u0060, \u0060export\u0060, \u0060clear\u0060, \u0060delete\u0060, \u0060rename\u0060, \u0060crop\u0060, \u0060done\u0060, \u0060next\u0060, \u0060skip\u0060, \u0060loading\u0060, \u0060home\u0060, \u0060demo\u0060, \u0060quality\u0060, \u0060version\u0060, \u0060select\u0060, \u0060select_all\u0060, \u0060select_pages\u0060, \u0060reorder_pages\u0060, \u0060try_again\u0060, \u0060undo\u0060, \u0060not_now\u0060, \u0060open_settings\u0060, \u0060more\u0060, \u0060sort\u0060, \u0060settings\u0060, \u0060tutorial\u0060, \u0060library\u0060, \u0060scan\u0060, \u0060image\u0060, \u0060images\u0060, \u0060developers\u0060, \u0060view_on_linkedin\u0060, \u0060tutorial_title\u0060, \u0060cant_be_undone\u0060, \u0060rotate\u0060, \u0060rotate_left\u0060, and 153 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/l10n/app_localizations.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1fe7ecfd7d0347f61e13639799b7efef931a53b69580a81c3951e891578014f"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060resetForTesting\u0060 is async and calls deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/database_helper.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbf6fcec61fc48f21e267775120d87757671ab556d59f45f9bd9f17bd3e6d30"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060deleteTemporaryImages\u0060 is async and calls deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d0ddc050dd84357e308ec37cc63f66a0336ca5437ec0d25643dc08bb871a38"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060createPdf\u0060 is async and calls readAsBytesSync, writeAsBytesSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f9f6a09760cd8447a33b84e191a5bb537bb192aac3c397985d269296144372"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060exportDirectory\u0060 is async and calls createSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3d69bfb99c7e28a18366fa56c8ab39c06c743cc3a7930be0a621e176d1b714"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060cropImage\u0060 is async and calls copySync, deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/logic/cubit/directory_cubit.dart"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"75018ed0bf9091e3f2183e277c7b69ea95473500aceae15ee9fefde9916219b4"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_applyFilter\u0060 is async and calls copySync, deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/logic/cubit/directory_cubit.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"831504f078dbd5eda04a4a62d3e79837c1936905c0c1a55eb8a4d7e35aea8275"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060deleteImage\u0060 is async and calls deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/logic/cubit/directory_cubit.dart"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df48ecb805ab1792ad5b194ce31c13bda452ec077a593aca0a7ddaa95601042"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_deleteSelected\u0060 is async and calls deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/home_screen.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"547877312839a103aec42f3f559bcab7c4de3e13821d1f1aa2a6fef106ac46f1"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_reviewCapture\u0060 is async and calls deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/live_scan/live_scan_screen.dart"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c46490d3472370b6735f5e2c70f506d7d8de28d38ecfed78cf79e0f8888f7d"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_measureCache\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/settings_screen.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8edb4cf0692edd8d783676b4a9b8311555d8d4acae058ee0f08048516fcaa7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_clearCache\u0060 is async and calls listSync, deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/view/screens/settings_screen.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afc1fdbbded72a8e8381efe32e488f5a9d7da59cd31ea87d6b1efde928c808f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/database_helper.dart"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"856afd19ee09d1b0aede4010732b48cda431c2b5ca16eede158fcce038b763e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/data/file_operations.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbc724e6323ea2359fcd57c3507d08d3c231e19d252331dcdecdecf7b9ec103"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/core/cv/perspective_crop.dart"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a36382023e5eb779668b6926d03d1b516ee49103b0f67f8ddbaeeac170d072"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override null safety: ~16.4 \u0060!\u0060 null assertions per 1k Dart product lines \u2014 246 across the 14981 line(s) of the 54 Dart file(s) read (generated, test and example code not counted; a file opted out with a \u0060// @dart=\u0060 comment below 2.12 counts once). Densest: lib/logic/cubit/directory_cubit.dart (58), lib/view/screens/crop/crop_screen_state.dart (30), lib/view/Widgets/cropper/polygon_painter.dart (24). Each one tells the analyzer to trust the author about null and becomes a \u0060Null check operator used on a null value\u0060 the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"739a6ba910818bd17cd25bf02e82a025de9a49819c743d2340aeab96558fda89"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}