{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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":"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":"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":"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":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"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":"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":"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":"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":"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":"ControlID.init (cyclomatic 126): ControlID.init has cyclomatic complexity 126 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/DDC/DDC.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f63b6b602d348c42e0a2d97827ca8dffb2e45c1bfd9f25c5c83fd93776d5f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.listenForScreenConfigurationChanged (cyclomatic 94): AppDelegate.listenForScreenConfigurationChanged has cyclomatic complexity 94 (threshold 15). Of this number, 88 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. 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":"Lunar/AppDelegate.swift"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f10b91d5975af4d05a6608f042c1a631492af4cd4f2f2537b775f152905260"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.adjustBrightness (cyclomatic 68): DisplayController.adjustBrightness has cyclomatic complexity 68 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2949}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb5cd28f3f76a68f1167b7b465149d6e602df94fc3ffd7458e5d6f952cbdf55"}},{"ruleId":"D1","level":"warning","message":{"text":"CLI.swift.handleDisplays (cyclomatic 65): CLI.swift.handleDisplays has cyclomatic complexity 65 (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":"Lunar/Data/CLI.swift"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a000c5d43761cd8c973829565ffa8c179e00c99ea77d45d7396a6ed2dbd43250"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.handle (cyclomatic 64): AppDelegate.handle has cyclomatic complexity 64 (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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee0fad4e7f1cb89b0aa78ac9b22bbbd58cd7c7803e12bcf368dcfd39d00f681"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayViewController.update (cyclomatic 52): DisplayViewController.update has cyclomatic complexity 52 (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":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcf539a25268c6d92e78c128e9eed91e8e106e517ed13591b7ecd8835207fb0"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayServices.run (cyclomatic 52): DisplayServices.run has cyclomatic complexity 52 (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":"Lunar/Data/CLI.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"5012d23ed946f8660a61686d0b2980d0d90df14e679b48384ec466f8998db6b8"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.init (cyclomatic 50): Display.init has cyclomatic complexity 50 (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":"Lunar/Data/Display.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd7959673d5c6c01372ed7b713c7ac49594095325fa8b27b98bcc97fd1d86bb"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.application (cyclomatic 49): AppDelegate.application has cyclomatic complexity 49 (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":"Lunar/AppDelegate.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae51fc47b7b7f2ce77f36f443f1208d5b42982143c9581840a203fa639cee3e3"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.brightness (cyclomatic 49): Display.brightness has cyclomatic complexity 49 (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":"Lunar/Data/Display.swift"},"region":{"startLine":2172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e56ec83895506da38959cd40947be743a2b138be805919208c98a6386e086d8"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.initObservers (cyclomatic 46): DisplayController.initObservers has cyclomatic complexity 46 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f00e0de38fffdec7cb5d209cd6ce1aafdc3917c0512a4b469cc12ab916cf49"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlChoiceViewController.testControlWrite (cyclomatic 45): ControlChoiceViewController.testControlWrite has cyclomatic complexity 45 (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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08f9861ddf2ca7ff85c30287464ae6ca1cab2c75f5195db75259f2e8ba3e613"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.getBestControl (cyclomatic 45): Display.getBestControl has cyclomatic complexity 45 (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":"Lunar/Data/Display.swift"},"region":{"startLine":5152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8556af92437e56dc0195e6e470b7edae946f84fe3a37ba7c69ff78b3a1f95472"}},{"ruleId":"D1","level":"warning","message":{"text":"Hotkey.showOsd (cyclomatic 42): Hotkey.showOsd has cyclomatic complexity 42 (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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50010625151ea4a88a05c727ba242c616a41e31b450d0953821e63c1f1582df"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.handleAutoBlackOut (cyclomatic 42): DisplayController.handleAutoBlackOut has cyclomatic complexity 42 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"8feb06e43f8276e1b1130a3ad70f4de42f24ca70578d7292c19dcb1e9a41a492"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.adjust (cyclomatic 41): AppDelegate.adjust has cyclomatic complexity 41 (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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"653f044c2512cdaee925051a8c118ee50e5876c12b56c5d9441facbc4653ed4d"}},{"ruleId":"D1","level":"warning","message":{"text":"Schedule.display (cyclomatic 39): Schedule.display has cyclomatic complexity 39 (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":"Lunar/Views/Schedule.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee95bfefc49d14a8897002e242c0f457489fd2438bd89c3729bdd66aa0d6e97f"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.handleBrightnessKeyAction (cyclomatic 32): AppDelegate.handleBrightnessKeyAction has cyclomatic complexity 32 (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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9e89eead7c76c8a212da662e5d49db753ca3fa3cb059a7c9570b84b06a10a0"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayViewController.updateControlsButton (cyclomatic 31): DisplayViewController.updateControlsButton has cyclomatic complexity 31 (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":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf266d4345dadee5ebd402c3941f863db656ae71d1e74bf23cea27b3c20909a"}},{"ruleId":"D1","level":"warning","message":{"text":"Lunar.globalOptions (cyclomatic 30): Lunar.globalOptions has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":2071}}}],"partialFingerprints":{"codehealthFindingId/v1":"4329a1c34a561c239cb5094595cd6528ffcb5040d7414e5c87cccb90ad446b66"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.init (cyclomatic 30): Display.init has cyclomatic complexity 30 (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":"Lunar/Data/Display.swift"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21f37750ea791de8b22b12abd3a405bf2fbd4eb42b4c57c4dedb0346bc3a968"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayRowView.sdrXdrSelector (cyclomatic 30): DisplayRowView.sdrXdrSelector has cyclomatic complexity 30 (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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53d58d76e2d13757e4349579d9dcb0f207e689fbfc5f15cad18880ab0a4aec1"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlChoiceViewController.testDisplay (cyclomatic 28): ControlChoiceViewController.testDisplay has cyclomatic complexity 28 (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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd1221d92e8625311647dcc12a909bd5211d6d5c18f819a3c091b481ed5710b"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.control (cyclomatic 28): Display.control has cyclomatic complexity 28 (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":"Lunar/Data/Display.swift"},"region":{"startLine":3342}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7f831b3e5abc72a128e96a5ea94ce0d87e8f00436abfdcaadcdcc204d0318b"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.observeBrightnessChangeDS (cyclomatic 28): Display.observeBrightnessChangeDS has cyclomatic complexity 28 (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":"Lunar/Data/Display.swift"},"region":{"startLine":4233}}}],"partialFingerprints":{"codehealthFindingId/v1":"86faf9a35e78dd59ba565e3843b3829dc3268b59ce07072b546e591e96503bff"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.appBrightnessContrastOffset (cyclomatic 28): DisplayController.appBrightnessContrastOffset has cyclomatic complexity 28 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"90aa3f72ee49e47c74d344cd07811b3f46b11a20a8a3b57f9592e3d378f7a8d3"}},{"ruleId":"D1","level":"warning","message":{"text":"DDC.write (cyclomatic 27): DDC.write has cyclomatic complexity 27 (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. This is NOT this file\u0027s highest cyclomatic complexity: VideoInputSource.displayName (cyclomatic 38) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/DDC/DDC.swift"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5625f459af2c46fe924bea95a30ed3ae18b6b50000455cb15e87868feca3d5"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyButton.setup (cyclomatic 27): HotkeyButton.setup has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/HotkeyButton.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c620897635f582d60b239ef206ce76b035e055d587fbab45da07b052dbb968"}},{"ruleId":"D1","level":"warning","message":{"text":"BigSurSlider.body (cyclomatic 27): BigSurSlider.body has cyclomatic complexity 27 (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":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bce216bcf47bcd971870c746545a2f9dfe42a4d24dcaca8193d2a5c641b9a4f"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.contrast (cyclomatic 26): Display.contrast has cyclomatic complexity 26 (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":"Lunar/Data/Display.swift"},"region":{"startLine":2272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d117b0fbd0fd97097eec20782270729cd09dfdb4e4137e3eeaf4c5f822d7e2c7"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayRowView.appPresetAdaptivePaused (cyclomatic 26): DisplayRowView.appPresetAdaptivePaused has cyclomatic complexity 26 (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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"7736da5528095e7a34ba07c09779b673ebb354ec5aa107974d99511bacc03c45"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickActionsMenuView.content (cyclomatic 26): QuickActionsMenuView.content has cyclomatic complexity 26 (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":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"d057e5b3afaa36d57393dfe5c190245fee9edd20b9b588ed005669487fecba0b"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.displayInfoDictPartialMatchScore (cyclomatic 26): DisplayController.displayInfoDictPartialMatchScore has cyclomatic complexity 26 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e461a7cd07d253df316f6d2ea5768a1fe8242d9584a5c7afcd619aa0f42dd515"}},{"ruleId":"D1","level":"warning","message":{"text":"HotkeyView.recordView (cyclomatic 26): HotkeyView.recordView has cyclomatic complexity 26 (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":"Lunar/Views/HotKeyView.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2b4ca0e8bb0aff2fa31a570d54633cd35113ac863874cd4ae2464326f30d3d"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.handleCLI (cyclomatic 25): AppDelegate.handleCLI 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"af59cdb4258dd37c5aa2bc54661632dae98feb15fefd407250f771be98ee92cd"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cyclomatic 25): AppDelegate.applicationDidFinishLaunching has cyclomatic complexity 25 (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":"Lunar/AppDelegate.swift"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59bf4ce5df071092024a7fe56e28379d8e32d4379f0fe204285417cc3703bef"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.powerOff (cyclomatic 25): Display.powerOff 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":"Lunar/Data/Display.swift"},"region":{"startLine":4837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9092543349dda42f15ef81e9cd68231a054505c088f39e1ecae8fbc60071264f"}},{"ruleId":"D1","level":"warning","message":{"text":"CLI.swift.getFilteredDisplays (cyclomatic 25): CLI.swift.getFilteredDisplays has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: ForgivingEncodable.encode (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4fdcbe62badbb64e5f1e8dc15ff792ee765e2675dc7556bd09bc530776b7ed"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.windowWillClose (cyclomatic 24): AppDelegate.windowWillClose has cyclomatic complexity 24 (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":"Lunar/Controllers/ModernWindowController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0158f94721229e4ef6c205d53c3d91cb358b9b248a89eb7a253d3e67fb4c661"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.active (cyclomatic 24): Display.active has cyclomatic complexity 24 (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":"Lunar/Data/Display.swift"},"region":{"startLine":2558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e60b6bbd38bd5a3882ae19a01fe570e408ddbf4f9aeea6544fdd7e7ae923de"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.shade (cyclomatic 24): Display.shade has cyclomatic complexity 24 (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":"Lunar/Data/Display.swift"},"region":{"startLine":4993}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d6e41a4ff133e1ae771de11cba19042fc2c4ed0e2808c82d28f01be8be1c57"}},{"ruleId":"D1","level":"warning","message":{"text":"BrightnessContrastChartView.initGraph (cyclomatic 24): BrightnessContrastChartView.initGraph has cyclomatic complexity 24 (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":"Lunar/Views/BrightnessContrastChartView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"5167ff2992ff43ab7a97111c60bd8e2b726ce23559ddf84451c003a8bedb1720"}},{"ruleId":"D1","level":"warning","message":{"text":"GammaControl.fluxChecker (cyclomatic 23): GammaControl.fluxChecker has cyclomatic complexity 23 (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":"Lunar/Control/GammaControl.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"239e82c5005167879691d851fd2e83e9c8355395184ed8937602ef1b565b50ba"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlChoiceViewController.testControlRead (cyclomatic 23): ControlChoiceViewController.testControlRead has cyclomatic complexity 23 (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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5e37b533cccd8e09eda137cdce0de573b719e099153c362123cba548db0f1e"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.preciseBrightness (cyclomatic 23): Display.preciseBrightness has cyclomatic complexity 23 (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":"Lunar/Data/Display.swift"},"region":{"startLine":2036}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da828481c36109f1e3c016545c604ca1e9f12666e22dbf358e76904c4b55fc3"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.preciseBrightnessContrast (cyclomatic 23): Display.preciseBrightnessContrast has cyclomatic complexity 23 (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":"Lunar/Data/Display.swift"},"region":{"startLine":4047}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00dcab43b51ceb9295e881c876e63e30f1685474be1c0f1562781d03df9afa1"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.recomputeAllDisplaysBrightness (cyclomatic 23): DisplayController.recomputeAllDisplaysBrightness has cyclomatic complexity 23 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6208bea9c858dae4ce1ddf22463c31c73d7524322c581138892b1c72667f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModernWindow.keyDown (cyclomatic 23): ModernWindow.keyDown has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ModernWindow.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1358faa04ba0dff11e4a2d360e3d142db7256d9b8e26394a3cf3a3c72a989129"}},{"ruleId":"D1","level":"warning","message":{"text":"CLI.swift.printDisplay (cyclomatic 23): CLI.swift.printDisplay has cyclomatic complexity 23 (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. This is NOT this file\u0027s highest cyclomatic complexity: ForgivingEncodable.encode (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06a3df39d82d2887142659c2dd2f99ba78c14b986878d3840d7d6f4ca547e14"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.activateUIElement (cyclomatic 22): AppDelegate.activateUIElement has cyclomatic complexity 22 (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":"Lunar/AppDelegate.swift"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"817781ffb972aeb7d237097b4c61e5ab5307772407b17deca58004025adb22d2"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.setGamma (cyclomatic 22): Display.setGamma has cyclomatic complexity 22 (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":"Lunar/Data/Display.swift"},"region":{"startLine":6342}}}],"partialFingerprints":{"codehealthFindingId/v1":"9259b40c60fab2827b2bb9e63f8dfcb97d5bb3d9b25badd198a9ddf8a2c20b16"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayRowView.newSdrXdrSelector (cyclomatic 22): DisplayRowView.newSdrXdrSelector has cyclomatic complexity 22 (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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0c546a6d464247ae56d4e140df1091df975f7312e845a353f05e7c61b710f9"}},{"ruleId":"D1","level":"warning","message":{"text":"Ddc.run (cyclomatic 20): Ddc.run has cyclomatic complexity 20 (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. This is NOT this file\u0027s highest cyclomatic complexity: ForgivingEncodable.encode (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdab57b7ac7ca903c906f075401c817fa865a33e9bfab973573db062a5a4ee6"}},{"ruleId":"D1","level":"warning","message":{"text":"Displays.run (cyclomatic 20): Displays.run has cyclomatic complexity 20 (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. This is NOT this file\u0027s highest cyclomatic complexity: ForgivingEncodable.encode (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f252a8a32c70ae529c4dac334cb3ac44215abe4909f75471269162aa6f04a2d"}},{"ruleId":"D1","level":"warning","message":{"text":"PowerOffButtonView.actionText (cyclomatic 20): PowerOffButtonView.actionText has cyclomatic complexity 20 (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":"Lunar/SwiftUIViews/PowerOffButtonView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9935fc5e8d24ac998cf081e88660ad7cb585b103685b44800dd1db0a8f1015"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickActionsMenuView.setMenuWidth (cyclomatic 20): QuickActionsMenuView.setMenuWidth has cyclomatic complexity 20 (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":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"9329542a220a1f52790885105374423bb482f8c6ba42592984611be16de54098"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleNativeControl.updateNits (cyclomatic 19): AppleNativeControl.updateNits has cyclomatic complexity 19 (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":"Lunar/Control/AppleNativeControl.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72531ec2875527183524cafedc3793b4f9b656e8f7c3209c86c7b9dbe7354c9"}},{"ruleId":"D1","level":"warning","message":{"text":"AppleNativeControl.setBrightness (cyclomatic 19): AppleNativeControl.setBrightness has cyclomatic complexity 19 (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":"Lunar/Control/AppleNativeControl.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca9aaaaeaa5cf847a96c1b3cb62bd00c5c36d1bc008f33478c23a9fd0480ccf"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.softwareBrightness (cyclomatic 19): Display.softwareBrightness has cyclomatic complexity 19 (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":"Lunar/Data/Display.swift"},"region":{"startLine":2860}}}],"partialFingerprints":{"codehealthFindingId/v1":"d808476d705588646ef3fb1485c78f3af9df5827fe4bee19e14867cf193f33bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.addSentryData (cyclomatic 19): Display.addSentryData has cyclomatic complexity 19 (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":"Lunar/Data/Display.swift"},"region":{"startLine":5721}}}],"partialFingerprints":{"codehealthFindingId/v1":"83aceb0b166f4caf4155ecdf4db23a83a2f9b775eded0559d835b12d524f9005"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.nightMode (cyclomatic 19): DisplayController.nightMode has cyclomatic complexity 19 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"c583f0981531b3d9b4513e858790ea6a86a3347afc64db6b605bba1086039078"}},{"ruleId":"D1","level":"warning","message":{"text":"CLI.swift.encodedValue (cyclomatic 19): CLI.swift.encodedValue has cyclomatic complexity 19 (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. This is NOT this file\u0027s highest cyclomatic complexity: ForgivingEncodable.encode (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9dd37ca8180ea655de596bd04d224249a4384ef11b4c5631da957d7af8b68a"}},{"ruleId":"D1","level":"warning","message":{"text":"Util.swift.createWindow (cyclomatic 19): Util.swift.createWindow has cyclomatic complexity 19 (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":"Lunar/Data/Util.swift"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"d091d0adb778856f10369c6142dc643f71747f99d30a8f71c0e97f2953e5d03d"}},{"ruleId":"D1","level":"warning","message":{"text":"PowerOffSoftwareIntent.perform (cyclomatic 18): PowerOffSoftwareIntent.perform has cyclomatic complexity 18 (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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a24ad3d0d764c9b23b25f1ab20d5ab49a31616e01e82d29260221e47a0ec3a"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkControl.listenForRequests (cyclomatic 18): NetworkControl.listenForRequests has cyclomatic complexity 18 (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":"Lunar/Control/NetworkControl.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f4ae39894ddc2dacc810b29cfa0b5481d64904acf055547e2d0f1e814fa7ad"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayViewController.updateDataset (cyclomatic 18): DisplayViewController.updateDataset has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84dd6380a2d343ac79e47b93f793b1d3a8d195c0a1d44c3f79a9562a829fb36"}},{"ruleId":"D1","level":"warning","message":{"text":"LunarServer.onResponse (cyclomatic 18): LunarServer.onResponse has cyclomatic complexity 18 (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. This is NOT this file\u0027s highest cyclomatic complexity: ForgivingEncodable.encode (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8c6ca1f798e6b2e12972c8de7d8ec59d4ecf2ace6ffdeeb12a656789df14f1"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.refreshBrightness (cyclomatic 18): Display.refreshBrightness has cyclomatic complexity 18 (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":"Lunar/Data/Display.swift"},"region":{"startLine":6162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e74824314695546719b4baf4cef415a2712bdf8cf1fbcfa9a52546b34388fda"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickActionsMenuView.footer (cyclomatic 18): QuickActionsMenuView.footer has cyclomatic complexity 18 (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":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e279faee8280ad1479e0ef36bb4ecd84d451975f8deb2ea9bcfa7478b0b2bac"}},{"ruleId":"D1","level":"warning","message":{"text":"AdaptiveModeButton.validate (cyclomatic 18): AdaptiveModeButton.validate has cyclomatic complexity 18 (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":"Lunar/Views/AdaptiveModeButton.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"692c9283049f818ddd1adf095858b131c38d93c4852a74a1eb56f6a6310e8808"}},{"ruleId":"D1","level":"warning","message":{"text":"Schedule.setup (cyclomatic 18): Schedule.setup has cyclomatic complexity 18 (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":"Lunar/Views/Schedule.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"642ac5b0f0bee2d6a8448e978c4a18ac46bac3e904e81b2b9cb2dd6742b2a8b9"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkControl.matchTXTRecord (cyclomatic 17): NetworkControl.matchTXTRecord 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":"Lunar/Control/NetworkControl.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e583f55baa71db18efcc801d88932415b0e427ad2b7fad651c1b90d84674ba6"}},{"ruleId":"D1","level":"warning","message":{"text":"InstallOutputViewController.startInstall (cyclomatic 17): InstallOutputViewController.startInstall has cyclomatic complexity 17 (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":"Lunar/Controllers/InstallOutputViewController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"572ff409441f56c0b954e9345b651c15da74e093402e42277e15a70eac747bda"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.adaptBrightness (cyclomatic 17): DisplayController.adaptBrightness 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad1a01d726a1222a4b9ef8b9583b3bb38e261756885843fba171419a574da1c"}},{"ruleId":"D1","level":"warning","message":{"text":"BigSurSlider.trackScrollWheel (cyclomatic 17): BigSurSlider.trackScrollWheel has cyclomatic complexity 17 (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":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70be25e5f67e9c55b7a6c77ee9644c2e9c143d587be606d12e5605696d3094c"}},{"ruleId":"D1","level":"warning","message":{"text":"DDCControl.setBrightness (cyclomatic 16): DDCControl.setBrightness has cyclomatic complexity 16 (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. This shape REPEATS in the file: one other method here (DDCControl.setContrast) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Control/DDCControl.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c85d9b324d74d3f14a4964baa63e0a0fe69a1db5387e85fd41385a9db867357"}},{"ruleId":"D1","level":"warning","message":{"text":"DDCControl.setContrast (cyclomatic 16): DDCControl.setContrast has cyclomatic complexity 16 (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. This shape REPEATS in the file: one other method here (DDCControl.setBrightness) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Control/DDCControl.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"de45c92e773726ca44c030ce11298e9703c518c0a5ecc05b5d068a8be43e2a7e"}},{"ruleId":"D1","level":"warning","message":{"text":"GammaControl.fluxCheckerXDR (cyclomatic 16): GammaControl.fluxCheckerXDR has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Control/GammaControl.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6439d1cede651a76325a474bac1c813580ec3716d0689ec11e5b298a8b34d0ee"}},{"ruleId":"D1","level":"warning","message":{"text":"ControlChoiceViewController.viewDidAppear (cyclomatic 16): ControlChoiceViewController.viewDidAppear has cyclomatic complexity 16 (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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d856515756f0d9cad2096767fa1cc26674cc57047ec05e5e985a5f23bcacabb2"}},{"ruleId":"D1","level":"warning","message":{"text":"DDC.read (cyclomatic 16): DDC.read 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. This is NOT this file\u0027s highest cyclomatic complexity: VideoInputSource.displayName (cyclomatic 38) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/DDC/DDC.swift"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c6991a8951125c0ac313d809e711500849f0949c50bbe5ee7eb435fc979da9"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.notchEnabled (cyclomatic 16): Display.notchEnabled has cyclomatic complexity 16 (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. This is NOT this file\u0027s highest cyclomatic complexity: Display.possibleDDCBlockers (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":3280}}}],"partialFingerprints":{"codehealthFindingId/v1":"91739ff9ced5f72e62bb622e3b17842a40e49bcf3d309bfc6cfa4a556168d6cf"}},{"ruleId":"D1","level":"warning","message":{"text":"Display.refreshContrast (cyclomatic 16): Display.refreshContrast has cyclomatic complexity 16 (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. This is NOT this file\u0027s highest cyclomatic complexity: Display.possibleDDCBlockers (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":6198}}}],"partialFingerprints":{"codehealthFindingId/v1":"6887fdbcf1c4fee6ee8661c1051665530d68800988e83a4fea14839bd4a87ad3"}},{"ruleId":"D1","level":"warning","message":{"text":"DCP.init (cyclomatic 16): DCP.init has cyclomatic complexity 16 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"efaa72a445f2f0c15073c4f5b5cf40202d3125e42d22f4a9841867b4be0f4328"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.displayInfoDictFullMatch (cyclomatic 16): DisplayController.displayInfoDictFullMatch has cyclomatic complexity 16 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f0226b8cf30df04bcb7d72aa8ab0005aba2d44c0815372498428a525c7c7cb"}},{"ruleId":"D1","level":"warning","message":{"text":"DisplayController.adjustValue (cyclomatic 16): DisplayController.adjustValue has cyclomatic complexity 16 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":3191}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac70bbe180289d55c6f4da3b29495854eb0b32d04759b9e8f7d39e6824f834c"}},{"ruleId":"D1","level":"warning","message":{"text":"LicenseView.body (cyclomatic 16): LicenseView.body 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":"Lunar/Views/ProViews.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cdbee07b5ac185527e50011193941627dc4780e3895b148d97cfc3e4c47d48"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.listenForScreenConfigurationChanged (cognitive 142): AppDelegate.listenForScreenConfigurationChanged has cognitive complexity 142 (threshold 15). Drivers by points: if/else 48 (79 pts), boolean chains 34, loops 10 (23 pts), match/switch 4, ternaries 1 (2 pts) (nesting depth added 45). Of this number, 133 points are the body\u0027s own statements and 9 belong to one function item inside it that branches. 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":"Lunar/AppDelegate.swift"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"a49f08b44ff607138edc6fbc8023450886f3f58f9160ee87f45288a32a672789"}},{"ruleId":"D2","level":"warning","message":{"text":"CLI.swift.handleDisplays (cognitive 138): CLI.swift.handleDisplays has cognitive complexity 138 (threshold 15). Drivers by points: if/else 32 (99 pts), match/switch 4 (15 pts), ternaries 3 (11 pts), boolean chains 10, error handling 1 (2 pts), loops 1 (nesting depth added 87). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"07570966ecacead57d381b431222ec5414262b2ab9e3b2e4dacc2ca01b6898db"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.handle (cognitive 103): AppDelegate.handle has cognitive complexity 103 (threshold 15). Drivers by points: if/else 26 (55 pts), boolean chains 28, ternaries 4 (10 pts), loops 3 (9 pts), match/switch 1 (nesting depth added 41). 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"061110b0fcbb38434b3e04cf1677719a1d613b98145b7e675d8088e24c8d7010"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.adjustBrightness (cognitive 85): DisplayController.adjustBrightness has cognitive complexity 85 (threshold 15). Drivers by points: boolean chains 46, if/else 24 (34 pts), loops 1 (4 pts), ternaries 1 (nesting depth added 13). 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2949}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07470423374c93603950186b438ef9fae90d91d2a7139da0179a4a138ca0d97"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayServices.run (cognitive 75): DisplayServices.run has cognitive complexity 75 (threshold 15). Drivers by points: if/else 17 (45 pts), loops 5 (19 pts), boolean chains 8, match/switch 1 (2 pts), ternaries 1 (nesting depth added 43). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"414167da1a70cbdbc635ae7ad61f6fc7b2d74953938e47d09ed8da5446beeea5"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.application (cognitive 73): AppDelegate.application has cognitive complexity 73 (threshold 15). Drivers by points: if/else 15 (39 pts), boolean chains 22, ternaries 3 (9 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 31). 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":"Lunar/AppDelegate.swift"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15639a41c443193e2c94ad0e27b7d60f6f8b413708058f4a8ef0624d34f9b61"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayViewController.update (cognitive 67): DisplayViewController.update has cognitive complexity 67 (threshold 15). Drivers by points: if/else 29 (35 pts), boolean chains 19, ternaries 4 (11 pts), loops 1 (2 pts) (nesting depth added 14). 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":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"5438feac3e653282b2f219aa4c8316bb0e85ec44ed400e6c3f9e990918b6fc1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.getBestControl (cognitive 62): Display.getBestControl has cognitive complexity 62 (threshold 15). Drivers by points: boolean chains 31, if/else 13 (31 pts) (nesting depth added 18). 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":"Lunar/Data/Display.swift"},"region":{"startLine":5152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9048549a39ab202d7f6267bb552477069007431abcc498c86d27c16d5a791e92"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlChoiceViewController.testControlWrite (cognitive 57): ControlChoiceViewController.testControlWrite has cognitive complexity 57 (threshold 15). Drivers by points: if/else 38 (44 pts), ternaries 8 (9 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d10c8922c4d64ed7ee6a1b77928519218ca331e7855ea1d255934d8a4c8e35"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayViewController.updateControlsButton (cognitive 55): DisplayViewController.updateControlsButton has cognitive complexity 55 (threshold 15). Drivers by points: if/else 17 (26 pts), ternaries 10 (24 pts), boolean chains 4, match/switch 1 (nesting depth added 23). 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":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8641143e2acb484618b8450672795344560257fa3849aea490c6f945deebca"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.initObservers (cognitive 55): DisplayController.initObservers has cognitive complexity 55 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 15, loops 11 (nesting depth added 10). 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"4520394f65e3482db37df35212700eecaadd2748ffc791fd7f74fdc1862256e9"}},{"ruleId":"D2","level":"warning","message":{"text":"Hotkey.showOsd (cognitive 54): Hotkey.showOsd has cognitive complexity 54 (threshold 15). Drivers by points: boolean chains 19, if/else 13 (17 pts), ternaries 9 (17 pts), match/switch 1 (nesting depth added 12). 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc320930821e00f699620f95d7be05d789b53892a391b51d4cdbf4f3ac12167a"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.init (cognitive 53): Display.init has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26, boolean chains 16, ternaries 11. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"Lunar/Data/Display.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"408a16daf6b42b3e1525a7226aae917ca0288c8993a51a88018dae8583409306"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.brightness (cognitive 53): Display.brightness has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (27 pts), boolean chains 26 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":2172}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ccace847ba829456cedf20baac3e750ed73cb04b2429f0c6431c9085076846"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.handleBrightnessKeyAction (cognitive 49): AppDelegate.handleBrightnessKeyAction has cognitive complexity 49 (threshold 15). Drivers by points: if/else 9 (24 pts), ternaries 4 (13 pts), boolean chains 11, match/switch 1 (nesting depth added 24). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"21029c8f54656c771f797ce7238ac2924a3e153f42c06688cb5020071e04b42a"}},{"ruleId":"D2","level":"warning","message":{"text":"Ddc.run (cognitive 48): Ddc.run has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (26 pts), ternaries 3 (13 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 26). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6ab7001ab1b30f4204c1301afbb105b62455a55fe3be049dddd59e257f9b2e"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.handleAutoBlackOut (cognitive 47): DisplayController.handleAutoBlackOut has cognitive complexity 47 (threshold 15). Drivers by points: boolean chains 31, if/else 8 (13 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 6). 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"181b267dd940f4bc423ca597cefbd119d0ede2ee874149084ce79fde2242a333"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.adjust (cognitive 46): AppDelegate.adjust has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 17, match/switch 1 (nesting depth added 8). 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cbf735be07e5897014886109e688a7a6b87ac8c9d0bd16ba77758d7bd5f318"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlChoiceViewController.testDisplay (cognitive 42): ControlChoiceViewController.testDisplay has cognitive complexity 42 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 8, loops 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 10). 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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"578d60179eec2dd4482360ca31f9f730b128b99c2837dbbaa8d5a41ff0fb8f01"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayRowView.sdrXdrSelector (cognitive 41): DisplayRowView.sdrXdrSelector has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (21 pts), ternaries 9 (13 pts), boolean chains 7 (nesting depth added 12). 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d6f04fc2502ba8557d1d298b23f4061caaafe7f987b628cc8d4993803a7746"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyView.recordView (cognitive 40): HotkeyView.recordView has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 9, loops 2 (4 pts) (nesting depth added 14). 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":"Lunar/Views/HotKeyView.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8f95e85b0df0099de6261657b3b9f67b8a769285a117a3b0252baf18ad3537"}},{"ruleId":"D2","level":"warning","message":{"text":"Schedule.display (cognitive 40): Schedule.display has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 13, boolean chains 8, match/switch 2 (nesting depth added 8). 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":"Lunar/Views/Schedule.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48351fee64bd8c5cbf087c8183a04f607320956571f5001c54488b408d69f23"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlChoiceViewController.testControlRead (cognitive 39): ControlChoiceViewController.testControlRead has cognitive complexity 39 (threshold 15). Drivers by points: if/else 24 (37 pts), boolean chains 2 (nesting depth added 13). 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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0f48a53a547ba8d0d125c1c86f9d9e08ac82db1db1e21d3f2c6815417626d9"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.swift.createWindow (cognitive 37): Util.swift.createWindow has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (31 pts), match/switch 1 (4 pts), boolean chains 2 (nesting depth added 21). 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":"Lunar/Data/Util.swift"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7679740403505d6a4018dfe6d26cef877d3148ae2406175508d8a50c0b7538a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.handleCLI (cognitive 36): AppDelegate.handleCLI has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 6, loops 2 (4 pts), error handling 1, ternaries 1 (nesting depth added 10). 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f603fbbd619a58e34e84bead1a4c728673996b26c48f6a5f6e448f858a6a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollableTextField.scrollWheel (cognitive 36): ScrollableTextField.scrollWheel has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16 (36 pts) (nesting depth added 20). 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":"Lunar/Views/ScrollableTextField.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8322a224b599eb97ec4ed27b7d9217460205fffdf4195d270c10ea6ce1f38ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.observeBrightnessChangeDS (cognitive 35): Display.observeBrightnessChangeDS has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 10, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":4233}}}],"partialFingerprints":{"codehealthFindingId/v1":"46845751b08f570e799ee64fe7223bd4bbae51751703bf5e8afcc34c28a2f471"}},{"ruleId":"D2","level":"warning","message":{"text":"LunarServer.onResponse (cognitive 34): LunarServer.onResponse has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 4 (9 pts), boolean chains 3, error handling 1 (nesting depth added 15). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":2668}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01f3fab4a81c21e68a91a4708104d842f68f3944283a65753790b491b594e11"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.active (cognitive 34): Display.active has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 12 (nesting depth added 11). 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":"Lunar/Data/Display.swift"},"region":{"startLine":2558}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ba7bfd9d7fc3dabfb6dc3056c1fc2074feb5e15d496adf47a41dedea60907a"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.appBrightnessContrastOffset (cognitive 34): DisplayController.appBrightnessContrastOffset has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 16 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"72bfb740c62961875f702f80d90a7521ae038362374e52fb573a2344cc64a219"}},{"ruleId":"D2","level":"warning","message":{"text":"GammaControl.fluxChecker (cognitive 33): GammaControl.fluxChecker has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 7, loops 3 (5 pts), match/switch 1 (nesting depth added 11). 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":"Lunar/Control/GammaControl.swift"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f08a61d69e1c5db52e038ac8f58b350b72ce3ef60251db2fde4e5dff141820"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.shade (cognitive 33): Display.shade has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 7, ternaries 2 (4 pts) (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":"Lunar/Data/Display.swift"},"region":{"startLine":4993}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7c97fa9800d0db4b98093f28657fc8c384bfc7b8746c631869f00e3658e734"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayRowView.appPresetAdaptivePaused (cognitive 33): DisplayRowView.appPresetAdaptivePaused has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, if/else 7 (12 pts), ternaries 3 (6 pts) (nesting depth added 8). 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fee4f611a23406fbc82ca09f60cb7993f84393ebfad95e0da65941770dbb71"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.nightMode (cognitive 33): DisplayController.nightMode has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 4 (10 pts), boolean chains 4, ternaries 2 (nesting depth added 12). 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"77181d08a29da3b8c138f9efec4a09e700e322723206c99463c14365966a0bb2"}},{"ruleId":"D2","level":"warning","message":{"text":"CLI.swift.printDisplay (cognitive 33): CLI.swift.printDisplay has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 5, ternaries 2, loops 1 (nesting depth added 8). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"14296cf0997bf636cfb975d6edd68af717c12383880839f116e8088e958b1007"}},{"ruleId":"D2","level":"warning","message":{"text":"Displays.run (cognitive 32): Displays.run has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 8 (12 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 12). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a05aea55405d397837d40c81a8552812876c4316828888e2dfc52fd9c68c01a"}},{"ruleId":"D2","level":"warning","message":{"text":"PowerOffSoftwareIntent.perform (cognitive 31): PowerOffSoftwareIntent.perform has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 14). 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a6de7ff69ec0963e564c7c3ea8cd0eaaea4bf67d9662fa94f8b83099377c63"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.init (cognitive 31): Display.init has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 16, if/else 10, ternaries 5. 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":"Lunar/Data/Display.swift"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a924eb6a719806a0fc6d512db193f5c2c1e71759af2ed6081488d85fb56a54"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.powerOff (cognitive 31): Display.powerOff has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 13, if/else 9 (12 pts), ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 6). 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":"Lunar/Data/Display.swift"},"region":{"startLine":4837}}}],"partialFingerprints":{"codehealthFindingId/v1":"2183242a35fe6600ba429472af58624a2ef30729e752690ae56666aafb26b976"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickActionsMenuView.content (cognitive 31): QuickActionsMenuView.content has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 15, if/else 9 (14 pts), ternaries 1 (2 pts) (nesting depth added 6). 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":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d88cb54d2a1f3afe586fc95382193f496336ae3504ff9350d1aa5a3469ab967"}},{"ruleId":"D2","level":"warning","message":{"text":"BrightnessContrastChartView.initGraph (cognitive 31): BrightnessContrastChartView.initGraph has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 5 (7 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/BrightnessContrastChartView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec14353918f5fc26a85e1409a080d0a650b2daff1e040422a97893db2a892dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleNativeControl.setBrightness (cognitive 30): AppleNativeControl.setBrightness has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 12). 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":"Lunar/Control/AppleNativeControl.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d4f49ebc621bfadde43d03266c26688343d1e4888b4bb9404c8d8279344b32"}},{"ruleId":"D2","level":"warning","message":{"text":"BigSurSlider.body (cognitive 30): BigSurSlider.body has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 13, ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cd1218dd1519e6492c317197d30651df9a91eeeac17b5167901c52cdef3428"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.preciseBrightness (cognitive 29): Display.preciseBrightness has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 9, ternaries 2 (3 pts) (nesting depth added 6). 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":"Lunar/Data/Display.swift"},"region":{"startLine":2036}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e005902b72a1a33d32e0a9a5874404f7792d2a396a8bcbdb530bfcd1ca61b5"}},{"ruleId":"D2","level":"warning","message":{"text":"HotkeyButton.setup (cognitive 29): HotkeyButton.setup has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 3 (6 pts), loops 3 (5 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 12). 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":"Lunar/Views/HotkeyButton.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fe74d5294f04f78bb9a36860ad3faf72c2afaf4005f475834faa993a608e00"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.windowWillClose (cognitive 28): AppDelegate.windowWillClose has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 13, if/else 8 (13 pts), loops 2 (nesting depth added 5). 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":"Lunar/Controllers/ModernWindowController.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"062c923a415ef53214edfc03eb8845a4d9054fcb05cd69885e37892cc18a056a"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.control (cognitive 28): Display.control has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 16, if/else 12. 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":"Lunar/Data/Display.swift"},"region":{"startLine":3342}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e70ea71e12c0a84cf0243288285f0890fffa09b61037189b365e6708eec738"}},{"ruleId":"D2","level":"warning","message":{"text":"AdaptiveModeButton.validate (cognitive 28): AdaptiveModeButton.validate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 8). 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":"Lunar/Views/AdaptiveModeButton.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5298bfcf0fa5463e216ad418b1cf9b7f3d8863cfcd1880910a228608460563d"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.applicationDidFinishLaunching (cognitive 27): AppDelegate.applicationDidFinishLaunching has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 4, ternaries 3, loops 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6bac0c41871183a144b48301bb14b9799c76610a021b9168bd9b83a466ce19"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.contrast (cognitive 27): Display.contrast has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 13 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":2272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64ff24dd789ee58d695f79c3b051f1fce8d130f885a520014a1f93d195bc31c"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.preciseBrightnessContrast (cognitive 27): Display.preciseBrightnessContrast has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 11, ternaries 2 (4 pts) (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":"Lunar/Data/Display.swift"},"region":{"startLine":4047}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abc040be0e264a23c7f5270139268e8ad6c5e8c633b3c8db7c5c719e38ba79c"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.setGamma (cognitive 27): Display.setGamma has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 6). 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":"Lunar/Data/Display.swift"},"region":{"startLine":6342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6b66807ab967b71e835ead396dadbf9febe3d1f809e1ecb9edf1b3941aa9af"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayRowView.newSdrXdrSelector (cognitive 27): DisplayRowView.newSdrXdrSelector has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 7 (9 pts), boolean chains 6 (nesting depth added 6). 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7d14d2194f528a4c8a315cf6564c032b7f72280f5654fd2531359220de9fb1"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.displayInfoDictPartialMatchScore (cognitive 27): DisplayController.displayInfoDictPartialMatchScore has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 15, if/else 8, ternaries 2 (4 pts) (nesting depth added 2). 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1152ebd7c607f787aa66cb3567dae2c297681c3d52380c86e4883899739d6579"}},{"ruleId":"D2","level":"warning","message":{"text":"ModePopupButton.setItemStyles (cognitive 27): ModePopupButton.setItemStyles has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 1, loops 1 (nesting depth added 13). 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":"Lunar/Utils/Extensions.swift"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f655a1bdddcf4dd3e416343cd1df7629691cc21e87650697eba88e40b643ce"}},{"ruleId":"D2","level":"warning","message":{"text":"DDC.write (cognitive 26): DDC.write has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 15, if/else 11. 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9705b980cd3a455eea3916699977c7e80341122efaeed90a87852c66acb59f00"}},{"ruleId":"D2","level":"warning","message":{"text":"PowerOffButtonView.actionText (cognitive 26): PowerOffButtonView.actionText has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4 (8 pts), boolean chains 6 (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":"Lunar/SwiftUIViews/PowerOffButtonView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f54e443a4ae90008464abe8a58b482401d3e22e9865cf75eb5ff429511cf6e"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.recomputeAllDisplaysBrightness (cognitive 26): DisplayController.recomputeAllDisplaysBrightness has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 13, if/else 9 (11 pts), loops 1, ternaries 1 (nesting depth added 2). 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea464d021398a1cb0b18aee2ff0f77b448c2aff07c6dcbc3a76a7f60cbe5bc3"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.adjustValue (cognitive 26): DisplayController.adjustValue has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 3 (6 pts) (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":3191}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f9c236d10721cef17e189c72c1e36545f23884e478d95d39da0cd96791a41e"}},{"ruleId":"D2","level":"warning","message":{"text":"Schedule.setup (cognitive 26): Schedule.setup has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 2, loops 1 (nesting depth added 10). 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":"Lunar/Views/Schedule.swift"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1960e78934cc7ae79146bd113d6acdfa0e4a2ee00e26983b8db51e8f2e20ec"}},{"ruleId":"D2","level":"warning","message":{"text":"LunarServer.addNewConnection (cognitive 25): LunarServer.addNewConnection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 13). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":2791}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72a164ff22fce79102d350601bc6c5c6d80e27827d3b69933c8b0ad462849d4"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkControl.listenForRequests (cognitive 24): NetworkControl.listenForRequests has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 6, loops 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":"Lunar/Control/NetworkControl.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"aedfba4bb19e7d5f74ae57f58f50cf68fe49f245528ca63051205d18d4e9a9b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ToggleConnection.run (cognitive 24): ToggleConnection.run has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c7da4ffaa84bf017b5c2e6f64ce35336d4d1be4fc3bffe399848a883c0f511"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayViewController.updateDataset (cognitive 23): DisplayViewController.updateDataset has cognitive complexity 23 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 6 (7 pts), boolean chains 2, match/switch 1, ternaries 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fc9493b9a5edc3f1a618a0da9b514866fbaa1798b6c84b1b0ec1b566a06df8"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayRowView.sliders (cognitive 23): DisplayRowView.sliders has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (16 pts), if/else 4 (6 pts), boolean chains 1 (nesting depth added 11). 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2675790b15b940deb4d2fc6550d427a1eca5137ebbdbc5a5c07649fec2aeb70"}},{"ruleId":"D2","level":"warning","message":{"text":"SliderCell.drawBar (cognitive 23): SliderCell.drawBar has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 4 (7 pts), boolean chains 5 (nesting depth added 6). 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":"Lunar/Views/Slider.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"763aea6fb0ea1912ab02d96af5b6705fcc714fd81e5662a2484abc2969261d16"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.listenForAdaptiveModeChange (cognitive 22): AppDelegate.listenForAdaptiveModeChange has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 11). 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":"Lunar/AppDelegate.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"563bc03c136cda6e5e89cc9c19282b623244ce049e47ebef4d8854dc4d73767c"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.activateUIElement (cognitive 22): AppDelegate.activateUIElement has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (9 pts), match/switch 1 (nesting depth added 4). 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":"Lunar/AppDelegate.swift"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"2461704ed0a945cbc994fcc5ec69662712a6186fc424c0039663e75364a20389"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleNativeControl.updateNits (cognitive 22): AppleNativeControl.updateNits has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (11 pts) (nesting depth added 2). 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":"Lunar/Control/AppleNativeControl.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ab177768804f34217ae6f04661ba5a2318cdc0e36dab481a3ad9af82017ee4"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.addSentryData (cognitive 22): Display.addSentryData has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 8 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":5721}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e1febee055a65bc8201ef407c69ff7c3eaa379b4a0efc10022b6cbbceecdb9"}},{"ruleId":"D2","level":"warning","message":{"text":"ManualMode.adapt (cognitive 22): ManualMode.adapt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3 (nesting depth added 8). 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":"Lunar/Modes/ManualMode.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56eb5f70dbda6a17d1983d20cff061c5d5971f5d4e3e0ae70c79023518f802b"}},{"ruleId":"D2","level":"warning","message":{"text":"Gamma.run (cognitive 21): Gamma.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 2, loops 1 (nesting depth added 8). 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":"Lunar/Data/CLI.swift"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"555cca1864ae64da6162dba90e98046b6313276b35a87ccdc72777c537c7ffc5"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayRowView.body (cognitive 21): DisplayRowView.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5 (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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cb4900e9ad6695cf28b666d4f28c8c3a759bf0f864aed21fef81d9cdea267a"}},{"ruleId":"D2","level":"warning","message":{"text":"MPDisplay.groupedModes (cognitive 21): MPDisplay.groupedModes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (5 pts), ternaries 1 (2 pts), boolean chains 1 (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":"Lunar/Utils/Extensions.swift"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d8f297f1ca3a07b08f717d04846cb00c2a04432c67a7e00d6a745d4f8af513"}},{"ruleId":"D2","level":"warning","message":{"text":"CLI.swift.encodedValue (cognitive 21): CLI.swift.encodedValue has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 4 (5 pts), match/switch 2 (3 pts), boolean chains 1 (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":"Lunar/Data/CLI.swift"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efd2f01458904fccdf234b5620fa675e785f2b83c0359506206dbe850a05867"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.swift.askMultiButton (cognitive 21): Util.swift.askMultiButton has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 3 (7 pts) (nesting depth added 10). 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":"Lunar/Data/Util.swift"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8233358d5e743f594f0713de9e453a7973d64ef460d046148fdd0b250c44df1"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.handleCLIInstall (cognitive 20): AppDelegate.handleCLIInstall has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 3 (5 pts), boolean chains 4 (nesting depth added 6). 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"325b9261bfdd29e192fe62f5113ffdab8f5d22bd20e493d38204050ab1ea284b"}},{"ruleId":"D2","level":"warning","message":{"text":"ScreenQuery.entities (cognitive 20): ScreenQuery.entities has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (13 pts), boolean chains 2, if/else 2, match/switch 1 (2 pts), loops 1 (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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ceb690ac1af6945767066d07e3c9cdcb8f6d5150d56388db89cbff6772975e"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.softwareBrightness (cognitive 20): Display.softwareBrightness has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (9 pts) (nesting depth added 2). 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":"Lunar/Data/Display.swift"},"region":{"startLine":2860}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbc00bb3a6a93cd76be107b60fdf429815ee512bdeeb2920f39f84635db8ff5"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.addSentryData (cognitive 20): DisplayController.addSentryData has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 1 (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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2672}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe62900675d040e7048ba95fe496b93de41ae80009a624cf59c0a9fbb4903a1"}},{"ruleId":"D2","level":"warning","message":{"text":"BigSurSlider.trackScrollWheel (cognitive 20): BigSurSlider.trackScrollWheel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 7, ternaries 2, match/switch 1 (nesting depth added 4). 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":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65cf46767584e87c196f409bfd88f199630ce5298b31fce2553399d404ae074"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.initHotkeys (cognitive 19): AppDelegate.initHotkeys has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 4 (5 pts), boolean chains 4 (nesting depth added 6). 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":"Lunar/AppDelegate.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fefe161e47345ae11d4c2c516b2ceada82a3776f807672899ac2862921a231"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.initMenubarIcon (cognitive 19): AppDelegate.initMenubarIcon has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (5 pts), loops 2, boolean chains 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":"Lunar/AppDelegate.swift"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7104797b21bf818118d79889d4332057719c94d15b0656da6cf744037fae91e"}},{"ruleId":"D2","level":"warning","message":{"text":"DDCControl.setBrightness (cognitive 19): DDCControl.setBrightness has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 pts), ternaries 1 (2 pts) (nesting depth added 3). 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 shape REPEATS in the file: one other method here (DDCControl.setContrast) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Control/DDCControl.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3370975d4f1170b9f50c81c45fe7616a389f3cff2a439b5d3574eab828c4a6a2"}},{"ruleId":"D2","level":"warning","message":{"text":"DDCControl.setContrast (cognitive 19): DDCControl.setContrast has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (8 pts), ternaries 1 (2 pts) (nesting depth added 3). 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 shape REPEATS in the file: one other method here (DDCControl.setBrightness) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Control/DDCControl.swift"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4eba651c2f43128f2ce9424ab757d3a210a2d5bf5d52dcbd82dc8db4033a1f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationViewController.setupScrollableTextField (cognitive 19): ConfigurationViewController.setupScrollableTextField has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 1 (nesting depth added 6). 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":"Lunar/Controllers/ConfigurationViewController.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"155e8b8bcab254130041ea9e61a15b3684f93f627b53e98f3770971d2a91ee27"}},{"ruleId":"D2","level":"warning","message":{"text":"ControlChoiceViewController.viewDidAppear (cognitive 19): ControlChoiceViewController.viewDidAppear has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 4, loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 4). 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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3387bdfd16e085c80afb3da426bac242cad2f3d2705710f0577e4dda1af7ea"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallOutputViewController.startInstall (cognitive 19): InstallOutputViewController.startInstall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, error handling 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/InstallOutputViewController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ce68f1b0f47e782c97e9b6118602215aba4b8f9083f036d7a471349fd0bd64"}},{"ruleId":"D2","level":"warning","message":{"text":"SSHConnectionViewController.install (cognitive 19): SSHConnectionViewController.install has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, ternaries 1 (2 pts), 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":"Lunar/Controllers/SSHConnectionViewController.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0375b7e18fd8f45b9fab0fbaf87456f44de3da07629997b83bc081cdb16fd24"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickActionsMenuView.setMenuWidth (cognitive 19): QuickActionsMenuView.setMenuWidth has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 16, ternaries 2, if/else 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"756beb6882a67e69b7a062d8ba09343730c2076a3ecc1d76e3f890563c0cd641"}},{"ruleId":"D2","level":"warning","message":{"text":"BrightnessContrastChartView.brightnessGradient (cognitive 19): BrightnessContrastChartView.brightnessGradient has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3, boolean chains 2, match/switch 1 (2 pts) (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":"Lunar/Views/BrightnessContrastChartView.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e8a8d99ae974f3c5c819f2dee2ea929a1c22aea63a3798fa3f549d1011ad51"}},{"ruleId":"D2","level":"warning","message":{"text":"LicenseView.body (cognitive 19): LicenseView.body has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 11 (15 pts), boolean chains 2, if/else 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ProViews.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e26466264be8757d5c59e79554c602bbfe2024acf31aa685de18acb250ddef"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.swift.createAndShowWindow (cognitive 19): Util.swift.createAndShowWindow has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5 (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":"Lunar/Data/Util.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cc7872d713ff810d78b7348b54d522b2f37e21aa97b911c4336a5982ccb31c"}},{"ruleId":"D2","level":"warning","message":{"text":"AppleNativeControl.testReadAndWrite (cognitive 18): AppleNativeControl.testReadAndWrite has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (4 pts), match/switch 1 (nesting depth added 8). 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":"Lunar/Control/AppleNativeControl.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db420e895453d0e329f72f67f557906167f19b02adecf8410dc5de7fe590a55"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkControl.matchTXTRecord (cognitive 18): NetworkControl.matchTXTRecord has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 4 (6 pts), loops 1 (nesting depth added 2). 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":"Lunar/Control/NetworkControl.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c2f4417004cc1567ac445efb9b8bcb339dcdc2fb79267122eb64c56185f1cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.notchEnabled (cognitive 18): Display.notchEnabled has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts) (nesting depth added 3). 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":"Lunar/Data/Display.swift"},"region":{"startLine":3280}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d126d372ef66cf7f908feda888d5f32b7119ed01902e6283abb2a8a58b4153"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.refreshBrightness (cognitive 18): Display.refreshBrightness has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts) (nesting depth added 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":6162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e889b8bf65cf1e9b36b4128324a47e3f27a7bead768d176cbf798caf97bd869a"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayController.adaptBrightness (cognitive 18): DisplayController.adaptBrightness has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts), loops 1 (nesting depth added 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d0f6155b877499adb7afad40877e1c11e109600253a45ea87236e84be9017e"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickActionsMenuView.footer (cognitive 17): QuickActionsMenuView.footer has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9, if/else 5, boolean chains 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d480f59beee4fbedb26c3b9e1acead611893c45bdd0db08dff6e02547fe7e22"}},{"ruleId":"D2","level":"warning","message":{"text":"Slider.scrollWheel (cognitive 17): Slider.scrollWheel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/Slider.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"213bcffc3ed08aaee9c3a075761302b6afc34bb1fcc7413c54f2ac50196c2b36"}},{"ruleId":"D2","level":"warning","message":{"text":"CLI.swift.getFilteredDisplays (cognitive 17): CLI.swift.getFilteredDisplays has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6123d77fce5119636bcca0d8ccce32aacafd7b7377e0c6732f8aa6ac10eae6"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.swift.dialog (cognitive 17): Util.swift.dialog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecc7980ac9b12ff916cc29bc6d6c381406500e72636129d6fcb850492975638"}},{"ruleId":"D2","level":"warning","message":{"text":"DDC.isAirplayDisplay (cognitive 16): DDC.isAirplayDisplay has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d16d4caf2a6a72e0e31a11b43ace53e21f24ef9dd5b5284fbf615249dc1f8ea"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.audioMuted (cognitive 16): Display.audioMuted has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (5 pts), boolean chains 1 (nesting depth added 4). 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":"Lunar/Data/Display.swift"},"region":{"startLine":2514}}}],"partialFingerprints":{"codehealthFindingId/v1":"94194198483fa0c49e051c34474afc61c9f76bd088813871410fca9279b367e7"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.refreshContrast (cognitive 16): Display.refreshContrast has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts) (nesting depth added 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":6198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4eb67fb86704c0c26fc65919314386859a937e3c7aa99d943d51a2837df379"}},{"ruleId":"D2","level":"warning","message":{"text":"Display.showSoftwareOSD (cognitive 16): Display.showSoftwareOSD has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6681b0f4d52b3f9c9417a39e9feac49b275dea74cc40eed34d87bee3e26d7f10"}},{"ruleId":"D2","level":"warning","message":{"text":"SSH.sendFile (cognitive 16): SSH.sendFile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (5 pts), loops 2 (3 pts), match/switch 1 (3 pts), ternaries 1 (3 pts), boolean chains 2 (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":"Lunar/Shout/SSH.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"8923587f8eb381ba55cc2de15523baf5aa3f0bd58643d44622f5b1cdc3179c95"}},{"ruleId":"D2","level":"warning","message":{"text":"AdvancedSettingsView.body (cognitive 16): AdvancedSettingsView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 4 (5 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/SwiftUIViews/AdvancedSettingsView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a1e82d4545651b675b94c7d621312c6bf2b2342d21d9b42e7efd1dfae26d92"}},{"ruleId":"D2","level":"warning","message":{"text":"DisplayRowView.adaptiveState (cognitive 16): DisplayRowView.adaptiveState has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 3 (6 pts), if/else 1 (nesting depth added 3). 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"814a7020f31a073a2614a7741eae7358dbd971c871b170e9b3c16409d0e32324"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickActionsMenuView.body (cognitive 16): QuickActionsMenuView.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 5 (6 pts), boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. 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":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9e71c9bf126cc5c856a522d8d856e4b589c49906eeb7eb060baea9f708e72a"}},{"ruleId":"D2","level":"warning","message":{"text":"DCP.init (cognitive 16): DCP.init has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2cebc460e948a64b37bb0125971208be6b97e344119d84752f41c984f01678"}},{"ruleId":"D2","level":"warning","message":{"text":"SliderCell.drawKnob (cognitive 16): SliderCell.drawKnob has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 4 (5 pts), boolean chains 4 (nesting depth added 4). 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":"Lunar/Views/Slider.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8156eaf5b304bf0a671147e2c0b45ccbbcf9c8a8862f168c28328d03fe68860"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.swift.installCLIBinary (cognitive 16): AppDelegate.swift.installCLIBinary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, error handling 1 (2 pts), loops 1 (nesting depth added 4). 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":"Lunar/AppDelegate.swift"},"region":{"startLine":3007}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dea39ae45492c2a57d8962ec3451412fe01c43666fee88534e01da7772a5cf7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Data/Display.swift: FileTooLong \u2014 4572 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4072 over it, 9.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d9b62c4e48baed6b8c689fb2a17fef9b24590151bc74d57b7300bed795bfeb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 163 methods, declared across 3 files: Lunar/AppDelegate.swift (117), Data/Hotkeys.swift (45), Controllers/ModernWindowController.swift (1). The bar is 30 methods; this is 133 over it, 5.43\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Lunar/AppDelegate.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"571b1fd874a502a0b62ad9cac58e821aff6205b7d65f7f459e69eb76a6e76b45"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LunarShortcuts/LunarShortcuts.swift: FileTooLong \u2014 2445 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1945 over it, 4.89\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e832269d91df86a597ccf16c6e3d5a60f121e7d7fb4113466a1f2bc2dec024"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppDelegate: ClassTooLong \u2014 1901 significant lines (blank, comment-only and punctuation-only lines excluded), 163 methods. The bar is 400 significant lines; this is 1501 over it, 4.75\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":"Lunar/AppDelegate.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"b414714dac02d953dd2787c7818eaa61474308962acdc86505b97693a4220869"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Display: TooManyMethods \u2014 142 methods, declared across 2 files: Data/Display.swift (136), Views/OSDWindow.swift (6). The bar is 30 methods; this is 112 over it, 4.73\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Lunar/Data/Display.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c08ca4ddfcef33893417e5da9face5574c3d8c506e8c530c3ba98eab278ea7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DisplayController: ClassTooLong \u2014 1888 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 1488 over it, 4.72\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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f114dab856acd85ce12a513c35f28061dc84210616e3eb8586f72aa0414b76"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Lunar/AppDelegate.swift: FileTooLong \u2014 2207 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: AppDelegate (257-2987). The bar is 500 significant lines; this is 1707 over it, 4.41\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":"Lunar/AppDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8acc97fb1a8cd279e14d27d0ce6a140a401fb3dbca50ca95e058835ab68d9ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utils/DisplayController.swift: FileTooLong \u2014 2186 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: DisplayController (456-3252). The bar is 500 significant lines; this is 1686 over it, 4.37\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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb76cb913f85d2eb4277f7e5d02e3231c462b7cf7f84e0027713173e34b012b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Data/CLI.swift: FileTooLong \u2014 2089 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1589 over it, 4.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"591a4421d5d7b2dd7abee7d6ab5fe0aa30db87bed8b7275d0dc53defcfa59553"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Data/Util.swift: FileTooLong \u2014 1691 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1191 over it, 3.38\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02604dd7e9a60dba3c6a09021f7419f3e4e685a467d8909d570003a4db19fd16"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.listenForScreenConfigurationChanged: MethodTooLong \u2014 listenForScreenConfigurationChanged runs 327 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 227 over it, 3.27\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":"Lunar/AppDelegate.swift"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"531a59d5eba1ede79e1fc83f6f7af2b1b6942e9393b0845d6f0ca8ac2c5bec80"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Lunar: ClassTooLong \u2014 1236 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 836 over it, 3.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":"Lunar/Data/CLI.swift"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"515618e3fc12feabadf642bce9bcc9e4dcad79e98ed9d0f271b6e0e459c160ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Data/Hotkeys.swift: FileTooLong \u2014 1345 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 845 over it, 2.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"173afbb3f70eae88490199a0864ea8c93abf99863c1dd98ecddaf3e89331578c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utils/Extensions.swift: FileTooLong \u2014 1226 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 726 over it, 2.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Utils/Extensions.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55605247fade19c3ae02667947d5c5dcd82c79f74c44636ca7eac435106fb91"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DDC/DDC.swift: FileTooLong \u2014 1223 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 723 over it, 2.45\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/DDC/DDC.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4dc237c46e32f04015c603a64e528c47fd720691fda6a20c8d93d33766ade0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdvancedSettingsView.body: MethodTooLong \u2014 body runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.44\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":"Lunar/SwiftUIViews/AdvancedSettingsView.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e1f1c79a67f454e4f20ab36a040f2add18744f5bd1b13ed8f5f2d88c367cc8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DisplayController: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0e62589c94ae83822b13c05c87ac12d09d2afbe824852c4ffc2593eff376b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/DisplayViewController.swift: FileTooLong \u2014 1147 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 647 over it, 2.29\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fab49439695ddc750f3b304a6005f50cb191791e6548367696fe9e7dddc72b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ControlChoiceViewController: ClassTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 413 over it, 2.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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"37670f69fd790a37822b595a9a57dbe2ce58a8d1efc7c4bba8fc38a0fe23695a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: CLI.swift.handleDisplays: FunctionTooLong \u2014 handleDisplays runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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":"Lunar/Data/CLI.swift"},"region":{"startLine":2271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3619e0c82fd5cfbaceb485126edb30cf8178005674b438041755b5db8d846405"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/OSDWindow.swift: FileTooLong \u2014 981 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 481 over it, 1.96\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"086f70da2a0c4056877647a58153a3cd8918ebbadc4a2777e9483ad40b4883a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Controllers/ControlChoiceViewController.swift: FileTooLong \u2014 883 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ControlChoiceViewController (127-1258). The bar is 500 significant lines; this is 383 over it, 1.77\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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0daf4d5c8768b6ef960587c63635692e9a4613f20bd9e4351a4f9a28050d9a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: String: TooManyMethods \u2014 52 methods, declared across 3 files: Data/ColorizeSwift.swift (46), Utils/Extensions.swift (5), Utils/DisplayController.swift (1). The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Lunar/Data/ColorizeSwift.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97b956263fcc0f12c343b1db93761926daf5297d4b5878b28b8ac50e0b1e221"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ControlChoiceViewController.testControlWrite: MethodTooLong \u2014 testControlWrite runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"a225afbeb02d5b6c2517f2297587b80ab2f1829d4ac3e24b2956e1c15e5b02fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: DataStore.swift.initCache: FunctionTooLong \u2014 initCache runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"Lunar/Data/DataStore.swift"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a13d1690e09381fad9b39148239e421049db67699a09eb4f880b0dd9e0d734"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DisplayController.initObservers: MethodTooLong \u2014 initObservers runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00ab9e346ddc2e263301985c587564df88c5727ce5161ba16c393f97826f339"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Data/DataStore.swift: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 253 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/DataStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c1e4b1facb34e9e203c0e562bc898593563e037780d045401131262b325cff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DDC: ClassTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 191 over it, 1.48\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":"Lunar/DDC/DDC.swift"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"615bb538e1d9ff86dd04c0820818e1570aa21890228f1e869a6831aa6a073e20"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DisplayViewController: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ac9b38b660fe602f99fcb3e571fc92a0a4aa2503fc4239ad269d1dd5b802c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ControlID.init: MethodTooLong \u2014 init runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\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":"Lunar/DDC/DDC.swift"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6c676c511cee93efd6a6923b2cefeb5c84a9fa27d7c420c126be132282b5f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DisplayController.adjustBrightness: MethodTooLong \u2014 adjustBrightness runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2949}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd41a18307c15f409ec3a52b4dbcbc07a886aaad306e6308c082f83328d1ed8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NetworkControl: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"Lunar/Control/NetworkControl.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a8d01c80c57fcf52d1071b818bbc10feefd47984f618e12335bdf449ed359e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DisplayServices.run: MethodTooLong \u2014 run runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"Lunar/Data/CLI.swift"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"672c9f2074dd4f861ab94dee37a63966243ffe9f42d9a90ab18eb3f40b26b082"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.applicationDidFinishLaunching: MethodTooLong \u2014 applicationDidFinishLaunching runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\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":"Lunar/AppDelegate.swift"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e0bbaf8a76d7e8fbbdaaeb4ad3d864e6e23bf13f6b75a524604ee32b595504"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Hotkey: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 75 over it, 1.19\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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a19474ed249883fb119f89267d3a6b6537e85b26dfb1adeea0442f689c89067"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ControlChoiceViewController.testDisplay: MethodTooLong \u2014 testDisplay runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d62001d598b7989e080df4ffb632e8c96e5fe27a8b3a052ff33c4cfa928d27"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QuickActionsMenuView: ClassTooLong \u2014 456 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 56 over it, 1.14\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":"Lunar/SwiftUIViews/QuickActionsMenuView.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ac4d3a59d92028bbfefb53693534831fcdb7e04140d6ffaf49014ed74a3adc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppleNativeControl: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"Lunar/Control/AppleNativeControl.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf964c3f883c826269c9892e2c50eeb5aeb7e8021fffc94bdb2ada52ee8b635f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DisplayRowView: ClassTooLong \u2014 446 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 46 over it, 1.12\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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f99f1ee2d91e60c6ce83e684bdfa02d61e8420553eb7c5370a89ba1b1a560e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DDCControl: 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":"Lunar/Control/DDCControl.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4802b4818bfa6a37f60d10857476324ccb35bea086b8f47d38fa31e06f921b58"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.adjust: MethodTooLong \u2014 adjust runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b1403014d1c45729051535d2071243065df620989db383e18ca9c4a6ef10b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.handleBrightnessKeys: MethodTooLong \u2014 handleBrightnessKeys runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae956a6b2acabbe16d9b664715fff365d9f7a5ebe40663cb7f0ae9894241882a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Hotkey.showOsd: MethodTooLong \u2014 showOsd runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"922fc660f286fa8c44061751485ad6e936aab87be778f673def8541924b905a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): Lunar/SwiftUIViews/DisplayRowView.swift:235-301 | Lunar/SwiftUIViews/DisplayRowView.swift:303-396 \u2014 These two members are variants of one another: 65 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"984034a6d3cc2bf6f21e3202be95f87ca6f1d8e2b61f2f4c9049ac83766e0bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (24 shared lines): Lunar/Views/ProViews.swift:97-195 | Lunar/Views/ProViews.swift:204-289 \u2014 These two members are variants of one another: 24 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ProViews.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a57ba40d3a708f21cb0e8f02625bbbc88e4dba4dc8f6ae64c0656a7d625ee7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): LunarShortcuts/LunarShortcuts.swift:1962-1974 | LunarShortcuts/LunarShortcuts.swift:2021-2033 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"a008940da96da13454227d478c8e55eb5add48a02e9a1c0be3af38cd6aa21196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Lunar/Data/AppException.swift:22-42 | Lunar/Data/AppException.swift:44-76 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"Lunar/Data/AppException.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d8f802d5ee19068792db183efd0b89c79541ef2aa13c68d1aff59e344e1aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Lunar/Controllers/DisplayViewController.swift:491-502 | Lunar/Controllers/DisplayViewController.swift:506-517 | Lunar/Controllers/DisplayViewController.swift:521-532 | Lunar/Controllers/DisplayViewController.swift:536-547 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32f398df35cb7a0787f060ac8f50d8ac5937bdbb772284cbf01820b3f045400"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): LunarShortcuts/LunarShortcuts.swift:3063-3091 | LunarShortcuts/LunarShortcuts.swift:3115-3143 | LunarShortcuts/LunarShortcuts.swift:3240-3296 | LunarShortcuts/LunarShortcuts.swift:3323-3379 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":3063}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbe5ed5fe1e47ad23d3afb3f89b7a7ec0a447e673310d5c5d11503b27a8ad71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): Lunar/DDC/DDC.swift:1163-1228 | Lunar/DDC/DDC.swift:1291-1352 \u2014 These two members are one piece of code written twice and then edited apart: 62 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"654c35959690faad738bc635940c5a50eaa1acfab5fc0b07d383f5ed49de304b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): Lunar/Control/DDCControl.swift:215-274 | Lunar/Control/DDCControl.swift:276-333 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"Lunar/Control/DDCControl.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfa7c5846407e3041040c97a1f81af723a5a451486e28a677d3e4e98a45083c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Lunar/Views/ScrollableBrightness.swift:115-140 | Lunar/Views/ScrollableContrast.swift:115-140 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Lunar/Views/ScrollableBrightness.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"245393af1c2699aac4bf53e42cabbd4718469a03a05c354083579370dafb33e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Lunar/Data/Display.swift:6634-6667 | Lunar/Data/Display.swift:6682-6715 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Lunar/Data/Display.swift"},"region":{"startLine":6634}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a51f3b600875de58c273caf8c7b2c4891860c4cc9a2a383c06c4075e8cd1f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): Lunar/Data/Util.swift:392-438 | Lunar/Data/Util.swift:461-509 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"Lunar/Data/Util.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f04c91099ce4b07104cc50de9d0befc4659b13cd42662a5b5725e7632980b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Lunar/Data/Display.swift:6098-6129 | Lunar/Data/Display.swift:6131-6160 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"Lunar/Data/Display.swift"},"region":{"startLine":6098}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6b041dc74e8cbf4d22f1b1d804a5c7727e048efefa1ea178fb56445d1a1ffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Lunar/Data/Display.swift:6162-6196 | Lunar/Data/Display.swift:6198-6232 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Lunar/Data/Display.swift"},"region":{"startLine":6162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26fb770957e02ab97f95d0356c5db275961d2a78935339d0bdac0e4e078b2fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Lunar/Data/Display.swift:5845-5858 | Lunar/Data/Display.swift:5860-5873 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Lunar/Data/Display.swift"},"region":{"startLine":5845}}}],"partialFingerprints":{"codehealthFindingId/v1":"64480556e12bd9617e549ea58ea4dbcc7aa64f531201d590660830937d3ff9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Lunar/Data/Hotkeys.swift:1752-1773 | Lunar/Data/Hotkeys.swift:1775-1796 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"68304e44e6565fdcddbbf83442536b38e0509d1104a2e4752beabede34129081"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Lunar/Data/Util.swift:1264-1302 | Lunar/Data/Util.swift:1304-1338 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Lunar/Data/Util.swift"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e6477dd84399b84688978e7c52096e1e2eca5fe89c04f0c9ad6d139f1a2f6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Lunar/Data/Hotkeys.swift:1666-1690 | Lunar/Data/Hotkeys.swift:1692-1716 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fcb50ebe85f109854b038dd0afad66a6d387cec3ac7107a769d15e1dfaa251"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Lunar/Controllers/OnboardPageController.swift:177-202 | Lunar/Controllers/RaspberryPageController.swift:51-80 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Lunar/Controllers/OnboardPageController.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca47ac25615fe684eb7fcd19238c6208113951faef0cb987f497c00b8208ef79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Lunar/Views/Button.swift:213-247 | Lunar/Views/ToggleButton.swift:141-175 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Lunar/Views/Button.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2f893bddc90acdcfe57495fc32af24cd5207b97454f74d9e9fe3bf9341a3e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Lunar/Views/OSDWindow.swift:1251-1277 | Lunar/Views/OSDWindow.swift:1279-1303 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d27e833ba9c9eddd19c67af75571911f915ae4de9413f1ad4c1580c3773c3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Lunar/Utils/LoginServiceKit.swift:76-93 | Lunar/Utils/LoginServiceKit.swift:97-113 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"Lunar/Utils/LoginServiceKit.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8268512fc45963929bf267c96f393c59f6fe56c3aa75cdf5ec75669061bf4f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Lunar/SwiftUIViews/DisconnectedDisplayView.swift:11-32 | Lunar/SwiftUIViews/ManageButtonView.swift:8-28 \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":"Lunar/SwiftUIViews/DisconnectedDisplayView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c032ac58a08aaf97bdde7a25e6213a41e396f0b2eaa24f010de32844bfe55bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Lunar/SwiftUIViews/DisplayRowView.swift:590-608 | Lunar/SwiftUIViews/UnmanagedDisplayView.swift:6-22 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff33a1877f7d0dda395ab07cec37681f40d69b231fddb4b3397dbfa77309af91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Lunar/Data/Hotkeys.swift:1718-1733 | Lunar/Data/Hotkeys.swift:1735-1750 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"564f90da1b49aba968134a00980f8c2925c48e4e7cc0eeaa5d18cadb7e04793e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): LunarShortcuts/LunarShortcuts.swift:2087-2098 | LunarShortcuts/LunarShortcuts.swift:2126-2137 | LunarShortcuts/LunarShortcuts.swift:2165-2176 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"70499eaaefeaa79bae0d2c4d53e803dbd02fbf98c3b3cfefacc9285e742dbf79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): LunarShortcuts/LunarShortcuts.swift:3626-3645 | LunarShortcuts/LunarShortcuts.swift:3668-3683 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":3626}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca590ea87894b6b1e9ac2bafa5ff8fd745c20d30166c0d6bc46c83a83c9a8dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Lunar/Utils/DisplayController.swift:2873-2896 | Lunar/Utils/DisplayController.swift:2898-2918 \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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2873}}}],"partialFingerprints":{"codehealthFindingId/v1":"480efec0f3e3b10b93f1637e047eaa4c35ca7d451c9bbf392261eb14582dc455"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Lunar/Views/OSDWindow.swift:859-872 | Lunar/Views/OSDWindow.swift:945-958 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"617cd491248ff7ab35a768ee1c2db5917412518687e674d89d33609b8d3f4e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Lunar/Shout/Channel.swift:97-110 | Lunar/Shout/SFTP.swift:257-270 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Lunar/Shout/Channel.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef93c009819b3278c04ba4135c73135f69fa94115a2b4ce0e33a09ec1c544642"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Lunar/DDC/DDC.swift:1230-1245 | Lunar/DDC/DDC.swift:1247-1262 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c483012ffb3aa748ab0b5ed2b094d960b2a98b74c0efa6f73d1ac037d77fd86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Lunar/Data/Util.swift:253-277 | Lunar/Data/Util.swift:307-324 \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":"Lunar/Data/Util.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec1929be6b87e8f2058e3d760a6c69bb472d8fb8e1923d06231482ce2bd56b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Lunar/Views/ScrollableBrightness.swift:142-160 | Lunar/Views/ScrollableContrast.swift:142-160 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"Lunar/Views/ScrollableBrightness.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc396deac6e1cbe513447adfbb86c847752f991163a0361fc21b3a26e7a9ca38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): LunarShortcuts/LunarShortcuts.swift:2780-2798 | LunarShortcuts/LunarShortcuts.swift:2886-2904 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":2780}}}],"partialFingerprints":{"codehealthFindingId/v1":"3937187daab0f37c87820f843937ea028bd5e69756e03520e28328a7cb22df6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): Lunar/Data/SwiftyLogger.swift:36-42 | Lunar/Data/SwiftyLogger.swift:44-50 | Lunar/Data/SwiftyLogger.swift:52-58 | Lunar/Data/SwiftyLogger.swift:60-66 | Lunar/Data/SwiftyLogger.swift:68-74 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/SwiftyLogger.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"516930c029746c73cdbf45fb199cb0545e940db963705ba0bad41bdd06c38382"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Lunar/Data/Display.swift:6617-6632 | Lunar/Data/Display.swift:6669-6680 \u2014 These two members are one piece of code written twice and then edited apart: 12 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":"Lunar/Data/Display.swift"},"region":{"startLine":6617}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae0f62121f11cfce221c03b6ef21b5374ec80e7a5a26396a91c534990c7de30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Lunar/AppDelegate.swift:2600-2617 | Lunar/AppDelegate.swift:2619-2636 \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":"Lunar/AppDelegate.swift"},"region":{"startLine":2600}}}],"partialFingerprints":{"codehealthFindingId/v1":"8785c51c15dc9f1072f1898d8b64c3dff4b5a7b476952bf2d2adbc6316983a6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Lunar/Data/Util.swift:959-967 | Lunar/Data/Util.swift:983-992 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"Lunar/Data/Util.swift"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c84ab42c6e5d9c996838d9e15dc80efe6606ab53ad2eddaf1d26c2b4de9ae58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Lunar/DDC/DDC.swift:1567-1575 | Lunar/DDC/DDC.swift:1577-1585 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"98adda61921fdf0f394aa0b2e135440fb2b8b5b0203db8fa7c5e76588399758f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Lunar/Data/DataStore.swift:318-333 | Lunar/Data/DataStore.swift:335-354 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Lunar/Data/DataStore.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"8454eb6682498f71a1e0e90e228a3adb0c81a6524e74f3b7b2c2d95353cece76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Lunar/Control/NetworkControl.swift:541-556 | Lunar/Control/NetworkControl.swift:558-572 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"Lunar/Control/NetworkControl.swift"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c79643b2446f3a55df9d4fdc93f73e414e737bc9419e6965ad7298af7724cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): Lunar/Utils/Extensions.swift:651-656 | Lunar/Utils/Extensions.swift:668-673 | Lunar/Utils/Extensions.swift:685-690 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Utils/Extensions.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ecc15a3abf34aa10f83b53d4ac4e92b4391c73a1a542c382a739721ea27272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Lunar/Views/PopUpButton.swift:162-171 | Lunar/Views/ToggleButton.swift:108-117 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"Lunar/Views/PopUpButton.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0a57b0dbb5ce2dbca8724725f0eaff5fdb7bc2d61194c593868f2e9e3723a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Lunar/Views/PopUpButton.swift:151-160 | Lunar/Views/ToggleButton.swift:96-106 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"Lunar/Views/PopUpButton.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"36728f028359ecebd11cb1f1b2ebe1dd2b9e1a46a25da49d74a0faeddde7eb83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Lunar/Data/CLI.swift:1474-1492 | Lunar/Data/CLI.swift:1529-1552 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"Lunar/Data/CLI.swift"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d25cea7f91b311df884b6bde3f87862203507f870b9e84720e7383afda1b3fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Lunar/Views/Components.swift:362-374 | Lunar/Views/ProViews.swift:329-345 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"Lunar/Views/Components.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1668e8e5dffecc70017c7266d24fd1a837cda43a629d0b1ff2d1d4809d3a4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): LunarShortcuts/LunarShortcuts.swift:2445-2462 | LunarShortcuts/LunarShortcuts.swift:2488-2500 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":2445}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f64977816437155e7fb3b5a62168a1d1f44af8062acfaed6ea539d5e1b8683"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): Lunar/AppDelegate.swift:2761-2780 | Lunar/AppDelegate.swift:2782-2799 | Lunar/AppDelegate.swift:2801-2820 | Lunar/AppDelegate.swift:2822-2839 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/AppDelegate.swift"},"region":{"startLine":2761}}}],"partialFingerprints":{"codehealthFindingId/v1":"915374249fb115306541392397ed9a08b446e9bdbc69fd5dff8cfe0bf02141f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Lunar/Controllers/ControlChoiceViewController.swift:309-327 | Lunar/Controllers/ControlChoiceViewController.swift:329-352 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d1ec264716b9ecf66976877c9fa61e0f93126bee3f948f0daed02c84bcd9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Lunar/Controllers/SplitViewController.swift:363-377 | Lunar/Controllers/SplitViewController.swift:379-394 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"Lunar/Controllers/SplitViewController.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07f9bc08e26ed5e62fc702fcd8cf11e353492bf947dd1aab53900eaea7db490"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Lunar/AppDelegate.swift:462-472 | Lunar/AppDelegate.swift:476-486 | Lunar/AppDelegate.swift:490-500 | Lunar/AppDelegate.swift:504-512 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/AppDelegate.swift"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb1a329b715cd59116179372aee51a12b1cac679fd0acc38381928acfe08b8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Lunar/Data/Util.swift:708-718 | Lunar/Data/Util.swift:823-833 | Lunar/Data/Util.swift:842-852 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e865873d897dd94e80f09cea3fe24367839ab5a3f4f8347d54957c70c07c9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Lunar/Utils/DisplayController.swift:1417-1431 | Lunar/Utils/DisplayController.swift:1601-1617 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"246f76cfd8a05278a57899ea27ed2c4de8e38eab55a8f30d0bae1e16224916aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Lunar/Views/ScrollableTextField.swift:46-56 | Lunar/Views/ScrollableTextField.swift:61-71 | Lunar/Views/ScrollableTextField.swift:82-92 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ScrollableTextField.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"764b85b79926f5ef8dbe5373d633fa5fe7eac103ec0cec9ffb901daa809c4002"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Lunar/Views/PaddedTextField.swift:63-66 | Lunar/Views/PaddedTextField.swift:101-104 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"Lunar/Views/PaddedTextField.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"09993babddf62b9c03334b545395b3d89f92913351f066e1f7ecb565eb1af9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Lunar/Utils/Extensions.swift:967-978 | Lunar/Utils/Extensions.swift:1062-1071 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"Lunar/Utils/Extensions.swift"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34878eab89e41b355d7912473e491d537aa374a6bf943a62b5577661e52741f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Lunar/Data/Util.swift:1519-1532 | Lunar/Data/Util.swift:1534-1543 | Lunar/Data/Util.swift:1545-1554 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a5b32d808dfef02324b89fca3f79a683673b61bb53bf8690fa2b9566975322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Lunar/Utils/Extensions.swift:358-371 | Lunar/Utils/Extensions.swift:560-573 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Lunar/Utils/Extensions.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bc9e853c2af34303afe3a77a04494756dc0ee84d4675955a2605fc60fb5d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Lunar/AppDelegate.swift:2727-2742 | Lunar/AppDelegate.swift:2744-2759 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2727}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bc7283fbc2f1396d552827c16cae687767052398f4e465a2ed18ed378952f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Lunar/Data/Display.swift:4439-4448 | Lunar/Data/Display.swift:4450-4459 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"Lunar/Data/Display.swift"},"region":{"startLine":4439}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2bd6b838396658c5995ae9eb4d7c945f95c0cd4ed0231ada40d2d3ed2b94e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Lunar/Data/Transformers.swift:20-28 | Lunar/Data/Transformers.swift:84-93 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"Lunar/Data/Transformers.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee53e88af381f6017e559ae2db447a0f0022cb58afe1013a48aa7500a0cc09e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Lunar/Data/Util.swift:889-892 | Lunar/Data/Util.swift:907-910 | Lunar/Data/Util.swift:925-928 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"3735e9dc80ef6a0421dda105446020a20245e9d6a769f080ef1bcdc6a4936d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Lunar/Control/Control.swift:36-45 | Lunar/Modes/AdaptiveMode.swift:33-42 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"Lunar/Control/Control.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68bed20f7f27caa80ef826e81f8c82d797772c46229da7d5bcda8c0d6d79559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Lunar/Data/Geolocation.swift:46-52 | Lunar/Data/Presets.swift:24-32 | Lunar/Data/Presets.swift:107-115 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Geolocation.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dc16a3d43846c168cc5d50be7272df28a01cbdc7b5889d80c7670b279ba651"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Lunar/DDC/DDC.swift:1055-1064 | Lunar/DDC/DDC.swift:1066-1074 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6dd7a11cb8c39380fe713ec494d05184b45cfe893f00fa319d2b9df97aecc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 6\u002B corresponding lines): LunarShortcuts/LunarShortcuts.swift:573-578 | LunarShortcuts/LunarShortcuts.swift:603-608 | LunarShortcuts/LunarShortcuts.swift:636-641 | LunarShortcuts/LunarShortcuts.swift:666-671 | LunarShortcuts/LunarShortcuts.swift:696-703 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9bb921dba2e048857aa57ccaeb93b46bdaf33cdecbeb57b7644a7a4879e295"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Lunar/Data/Display.swift:3234-3240 | Lunar/Data/Display.swift:3582-3588 | Lunar/Data/Display.swift:3590-3596 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":3234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e1c2aab6b892b6bbc90d47a94beadaa99d1c0248b5170963a9373df6082ab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Lunar/Data/Display.swift:4461-4470 | Lunar/Data/Display.swift:4472-4481 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"Lunar/Data/Display.swift"},"region":{"startLine":4461}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e5a51056d290886690e1bbb0d0e0ab124659e265859c9d2bf71560c77b4c51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Lunar/Views/ExceptionsView.swift:17-23 | Lunar/Views/ExceptionsView.swift:25-34 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"Lunar/Views/ExceptionsView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"43194e0837af4e91c59aa3ed8527eb3159ebe10076b5b1a256958640a050864c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 6\u002B corresponding lines): LunarShortcuts/LunarShortcuts.swift:787-792 | LunarShortcuts/LunarShortcuts.swift:858-863 | LunarShortcuts/LunarShortcuts.swift:888-893 | LunarShortcuts/LunarShortcuts.swift:918-925 | LunarShortcuts/LunarShortcuts.swift:950-955 | LunarShortcuts/LunarShortcuts.swift:980-987 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb8f793bfd8584acbe18ea928ee7959e68e632068362454ca68a15facb8a00a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): Lunar/Data/Util.swift:885-888 | Lunar/Data/Util.swift:903-906 | Lunar/Data/Util.swift:921-924 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d48e374925d8c1f183c78b70446297a0ede0046b27337cde8c726c317445b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): LunarShortcuts/LunarShortcuts.swift:1677-1682 | LunarShortcuts/LunarShortcuts.swift:1948-1953 \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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":1677}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef080bf5f07a3108fc8a1f6b49429bb395375602d1fc1bb3bf1c5a0fe1c9521"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Lunar/DDC/DDC.swift:44-50 | Lunar/Data/Geolocation.swift:94-100 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0f4369fb368ea6b2d1ce01767a250822fc17da1c526ce01d9cd7091d3b7cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Lunar/AppDelegate.swift:2723-2725 | Lunar/Utils/DisplayController.swift:2936-2940 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2723}}}],"partialFingerprints":{"codehealthFindingId/v1":"3916200913b6c8741c20363db1f20095516da8aa7e296d57168bfae8e6e83ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Lunar/Controllers/ControlChoiceViewController.swift:942-949 | Lunar/Controllers/ModeChoiceViewController.swift:164-169 \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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab50362b0b43f9c6f62e3fa68517bce3f8e66ecf711e1c24f896658300d8ef8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Lunar/Controllers/ControlChoiceViewController.swift:951-955 | Lunar/Controllers/HotkeysChoiceViewController.swift:113-116 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ea79cd989880ad8381c562f7cc2049542f227af0fdb6080ffc80b4bfbfd6c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): Lunar/Views/ScrollableBrightness.swift:176-210 | Lunar/Views/ScrollableContrast.swift:176-210 \u2014 before extracting anything, compare \u0060Lunar/Views/ScrollableBrightness.swift\u0060 and \u0060Lunar/Views/ScrollableContrast.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ScrollableBrightness.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fc25e98430f795f53f69332c03a3a5f7f66d731fc4df36a0761078ed9e1dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Lunar/SwiftUIViews/DisplayRowView.swift:235-259 | Lunar/SwiftUIViews/DisplayRowView.swift:303-327 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/SwiftUIViews/DisplayRowView.swift:235\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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2020bd29674a1f532168ec0b1a62e28cb98df079714b487d96071b11059b1a3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): Lunar/Data/Util.swift:412-434 | Lunar/Data/Util.swift:476-499 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Util.swift:476\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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. 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":"Lunar/Data/Util.swift"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0c6923c903d354228fbf48edec0e4f0f05c8ebf8cbd2316562115460da5720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Lunar/Data/CLI.swift:773-791 | Lunar/Data/CLI.swift:812-830 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/CLI.swift:773\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/CLI.swift"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"547ce859944ce683bc4f8e93e03a861074123f4cc95a3401fad366fb7611a7cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Lunar/Data/AppException.swift:25-42 | Lunar/Data/AppException.swift:60-76 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/AppException.swift:25\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/Data/AppException.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de0172fc26a0ce9d18b812a400d69bf1b6cce39745ff7915c94e7cc38bdb88c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Lunar/SwiftUIViews/DisplayRowView.swift:261-284 | Lunar/SwiftUIViews/DisplayRowView.swift:329-352 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/SwiftUIViews/DisplayRowView.swift:261\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6646c83785677510c06c5e11b0ac60bf0dea6b90ed9140f9b8b03681ca2ce837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Lunar/Data/Util.swift:1282-1297 | Lunar/Data/Util.swift:1321-1337 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Util.swift:1282\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Util.swift"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b92833f3ff9a95d2dd28e1d16630df60fa4546767fbf0c17d19a1570aa90cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Lunar/Control/GammaControl.swift:387-402 | Lunar/Control/GammaControl.swift:456-471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Control/GammaControl.swift:387\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/Control/GammaControl.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7fec1d634510d4932c65d66c09439b9839a42cb6c632352b6701228cc5f9a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Lunar/SwiftUIViews/DisplayRowView.swift:286-301 | Lunar/SwiftUIViews/DisplayRowView.swift:381-396 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/SwiftUIViews/DisplayRowView.swift:286\u0060 it begins part-way through the construct above it, 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"413c078946b5378f34c1a14b31360321618b98e4ca0b8ff3bea36323a8b9c27a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): LunarShortcuts/LunarShortcuts.swift:3240-3254 | LunarShortcuts/LunarShortcuts.swift:3323-3338 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LunarShortcuts/LunarShortcuts.swift:3240\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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":3240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4410a221932d85738cd4866c27ce567e8ff33b208b2d1b8f8468ee3ba1618e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Lunar/Controllers/ControlChoiceViewController.swift:1148-1162 | Lunar/Controllers/ControlChoiceViewController.swift:1225-1239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Controllers/ControlChoiceViewController.swift:1148\u0060 it begins part-way through the construct above it, 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Lunar/Controllers/ControlChoiceViewController.swift:1165\u0060 calls \u0060isAvailable\u0060 and \u0060Lunar/Controllers/ControlChoiceViewController.swift:1241\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d30da10bcda478f90d670112e9955fb7f2490b90a004b63c5d0339567b1daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Lunar/Controllers/DisplayViewController.swift:771-783 | Lunar/Controllers/ExceptionsViewController.swift:119-133 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Lunar/Controllers/ExceptionsViewController.swift:115\u0060 calls \u0060addTrackingArea\u0060 and \u0060Lunar/Controllers/DisplayViewController.swift:768\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"60499222425ae44ebb2f5bbdd547cd0255be1a06e56b134832650c656365c8f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): LunarShortcuts/LunarShortcuts.swift:2552-2566 | LunarShortcuts/LunarShortcuts.swift:2630-2644 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LunarShortcuts/LunarShortcuts.swift:2552\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":2552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad53b510162f111b1da7fac7714c900ad8571be30d0afad28651c65ca7c93b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): Lunar/Utils/DisplayController.swift:2183-2196 | Lunar/Utils/DisplayController.swift:2201-2212 | Lunar/Utils/DisplayController.swift:2232-2245 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Utils/DisplayController.swift:2183\u0060 it begins part-way through the construct above it, 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db1fb12bb1117ce941308e28ebf16a41b5319687466c2828c73de2191f72ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Lunar/AppDelegate.swift:2604-2617 | Lunar/AppDelegate.swift:2624-2636 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/AppDelegate.swift:2604\u0060 it begins part-way through the construct above it, 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2604}}}],"partialFingerprints":{"codehealthFindingId/v1":"c414b783ef9292c394e11da07f7f44158827181ccaf6dfee72e9de3516e0f205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Lunar/Data/Display.swift:585-598 | Lunar/Data/Display.swift:750-763 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Display.swift:585\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 register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c4504a3596cdb5f6d43eccc79bf71ac47dd24b698c1b52eb98937e5b49b526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Lunar/Controllers/ControlChoiceViewController.swift:1143-1155 | Lunar/Controllers/ControlChoiceViewController.swift:1185-1197 | Lunar/Controllers/ControlChoiceViewController.swift:1220-1232 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Controllers/ControlChoiceViewController.swift:1143\u0060 it begins part-way through the construct above it, 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6d48d4047b86c73aa1eddf68de7b5b25788966bf81b1675e020b560c20621b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Lunar/Controllers/ControlChoiceViewController.swift:612-624 | Lunar/Controllers/ControlChoiceViewController.swift:626-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1722bb1a2041a14ef702057d73708cf9fee9ba7698e77d8a9242f7ffb7a15d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Lunar/SwiftUIViews/DisconnectedDisplayView.swift:85-97 | Lunar/SwiftUIViews/DisplayRowView.swift:636-647 \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 \u0060Lunar/SwiftUIViews/DisconnectedDisplayView.swift:85\u0060 it begins part-way through the construct above it, 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":"Lunar/SwiftUIViews/DisconnectedDisplayView.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9b2171e7dc5d1f38e71b3322975d68d9bb846c094d5bafeeeecf9c1dcf2b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Lunar/Controllers/DisplayViewController.swift:491-502 | Lunar/Controllers/DisplayViewController.swift:506-517 | Lunar/Controllers/DisplayViewController.swift:521-532 | Lunar/Controllers/DisplayViewController.swift:536-547 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. 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":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef868eee343509ed9256b700216c4c853eaae30165e5e862166eff7d5661d51c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Lunar/Data/CLI.swift:1724-1735 | Lunar/Data/CLI.swift:1773-1784 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/CLI.swift:1724\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":"Lunar/Data/CLI.swift"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"89000c7252d097566dc7d92e1b33e7aca79fe9da99a3fc28c1b5155f7f820c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Lunar/Data/Display.swift:2142-2153 | Lunar/Data/Display.swift:4093-4104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Display.swift:2142\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/Data/Display.swift"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d8d483e78391e94cf0aa8919ac7a54ab2f10cbf821eb7c5123dd8efe216af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Lunar/Data/Hotkeys.swift:1679-1690 | Lunar/Data/Hotkeys.swift:1705-1716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Hotkeys.swift:1679\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cb1b944154911b311c3e62eee0b849f8b59a18188fcc0ad696a73983e5f5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Lunar/Data/Util.swift:89-100 | Lunar/Data/Util.swift:102-113 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Util.swift:89\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Util.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5db8d0369d59639640946c63174b9d6ca28d8a61eca2f118f3a76d8dc90a622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Lunar/Views/ScrollViewIfNeeded.swift:141-151 | Lunar/Views/ScrollViewIfNeeded.swift:154-164 | Lunar/Views/ScrollViewIfNeeded.swift:167-177 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ScrollViewIfNeeded.swift:141\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ScrollViewIfNeeded.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3286e7f4864efac1769a7315ae11308ad00ed45320dbbd3952c31e6eaaa39d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Lunar/AppDelegate.swift:2492-2500 | Lunar/ErrorReports.swift:135-145 \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 \u0060Lunar/AppDelegate.swift:2492\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":"Lunar/AppDelegate.swift"},"region":{"startLine":2492}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffe894d302a0a404ebcd272ef1622c0d1c82fe89a808ce802f6a7aa793255d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Lunar/Data/Display.swift:5158-5168 | Lunar/Data/Display.swift:5186-5196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Display.swift:5158\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Display.swift"},"region":{"startLine":5158}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd64cc6a84cc28819410c6b4877e89a6aa644ec305fd419f14cc657d36539be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Lunar/Data/Hotkeys.swift:1723-1733 | Lunar/Data/Hotkeys.swift:1740-1750 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Hotkeys.swift:1723\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1723}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acb27c37ebce16ca4739c179f1031db8be89c05e3a870d1391e623e91a48c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Lunar/SwiftUIViews/DisplayRowView.swift:406-416 | Lunar/SwiftUIViews/QuickActionsMenuView.swift:77-87 \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 \u0060Lunar/SwiftUIViews/DisplayRowView.swift:406\u0060 it begins part-way through the construct above it, 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Lunar/SwiftUIViews/QuickActionsMenuView.swift:88\u0060 calls \u0060foregroundColor\u0060 and \u0060Lunar/SwiftUIViews/DisplayRowView.swift:417\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a39debbb9592670f452dbd635536f4cdb2d8d7853d4fd14fe8011bae3784e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Lunar/Views/PaddedTextField.swift:68-78 | Lunar/Views/PaddedTextField.swift:106-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/PaddedTextField.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6502955ae8c70939cda87307279bb342acbc7c6ff0bee5aabe7d64b4cf6cce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): LunarShortcuts/LunarShortcuts.swift:3286-3296 | LunarShortcuts/LunarShortcuts.swift:3369-3379 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LunarShortcuts/LunarShortcuts.swift:3286\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":3286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d11ea34b1bd8a48adfb7a977089d8dbd0bb1924f9dec58bf16ac4c92e40dc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201319 lines \u00D7 3): Lunar/Data/Hotkeys.swift:1443-1461 | Lunar/Data/Hotkeys.swift:1480-1498 | Lunar/Data/Hotkeys.swift:1517-1530 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Hotkeys.swift:1443\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d95546cd612a8a84cf7a08d1314d350a14945977ab49417ca08c27564cc85a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Lunar/Views/ProViews.swift:132-141 | Lunar/Views/ProViews.swift:151-159 | Lunar/Views/ProViews.swift:169-177 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ProViews.swift:132\u0060 it begins part-way through the construct above it, 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":"Lunar/Views/ProViews.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5401966d7ed308ba9519b6868e09ab6ea71784d807452ab2af6f2b887c5c313e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Lunar/AppDelegate.swift:2762-2771 | Lunar/AppDelegate.swift:2802-2811 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/AppDelegate.swift:2762\u0060 it begins part-way through the construct above it, 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2762}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d835dd4ce0543bd4e42d31e85f227dbaa2774aec190c32d078b4ecd140d9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Lunar/Controllers/ControlChoiceViewController.swift:854-863 | Lunar/Controllers/ControlChoiceViewController.swift:879-888 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Controllers/ControlChoiceViewController.swift:854\u0060 it begins part-way through the construct above it, 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":"Lunar/Controllers/ControlChoiceViewController.swift"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3813ffd4b2ba0da96826cb109f1dd4bc786ea9e7ab0b54b93f79163b90ae86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Lunar/Utils/DisplayController.swift:2826-2835 | Lunar/Utils/DisplayController.swift:2845-2854 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Utils/DisplayController.swift:2826\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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2826}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd2f934313f9bf691972669e7b38eee9415f191fd94e57708305ab3d63b8223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Lunar/Views/OSDWindow.swift:863-872 | Lunar/Views/OSDWindow.swift:949-958 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/OSDWindow.swift:863\u0060 it begins part-way through the construct above it, 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":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d9c2f6ed7acb8cf6103ecf40c4c446fff2fc4225f9198fd55e585ad0dc3d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Lunar/Views/ScrollViewIfNeeded.swift:119-128 | Lunar/Views/ScrollViewIfNeeded.swift:132-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ScrollViewIfNeeded.swift:119\u0060 it begins part-way through the construct above it, 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":"Lunar/Views/ScrollViewIfNeeded.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87f5053c19320b199d512e19443c1d282c32553b0711bdd4602acecd554257c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Lunar/Views/ScrollableBrightness.swift:142-151 | Lunar/Views/ScrollableContrast.swift:142-151 \u2014 before extracting anything, compare \u0060Lunar/Views/ScrollableBrightness.swift\u0060 and \u0060Lunar/Views/ScrollableContrast.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ScrollableBrightness.swift:142\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":"Lunar/Views/ScrollableBrightness.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c710086532ac33c66069252c01edc9d7358671819eedeb40c194f1959f232cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Lunar/Views/Slider.swift:136-145 | Lunar/Views/Slider.swift:169-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/Slider.swift:136\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":"Lunar/Views/Slider.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6f54417902b4ba23c1304b7012584a18c993ad44bb29c0d17491e4827ce844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Lunar/AppDelegate.swift:464-472 | Lunar/AppDelegate.swift:478-486 | Lunar/AppDelegate.swift:492-500 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/AppDelegate.swift:464\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/AppDelegate.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3e5006ff1c939e8f6d1ed0fce1055233e93e24d0a4e47551331f3bc9247dd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Lunar/Data/Util.swift:1265-1273 | Lunar/Data/Util.swift:1305-1313 | Lunar/Data/Util.swift:1341-1349 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5ce9fc2105b6b8b556cc78449d2cacca135bdf693cb3cf6506072ee2d2dcfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Lunar/AppDelegate.swift:2783-2791 | Lunar/AppDelegate.swift:2823-2831 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/AppDelegate.swift:2783\u0060 it begins part-way through the construct above it, 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":"Lunar/AppDelegate.swift"},"region":{"startLine":2783}}}],"partialFingerprints":{"codehealthFindingId/v1":"298b1b0814c6e3caaa5d7caa976561ec835eb8502504ef5ab5d2d050e4cb31b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Lunar/Data/Hotkeys.swift:1758-1773 | Lunar/Data/Hotkeys.swift:1781-1796 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Hotkeys.swift:1758\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"105288e1a1ffd82f10f29a9a6b52373a8c04f9b8d2f42fc2d599d957b543a60d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Lunar/Data/Util.swift:596-605 | Lunar/Data/Util.swift:623-633 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Util.swift:596\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Util.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c4bd17ab48fc933ebcda15b5172c0b1959ef12726a946b3f1859e07417a14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Lunar/SwiftUIViews/DisplayRowView.swift:510-518 | Lunar/Views/OSDWindow.swift:366-374 \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 \u0060Lunar/SwiftUIViews/DisplayRowView.swift:510\u0060 it begins part-way through the construct above it, 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":"Lunar/SwiftUIViews/DisplayRowView.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c55b8e8286c56782c19f05f8af533820bd5d283877c911cee8cb1c274f2de51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Lunar/Utils/Extensions.swift:738-746 | Lunar/Utils/Extensions.swift:786-794 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Utils/Extensions.swift"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d14d723e5a9a169701a45aae35860662a2c761aa7ac55d7837f47d6b5a5f8ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Lunar/Views/Schedule.swift:176-184 | Lunar/Views/Schedule.swift:198-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"Lunar/Views/Schedule.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"597c8618216c0fe6addb2a5792ca0b4ff440f86bb7067fad7e708fcc82bf140c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Lunar/Views/ProViews.swift:132-140 | Lunar/Views/ProViews.swift:151-158 | Lunar/Views/ProViews.swift:169-176 | Lunar/Views/ProViews.swift:212-219 | Lunar/Views/ProViews.swift:226-233 | Lunar/Views/ProViews.swift:240-247 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ProViews.swift:132\u0060 it begins part-way through the construct above it, 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":"Lunar/Views/ProViews.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d65e971525983002bce1493ce82daab3de23b841907daed9ccab2607e92b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Lunar/Utils/DisplayController.swift:1896-1903 | Lunar/Utils/DisplayController.swift:1905-1912 | Lunar/Utils/DisplayController.swift:1914-1921 | Lunar/Utils/DisplayController.swift:1923-1930 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Utils/DisplayController.swift:1896\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e927bf7e47cbc0a87e41362f6079285e05cad09828036459c90b7bd5073e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): LunarShortcuts/LunarShortcuts.swift:3179-3186 | LunarShortcuts/LunarShortcuts.swift:3245-3252 | LunarShortcuts/LunarShortcuts.swift:3328-3335 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LunarShortcuts/LunarShortcuts.swift:3179\u0060 it begins part-way through the construct above it, 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":3179}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cca8c444c3fda0e3afaabe0c2bac8284e7484e0a3b074a46f538491b92470bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Lunar/Views/OSDWindow.swift:1266-1273 | Lunar/Views/OSDWindow.swift:1292-1299 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/OSDWindow.swift:1266\u0060 it begins part-way through the construct above it, 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bcd6bbc507a2a790b17539ad6c58b37ee197246a9e1561c31af169003cc296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Lunar/Views/ScrollableTextField.swift:49-56 | Lunar/Views/ScrollableTextField.swift:64-71 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ScrollableTextField.swift:49\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/Views/ScrollableTextField.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f652ae9657b981842628354d81316e35212b46176b8331852a40dbfa80795ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Lunar/AppDelegate.swift:1514-1520 | Lunar/AppDelegate.swift:1549-1555 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/AppDelegate.swift:1514\u0060 it begins part-way through the construct above it, 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":"Lunar/AppDelegate.swift"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"10606be53f84057cfb32992f57e5212689373cfd3ac86c1de00dc000b41312fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Lunar/Utils/DisplayController.swift:786-801 | Lunar/Utils/DisplayController.swift:820-835 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Utils/DisplayController.swift:786\u0060 it begins part-way through the construct above it, 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"75de311255db01def35078a5b63e080e78eb2d6809098f7509559736f31f92b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Lunar/Views/HotKeyView.swift:150-159 | Lunar/Views/HotKeyView.swift:178-187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/HotKeyView.swift:150\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"Lunar/Views/HotKeyView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf4a724cf795142c0fe054b6b862bc475308c8da9bef7c6c5c713791daa7236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Lunar/Views/OSDWindow.swift:832-838 | Lunar/Views/OSDWindow.swift:930-936 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Lunar/Views/OSDWindow.swift:830\u0060 calls \u0060stride\u0060 and \u0060Lunar/Views/OSDWindow.swift:928\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f4b10b41096c978bc57e22f3e385ff13f0eff275a51be728c7ef3326892fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): LunarShortcuts/LunarShortcuts.swift:3085-3091 | LunarShortcuts/LunarShortcuts.swift:3137-3143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LunarShortcuts/LunarShortcuts.swift:3085\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":3085}}}],"partialFingerprints":{"codehealthFindingId/v1":"4274ff16e64a489a47f9e8dd90c13cdb48c8db3e8594a3da043897259de93ecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Lunar/Data/Hotkeys.swift:1214-1220 | Lunar/Data/Hotkeys.swift:1241-1247 | Lunar/Data/Hotkeys.swift:1253-1259 | Lunar/Data/Hotkeys.swift:1265-1271 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Hotkeys.swift:1214\u0060 it begins part-way through the construct above it, 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d5f6b488df241e32f3220206d6d654df446a95bfcf69702c0b6c998d54ca5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Lunar/Data/CLI.swift:2236-2241 | Lunar/Data/CLI.swift:2246-2251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/CLI.swift:2236\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/CLI.swift"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f5ae455050bd02d6817f11dd3cbafc16292a89d46b700c695d0b2563c66a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Lunar/Utils/DisplayController.swift:804-810 | Lunar/Utils/DisplayController.swift:838-845 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Utils/DisplayController.swift:804\u0060 it begins part-way through the construct above it, 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca488501741dabda7fa5b6bbada4790ec39a1d10fd96bc5d46a511eb90f1838a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): LunarShortcuts/LunarShortcuts.swift:3133-3138 | LunarShortcuts/LunarShortcuts.swift:3364-3374 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LunarShortcuts/LunarShortcuts.swift:3133\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":3133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1e590c70b137cf783106a2cff74a84c40294b7621b87b0330bd67b8ac167fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Lunar/DDC/DDC.swift:427-431 | Lunar/Utils/Extensions.swift:198-203 \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 \u0060Lunar/DDC/DDC.swift:427\u0060 it begins part-way through the construct above it, 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":"Lunar/DDC/DDC.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f324e978966c648bec9faadff30564d2147a223f816456bc2f7cc82f18f10d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Lunar/Data/CLI.swift:759-764 | Lunar/Data/CLI.swift:797-802 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/CLI.swift:759\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":"Lunar/Data/CLI.swift"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a541dd9305db361e75afa3c25fdc7b4ff7ca68bdcb5344ee99303b439510ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Lunar/Data/Display.swift:6114-6126 | Lunar/Data/Display.swift:6145-6157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Display.swift:6114\u0060 it begins part-way through the construct above it, 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":"Lunar/Data/Display.swift"},"region":{"startLine":6114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e2531dd3e902642564c28ee3d754bc6fcd8024b934d0ee0d50878c9ec2e0cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): Lunar/Data/Hotkeys.swift:1464-1468 | Lunar/Data/Hotkeys.swift:1501-1505 | Lunar/Data/Hotkeys.swift:1534-1536 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Data/Hotkeys.swift:1534\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Lunar/Data/Hotkeys.swift:1468\u0060 calls \u0060showOsd\u0060, \u0060volumeOsdImage\u0060 and \u0060Lunar/Data/Hotkeys.swift:1536\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb495cf0846c2e052545a66432301734969ef57d90fd3dc2bea481b605bc1cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Lunar/Data/Util.swift:710-714 | Lunar/Data/Util.swift:844-848 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060name\u0060 to \u0060String = \u0022serialAsyncAfter\u0022\u0060 in one and \u0060String = \u0022mainAsyncAfter\u0022\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Util.swift"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8c9f7e1ef57b1088600f69d43664d1a412f577d49f9ffc507947eac0ca63a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Lunar/Views/ProViews.swift:42-48 | Lunar/Views/ProViews.swift:258-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ProViews.swift:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Lunar/Views/ProViews.swift:256\u0060 calls \u0060HStack\u0060, \u0060Image\u0060, \u0060font\u0060 and \u0060Lunar/Views/ProViews.swift:41\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ProViews.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e067cf46ea19a81f15705f3fb1ef8c06956afcf3968aeeec069118d691db0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Lunar/Views/ScrollableBrightness.swift:134-140 | Lunar/Views/ScrollableContrast.swift:134-140 \u2014 before extracting anything, compare \u0060Lunar/Views/ScrollableBrightness.swift\u0060 and \u0060Lunar/Views/ScrollableContrast.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ScrollableBrightness.swift:134\u0060 it begins part-way through the construct above it, 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":"Lunar/Views/ScrollableBrightness.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a666acfeaab89304cc767d2432b6dd7cc2af333bdfd1d0ebd18162ef702d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): LunarShortcuts/LunarShortcuts.swift:1962-1970 | LunarShortcuts/LunarShortcuts.swift:2021-2029 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060LunarShortcuts/LunarShortcuts.swift:1962\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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"5403607e4a76cacb9160dee65172d9704ea69daef1c648a5324303ac1e2f8bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Lunar/AppDelegate.swift:896-901 | Lunar/Modes/AdaptiveMode.swift:230-235 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/AppDelegate.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"4647b83ec364469cec43b5205a31f411a73dfe396583d87194bb1b00c276fe24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Lunar/Controllers/OnboardPageController.swift:163-167 | Lunar/Controllers/PageController.swift:40-44 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Controllers/OnboardPageController.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24f7999f7bf3775d415a52e19744f52f6861c361175106ffdc3c35ac13d47b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Lunar/Data/Display.swift:6573-6577 | Lunar/Modes/AdaptiveMode.swift:209-213 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":6573}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc343321531080be926d32c7cf3c917afbe4841597b6a6979b8de212ca0c70b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Lunar/Data/Display.swift:4214-4219 | LunarShortcuts/LunarShortcuts.swift:196-201 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Display.swift"},"region":{"startLine":4214}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6c348f5dfc6d05ea3b87e2b01610f0d7110d220a0fb4b32923032dc7286b3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Lunar/Views/ScrollableBrightness.swift:162-174 | Lunar/Views/ScrollableContrast.swift:162-174 \u2014 before extracting anything, compare \u0060Lunar/Views/ScrollableBrightness.swift\u0060 and \u0060Lunar/Views/ScrollableContrast.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/ScrollableBrightness.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a7ab59d7bdc0fe805b3d59df1ad51df413274a386fa9966f7fd7f6910e127a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Lunar/Views/OSDWindow.swift:394-399 | Lunar/Views/OSDWindow.swift:404-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Views/OSDWindow.swift"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6af0dd3585b8a83f64286375f3a03f36de7682d575d8879ad63db21c3d0cff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Lunar/Views/ScrollableBrightness.swift:127-132 | Lunar/Views/ScrollableContrast.swift:127-132 \u2014 before extracting anything, compare \u0060Lunar/Views/ScrollableBrightness.swift\u0060 and \u0060Lunar/Views/ScrollableContrast.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Lunar/Views/ScrollableBrightness.swift:127\u0060 it begins part-way through the construct above it, 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":"Lunar/Views/ScrollableBrightness.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e49c6ef5c0d7c7dd43d0c5b6e8aac488dbba30d867458182adbb6291481629"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 49): AppDelegate\u0027s methods fall into 49 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 49 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":"Lunar/AppDelegate.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"167eebf842b0238af6fd5941e5773ad0bfa9c956c790322bfa0098a6ee3e4078"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DDCControl (LCOM4 26): DDCControl\u0027s methods fall into 26 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 26 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":"Lunar/Control/DDCControl.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"645266864ee592d1601851436f363111d933961bc1c2f87f62b0faf13501f827"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppleNativeControl (LCOM4 23): AppleNativeControl\u0027s methods fall into 23 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 23 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":"Lunar/Control/AppleNativeControl.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1def72172b06254d22e86a211f9d014320ab16b3330bfd37e38e4a1167dbce43"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GammaControl (LCOM4 17): GammaControl\u0027s methods fall into 17 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 17 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":"Lunar/Control/GammaControl.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecad73fcd4e41a41ecd539a3ced76c4a00bb9dd4c119cd81e0862f3d47747901"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Display (LCOM4 9): Display\u0027s methods fall into 9 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 9 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":"Lunar/Data/Display.swift"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"458503c661fb3afde656db559e0bc98b0b63f41a44928372b46c783e5785df46"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DisplayName (LCOM4 9): DisplayName\u0027s methods fall into 9 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 9 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":"Lunar/Views/DisplayName.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f1d9842bc075ae4bcf412efc1779548075590ca3f218707d9d45c3a452975d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 9): String\u0027s methods fall into 9 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 9 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":"Lunar/Data/ColorizeSwift.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"306027cfc98ba0f75b9742cd720561e1e04a278f84cb54834cb99b704ad0aff7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NSView (LCOM4 8): NSView\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":"Lunar/Controllers/GammaViewController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e6c3514bf5da362d41a3daa0376f144dbee0aef515b6e1a3de8dc2732a39e2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Array (LCOM4 8): Array\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":"Lunar/Utils/Extensions.swift"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"12749d93faa6cd2e32109bbda1582523adad718703f4b909410a8c27684faaad"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Double (LCOM4 7): Double\u0027s methods fall into 7 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 7 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":"Lunar/Data/Util.swift"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"d709a6b8a7000799c87670b893a14ac37d8e357b4c5b79a7ca8ba6da91c8091d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Float (LCOM4 7): Float\u0027s methods fall into 7 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 7 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":"Lunar/Data/Util.swift"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13dc06d0d517339cd73d2c01db4b9cd7d17b81073721fefd6109855b08f16fc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DisplayViewController (LCOM4 6): DisplayViewController\u0027s methods fall into 6 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 6 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":"Lunar/Controllers/DisplayViewController.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f322a2af5a13308de0496789571b1f6b333eedc3acffef392bee235b8519ca5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HotkeysChoiceViewController (LCOM4 6): HotkeysChoiceViewController\u0027s methods fall into 6 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 6 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":"Lunar/Controllers/HotkeysChoiceViewController.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf598f7a5b1c58292290b27711c029dc951806d7423bb1376debd1a0232eaae1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PageController (LCOM4 6): PageController\u0027s methods fall into 6 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 6 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":"Lunar/Controllers/PageController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b912222b9e4a3e7e0754f0b444fcb38c3fdea5010b63e382767cb8bfbcc52258"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DisplayController (LCOM4 6): DisplayController\u0027s methods fall into 6 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 6 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":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f9cdcb20a4652f384a19439cadbd33f9e0a598ab7583bd1c2c1ed02526c6409"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OnboardPageController (LCOM4 5): OnboardPageController\u0027s methods fall into 5 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 5 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":"Lunar/Controllers/OnboardPageController.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dfc7ebd7246fa7832f7214eecc110ebbe2a395428a34768e050ac1d27d7aec"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HotkeyView (LCOM4 5): HotkeyView\u0027s methods fall into 5 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 5 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":"Lunar/Views/HotKeyView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9aa4a3b6155700cc138dd023b5f06d3ceef5690819e0d4f7debca510001cef"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Schedule (LCOM4 5): Schedule\u0027s methods fall into 5 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 5 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":"Lunar/Views/Schedule.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"84562a4b7cf81ebaf501c4802b3df27142596bdccdd842232b1280b4be205bb6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ScrollableTextFieldCaption (LCOM4 5): ScrollableTextFieldCaption\u0027s methods fall into 5 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 5 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":"Lunar/Views/ScrollableTextFieldCaption.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e355bb8a93cbf2b3132efc8adce0a972a51076ee3c399f0bb8cd3dd1ed33ac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: View (LCOM4 5): View\u0027s methods fall into 5 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 5 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":"Lunar/Data/Presets.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25b0e6f1df2c7065c20bfb14f196e9e29ba23dabf1f8aa7ec6997410257ac9f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CGFloat (LCOM4 5): CGFloat\u0027s methods fall into 5 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 5 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":"Lunar/Data/Util.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"910afaae6d11548ae067b497dfee4d2da376ae4ef8d9acbe1c2dd3f314ac7259"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConfigurationViewController (LCOM4 4): ConfigurationViewController\u0027s methods fall into 4 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 4 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":"Lunar/Controllers/ConfigurationViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb739876d947fdd14b8414a262f08616f327d34e1da7373b00f05b7799f9fc12"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ExceptionsViewController (LCOM4 4): ExceptionsViewController\u0027s methods fall into 4 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 4 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":"Lunar/Controllers/ExceptionsViewController.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a76585135b816cd109b3e2385ad719c6b6665857372a15dde5b2f025c096abc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OutputScrollView (LCOM4 4): OutputScrollView\u0027s methods fall into 4 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 4 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":"Lunar/Controllers/InstallOutputViewController.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8ba81c6301076b3c5380412064a0aeeca3dc40858313db8c48f1c1dc523143"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ManualMode (LCOM4 4): ManualMode\u0027s methods fall into 4 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 4 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":"Lunar/Modes/ManualMode.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dd58e0bcc56eb990c7fce693195223121ebb7d199432d25feac68980929ce0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AdaptiveModeButton (LCOM4 4): AdaptiveModeButton\u0027s methods fall into 4 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 4 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":"Lunar/Views/AdaptiveModeButton.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"427097416966c656a8e4bfde0b8c05dc7c7a9f6aeaca0739b9ff579c46d0196c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PageNavigationControl (LCOM4 4): PageNavigationControl\u0027s methods fall into 4 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 4 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":"Lunar/Views/PageNavigationControl.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d0c3c8e2c936aaef527f2d699094d2e5e0130239bccdb69331917b93c214bc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Slider (LCOM4 4): Slider\u0027s methods fall into 4 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 4 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":"Lunar/Views/Slider.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6b7dfc8b6873301756d9f9d232806da7280e64a10a5c1e4df89e82cabb2383"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (XCTest or Swift Testing), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: axswift: Dependency \u0060axswift\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060main\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9c4d9798f96e765611b407748170df4bc40f43ddbb14b0c2a33d3767494137e"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: bluesocket: Dependency \u0060bluesocket\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1a1edfabb984476db38340d69709e063998595e26e5979c32968f34e8f703d26"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: charts: Dependency \u0060charts\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"649a0702d9e79f44a90b2ca095c4616fd59df2c752c83e65f5cedf20be7a4cdf"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: keyholder: Dependency \u0060keyholder\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa08bd17242ed8d97552718dc823390551b12ef7bc92af42c04174db0a9efe9"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: magnet: Dependency \u0060magnet\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060dev\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b72875aa0041f5ad9d7ca87a012bed7a4f842c92b6a98b4295bc27d61ea92333"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: mediakeytap: Dependency \u0060mediakeytap\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060dev\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"637c754821c3cb60b03624b35ddb24418d3f11866eb6185cc61904393750013b"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: simplycoreaudio: Dependency \u0060simplycoreaudio\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060develop\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5655bfb187fb4a332fc67ec55b999ffabdedb2461f3548ad1615f5170ddc983d"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: swift-eventsource: Dependency \u0060swift-eventsource\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"100fcb5500d88e3ead0a92ed557360e8a02a85fd1f1478088ce51109ab5b4acd"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: swiftymarkdown: Dependency \u0060swiftymarkdown\u0060 is resolved in Lunar.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dba9032b5f02a9cc2e9d2d4de100d3a3653eb144c78a885a485f8a17a7fef811"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: axswift: Dependency \u0060axswift\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060main\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2e4985876081df9052511e346cce605fcd988ffda769026048742ca3ea479beb"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: bluesocket: Dependency \u0060bluesocket\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b320f7df60a49c1a5925c87ac1471289500ee52a66ce7adde178bd12383d0d7e"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: charts: Dependency \u0060charts\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"60ba7d5c1df5147a601f8696e7e5302fef567609c9d88cff14121da031c72c12"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: keyholder: Dependency \u0060keyholder\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9460bf2e621a0ee89c3c7a9bb8b1830fc79bbc7d1360d5c97a69458beaa04fff"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: magnet: Dependency \u0060magnet\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060dev\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a5c48bd2eac1b1806b9861c67ebc10e01ccf3ff2cfe609a5298d4e4f30ae738b"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: mediakeytap: Dependency \u0060mediakeytap\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060dev\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5cbaa33889ee7115ba6503804f3860769910ee0e86e7cdd6e01afa980e2bb7a6"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: simplycoreaudio: Dependency \u0060simplycoreaudio\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060develop\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"02ebe63d3c69fcf00831bae598f7d0650456e80d389e554728f78f02533e3ef5"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: swift-eventsource: Dependency \u0060swift-eventsource\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"54eab4e0866e7572a109a430702eb7667ae65aea5732be47d8b88d7e3507bcf4"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: swiftymarkdown: Dependency \u0060swiftymarkdown\u0060 is resolved in Lunar.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62b5c9e914b73443fa31c89490f59b288b07c0f78619769091f9a7c67b97800b"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ed73a3d6ca07cf26d6a2a78734047ebd39e9331da69038a4c60501a885a51f28"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D14","level":"error","message":{"text":"Banned license: md2html-phuker: \u0060md2html-phuker\u0060 0.5.2 is published on PyPI under \u0060GPL-3.0\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"beec8c5f34b78c276ab32552ec766d9e79656ef06f8d4797ecc68c3ccc9c3226"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: markdown-link-attr-modifier: \u0060markdown-link-attr-modifier\u0060 0.2.1 is published on PyPI under \u0060GPL-3.0\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7acf4539aaa425671c8d2132ce903cda534b815052edacd712a6918503af5635"}},{"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 \u0060Lunar.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3dd62311d29a4c7bdb04c321d073f15ca83f9fe0ad079044723bb83e4dd18e"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060oldHdrWorkaround\u0060 spells \u0060Hdr\u0060 where 12 names in the project spell it \u0060HDR\u0060: 12 of 13 names in project repository spell the token \u0060HDR\u0060 (12 of 13; unit: names in project repository containing \u0060HDR\u0060). Peers: AppDelegate.supportsHDR (Lunar/AppDelegate.swift:268); Display.keepHDREnabled (Lunar/Data/Display.swift:1715); Display.supportsHDR (Lunar/Data/Display.swift:1716); HDRSettingsView.allowHDREnhanceBrightness (Lunar/SwiftUIViews/HDRSettingsView.swift:13); HDRSettingsView.allowHDREnhanceContrast (Lunar/SwiftUIViews/HDRSettingsView.swift:14). Rename to \u0060oldHDRWorkaround\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"LunarShortcuts/Shared.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e348a3dce4e3f62f88feb592178e0f4dbccd0202eaee1a0a613fb6d5c5979d"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cd7db7cd4abb2b4ca1176a1f3051633e0a6d572da9ba5e04e1407cf8c28be548"},"properties":{"commitSha":"c9f550e340289206755559fae7951febc4df7ace"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"107ba3675cbe757c47dd57c1c4b1bf7fb66eec4f3a29093371fe360136ee428c"},"properties":{"commitSha":"f6e93bd071ddb152bb61dc2afb10f834cfd80e84"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4a63adaec1cdaef9d62e23baba37fe0802cc960758faf93b0b31319f6714cd11"},"properties":{"commitSha":"c0e70d6b634674a355d2b73da2e565d84f82e8e6"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) \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":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!DC.locked || DC.allowAdjustmentsWhileLocked\u0060 appears character-identically in 4 files \u2014 Lunar/AppDelegate.swift, Lunar/Control/NetworkControl.swift, Lunar/DDC/DDC.swift, Lunar/Data/Display.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/AppDelegate.swift"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc417b23202ac9886f5d2b94331e6834bbdad5ba1ec386965fecefbff908aa4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$0.hasSoftwareControl \u0026\u0026 !$0.supportsGamma\u0060 appears character-identically in 2 files \u2014 Lunar/AppDelegate.swift, Lunar/Utils/DisplayController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/AppDelegate.swift"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5f08858cc31cc97c88793763887773be39f465436dce4240a67b8fd08105a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CachedDefaults[.brightnessKeysEnabled] || CachedDefaults[.volumeKeysEnabled]\u0060 appears character-identically in 2 files \u2014 Lunar/AppDelegate.swift, Lunar/Controllers/OnboardPageController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/AppDelegate.swift"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83a042c276f19f3e03d52ee4ca64ffe09df8587c3c09061cbb12db14ec2ac7b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CachedDefaults[.hotkeysAffectBuiltin] || !display.isBuiltin\u0060 appears character-identically in 2 files \u2014 Lunar/Data/Hotkeys.swift, Lunar/Utils/DisplayController.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Data/Hotkeys.swift"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d27aba0431426262ad2bdc513f4b7895ce5ccc4ace82c729790e635fad16d6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060MacModelDB.isMacBook || MacModelDB.isiMac\u0060 appears character-identically in 2 files \u2014 Lunar/Utils/DisplayController.swift, LunarShortcuts/Shared.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/Utils/DisplayController.swift"},"region":{"startLine":2423}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c903241c9d5ade287e00aad6fde0de909ab292c7a15ba4e8092f9c096c206a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"LunarShortcuts/LunarShortcuts.swift"},"region":{"startLine":2863}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebe3e3fa7102659e115e157622cb705c1fcff1981b23201ba734fc24cf2fc2d"}},{"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":"Lunar/Shout/SSHAuthMethod.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"316006f91eaa2068753e9f3f9f644c6481b45ca1a4d91efe9bb69504a995cdc8"}},{"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":"Lunar/Shout/SSHAuthMethod.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fab3cf473990c9144b7092039f11ce61a0ba78821fa9bf839c6f0c27a3364d8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Lunar/Data/Display.swift"},"region":{"startLine":5944}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b3019b8740b78c2b137bd887410055f208e0dd3be8ed3dccadc9a2a665e4bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Lunar/Controllers/HotkeysChoiceViewController.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"839599853e1ed6069dd6fcdc4c72cb2cb2daa5df9ff98cc66c8d091343fbab58"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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":"Lunar/Control/DDCCTLControl.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f28dceb00016fe98c5ac7f8a7bbfefa7c3c37be77e31801d9731ecf513bf53"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadTimestamps\u0060 turns every thrown error into \u0060[:]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Lunar/ErrorReports.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb710b3537ecabbdc449f1203dac7c79f56c99271f54188db2f027e3aaea764"}}],"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-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"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":5,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}