{"$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":"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"Camera.applyControls (cyclomatic 85): Camera.applyControls has cyclomatic complexity 85 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c54c5ccbc6b25447e0b85ca7745b018de0d90f226713f1d42c386de03efc868"}},{"ruleId":"D1","level":"warning","message":{"text":"photoseries.tlseries_properties (cyclomatic 77): photoseries.tlseries_properties has cyclomatic complexity 77 (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":"raspiCamSrv/photoseries.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7f5732858862677d7fc1d834aff383523e73d0cbbd6c33201b6ab2de516e5d"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraController.requestConfig (cyclomatic 72): CameraController.requestConfig has cyclomatic complexity 72 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6caec6da115c78c020a33e0bd211711af5c0d4ef1fedc672184145e02251573"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerConfig.initFromDict (cyclomatic 71): ServerConfig.initFromDict has cyclomatic complexity 71 (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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8210323aef09600d48368d0a4169c00050435771da5c9bc79d60a6706c20ed00"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera._photoSeriesThread (cyclomatic 64): Camera._photoSeriesThread 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6761}}}],"partialFingerprints":{"codehealthFindingId/v1":"e209731b5049bf3410554189e04a2c8619386b0abc005bbb63c9cea3c0025a4a"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraController.compareConfig (cyclomatic 55): CameraController.compareConfig has cyclomatic complexity 55 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"521022a6fd6dd60ec3f1171432724c8a3391f3032f48306a26c41099d83d7543"}},{"ruleId":"D1","level":"warning","message":{"text":"config.liveViewCfg (cyclomatic 55): config.liveViewCfg has cyclomatic complexity 55 (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":"raspiCamSrv/config.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb13b337566e144d83011e0a2e0c7f6bbbc1934db455555f27a8631939ee1cbc"}},{"ruleId":"D1","level":"warning","message":{"text":"MotionDetector._doAction (cyclomatic 49): MotionDetector._doAction 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9d05c4eeedd15889342aa94f592a22ecb429eb00912fb09ab86bff5cfa1aa5"}},{"ruleId":"D1","level":"warning","message":{"text":"config.photoCfg (cyclomatic 48): config.photoCfg has cyclomatic complexity 48 (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":"raspiCamSrv/config.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8346d3fc64e4ae6b49f3ef4968070248d1b4245177d117640edc4bc70816d5ad"}},{"ruleId":"D1","level":"warning","message":{"text":"config.videoCfg (cyclomatic 47): config.videoCfg has cyclomatic complexity 47 (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":"raspiCamSrv/config.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c33ed2c04614db7289e447bbcd35164a6f953da105c82de984d01046e101469"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger.castType (cyclomatic 41): trigger.castType 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":"raspiCamSrv/trigger.py"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa28d0d85e9eef8e35ee3708e30b52345cc84278cb1742ea069b0d6da4599c9"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerHandler._logEvent (cyclomatic 41): TriggerHandler._logEvent 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1804fc648efefceb0fd5905dc7f8116bbf871ea10794cbe1312f32ad9d268f91"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerConfig.checkNotificationRecipient (cyclomatic 38): TriggerConfig.checkNotificationRecipient has cyclomatic complexity 38 (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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5514016a748118f4fd6228ab0faa096014a44fde925be94f95293cb63f72ca5"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.serverconfig (cyclomatic 38): settings.serverconfig has cyclomatic complexity 38 (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":"raspiCamSrv/settings.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"119640efd5533d8bd89f4c7af9d1ebfe77c5bab14e403f079989a032079f8afa"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger.new_action (cyclomatic 37): trigger.new_action has cyclomatic complexity 37 (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":"raspiCamSrv/trigger.py"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91a832be1cabf1f60924a4242b914bccea2553bfa64c669d3b5602714630069"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.setStreamingConfigs (cyclomatic 34): Camera.setStreamingConfigs has cyclomatic complexity 34 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3293}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaaa78e9d2bca689bc18ca9cd526fc291a6b16e459889ef8aebe3ade629de7d"}},{"ruleId":"D1","level":"warning","message":{"text":"webcam.stereo_config (cyclomatic 34): webcam.stereo_config has cyclomatic complexity 34 (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":"raspiCamSrv/webcam.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"50950c7c102b1bde4ca0543b770b07e9db3b7d4acd49992a450a02b9badbfaee"}},{"ruleId":"D1","level":"warning","message":{"text":"Series.nextTimeSunCtrl (cyclomatic 30): Series.nextTimeSunCtrl 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7dab588a426eb2d8f45c5fb875210ebbbb72a5425289b4e37f6d7042770885"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.initCamera (cyclomatic 28): Camera.initCamera 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bee2012f50f61286492d983f932bce39426e9eb1e860ad77614f13bc1c956ee"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger.notify (cyclomatic 28): trigger.notify 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":"raspiCamSrv/trigger.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"86f7fc42a40eb311dd8df8855a4b77b281f52aebe8346290411a69682311533a"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerHandler._doGpioAction (cyclomatic 28): TriggerHandler._doGpioAction 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfa7e7533af3d21abc5e5fbd9c8b46315991faf651cf8739595cc8d147322b8"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera._thread (cyclomatic 27): Camera._thread has cyclomatic complexity 27 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4579}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f1c600e593a6de6c330015755364588166a3973ab5890d7689f82471ce3a4f"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraCfg.setUsbCamControls (cyclomatic 26): CameraCfg.setUsbCamControls 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":8231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a0a44b72396ada1a5fab25aae5a9bf0024240c96c9b0ebe78d76b11f2879fa"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.setSecondCamera (cyclomatic 26): Camera.setSecondCamera 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eac6ef88fa09aa979a52b273cb42b4774eed5c3139132db0727bd81de8ff64f"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.device_properties (cyclomatic 26): settings.device_properties 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":"raspiCamSrv/settings.py"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"669396e26b18b77d1ee3be1a0126571e87a328294d744cc011aa30662a0b662d"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerHandler._doCameraAction (cyclomatic 25): TriggerHandler._doCameraAction 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df34cd560b0f2fefc5668519f7ea7d3333127ee28ab86dd7fe9dc633fc8a8c9"}},{"ruleId":"D1","level":"warning","message":{"text":"config.customTuning (cyclomatic 24): config.customTuning 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":"raspiCamSrv/config.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"7083c814385d868c63e4c4d6965ce5ed4e5ae32917d7d11046c13ef8dc02ca06"}},{"ruleId":"D1","level":"warning","message":{"text":"photoseries.calcSunControlledSeries (cyclomatic 24): photoseries.calcSunControlledSeries 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dc716e2d200109c865c28ae40d27b3c1b9030e6f1bbf5ae5fc151c1044b1c6"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.test_device (cyclomatic 24): settings.test_device 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":"raspiCamSrv/settings.py"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"844e0ce175654bae4893071c5ea6bf94a6c7cb59558b2d45c2eec2bf530d8d81"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger.new_trigger (cyclomatic 24): trigger.new_trigger 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":"raspiCamSrv/trigger.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5349334e892f2a18ff453679b6899af4f80a72f655f65b8322e65b7ab631560"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.switchCamera (cyclomatic 22): Camera.switchCamera 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2126}}}],"partialFingerprints":{"codehealthFindingId/v1":"febd0771712527d05a485845280c42fbc25e7beceda89f787489affa95ba6085"}},{"ruleId":"D1","level":"warning","message":{"text":"MotionDetector._motionThread (cyclomatic 22): MotionDetector._motionThread 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f9051d94aaa2803af3845a5e85ad151f2f51d3b4c1aadf4b479c8c4a699a16"}},{"ruleId":"D1","level":"warning","message":{"text":"photoseries.continue_series (cyclomatic 22): photoseries.continue_series 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edee9eee0bfb14bfb43fab5b4eea2c0f59b345a68ebba7f022f8a6bb433826a"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger.trigger_action (cyclomatic 22): trigger.trigger_action 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":"raspiCamSrv/trigger.py"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec76555b4ad972a37c6602df4dfbebaf21829962dd7794b5e593fbee2b529db2"}},{"ruleId":"D1","level":"warning","message":{"text":"CameraController.requestStart (cyclomatic 21): CameraController.requestStart has cyclomatic complexity 21 (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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b1bf46cbc9fbb39fca640c1c61bb69a78f542e0a9bfc131de903245adeeb3c"}},{"ruleId":"D1","level":"warning","message":{"text":"photoseries.start_series (cyclomatic 21): photoseries.start_series has cyclomatic complexity 21 (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":"raspiCamSrv/photoseries.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e489c0e349c64b29fca6d4ee17698c6d9c83ba120b2d65c4d8e5d8d25662cc41"}},{"ruleId":"D1","level":"warning","message":{"text":"Series.calcSunCtrlData (cyclomatic 21): Series.calcSunCtrlData has cyclomatic complexity 21 (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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3c29001cf875ca0a25691992ef143faad0fc77cb78706c409f0348e486f41b"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.docalibrate (cyclomatic 21): settings.docalibrate has cyclomatic complexity 21 (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":"raspiCamSrv/settings.py"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"19483cf3161140a43c7b2fd0fc7cb7c219f8d2b0cbc94ffd7b1c1aea3ec8a737"}},{"ruleId":"D1","level":"warning","message":{"text":"StereoCam._takeCalibPhotoThread (cyclomatic 21): StereoCam._takeCalibPhotoThread has cyclomatic complexity 21 (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":"raspiCamSrv/stereoCam.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"72dd7f9c7bc1603428f170d17d45e6957e839f44d3cb02ee1db65a57ad9a8920"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerHandler._initNotificationMessage (cyclomatic 21): TriggerHandler._initNotificationMessage has cyclomatic complexity 21 (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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b08b3ea46e4ac7dc37cb22dfed7eb2cc552de39f4e1a4cca979b4317947f3c"}},{"ruleId":"D1","level":"warning","message":{"text":"raspiCamSrv.create_app (cyclomatic 20): raspiCamSrv.create_app 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":"raspiCamSrv/__init__.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2056aa8f20bdedbe0b21d37aaeb04165bda7ebd9d2972d12c9e8f44d89ae7ae"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.usbFrameApplyControls (cyclomatic 20): Camera.usbFrameApplyControls 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4006}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e8ab398a7cc2e152ec74fc53073ac70dac5098e602c0ed96a5c42d5d19b61d"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.stopCameraSystem (cyclomatic 20): Camera.stopCameraSystem 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4459}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab36207312ed0cff194f46863d875355f609b704ef908c81991ab8ea6249d44"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.takeImage (cyclomatic 20): Camera.takeImage 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88320d34fbb33bb8c53b5ceb67b74bd0ccf89b49ff02fa9001ae0fdc6969a1c"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.takeRawImage (cyclomatic 20): Camera.takeRawImage 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5799}}}],"partialFingerprints":{"codehealthFindingId/v1":"a435c62eb71c6cfd17bbe24f2253b3a6cf51067ad9aa2243b56061740a9f3a33"}},{"ruleId":"D1","level":"warning","message":{"text":"config.enableAi (cyclomatic 20): config.enableAi 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":"raspiCamSrv/config.py"},"region":{"startLine":2199}}}],"partialFingerprints":{"codehealthFindingId/v1":"21df394980fa7e87efda60c604cbd7de2ed3684a2d958fdf113a725c86337cca"}},{"ruleId":"D1","level":"warning","message":{"text":"webcam.doInitCalibration (cyclomatic 20): webcam.doInitCalibration has cyclomatic complexity 20 (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":"raspiCamSrv/webcam.py"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3b5020ddd5815a74cfe0e59a82c0aa803396cc44689a04b1d90f46a017da0c"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerConfig.cameraSettings (cyclomatic 19): TriggerConfig.cameraSettings 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f21a8f7a77a838b56423bd47176cda70f1ebec82ef7685fa9427ce0ebc79da"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.getActiveCamera (cyclomatic 19): Camera.getActiveCamera 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"904a177c47a5f394f13b68079ea2c0df8380a948d68896b6d3cb1c734974139d"}},{"ruleId":"D1","level":"warning","message":{"text":"config.ai_settings (cyclomatic 19): config.ai_settings 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":"raspiCamSrv/config.py"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6cdc6d8efae3021154bc8e5be8ff8d425e1aac084d24d6ab7f4a089d5d9fe2"}},{"ruleId":"D1","level":"warning","message":{"text":"MotionDetector._stopAction (cyclomatic 19): MotionDetector._stopAction 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"85df8128833a7f8da1aa57741e9f7742964b8731d302d9994853ce1fd9b5fec3"}},{"ruleId":"D1","level":"warning","message":{"text":"Series.logPhoto (cyclomatic 19): Series.logPhoto 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3aa02fc1ac0e833fe1622ec6ae976543754c41214d669b47e521cc31253ed9"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.loadCameraSpecifics (cyclomatic 18): Camera.loadCameraSpecifics 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9f58b089407e2b126e3f44c24b73ff571f7c8d7bf16890dbf1be2688fd09c9"}},{"ruleId":"D1","level":"warning","message":{"text":"config.doSyncAspectRatio (cyclomatic 18): config.doSyncAspectRatio 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":"raspiCamSrv/config.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa3585f46cef70ac99c2bbe40eb3c54215f7ba43c3b30953855faba512fbf0c"}},{"ruleId":"D1","level":"warning","message":{"text":"config.defaultTuning (cyclomatic 18): config.defaultTuning 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":"raspiCamSrv/config.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdab83831106ad87a693daf9c9c515a5b4ec11e7395caea8efd7976d2bed67b"}},{"ruleId":"D1","level":"warning","message":{"text":"config.getAiModelFiles (cyclomatic 18): config.getAiModelFiles 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":"raspiCamSrv/config.py"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f822ce5a392fbc283e7bc596beb1c404f22436621627d693582f7ff7e743820"}},{"ruleId":"D1","level":"warning","message":{"text":"MotionDetectOpticalFlow.detectMotion (cyclomatic 18): MotionDetectOpticalFlow.detectMotion 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"56859d199221973dbc4b4cf0fba04e95344bff5c63bbcb0fd3bce981f32f42b1"}},{"ruleId":"D1","level":"warning","message":{"text":"MotionDetector.prepareRoIs (cyclomatic 18): MotionDetector.prepareRoIs 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b54600a9f27b8ff71856c61389d36e2640d37afdd72781eb86d0337b6105f1"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.castType (cyclomatic 18): settings.castType 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":"raspiCamSrv/settings.py"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"70eb4fb2a5b7a18ece9219c566f6313317a47e53fa723aca3d490f11ff61c3d0"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger.trgcontrol (cyclomatic 18): trigger.trgcontrol 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":"raspiCamSrv/trigger.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd6ffa02e4408b6b873a76735590072cc5511c087b95655fd1fe31c55519e0d"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerConfig.checkRoisAgainstScalerCropLiveView (cyclomatic 17): TriggerConfig.checkRoisAgainstScalerCropLiveView 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdfb16920ce6f668ec5be1fbee59d8cd4fdd72ab33503ac203c8b8e781cd63d"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerConfig.checkMicrophone (cyclomatic 17): ServerConfig.checkMicrophone 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6887}}}],"partialFingerprints":{"codehealthFindingId/v1":"0703a142b346b4858a61245a751c5c82102ea78fc6f922db3a64fdbfb27bc35d"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerConfig._countThreads (cyclomatic 17): ServerConfig._countThreads 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4580c78e147dc1eb4229e2589d33d13ec09b8f251f713d13756993bb3c867251"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.takeImage2 (cyclomatic 17): Camera.takeImage2 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5377}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef676ea251ef000af739b350e704c0f324cd3f79827a3d3ea2cbe0ee3916964"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.cameraStatus (cyclomatic 17): Camera.cameraStatus 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7319d8820f681a55769f3b0dff941702186f30d4af446e64c7a6f6d58f1a0dc1"}},{"ruleId":"D1","level":"warning","message":{"text":"config.setAiModelFile (cyclomatic 17): config.setAiModelFile 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":"raspiCamSrv/config.py"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"202185551321cca5fa42d453a8c5ea07f366dc084df6698db5eed9aa9ea82676"}},{"ruleId":"D1","level":"warning","message":{"text":"images.getFileList (cyclomatic 17): images.getFileList 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":"raspiCamSrv/images.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf99524f21be88055360f1340b5c4fc6eb295340e4da1ee9101edf21f841ba3"}},{"ruleId":"D1","level":"warning","message":{"text":"photoseries.series_properties (cyclomatic 17): photoseries.series_properties 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec848117c4872a7158d5e55e646e1572dbbb09508f867341e119670b617f85e4"}},{"ruleId":"D1","level":"warning","message":{"text":"photoseries.expseries_properties (cyclomatic 17): photoseries.expseries_properties 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27ff4a1c18f0a39a677dbbf2cd7e1c65c01403d4e035f56553255e8df25952a"}},{"ruleId":"D1","level":"warning","message":{"text":"photoseries.focusstack_properties (cyclomatic 17): photoseries.focusstack_properties 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba83ab4083470122c8d678adbb59a63166bca69f947fc89069dad9273d87917"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerHandler._actionDispatcher (cyclomatic 17): TriggerHandler._actionDispatcher 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6466dd64afca1712c8531e04c22c4226ea800c2c7f55b7df01e646cc201f2a"}},{"ruleId":"D1","level":"warning","message":{"text":"api.probeTerm (cyclomatic 16): api.probeTerm 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":"raspiCamSrv/api.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"35870f03d255440bd21a767be973ef31924e07d8f19ce78054ab4a7e7b7890c7"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerConfig.getEventList (cyclomatic 16): TriggerConfig.getEventList 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28b2938c07a89287f83f7b01fe61365b280ae9e34f905b0cc1400552160a553"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera._thread2 (cyclomatic 16): Camera._thread2 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4712}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c102808366d3710a76fdc120605cce1bed03d5ed49d552d7585818fbc43503c"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.framesUsb (cyclomatic 16): Camera.framesUsb 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4814}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa411112938c4126539d1be17dc3d184001ddfc335998e3ee1e740ff49fc266"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera.takeRawImage2 (cyclomatic 16): Camera.takeRawImage2 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5934}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6a4f797367e2d15c5a5a92ac3bd35b511cc48b72c4255ed2e58192c3e7d51f"}},{"ruleId":"D1","level":"warning","message":{"text":"Camera._videoThreadUsb (cyclomatic 16): Camera._videoThreadUsb 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 file is where this pass\u0027s cyclomatic complexity CONCENTRATES: raspiCamSrv/camera_pi.py holds 22 of the 87 methods over the threshold \u2014 including the worst \u2014 and 319 of the 957 points over it (33%), 2.4\u00D7 the next-largest file (raspiCamSrv/config.py at 134). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6053}}}],"partialFingerprints":{"codehealthFindingId/v1":"937fd79877d7b9097f91af2476f3c239a180e941f761c2757ae4feb33188fe8e"}},{"ruleId":"D1","level":"warning","message":{"text":"MotionDetectFrameDiff.detectMotion (cyclomatic 16): MotionDetectFrameDiff.detectMotion 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 (MotionDetectBgSubtract.detectMotion) 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"34639d0b1eab4e526a756b604a81d71c1cb2c41728b0a75b7475a684ee25458d"}},{"ruleId":"D1","level":"warning","message":{"text":"MotionDetectBgSubtract.detectMotion (cyclomatic 16): MotionDetectBgSubtract.detectMotion 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 (MotionDetectFrameDiff.detectMotion) 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee9cc1d22ce3ab73aaef059c45d9a0dbe5313508d34298c95b0026c822dc1ad"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.calibrate_fbwd (cyclomatic 16): settings.calibrate_fbwd 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: 3 other methods here (settings.calibrate_bwd, settings.calibrate_fwd, settings.calibrate_ffwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2007}}}],"partialFingerprints":{"codehealthFindingId/v1":"0784612eba1606d8794e19b02a7f09bac75e2e4ab600daa6a00df2139fa4edd6"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.calibrate_bwd (cyclomatic 16): settings.calibrate_bwd 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: 3 other methods here (settings.calibrate_fbwd, settings.calibrate_fwd, settings.calibrate_ffwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"e682cba9211584baa32ae5c39c6902d7acf3e21cd947ad2d2f430c2ad4631063"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.calibrate_fwd (cyclomatic 16): settings.calibrate_fwd 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: 3 other methods here (settings.calibrate_fbwd, settings.calibrate_bwd, settings.calibrate_ffwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2395dd971b66cfd255dac17ecf703c1f75db5a5f239b825f175d49d153c4944d"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.calibrate_ffwd (cyclomatic 16): settings.calibrate_ffwd 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: 3 other methods here (settings.calibrate_fbwd, settings.calibrate_bwd, settings.calibrate_fwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed68024332b8696d0251408fc02f06023376020f9b580ebf1e8631c961eb008"}},{"ruleId":"D1","level":"warning","message":{"text":"trigger.action_activation (cyclomatic 16): trigger.action_activation 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":"raspiCamSrv/trigger.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abe37c657a4d5e9ecf9cedbca94347147b3f43f8de1097f7270bb653516e1b3"}},{"ruleId":"D1","level":"warning","message":{"text":"TriggerHandler._findDeviceInRegistry (cyclomatic 16): TriggerHandler._findDeviceInRegistry 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c6eb148c562cbad74ff1ce0ca903d7875cd16bcff579245b78659211f48836"}},{"ruleId":"D1","level":"warning","message":{"text":"webcam.switch_cameras (cyclomatic 16): webcam.switch_cameras 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":"raspiCamSrv/webcam.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefc2caad29a1ae14f1feec314aedd9541a372f0241fb30b4f26785589bf804d"}},{"ruleId":"D1","level":"warning","message":{"text":"webcam.change_active_camera (cyclomatic 16): webcam.change_active_camera 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":"raspiCamSrv/webcam.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ee6de1c259de8bbf7d3d788056a7941d4ab71f0c4aa8f210d35dda120731f9"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.tlseries_properties (cognitive 327): photoseries.tlseries_properties has cognitive complexity 327 (threshold 15). Drivers by points: if/else 60 (300 pts), loops 3 (18 pts), boolean chains 9 (nesting depth added 255). 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"f540b0ad04ef4ce17180d61494971fc1f5aec2bef0ac871a1ac3175829164f54"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._photoSeriesThread (cognitive 216): Camera._photoSeriesThread has cognitive complexity 216 (threshold 15). Drivers by points: if/else 54 (186 pts), loops 4 (17 pts), boolean chains 8, error handling 2 (5 pts) (nesting depth added 148). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6761}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a78f99bcd5659f8124d5bb62a94485555ab2b949f4538d41842448fc3270ad"}},{"ruleId":"D2","level":"warning","message":{"text":"config.liveViewCfg (cognitive 192): config.liveViewCfg has cognitive complexity 192 (threshold 15). Drivers by points: if/else 47 (180 pts), boolean chains 12 (nesting depth added 133). 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":"raspiCamSrv/config.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"3419aa4df3785ca3332296d7953f49bece864e1b3e7dddfb8fdbc6fc74f348a3"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.stereo_config (cognitive 186): webcam.stereo_config has cognitive complexity 186 (threshold 15). Drivers by points: if/else 46 (170 pts), error handling 2 (16 pts) (nesting depth added 138). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec634ae6d091c8a0fac5264e2de21a755b9abfc2e3d54e5d0b9d74b122769a92"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.new_action (cognitive 182): trigger.new_action has cognitive complexity 182 (threshold 15). Drivers by points: if/else 40 (159 pts), loops 3 (21 pts), boolean chains 2 (nesting depth added 137). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ef9bf089f4297ccf0d17acf4d9ad2c9a24362b69352f724e300f77f058df82"}},{"ruleId":"D2","level":"warning","message":{"text":"config.photoCfg (cognitive 160): config.photoCfg has cognitive complexity 160 (threshold 15). Drivers by points: if/else 37 (148 pts), boolean chains 12 (nesting depth added 111). 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":"raspiCamSrv/config.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"372cc89210d4791f6eda90be019706197d4c3147dc259635fcc25b3099618957"}},{"ruleId":"D2","level":"warning","message":{"text":"config.videoCfg (cognitive 157): config.videoCfg has cognitive complexity 157 (threshold 15). Drivers by points: if/else 36 (145 pts), boolean chains 12 (nesting depth added 109). 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":"raspiCamSrv/config.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a96c5e793735aa5170cac29a67c06f368fde3a2cbf0815d99a8da33bf0de56"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.serverconfig (cognitive 144): settings.serverconfig has cognitive complexity 144 (threshold 15). Drivers by points: if/else 36 (130 pts), loops 2 (10 pts), boolean chains 4 (nesting depth added 102). 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":"raspiCamSrv/settings.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5899458ca09cc2e5fb5a4cf558bc13b90ecdd03562eb7d3a9e484ce6c52ba1ef"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraController.requestConfig (cognitive 140): CameraController.requestConfig has cognitive complexity 140 (threshold 15). Drivers by points: if/else 63 (135 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 74). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d5e92a361d83d47898dbfde20f935859324a59d2bc4d87ef8df951ad5d20fd"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.initFromDict (cognitive 136): ServerConfig.initFromDict has cognitive complexity 136 (threshold 15). Drivers by points: loops 16 (72 pts), if/else 26 (64 pts) (nesting depth added 94). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7313}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa028fac7c05d10eade883221dfb305cf654a0b0d57bff0a5fd7e588324afbb"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.applyControls (cognitive 129): Camera.applyControls has cognitive complexity 129 (threshold 15). Drivers by points: if/else 54 (101 pts), boolean chains 28 (nesting depth added 47). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9655f3a65139a63c00a72d8995ca2a7c8159ab16bd9a59024ce3f9598c8cee"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.test_device (cognitive 116): settings.test_device has cognitive complexity 116 (threshold 15). Drivers by points: if/else 22 (83 pts), error handling 4 (21 pts), loops 2 (12 pts) (nesting depth added 88). 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":"raspiCamSrv/settings.py"},"region":{"startLine":1841}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86e043fbac5b9cc502e2827cd8bde992f710f6ab6f1c5f77a1983a7e682eead"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.castType (cognitive 115): trigger.castType has cognitive complexity 115 (threshold 15). Drivers by points: if/else 30 (95 pts), error handling 4 (14 pts), loops 1 (5 pts), boolean chains 1 (nesting depth added 79). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb78dda46a956dc4603def2a0a8a5a9e374b2eb2b366dedc7c99a88231e1ae67"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraController.compareConfig (cognitive 108): CameraController.compareConfig has cognitive complexity 108 (threshold 15). Drivers by points: if/else 52 (104 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 54). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a713d0c4ca0997e9224a1c0d9258449544d780ab4310b3088629a0221054986e"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.nextTimeSunCtrl (cognitive 108): Series.nextTimeSunCtrl has cognitive complexity 108 (threshold 15). Drivers by points: if/else 33 (97 pts), loops 2 (9 pts), boolean chains 2 (nesting depth added 71). 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e687b94d4a82f7506abe70da8ec1c0acd2fd4a2472ad069ee060f32ae156544"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetector._doAction (cognitive 105): MotionDetector._doAction has cognitive complexity 105 (threshold 15). Drivers by points: if/else 40 (94 pts), boolean chains 11 (nesting depth added 54). 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6733804fd329638c7047a9834ad822ad0808f0d3aaa147431d726b41e5ed59"}},{"ruleId":"D2","level":"warning","message":{"text":"config.customTuning (cognitive 100): config.customTuning has cognitive complexity 100 (threshold 15). Drivers by points: if/else 23 (88 pts), error handling 2 (12 pts) (nesting depth added 75). 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":"raspiCamSrv/config.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"baadcdc1bc8789203d673eff1ef5558b0c38ad7902b5af59b3f1434a76feecab"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.setStreamingConfigs (cognitive 97): Camera.setStreamingConfigs has cognitive complexity 97 (threshold 15). Drivers by points: if/else 34 (87 pts), loops 2 (7 pts), boolean chains 3 (nesting depth added 58). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6c5edfdc6435b38325a672593a7fa190ee34345a548b5678e00c55629def83"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig.checkNotificationRecipient (cognitive 90): TriggerConfig.checkNotificationRecipient has cognitive complexity 90 (threshold 15). Drivers by points: if/else 31 (73 pts), error handling 4 (17 pts) (nesting depth added 55). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7e8124ededf1eda127fc29b1aa0c72e9e6746eb181dd2fa94ecec21f833998"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.notify (cognitive 86): trigger.notify has cognitive complexity 86 (threshold 15). Drivers by points: if/else 34 (84 pts), boolean chains 2 (nesting depth added 50). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f57c615ac9f3344c71df63aafd9b3bd2adcae3a98b18c2fec4f59234bea94f"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraController.requestStart (cognitive 80): CameraController.requestStart has cognitive complexity 80 (threshold 15). Drivers by points: if/else 28 (71 pts), error handling 2 (8 pts), boolean chains 1 (nesting depth added 49). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"722cd3145cb9d56408690193b1e55eeaa1a6d962226f417904f6fde8fba42bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.docalibrate (cognitive 79): settings.docalibrate has cognitive complexity 79 (threshold 15). Drivers by points: if/else 16 (58 pts), error handling 3 (16 pts), loops 1 (5 pts) (nesting depth added 59). 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":"raspiCamSrv/settings.py"},"region":{"startLine":2153}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ef03ec6485d1f7e738dae34f5447071b23efb31699c65bf385ea77f6e52793"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._logEvent (cognitive 79): TriggerHandler._logEvent has cognitive complexity 79 (threshold 15). Drivers by points: if/else 39 (78 pts), boolean chains 1 (nesting depth added 39). 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b327e19084411dfd489aa7b5cda203f9ac4593aa7033d5d080e86c799be5431"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._doGpioAction (cognitive 75): TriggerHandler._doGpioAction has cognitive complexity 75 (threshold 15). Drivers by points: if/else 29 (61 pts), error handling 2 (7 pts), loops 2 (7 pts) (nesting depth added 42). 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5c0a596fbee33e4befd91d63c9d2838a0fe283f5776620377211a177808ca5"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.trigger_action (cognitive 72): trigger.trigger_action has cognitive complexity 72 (threshold 15). Drivers by points: if/else 14 (54 pts), loops 5 (16 pts), boolean chains 2 (nesting depth added 51). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"4960e179bc5cf5ab48e965d1eb3076d7af5adcd4384ffd0d848e80376f6145a6"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.continue_series (cognitive 71): photoseries.continue_series has cognitive complexity 71 (threshold 15). Drivers by points: if/else 20 (68 pts), boolean chains 3 (nesting depth added 48). 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ae20c1fdb68c8fe6c4b4bb7ed95732c66d84649c1d7459f1d3c7b69d039ebd"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.new_trigger (cognitive 71): trigger.new_trigger has cognitive complexity 71 (threshold 15). Drivers by points: if/else 28 (63 pts), loops 2 (8 pts) (nesting depth added 41). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb510bd89bb1f1faab5d625bcf9ac503e13b1aa3efd73317dfc0ad0163d59b2"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._initNotificationMessage (cognitive 70): TriggerHandler._initNotificationMessage has cognitive complexity 70 (threshold 15). Drivers by points: if/else 22 (61 pts), loops 5 (9 pts) (nesting depth added 43). 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd76e92def018c4efb75bb478c92201c007ec148d4de16b555e48ce742957f24"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.initCamera (cognitive 69): Camera.initCamera has cognitive complexity 69 (threshold 15). Drivers by points: if/else 28 (57 pts), error handling 3 (9 pts), boolean chains 3 (nesting depth added 35). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"885bf26113617cc66b4b5ae03df1a63b1921ac23274060142798df1988c07532"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.start_series (cognitive 69): photoseries.start_series has cognitive complexity 69 (threshold 15). Drivers by points: if/else 19 (67 pts), boolean chains 2 (nesting depth added 48). 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2581dafb2ba6a79e9e9b8d47c575b970ca000400edf7573f4fd8ba30dc3f17c2"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetector._motionThread (cognitive 68): MotionDetector._motionThread has cognitive complexity 68 (threshold 15). Drivers by points: if/else 21 (62 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 43). 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ced98b22e494e3c0c6e8483efae65600252bed772fb3776f3f0e56ada180836"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.calcSunControlledSeries (cognitive 68): photoseries.calcSunControlledSeries has cognitive complexity 68 (threshold 15). Drivers by points: if/else 18 (57 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 45). 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec1e1f9330854936c1985c1ee3839a0480605d8c3e11ababc1185253a47fce8"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.setSecondCamera (cognitive 65): Camera.setSecondCamera has cognitive complexity 65 (threshold 15). Drivers by points: if/else 23 (53 pts), boolean chains 4, error handling 2 (4 pts), loops 2 (4 pts) (nesting depth added 34). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a0444b95c522b210a60242860153697815da61271bdf685893e759f79e483e"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.expseries_properties (cognitive 65): photoseries.expseries_properties has cognitive complexity 65 (threshold 15). Drivers by points: if/else 21 (63 pts), boolean chains 2 (nesting depth added 42). 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5842ae5faeece385bb6bc4af913f54d13f7b4d69ab80a294ac242a4cb01250"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.checkMicrophone (cognitive 63): ServerConfig.checkMicrophone has cognitive complexity 63 (threshold 15). Drivers by points: if/else 15 (53 pts), loops 2 (8 pts), error handling 2 (nesting depth added 44). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6887}}}],"partialFingerprints":{"codehealthFindingId/v1":"0076b80cd405ee3215ad0106f73ef5071788ae9c51d1a5c3438cf1a5733f5969"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetector._stopAction (cognitive 63): MotionDetector._stopAction has cognitive complexity 63 (threshold 15). Drivers by points: if/else 17 (59 pts), boolean chains 4 (nesting depth added 42). 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c73927ffd780c450ffabd4e3b4412544cec8dc7b3440ff31fd438f85391ece"}},{"ruleId":"D2","level":"warning","message":{"text":"config.defaultTuning (cognitive 62): config.defaultTuning has cognitive complexity 62 (threshold 15). Drivers by points: if/else 20 (62 pts) (nesting depth added 42). 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":"raspiCamSrv/config.py"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c516abc0b92c203ee28d4052ada2541888e2fb747930f1d5449c6718ff5f2ff"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._actionDispatcher (cognitive 62): TriggerHandler._actionDispatcher has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (56 pts), loops 2 (6 pts) (nesting depth added 46). 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b30ae8d180982c3fef3b2a4f271c1efa01fc7bd83567278a222c268401a6907"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.remove_users (cognitive 60): settings.remove_users has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (39 pts), loops 4 (21 pts) (nesting depth added 42). 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":"raspiCamSrv/settings.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba756229011aebd7febf37d65fb9336ce425cb61367459d2ca6bd5be5e420b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig._countThreads (cognitive 59): ServerConfig._countThreads has cognitive complexity 59 (threshold 15). Drivers by points: if/else 16 (56 pts), error handling 2, loops 1 (nesting depth added 40). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7196}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f39fc283f15aaaa9be69ba94597ddefae5009b18c162215572454f363851fa"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.calibrate_fbwd (cognitive 56): settings.calibrate_fbwd has cognitive complexity 56 (threshold 15). Drivers by points: if/else 13 (40 pts), error handling 3 (16 pts) (nesting depth added 40). 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. This shape REPEATS in the file: 3 other methods here (settings.calibrate_bwd, settings.calibrate_fwd, settings.calibrate_ffwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2007}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb7f692ed02e87c7abcda9bd53a885383d2872f32c4bab2eb5949f257900738"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.calibrate_bwd (cognitive 56): settings.calibrate_bwd has cognitive complexity 56 (threshold 15). Drivers by points: if/else 13 (40 pts), error handling 3 (16 pts) (nesting depth added 40). 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. This shape REPEATS in the file: 3 other methods here (settings.calibrate_fbwd, settings.calibrate_fwd, settings.calibrate_ffwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd1b466a5100719fc7cf076e307937aafca555bc1bd1e777cf1e7b5b70ea319"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.calibrate_fwd (cognitive 56): settings.calibrate_fwd has cognitive complexity 56 (threshold 15). Drivers by points: if/else 13 (40 pts), error handling 3 (16 pts) (nesting depth added 40). 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. This shape REPEATS in the file: 3 other methods here (settings.calibrate_fbwd, settings.calibrate_bwd, settings.calibrate_ffwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3eced89d2537c6bf22f127d066b1e4adbdafe872131e35937553bf2d19120c"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.calibrate_ffwd (cognitive 56): settings.calibrate_ffwd has cognitive complexity 56 (threshold 15). Drivers by points: if/else 13 (40 pts), error handling 3 (16 pts) (nesting depth added 40). 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. This shape REPEATS in the file: 3 other methods here (settings.calibrate_fbwd, settings.calibrate_bwd, settings.calibrate_fwd) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/settings.py"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af1eddf5fe761439f8567e1f0402961f4931c1f1852a9fbf23e4833a999db96"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.device_properties (cognitive 55): settings.device_properties has cognitive complexity 55 (threshold 15). Drivers by points: if/else 20 (51 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 33). 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":"raspiCamSrv/settings.py"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb7b0dfb8240b30bdb26245766cc6e5e0987456ad10217625bd3172b4ea4f2e"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.calcSunCtrlData (cognitive 54): Series.calcSunCtrlData has cognitive complexity 54 (threshold 15). Drivers by points: if/else 28 (53 pts), boolean chains 1 (nesting depth added 25). 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bddd883ea856fafcfff391cd21758b703b2cb4777d6fdd0e4560c6e4922281d"}},{"ruleId":"D2","level":"warning","message":{"text":"config.setAiModelFile (cognitive 52): config.setAiModelFile has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (49 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 33). 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":"raspiCamSrv/config.py"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb43c4214aa25bf2735c8486a5ae9e997bf03ae00e5e1ccb5537a9ecc0787a5"}},{"ruleId":"D2","level":"warning","message":{"text":"Trigger.initFromDict (cognitive 51): Trigger.initFromDict has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 4 (13 pts) (nesting depth added 34). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"743920955bec93b986024c29ebbf1d329a27e9a55d83b7889a5f7079e916f85e"}},{"ruleId":"D2","level":"warning","message":{"text":"config.enableAi (cognitive 50): config.enableAi has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (48 pts), boolean chains 2 (nesting depth added 29). 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":"raspiCamSrv/config.py"},"region":{"startLine":2199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1013c0d07678c59652179230ccdfd7d5d6b3437be64828a59710c9672470d0ac"}},{"ruleId":"D2","level":"warning","message":{"text":"StereoCam._takeCalibPhotoThread (cognitive 50): StereoCam._takeCalibPhotoThread has cognitive complexity 50 (threshold 15). Drivers by points: if/else 20 (46 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 27). 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":"raspiCamSrv/stereoCam.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1351eede19a0ea24c9d2225b7ea267aa62de4c8f44e577e4c74eb8e8655183a6"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.switch_cameras (cognitive 50): webcam.switch_cameras has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (47 pts), loops 1 (3 pts) (nesting depth added 30). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dd4196b7d4b70f9bf3bbc52c1856077d189b343974f2583fa4b8e614806627"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.switchCamera (cognitive 49): Camera.switchCamera has cognitive complexity 49 (threshold 15). Drivers by points: if/else 21 (39 pts), error handling 2 (8 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2126}}}],"partialFingerprints":{"codehealthFindingId/v1":"438e55683f19212c81ff4a066445721bd698729f9315a825230f8bd209581a6e"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.stopCameraSystem (cognitive 48): Camera.stopCameraSystem has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23 (39 pts), loops 4 (9 pts) (nesting depth added 21). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4459}}}],"partialFingerprints":{"codehealthFindingId/v1":"96faffced562e2706101a0b4d8034a3e704a527b7e0649ef235aa99520db4599"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.cameraStatus (cognitive 48): Camera.cameraStatus has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18 (41 pts), loops 1 (6 pts), boolean chains 1 (nesting depth added 28). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c778710b179bf13fa510efeef28d78f9060a4f2bfffc647d794cd2eb5ff03b4"}},{"ruleId":"D2","level":"warning","message":{"text":"config.getAiModelFiles (cognitive 48): config.getAiModelFiles has cognitive complexity 48 (threshold 15). Drivers by points: if/else 15 (42 pts), loops 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 30). 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":"raspiCamSrv/config.py"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88ba1b77f908f6828025828cd5c061bc0a6a16c6d88eec1b374c8fed6ea2816"}},{"ruleId":"D2","level":"warning","message":{"text":"images.download_selected (cognitive 48): images.download_selected has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (43 pts), loops 2 (5 pts) (nesting depth added 35). 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":"raspiCamSrv/images.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3416b186d5a1cabb291be68cedeeca2dad787c73d46d0bbaec11a74dd26ed3a"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.focusstack_properties (cognitive 48): photoseries.focusstack_properties has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (46 pts), boolean chains 2 (nesting depth added 29). 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"06dbd172f5e1ac2fd2981d9ac7151e5d36e1c9281f7ad715befa6eae49453e9e"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._waitForCompletion (cognitive 47): TriggerHandler._waitForCompletion has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (40 pts), loops 2 (7 pts) (nesting depth added 34). 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f29f1c021a472bea17b9beec761bc2db53719b3bf66984343539eed51cd9c4"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.series_properties (cognitive 46): photoseries.series_properties has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (44 pts), boolean chains 2 (nesting depth added 25). 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e60e7cc6efb5c7a6e8662ac30e76a4335bf287bc3022226809c2bd25031240"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.delete_device (cognitive 45): settings.delete_device has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (38 pts), loops 2 (7 pts) (nesting depth added 32). 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":"raspiCamSrv/settings.py"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9d898ada29a97566d20efcfd1bda0627e08e16baf5fec5633ad69a5f019753"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._thread (cognitive 44): Camera._thread has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (38 pts), error handling 3, boolean chains 2, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4579}}}],"partialFingerprints":{"codehealthFindingId/v1":"971c169b56121c951102bc8a0e3adaee31152e68f12264a58a7b0d63b86cbd16"}},{"ruleId":"D2","level":"warning","message":{"text":"config.remLiveViewControls (cognitive 44): config.remLiveViewControls has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 3 (14 pts) (nesting depth added 29). 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. This shape REPEATS in the file: 3 other methods here (config.remPhotoControls, config.remRawControls, config.remVideoControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c00e4b683a4cca9c8aff12cc2a7b0dd8a3aff4c0e47393422ff6c50091feff"}},{"ruleId":"D2","level":"warning","message":{"text":"config.remPhotoControls (cognitive 44): config.remPhotoControls has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 3 (14 pts) (nesting depth added 29). 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. This shape REPEATS in the file: 3 other methods here (config.remLiveViewControls, config.remRawControls, config.remVideoControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"71308fc848ce25598fe7b34ed3d42b30895a49c112c4f41f37c5d46a1b282809"}},{"ruleId":"D2","level":"warning","message":{"text":"config.remRawControls (cognitive 44): config.remRawControls has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 3 (14 pts) (nesting depth added 29). 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. This shape REPEATS in the file: 3 other methods here (config.remLiveViewControls, config.remPhotoControls, config.remVideoControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ee0a4475f17c1cfb80f8840e7b93fb8659f92ca6bc10f0af90a86041a40818"}},{"ruleId":"D2","level":"warning","message":{"text":"config.remVideoControls (cognitive 44): config.remVideoControls has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 3 (14 pts) (nesting depth added 29). 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. This shape REPEATS in the file: 3 other methods here (config.remLiveViewControls, config.remPhotoControls, config.remRawControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1930}}}],"partialFingerprints":{"codehealthFindingId/v1":"5796bb47798eb83747b87dfc4eba7b9b836e9bac4355a5826baef910359c580a"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.action_activation (cognitive 44): trigger.action_activation has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (37 pts), loops 2 (7 pts) (nesting depth added 27). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"965132a9fee9dd0ca94dbc19b2773852ef6a796f1991f95da77221f294219226"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.calib_settings (cognitive 44): webcam.calib_settings has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (44 pts) (nesting depth added 28). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":1552}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a1e4db8a7342bf22e0d3b5cf489c056904901a393cee9037e169fb1902de12"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig.getEventList (cognitive 43): TriggerConfig.getEventList has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (32 pts), loops 4 (9 pts), error handling 1 (2 pts) (nesting depth added 23). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8e125bcf727c28426fabe51b8717515e1bf623b99fa9d165e64d3071395d0e"}},{"ruleId":"D2","level":"warning","message":{"text":"images.getFileList (cognitive 43): images.getFileList has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 3 (5 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 25). 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":"raspiCamSrv/images.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f10ce3d63cbb8ff77750922927b6a42167f1a198aac9fbe38be79e90934fe5"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetector.prepareRoIs (cognitive 43): MotionDetector.prepareRoIs has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (39 pts), loops 2 (4 pts) (nesting depth added 26). 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"451504548763d4c32e51dd248c1d7398d37d0d93af9e3b940cc117c8e5e39c20"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.change_active_camera (cognitive 43): webcam.change_active_camera has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (41 pts), loops 1 (2 pts) (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":"raspiCamSrv/webcam.py"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8c8f57ebcc3c51df00cc1d1b0f21dad18402b24ac282644b33a0e53ee0b1b2"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.getActiveCamera (cognitive 42): Camera.getActiveCamera has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 22). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"5774e7ca224d7c4d9af7855a9794a600bf9043f2537e9dffd1649de1ec6b3076"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.load_config (cognitive 42): settings.load_config has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (42 pts) (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":"raspiCamSrv/settings.py"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0bd3d2bc93f5f65e401b6550500dea58807a5c47fc55d0f15775a05cd3c71b"}},{"ruleId":"D2","level":"warning","message":{"text":"config.ai_settings (cognitive 41): config.ai_settings has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (38 pts), boolean chains 3 (nesting depth added 23). 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":"raspiCamSrv/config.py"},"region":{"startLine":2283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a511643d5d3221a195700841171ce24e575d03816fc169d5eefebc50ba4ead32"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.trgcontrol (cognitive 41): trigger.trgcontrol has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 17). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb3769e7f0cce707d6a80dcbf82ad61dd6e0e5be73c27286f1df13214edf423"}},{"ruleId":"D2","level":"warning","message":{"text":"raspiCamSrv.create_app (cognitive 40): raspiCamSrv.create_app has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (36 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 17). 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":"raspiCamSrv/__init__.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"608135df985db7877a9c645e0b664541849a44c4b6d6c2d20568be1af77c3706"}},{"ruleId":"D2","level":"warning","message":{"text":"api.probeTerm (cognitive 39): api.probeTerm has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (36 pts), error handling 2, loops 1 (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":"raspiCamSrv/api.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e10c242febc1013683009f96396025a46ec1e8764ce84faf28eea22645e934c"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.checkJwtSettings (cognitive 39): ServerConfig.checkJwtSettings has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (31 pts), error handling 2 (8 pts) (nesting depth added 22). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7077}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cc2a459841c868675f8f17586199d00385d27bf6f1dac391e02aa9a344664e"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._doCameraAction (cognitive 39): TriggerHandler._doCameraAction has cognitive complexity 39 (threshold 15). Drivers by points: if/else 23 (37 pts), boolean chains 1, loops 1 (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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a802540bfc0522cd7f62eafa41a51db1d16bd00eda95f45a41df352efc04c5"}},{"ruleId":"D2","level":"warning","message":{"text":"StereoConfig.getNextPhotoIdx (cognitive 38): StereoConfig.getNextPhotoIdx has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (32 pts), loops 2 (6 pts) (nesting depth added 25). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":4361}}}],"partialFingerprints":{"codehealthFindingId/v1":"549c23243da3d9d8bfd1c90e5f334a298c7a5a2edb11c85881d2e6d32f2850b0"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraCfg.setUsbCamControls (cognitive 38): CameraCfg.setUsbCamControls has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 5, loops 2 (4 pts), error handling 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":8231}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e3f3c6813872ff4e27f32bf73608122758e3b08ac404fe31d5f1cced888ae0"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetectOpticalFlow.detectMotion (cognitive 38): MotionDetectOpticalFlow.detectMotion has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (34 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 22). 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b16c8cd4773c7cef13a0f956a45c45b11423299efd9bb4b18a89e28dfb049f4"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraController.requestStop (cognitive 37): CameraController.requestStop has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 4 (9 pts), loops 2 (6 pts) (nesting depth added 19). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17427d5b1425fbf6acfc887ee61a3eb6733b2cdcbcba962f1ec691ee176883d"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.loadCameraSpecifics (cognitive 37): Camera.loadCameraSpecifics has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (33 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 18). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"75dcfd03e748bc8f2cd623d7581b903de35c153cf62530d0c0799ecfe477adc7"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.usbFrameApplyControls (cognitive 37): Camera.usbFrameApplyControls has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (37 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4006}}}],"partialFingerprints":{"codehealthFindingId/v1":"3092cd8b2a4281e79275083773661c02fae09fdf71b8f7ab29c413313e40afc7"}},{"ruleId":"D2","level":"warning","message":{"text":"config.doSyncAspectRatio (cognitive 37): config.doSyncAspectRatio has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (31 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 24). 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":"raspiCamSrv/config.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efe396a536fb04e73e7821b837e969436893e28f126f0b87baa4111d092ed13"}},{"ruleId":"D2","level":"warning","message":{"text":"config.deleteTuningFile (cognitive 37): config.deleteTuningFile has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 1 (3 pts) (nesting depth added 19). 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":"raspiCamSrv/config.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"3765ffcfbc05c1932e3c147c8d2472a3db1b594bf44285d5973419d809262cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"api.record_video_both (cognitive 36): api.record_video_both 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":"raspiCamSrv/api.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0216060784c052d833585fa50d4160529b9e3c073d2b62dea19ccc3100787d3"}},{"ruleId":"D2","level":"warning","message":{"text":"config.rawCfg (cognitive 36): config.rawCfg has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (36 pts) (nesting depth added 22). 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":"raspiCamSrv/config.py"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe049bafbb2f69c3f81f5e2d08aeb8ac6836be66bfd996cbc5e1e1a0c451f99f"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetectFrameDiff.detectMotion (cognitive 36): MotionDetectFrameDiff.detectMotion has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 2 (3 pts) (nesting depth added 22). 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. This shape REPEATS in the file: one other method here (MotionDetectBgSubtract.detectMotion) 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a6b4750249059fd34171869e8e0778e44809ed5aedabf8c82c517a225e78f4"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetectBgSubtract.detectMotion (cognitive 36): MotionDetectBgSubtract.detectMotion has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (33 pts), loops 2 (3 pts) (nesting depth added 22). 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. This shape REPEATS in the file: one other method here (MotionDetectFrameDiff.detectMotion) 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"488d158094862b66c4948bc0f45eafa1c716dcdc89701139d88a20b536537017"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.castType (cognitive 36): settings.castType has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 1 (5 pts), error handling 2 (4 pts) (nesting depth added 23). 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":"raspiCamSrv/settings.py"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a73196a67c60158548539fcdc2d521aceeda7d02cdfb4a0146b325244f5e6e"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._videoThreadUsb (cognitive 35): Camera._videoThreadUsb has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 2 (4 pts), boolean chains 1, error handling 1 (nesting depth added 19). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6053}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaacaa7362ea5deccb82d782e27b0abf80146545470758c0900d449f546df027"}},{"ruleId":"D2","level":"warning","message":{"text":"config.uploadTuningFile (cognitive 35): config.uploadTuningFile has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (28 pts), loops 1 (4 pts), error handling 1 (3 pts) (nesting depth added 22). 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":"raspiCamSrv/config.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"43099eb57d5a7086c86f54dbf2cee63d66652119e25965f19464f92521c82e18"}},{"ruleId":"D2","level":"warning","message":{"text":"home.focus_control (cognitive 35): home.focus_control has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (35 pts) (nesting depth added 18). 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":"raspiCamSrv/home.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dd0ce8065877bdc0fae4a754376b77e521b09b7f93acfd14a210aa272825af"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.api_config (cognitive 35): settings.api_config has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (29 pts), error handling 1 (5 pts), boolean chains 1 (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":"raspiCamSrv/settings.py"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca53baf72093fc8bb827a9d514d8d83d1e3b4a6fbe5d4a9fec9b7803fe9f9ac"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.cam_record_video_both (cognitive 35): webcam.cam_record_video_both has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (35 pts) (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":"raspiCamSrv/webcam.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6210472a1dce5daa8cb18a4626deb3c87bcd3358539022ed8f97afdabc426b"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.takeImage (cognitive 34): Camera.takeImage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (32 pts), boolean chains 1, error handling 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5238}}}],"partialFingerprints":{"codehealthFindingId/v1":"37847990935f903b33aa01de679f7617181916b2d6daa8d26605719b0af93bf6"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._videoThread2Usb (cognitive 34): Camera._videoThread2Usb has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 2 (4 pts), error handling 1 (nesting depth added 19). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6305}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d5c60ba77235afeeba4c30d02fcdc2fac639456381458ba4851a1d99d76002"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.logPhoto (cognitive 34): Series.logPhoto has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28 (29 pts), loops 2 (5 pts) (nesting depth added 4). 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd514c49b102f85bdd3d17cc3ccd7a7f60aa9d05c2e656d92e00690f75305900"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.new_device (cognitive 34): settings.new_device has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 3 (11 pts) (nesting depth added 22). 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":"raspiCamSrv/settings.py"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa44910a2df9a9a052c0c8c1b01bb6bb950911560b8e3a09357fc6b692bf3a5"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.start_triggered_capture (cognitive 34): trigger.start_triggered_capture has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (33 pts), boolean chains 1 (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":"raspiCamSrv/trigger.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0a353b16d78cab7d110eb927908453ceb109e501f3aef4256c8767bfef57ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.displayBufferRemove (cognitive 33): ServerConfig.displayBufferRemove has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (8 pts) (nesting depth added 22). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6644}}}],"partialFingerprints":{"codehealthFindingId/v1":"6370a8fb1b55d236008bdcc008848d7324cc5bf89934b10e155900a148bc1343"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.takeRawImage (cognitive 33): Camera.takeRawImage has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 1, error handling 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c868799fa0f62a660bc74c269b6b6de5853ca2e52a568114bc25b0eecd0120df"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.vbutton_dimensions (cognitive 33): settings.vbutton_dimensions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2 (9 pts), boolean chains 2 (nesting depth added 18). 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: 2 other methods here (settings.abutton_dimensions, settings.lbutton_dimensions) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"raspiCamSrv/settings.py"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bf497d6bfb9a1ec9f90aa9ed1c5b39b53181e04e7dbf8c443953a2c620cc85"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.abutton_dimensions (cognitive 33): settings.abutton_dimensions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2 (9 pts), boolean chains 2 (nesting depth added 18). 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: 2 other methods here (settings.vbutton_dimensions, settings.lbutton_dimensions) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"raspiCamSrv/settings.py"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc73a546d9c0c5ea11f6ddd13c0af46f6d58867ec353f2f822ab68320269427"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.lbutton_dimensions (cognitive 33): settings.lbutton_dimensions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 2 (9 pts), boolean chains 2 (nesting depth added 18). 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: 2 other methods here (settings.vbutton_dimensions, settings.abutton_dimensions) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"raspiCamSrv/settings.py"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5961091035bd19e39837faf3a470543aa5e8edc32297deb929d8520039133de"}},{"ruleId":"D2","level":"warning","message":{"text":"config.tuningCfg (cognitive 32): config.tuningCfg has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (32 pts) (nesting depth added 17). 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":"raspiCamSrv/config.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"020af149fa60a47d214d4fce5f59540cef3bbb584a317b506334622bb117dc3a"}},{"ruleId":"D2","level":"warning","message":{"text":"api.switch_cameras (cognitive 31): api.switch_cameras has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 1 (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":"raspiCamSrv/api.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d4976b50e71de7271f17f62b19ea1ef13371edc7c11deee8534760390412cf"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.test_motion_detection (cognitive 31): trigger.test_motion_detection has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (31 pts) (nesting depth added 19). 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":"raspiCamSrv/trigger.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"a949f451c14b1000adf0e4116807f17f3b95b910f021ad8414cd67e6259fd990"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._closeGpioDevices (cognitive 31): TriggerHandler._closeGpioDevices has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (22 pts), error handling 1 (6 pts), loops 2 (3 pts) (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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6d7788ae9cabe8f175af512fc1df152ff7dfc29ee20dc123a8bf632d3388e8"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.register (cognitive 30): auth.register has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 4 (12 pts) (nesting depth added 17). 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":"raspiCamSrv/auth.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48f82851affae55bf6b03d0c7300a1064efc555c1c94fd18d7953615d432951"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.startLiveStream2 (cognitive 30): Camera.startLiveStream2 has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (29 pts), boolean chains 1 (nesting depth added 18). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2444}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4b2dbe4077b9619d40e3417270bca323be078ae7bb0bc329a6bf85ccce8725"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig.triggerEvents (cognitive 29): TriggerConfig.triggerEvents has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 1 (3 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1716}}}],"partialFingerprints":{"codehealthFindingId/v1":"54027b20020083def4ac092a9fa48dbdf9f10696ef2ab0f2269f80eb6cdc09c6"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraController.requestCameraForConfig (cognitive 29): CameraController.requestCameraForConfig has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20 (29 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"04df8120cd24a201b8de42d2c862b1c3065bdd40842a9ba26b91e5e8a14d154f"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.framesUsb (cognitive 29): Camera.framesUsb has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (24 pts), error handling 4, 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4814}}}],"partialFingerprints":{"codehealthFindingId/v1":"5468afe5bfca95c2a6100055e052a408660bb39e64fc38d47b34b46c62154bd6"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.cam_record_video (cognitive 28): webcam.cam_record_video has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (28 pts) (nesting depth added 17). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d59959698ecb49fe9dbc37c812f3dae34d77024ebb405c3780a76868c113799"}},{"ruleId":"D2","level":"warning","message":{"text":"Action.initFromDict (cognitive 27): Action.initFromDict has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (9 pts) (nesting depth added 17). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd5b2a470e51665f1de265efa9daaa585f8f2b77252f5699bd96ba8d50a0f33"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.takeImage2 (cognitive 27): Camera.takeImage2 has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 1, error handling 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5377}}}],"partialFingerprints":{"codehealthFindingId/v1":"558e8adca4a3fba498550d79189d1707db930a3604575bd2f045482a4b22cd8e"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.draw_detections (cognitive 27): Camera.draw_detections has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (4 pts), boolean chains 3 (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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7535}}}],"partialFingerprints":{"codehealthFindingId/v1":"952599cbc52e6f127e2c49864f107a56c636513e61bedaa751070146bae971bf"}},{"ruleId":"D2","level":"warning","message":{"text":"home.record_video (cognitive 27): home.record_video has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (27 pts) (nesting depth added 17). 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":"raspiCamSrv/home.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b56f0c73d34b465c033e578e4961b345c427339627fce7a763119dad6ade80"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.motion (cognitive 27): trigger.motion has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (26 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":"raspiCamSrv/trigger.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc718b7974f7b816a47a84e93bf894ed93d07aece780c232b077efdfa3dd2ff1"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.password (cognitive 26): auth.password has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 3 (10 pts) (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":"raspiCamSrv/auth.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0be9d1dcf5cd18ea85835112e65d49d26cde715b62e707bc2cb2c8687805eb"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig.checkRoisAgainstScalerCropLiveView (cognitive 26): TriggerConfig.checkRoisAgainstScalerCropLiveView has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 2, loops 2 (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":"raspiCamSrv/camCfg.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dc3a6a52ef2a70a74a052821d7feb4ed5f5efb9c4d356512dc89c6481e8969"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.cam_take_raw_photo_both (cognitive 26): webcam.cam_take_raw_photo_both has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (26 pts) (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":"raspiCamSrv/webcam.py"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8f4cd4d3ed5cc3adc8f2998ba5b66b166b7b3ef6a2bb52d91e016c767d0a74"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraInfo.setUsbDev (cognitive 25): CameraInfo.setUsbDev has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (15 pts), error handling 2 (6 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 16). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73d42bd9eacf241651cc2bd20be8a483203eaec61ef2e19ea45fb4bddc7d052"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.libcameraInfo (cognitive 25): ServerConfig.libcameraInfo has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (3 pts), boolean chains 2, error handling 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6228}}}],"partialFingerprints":{"codehealthFindingId/v1":"52872e688fa7a457140953197e0d8d473544a982bf9b6ecda7a51d5a99471920"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._thread2 (cognitive 25): Camera._thread2 has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (23 pts), error handling 1, 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4712}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecec48677baa6f64002a90e36a3273105fb4a188eddba612d6df9d2c47e63ad0"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.takeRawImage2 (cognitive 25): Camera.takeRawImage2 has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 1, error handling 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5934}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99809941de5d2ca9fcf3d340e592fa8d0dbb683e52c22659f107b72883b28db"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._videoThread (cognitive 25): Camera._videoThread has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 2 (4 pts), error handling 3, boolean chains 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcacb7bf602659da186365f4647c9d7c3ecb8c7f305e1de25becfd1ec355790f"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.doInitCalibration (cognitive 25): webcam.doInitCalibration has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (25 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/webcam.py"},"region":{"startLine":1831}}}],"partialFingerprints":{"codehealthFindingId/v1":"be63a5b4d5fd9c1f5350f4b3d3625d4c761251a114cdc270ae40991f4de6dfa4"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraCfg.setUsbSensorModes (cognitive 24): CameraCfg.setUsbSensorModes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), error handling 2, 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":8155}}}],"partialFingerprints":{"codehealthFindingId/v1":"409f195db5e3a57c2d9abcade5930781a10409bc1a9e509573885f95a7b2bce1"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.restoreConfigFromStreamingConfig (cognitive 24): Camera.restoreConfigFromStreamingConfig has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (24 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3652}}}],"partialFingerprints":{"codehealthFindingId/v1":"91228378695fb6adb4a6d67917ba65bee261836a0649a2ef7a1b2755a7305991"}},{"ruleId":"D2","level":"warning","message":{"text":"api.take_photo_both (cognitive 23): api.take_photo_both has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (23 pts) (nesting depth added 12). 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. This shape REPEATS in the file: one other method here (api.take_raw_photo_both) 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":"raspiCamSrv/api.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded7321ee89c84f44894cec7c9512090409b6d66297e2e0116e20d0f0f3a573a"}},{"ruleId":"D2","level":"warning","message":{"text":"api.take_raw_photo_both (cognitive 23): api.take_raw_photo_both has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (23 pts) (nesting depth added 12). 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. This shape REPEATS in the file: one other method here (api.take_photo_both) 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":"raspiCamSrv/api.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"effd5aa19d92d720af748b2cd3afff88a2d6658ade0c9fa677a258d44407966c"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.quickPhoto (cognitive 23): Camera.quickPhoto has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), error handling 1 (3 pts) (nesting depth added 13). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5496}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1b0678f44155ad1ebc9c9e3d2bd9835025946edbb728068a0b71961b7e3eb1"}},{"ruleId":"D2","level":"warning","message":{"text":"config.getTuningFiles (cognitive 23): config.getTuningFiles has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 1 (3 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/config.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d288676c6563ee546d174d655651de7e096237b7a2d363f3fc5ee729d5a6a3"}},{"ruleId":"D2","level":"warning","message":{"text":"home.ae_control (cognitive 23): home.ae_control has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (23 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":"raspiCamSrv/home.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8796d1f6d91bb2445240dc83e9fc6ccbeedab66b7359360e7fed8c7acc67d2"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.new_series (cognitive 23): photoseries.new_series has cognitive complexity 23 (threshold 15). Drivers by points: error handling 4 (12 pts), if/else 6 (11 pts) (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":"raspiCamSrv/photoseries.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e844f3ec1e9486c259abc8028296077ad4f0940be1157f805f205c216be937"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._bouncing (cognitive 23): TriggerHandler._bouncing has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (23 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ab93adca2cf446229ab977132692ce6cafad3de9b024ba867f61f11227b8cc"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._stageVideoPlaceholder (cognitive 23): TriggerHandler._stageVideoPlaceholder has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 1 (2 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e709ec4f7434471b33c372aa59d68c9dd6932f096b0322cd3f1c02aeb83bf9"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._doStartVideo (cognitive 23): TriggerHandler._doStartVideo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe689431ccd12a5e160c98b509b9ee929f273e197ff0833584d0afd317385cf6"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._findActiveCameraAction (cognitive 23): TriggerHandler._findActiveCameraAction has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (6 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"59da94de0f8ba5e977dd86e4493e476d8f96e8128dd353a7812e18018a0998da"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.cam_take_raw_photo (cognitive 23): webcam.cam_take_raw_photo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (23 pts) (nesting depth added 13). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd37a1305fb2b859c01680973b2d5cec8ff081b897e5aed6994f8cc07aec724c"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.freeGpioPins (cognitive 22): ServerConfig.freeGpioPins has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (18 pts), loops 3 (4 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":6167}}}],"partialFingerprints":{"codehealthFindingId/v1":"119ed9b4c5e7be84b9e63606873fa0f33b15d72e94725f898791468e9f7c9d52"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.startLiveStream (cognitive 22): Camera.startLiveStream has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (20 pts), boolean chains 2 (nesting depth added 12). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2387}}}],"partialFingerprints":{"codehealthFindingId/v1":"473be573c1648cedd65991dce0b9305ff3c97c49fcbaf3c4e6a32872983dc952"}},{"ruleId":"D2","level":"warning","message":{"text":"config.addLiveViewControls (cognitive 22): config.addLiveViewControls has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts) (nesting depth added 13). 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. This shape REPEATS in the file: 3 other methods here (config.addPhotoControls, config.addRawControls, config.addVideoControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98e667b86c6b922670111bcce2c47766ea56da215ab6e19ed4fe02af657f0cf"}},{"ruleId":"D2","level":"warning","message":{"text":"config.addPhotoControls (cognitive 22): config.addPhotoControls has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts) (nesting depth added 13). 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. This shape REPEATS in the file: 3 other methods here (config.addLiveViewControls, config.addRawControls, config.addVideoControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea72f0a9a5e6cc78b13c83a95055bbf2e507e5ef34363e73eb2187cec66883fe"}},{"ruleId":"D2","level":"warning","message":{"text":"config.addRawControls (cognitive 22): config.addRawControls has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts) (nesting depth added 13). 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. This shape REPEATS in the file: 3 other methods here (config.addLiveViewControls, config.addPhotoControls, config.addVideoControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcf0d7990b7df29d1ad551f66053c75b99123e54595aedfcb239ce4b1ce4a41"}},{"ruleId":"D2","level":"warning","message":{"text":"config.addVideoControls (cognitive 22): config.addVideoControls has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts) (nesting depth added 13). 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. This shape REPEATS in the file: 3 other methods here (config.addLiveViewControls, config.addPhotoControls, config.addRawControls) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 4 times rather than 4 independent problems. Splitting this body alone leaves the other 3 exactly as they are. Where these are variations on one operation, the change that clears all 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33f5dd9257c847bec25b30325fba180121ac3a070b041ca22194ea88cfa8479"}},{"ruleId":"D2","level":"warning","message":{"text":"home.exposure_control (cognitive 22): home.exposure_control has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (22 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":"raspiCamSrv/home.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"307792aecf6ba3988dcd3d5b8a3c408c747adc8226fde0cc488a06e51436f96e"}},{"ruleId":"D2","level":"warning","message":{"text":"home.image_control (cognitive 22): home.image_control has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (22 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":"raspiCamSrv/home.py"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9496bbe805d6038df0ef1e87d1464874734fca035f1920908736c6d09ae682b"}},{"ruleId":"D2","level":"warning","message":{"text":"home.take_raw_photo (cognitive 22): home.take_raw_photo has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (22 pts) (nesting depth added 13). 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":"raspiCamSrv/home.py"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb9d8d19721323ed8cbe0ab3665f87dad3b5c7130bdb8d80cbac478920f9f01"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.parseColorTuple (cognitive 22): settings.parseColorTuple has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 1 (4 pts) (nesting depth added 13). 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":"raspiCamSrv/settings.py"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"08471daa857af47668a56be3ca4fe35bb6ef3f104f85a645c9366668f392d1a4"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._doTakePhoto (cognitive 22): TriggerHandler._doTakePhoto has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 1, error handling 1, loops 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba06bf8544f903c9fdf6d3a870164409e2659c024272836ef8ef6e32a52c626b"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._attachMedia (cognitive 22): TriggerHandler._attachMedia has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (6 pts) (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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf1d000e9d7b1970dc85ff72d810f6067e95acbe7fa98e7a78eb6565ca2f214"}},{"ruleId":"D2","level":"warning","message":{"text":"api.record_video (cognitive 21): api.record_video has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (21 pts) (nesting depth added 12). 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":"raspiCamSrv/api.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fe949e0e3d01c9650656f1fa65d736207ad1707c22ada42cb6351423aa1b1c"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraController.codeGenConfig (cognitive 21): CameraController.codeGenConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20 (21 pts) (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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c51fabcd7e666d7c59082d4284806a278c67b3edc2e3f23ec396c7dac61406"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.quickVideoStart (cognitive 21): Camera.quickVideoStart has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 1 (3 pts), boolean chains 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5579}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d4846ec85d6da52df8e37febb66a317b29a23cfd37e7d06edb3c64a094702c"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._videoThread2 (cognitive 21): Camera._videoThread2 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (4 pts), error handling 3 (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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6430}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e6c71a02b66f769fca352d129700a9b798e89890a4f333bb8ea5211453c6cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.cam2_draw_detections (cognitive 21): Camera.cam2_draw_detections has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (4 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7858}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a6e19212d0a0a766cdfcb89ed662f4bdad09ff6d80688c8e257ee67d55bb1e"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetectAlgoIB.recordMotion (cognitive 21): MotionDetectAlgoIB.recordMotion has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (8 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6809cd4cac57defd12ff5a412a495218e890afa51f258e1d6b927f913f3c26"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.configBackup (cognitive 21): settings.configBackup has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), error handling 1 (3 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":"raspiCamSrv/settings.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46f9de54c3bc633f850438d77ac9f1979e760b7a3ae074951c71a113da38e29"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.change_second_camera (cognitive 21): webcam.change_second_camera has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (2 pts) (nesting depth added 12). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"664fac4f41a2456f3a7647c5133535918672f51bfb531de91f627bc68489d082"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.doCleanup (cognitive 21): webcam.doCleanup has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 1 (5 pts), loops 2 (4 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":"raspiCamSrv/webcam.py"},"region":{"startLine":1779}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0c0cb86f3b19247d68ff69595ff029ffcd2862589fca9aab395be7e70c650a"}},{"ruleId":"D2","level":"warning","message":{"text":"api.start_triggered_capture (cognitive 20): api.start_triggered_capture has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/api.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"091da029fadeb2dea3840393dc9bb874e00809ffb44a8fcc2bb754728986e87c"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig.initFromDict (cognitive 20): TriggerConfig.initFromDict has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (9 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef29484417e479be2f39e736919d48aa31b5a481a3044e6c2ddf48d13d13d15"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.getUsbCamMetadata (cognitive 20): Camera.getUsbCamMetadata has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 2 (nesting depth added 10). 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3beb3b04c07231053053f4713fa3923737947631afe8c8fdace0c08e3af5af"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.getPreviewListHistDetail (cognitive 20): Series.getPreviewListHistDetail has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (2 pts), boolean chains 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfdfe68f086a0134ec17598ed93514647156a88447a3726f3f63ba4d2c2a966"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._findDeviceInRegistry (cognitive 20): TriggerHandler._findDeviceInRegistry has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (20 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b803f5c91dd2ce4e165988d0389b5478ed2bac77381a17bbcb810c78cd357ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.cam_take_photo (cognitive 20): webcam.cam_take_photo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (20 pts) (nesting depth added 12). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"b925dd484e210f39b1a5a8458b4d195ba5f752e7064d5f95ab89066546fcdb27"}},{"ruleId":"D2","level":"warning","message":{"text":"webcam.take_photo_both (cognitive 20): webcam.take_photo_both has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (20 pts) (nesting depth added 11). 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":"raspiCamSrv/webcam.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad18927b88b146b4bacf7ad50baf9fa690d88be9538ab5bd69b1c2890c3ef01"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig._checkMicrophoneNoJson (cognitive 19): ServerConfig._checkMicrophoneNoJson has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (16 pts), error handling 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6833}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bc14172f73d33efa27824b6774532fe20130ae98c7ff7f2b71de048b1e3f03"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.get_photoFrame2_hr (cognitive 19): Camera.get_photoFrame2_hr has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 1 (5 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2867}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7bc7492ab82cf4b8a6cb1617ba031c5871102673e0a91ceaa4663344199d30"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.applyMappedControlToUsbCamera (cognitive 19): Camera.applyMappedControlToUsbCamera has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 1 (4 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3846}}}],"partialFingerprints":{"codehealthFindingId/v1":"973a9a84a600e4cbea71f97631db5f156328550fca7d5881638f6bc22c0dff68"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.applyControlsForAfCycle (cognitive 19): Camera.applyControlsForAfCycle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4393}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb660b343a0692a9b728eee42923e609fa1b30385cb02c6f361973b1fa90057"}},{"ruleId":"D2","level":"warning","message":{"text":"home.take_photo (cognitive 19): home.take_photo has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (19 pts) (nesting depth added 12). 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":"raspiCamSrv/home.py"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"2201f29b405299495897a8bc1a68d934a4f3c6ec1fea3c8ed380ba0c45749bdb"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.calcSunAzimuthSeries (cognitive 19): photoseries.calcSunAzimuthSeries has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/photoseries.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"d407ecda11d1e0f30b837f0e9eeb66d098e78f27f208e2cfb469af4d29e8c443"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.nextTime (cognitive 19): Series.nextTime has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"753b964b8ee8ca203fbc07eb5c1a389ad7072d7f5d896bca2528bd1601a601bc"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.calibrate_device (cognitive 19): settings.calibrate_device has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 1 (4 pts) (nesting depth added 11). 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":"raspiCamSrv/settings.py"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e771ec64610b480a2364079c6f408db850d6f289b6de560916c08d8d19de24"}},{"ruleId":"D2","level":"warning","message":{"text":"api.propGen (cognitive 18): api.propGen has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 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":"raspiCamSrv/api.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6ed6a5ad079608ba4ac882f8a52504a2ff9c5f0b5d643ea73c3aa03a931d6f"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig.actionTargets (cognitive 18): TriggerConfig.actionTargets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (3 pts) (nesting depth added 11). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d641b74378e0117b6bf581103f7a3c84ea210ad41e47c7d760a605a9abae4cc"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig.cameraSettings (cognitive 18): TriggerConfig.cameraSettings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d98fe53abb220917b4ce589ed7195d1466176497d1a82ef1a6b44f0504431e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.unregisterStreamingClient (cognitive 18): ServerConfig.unregisterStreamingClient has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 pts), boolean chains 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":5715}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab82d1c7a421e63de07d93a45aa3e0774db6014e3709cb9b6c3ac4a3491d3c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.displayBufferCheck (cognitive 18): ServerConfig.displayBufferCheck has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6710}}}],"partialFingerprints":{"codehealthFindingId/v1":"f451289751aeedec37842fae6743e185f71b536668aa0f58e47c1fe7a471c44b"}},{"ruleId":"D2","level":"warning","message":{"text":"home.trigger_autofocus (cognitive 18): home.trigger_autofocus has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (18 pts) (nesting depth added 10). 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":"raspiCamSrv/home.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f880e86e9cb4200976968ae5d7e04acbcde48ea1b81073bd57ac2d5dd3a4989"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetector.startMotionDetection (cognitive 18): MotionDetector.startMotionDetection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"e560510e785d730d696b0c0b7ffa73149d0f41fa3332bc2386a50a4119357cfa"}},{"ruleId":"D2","level":"warning","message":{"text":"GPIODevice.initFromDict (cognitive 17): GPIODevice.initFromDict has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (5 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffaa149e3aa9d9cbea73b68680111b108270289fc7847baa1aae5ae905d357e"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerConfig._parseWindows (cognitive 17): TriggerConfig._parseWindows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 pts) (nesting depth added 10). 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. This shape REPEATS in the file: one other method here (CameraControls._parseWindows) 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2c58d6038b83db0fdea447604d4bdaacb6eae613d7194cda6368077ae398ba"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraControls._parseWindows (cognitive 17): CameraControls._parseWindows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 pts) (nesting depth added 10). 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. This shape REPEATS in the file: one other method here (TriggerConfig._parseWindows) 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":2786}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d638cf3fa48bc9b1344bd8c0331e5fe3874b0f75017316d53cce43d485a391"}},{"ruleId":"D2","level":"warning","message":{"text":"CameraConfig.initFromDict (cognitive 17): CameraConfig.initFromDict has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 4 (8 pts) (nesting depth added 10). 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":3281}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2997d5e44060d967185c57f18fe7bdba005c17427c3845d12e234743fc71f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.registerStreamingClient (cognitive 17): ServerConfig.registerStreamingClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":5685}}}],"partialFingerprints":{"codehealthFindingId/v1":"1616a547fcfa68f550d5085ddef7534c1f37bbeb828b60fcbecb0415b272ec1f"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.loadUsbCameraSpecifics (cognitive 17): Camera.loadUsbCameraSpecifics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3032}}}],"partialFingerprints":{"codehealthFindingId/v1":"83750e5a372c7feae2ce4be83d4394397cd0679b299d83749a1b08f0bd40ec13"}},{"ruleId":"D2","level":"warning","message":{"text":"home.zoom_in (cognitive 17): home.zoom_in has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (3 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":"raspiCamSrv/home.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df7bd8a89e00534b538ac37ea32c916e5c48f13d4345ec25b947ad558e9ef23"}},{"ruleId":"D2","level":"warning","message":{"text":"MotionDetectBgSubtract.backSubModel (cognitive 17): MotionDetectBgSubtract.backSubModel has cognitive complexity 17 (threshold 15). Drivers by points: loops 3 (9 pts), if/else 5 (8 pts) (nesting depth added 9). 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0e1b72a1b8cc2afb827548ea0a9119f9031f4bf6b43d592f8617510773f0eb"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.nextPhoto (cognitive 17): Series.nextPhoto has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (17 pts) (nesting depth added 10). 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"6637a917fb4076f64737096fc6a395fd3c3b9a42817df72b17dd18d44b68809c"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.initFromDict (cognitive 17): Series.initFromDict has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e11f24cba4154b198dd060a887952f2f08a92dfdeca611dbc3541aa7e89c6c5"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.select_device (cognitive 17): settings.select_device has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (6 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":"raspiCamSrv/settings.py"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6a75744abeb9981317a70a0e0a7eb6489e8b874c20f80dd5e09eb6e73c6fa8"}},{"ruleId":"D2","level":"warning","message":{"text":"Sun.find_times_for_azimuth (cognitive 17): Sun.find_times_for_azimuth has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2, ternaries 1 (2 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":"raspiCamSrv/sun.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf12aeff03385e459d5d494bdb3b7009bc85a989c56c71d8e284a17282345b59"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._registerGpioTrigger (cognitive 17): TriggerHandler._registerGpioTrigger has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee48e0608f51fbc202a0b528e81e42a4368d50d182398b17788788a2abd0323"}},{"ruleId":"D2","level":"warning","message":{"text":"index.html.showAfWindows (cognitive 17): index.html.showAfWindows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (17 pts) (nesting depth added 9). 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":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"184c81efa653c9224036dfbe96b41b27621b0a3a8023ee2db465caa97802c6fd"}},{"ruleId":"D2","level":"warning","message":{"text":"index.html.parseWindows (cognitive 17): index.html.parseWindows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 pts) (nesting depth added 10). 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":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":2117}}}],"partialFingerprints":{"codehealthFindingId/v1":"840180e047948326279f6ebed1eb4c420a8b226ba056810621c80a316cea38d8"}},{"ruleId":"D2","level":"warning","message":{"text":"trigger.html.parseWindows (cognitive 17): trigger.html.parseWindows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 pts) (nesting depth added 10). 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":"raspiCamSrv/templates/trigger/trigger.html"},"region":{"startLine":2448}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60d403641df606dbc9e48255c6110555dfe87b1d8c0cecb6d630e0fdcff709d"}},{"ruleId":"D2","level":"warning","message":{"text":"home.zoom_out (cognitive 16): home.zoom_out has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (3 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":"raspiCamSrv/home.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b910cfd710517823b552b1e63168eebe9dd965006e6432d4cf38372c450139"}},{"ruleId":"D2","level":"warning","message":{"text":"images.delete_selected (cognitive 16): images.delete_selected has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 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":"raspiCamSrv/images.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4d56207ded85b487332a205e36fad236939b307ff5d6ba57fba80770143917"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.pause_series (cognitive 16): photoseries.pause_series has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 1 (nesting depth added 10). 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. This shape REPEATS in the file: one other method here (photoseries.finish_series) 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e38fed1a104183fdb1cd38c246358dbaf19b8374c36a4195a68e1d9c061856"}},{"ruleId":"D2","level":"warning","message":{"text":"photoseries.finish_series (cognitive 16): photoseries.finish_series has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 1 (nesting depth added 10). 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. This shape REPEATS in the file: one other method here (photoseries.pause_series) 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":"raspiCamSrv/photoseries.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"5168b099ff7b18efc3409461bae7636cc5d65185ceb34187a774fc735e806281"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.checkPhotos (cognitive 16): Series.checkPhotos has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (14 pts), error handling 1, loops 1 (nesting depth added 10). 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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fe190fb93c02afa3d6366f4e48ed70cc1e292928819898716f3fdb883460dd"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler.doAction (cognitive 16): TriggerHandler.doAction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ac9b9f3db03fbd62d5bb58ff7124f153f8b94a8dd4552934574f9da5396097"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._unregisterGpioTrigger (cognitive 16): TriggerHandler._unregisterGpioTrigger has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (16 pts) (nesting depth added 10). 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. This shape REPEATS in the file: 2 other methods here (TriggerHandler._unregisterCameraTrigger, TriggerHandler._unregisterMotionDetectorTrigger) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5dd8763278407deb0819d88e80a3811ead0ea77de7b57ba7f83439798a832d"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._unregisterCameraTrigger (cognitive 16): TriggerHandler._unregisterCameraTrigger has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (16 pts) (nesting depth added 10). 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. This shape REPEATS in the file: 2 other methods here (TriggerHandler._unregisterGpioTrigger, TriggerHandler._unregisterMotionDetectorTrigger) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1790}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e30a102e44c569b08970e863c157da26bb6b58a19087c6c8750be346ccb870"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerHandler._unregisterMotionDetectorTrigger (cognitive 16): TriggerHandler._unregisterMotionDetectorTrigger has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (16 pts) (nesting depth added 10). 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. This shape REPEATS in the file: 2 other methods here (TriggerHandler._unregisterGpioTrigger, TriggerHandler._unregisterCameraTrigger) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbd209356ebc320277596675b4c81d906cca48e0ca0337059f2da37520f1e1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/camCfg.py: FileTooLong \u2014 6647 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 6147 over it, 13.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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13100b862517c41d299efb0aa7e823c09955027a953a61b1902ae667805f1d7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/camera_pi.py: FileTooLong \u2014 6345 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5845 over it, 12.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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dca1bbb7961d72357e78b73cea0235af43ba211bd28e0571baa7f59babcee9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/settings.py: FileTooLong \u2014 2285 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1785 over it, 4.57\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":"raspiCamSrv/settings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"826096627b5c3bbb212ab43754e2dd1a8835083e97921e5bf2558ba6c2bb2bad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/config.py: FileTooLong \u2014 2186 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1686 over it, 4.37\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":"raspiCamSrv/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dfdd4ba66a16f1660d7453279449f59c717a27943d3cd8c15dcdf590226915"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Camera: TooManyMethods \u2014 107 methods. The bar is 30 methods; this is 77 over it, 3.57\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d9cacb5898dbf990311b8e4ce18b1c2788597a7fb9cdcbdc4a6700fd6a7910"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/webcam.py: FileTooLong \u2014 1762 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1262 over it, 3.52\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":"raspiCamSrv/webcam.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea2ea4afe97ee57fbf04706bc0679f586c9650456f971dcf4b8ba5b5665d4074"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/home.py: FileTooLong \u2014 1553 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1053 over it, 3.11\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":"raspiCamSrv/home.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df94fa2ba7631c427609c9e3da5d879c471f41efeabbe1522fdae1787c8a8967"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/photoseriesCfg.py: FileTooLong \u2014 1405 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 905 over it, 2.81\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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e07051243a28ebdb00e97422ca3449f84d6e0b12d94b9430cbd25855c9068f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/trigger.py: FileTooLong \u2014 1381 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 881 over it, 2.76\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":"raspiCamSrv/trigger.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd8d57691159df08d12f68ae8a14f18e5c8463c2e2f4515016b2e71178598f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/photoseries.py: FileTooLong \u2014 1129 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 629 over it, 2.26\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":"raspiCamSrv/photoseries.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dce964170777e281b89d80c374721278e9c6fefa50a9a06385b2e6988992bdb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/motionDetector.py: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54\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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b169775a19354f4ba38a73e6b2ab1a9ad96ff1d4faa1f8330af749a8dd4573"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/motionAlgoIB.py: FileTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 270 over it, 1.54\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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"195b3c8a02b8d502ffa218b9fcd6cb3c2ac45fdd49e35617e7f4022619a54199"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServerConfig: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":4412}}}],"partialFingerprints":{"codehealthFindingId/v1":"4631facf1e08c0b4e0fa50a03463ba9a879f925fbeee930200ec370ea4183a38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/api.py: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 195 over it, 1.39\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":"raspiCamSrv/api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4160c54bcef6d1481d39f8d4e3e3669a10528aa16b772d8e16b40f226fc666e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/stereoCam.py: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 over it, 1.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":"raspiCamSrv/stereoCam.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1580f771db85f15cedfdf0c0e77cfe491bdd8cbe7d1b560cbdba128cad867ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raspiCamSrv/gpioDevices.py: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 57 over it, 1.11\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":"raspiCamSrv/gpioDevices.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aed465c62750d521ec959a5b6c87db034c9d528db0b6f3a287686059349c611"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: trigger/trigger.html: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 52 over it, 1.10\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":"raspiCamSrv/templates/trigger/trigger.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8977ea0b0021b1816c8c14954c4e5c9e2e7dc8555be5e2edb86b8c54fed5e4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (8 members, 17 shared lines): raspiCamSrv/home.py:264-303 | raspiCamSrv/home.py:401-449 | raspiCamSrv/home.py:455-494 | raspiCamSrv/home.py:500-533 | raspiCamSrv/home.py:539-578 | raspiCamSrv/home.py:584-626 | raspiCamSrv/home.py:632-665 | raspiCamSrv/home.py:671-704 \u2014 These 8 members are variants of one another: a block of 17 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef12d1c723849a62f98c1b7994841c224d63f7d4311a1095a6bdf6f174294f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 41 shared lines): raspiCamSrv/motionAlgoIB.py:472-567 | raspiCamSrv/motionAlgoIB.py:665-767 | raspiCamSrv/motionAlgoIB.py:978-1073 \u2014 These 3 members are variants of one another: a block of 41 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8041b9ceb47c64495c1302c99adbf225fd9772008f5c238fc75e9d892f7dddf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (68 shared lines): raspiCamSrv/camera_pi.py:5244-5374 | raspiCamSrv/camera_pi.py:5802-5931 \u2014 These two members are variants of one another: 68 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5244}}}],"partialFingerprints":{"codehealthFindingId/v1":"e088c47207b02beb71d8895454f9b11e1b49f7950e25d427e54b888ffdb110d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): raspiCamSrv/camera_pi.py:1743-1969 | raspiCamSrv/camera_pi.py:2127-2384 \u2014 These two members are variants of one another: 55 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b65b9161c8ee56aabd4f29234ee0b483c4e9bb09a2d942845e467909038e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): raspiCamSrv/camera_pi.py:5383-5493 | raspiCamSrv/camera_pi.py:5937-6050 \u2014 These two members are variants of one another: 35 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5383}}}],"partialFingerprints":{"codehealthFindingId/v1":"8943d4615d42c5bdfb1bad31d237ab2e03b79e3876093c547833c42ec3d5f7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): raspiCamSrv/motionAlgoIB.py:570-606 | raspiCamSrv/motionAlgoIB.py:1076-1129 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"1741d3a3377358e327249e18d3ff404abeb7d8b8eefcf269762f8f209ddb401d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): raspiCamSrv/camera_pi.py:5001-5050 | raspiCamSrv/camera_pi.py:5054-5114 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5001}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a870f2ce2c14f39bce28039af669d4b760074214e5783dc4ff2296d4d81b95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (24 members, 50\u002B identical tokens): raspiCamSrv/config.py:43-82 | raspiCamSrv/config.py:191-259 | raspiCamSrv/config.py:342-419 | raspiCamSrv/config.py:425-540 | raspiCamSrv/config.py:546-629 | raspiCamSrv/config.py:635-727 | raspiCamSrv/config.py:733-781 | raspiCamSrv/config.py:787-859 | raspiCamSrv/config.py:865-1045 | raspiCamSrv/config.py:1051-1104 | raspiCamSrv/config.py:1110-1181 | raspiCamSrv/config.py:1187-1347 | raspiCamSrv/config.py:1353-1405 | raspiCamSrv/config.py:1411-1479 | raspiCamSrv/config.py:1485-1576 | raspiCamSrv/config.py:1582-1634 | raspiCamSrv/config.py:1640-1708 | raspiCamSrv/config.py:1714-1867 | raspiCamSrv/config.py:1873-1925 | raspiCamSrv/config.py:1931-1999 | raspiCamSrv/config.py:2005-2097 | raspiCamSrv/config.py:2103-2194 | raspiCamSrv/config.py:2200-2278 | raspiCamSrv/config.py:2284-2353 \u2014 These 24 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 24 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 24 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/config.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec61e9a3fe21f61816eef30919db1881607637eb461cb5fbd16be9da334717b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (18 members, 50\u002B identical tokens): raspiCamSrv/settings.py:1001-1023 | raspiCamSrv/settings.py:1115-1170 | raspiCamSrv/settings.py:1175-1215 | raspiCamSrv/settings.py:1220-1274 | raspiCamSrv/settings.py:1279-1319 | raspiCamSrv/settings.py:1324-1378 | raspiCamSrv/settings.py:1383-1431 | raspiCamSrv/settings.py:1436-1490 | raspiCamSrv/settings.py:1495-1528 | raspiCamSrv/settings.py:1564-1613 | raspiCamSrv/settings.py:1722-1815 | raspiCamSrv/settings.py:1842-1952 | raspiCamSrv/settings.py:1957-2003 | raspiCamSrv/settings.py:2008-2076 | raspiCamSrv/settings.py:2081-2149 | raspiCamSrv/settings.py:2154-2252 | raspiCamSrv/settings.py:2257-2325 | raspiCamSrv/settings.py:2330-2398 \u2014 These 18 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 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/settings.py"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"3784873c11e2f2f8682ee01abc9c03bc99fe56c49a4dc0487f7ad79bd47ddd03"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): raspiCamSrv/settings.py:39-55 | raspiCamSrv/settings.py:60-198 | raspiCamSrv/settings.py:228-282 | raspiCamSrv/settings.py:287-407 | raspiCamSrv/settings.py:412-497 | raspiCamSrv/settings.py:564-643 | raspiCamSrv/settings.py:648-687 | raspiCamSrv/settings.py:692-742 | raspiCamSrv/settings.py:840-869 | raspiCamSrv/settings.py:874-973 | raspiCamSrv/settings.py:1028-1085 | raspiCamSrv/settings.py:1090-1110 | raspiCamSrv/settings.py:2403-2428 | raspiCamSrv/settings.py:2433-2475 | raspiCamSrv/settings.py:2480-2502 | raspiCamSrv/settings.py:2507-2530 | raspiCamSrv/settings.py:2535-2557 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/settings.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3268f4e515837ab2ae4af0c050f62132dc842ffb99d626db8e960d25f126ee7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): raspiCamSrv/photoseries.py:48-120 | raspiCamSrv/photoseries.py:125-145 | raspiCamSrv/photoseries.py:150-234 | raspiCamSrv/photoseries.py:239-267 | raspiCamSrv/photoseries.py:272-302 | raspiCamSrv/photoseries.py:307-389 | raspiCamSrv/photoseries.py:394-412 | raspiCamSrv/photoseries.py:417-456 | raspiCamSrv/photoseries.py:461-548 | raspiCamSrv/photoseries.py:553-576 | raspiCamSrv/photoseries.py:581-609 | raspiCamSrv/photoseries.py:614-627 | raspiCamSrv/photoseries.py:632-645 | raspiCamSrv/photoseries.py:763-1003 | raspiCamSrv/photoseries.py:1031-1110 | raspiCamSrv/photoseries.py:1131-1197 \u2014 These 16 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/photoseries.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"93daf469547eed53bd91e4dafabc338a4c4bdf01a8ce06f75e4fa4fd8df59457"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): raspiCamSrv/trigger.py:73-142 | raspiCamSrv/trigger.py:215-260 | raspiCamSrv/trigger.py:265-281 | raspiCamSrv/trigger.py:493-536 | raspiCamSrv/trigger.py:541-561 | raspiCamSrv/trigger.py:738-753 | raspiCamSrv/trigger.py:758-773 | raspiCamSrv/trigger.py:940-1042 | raspiCamSrv/trigger.py:1083-1115 | raspiCamSrv/trigger.py:1263-1380 | raspiCamSrv/trigger.py:1463-1515 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/trigger.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce898ac7c8388306710c548544c1b7974d685acd86411c621d2b77ecd0bb5a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): raspiCamSrv/trigger.py:566-577 | raspiCamSrv/trigger.py:582-593 | raspiCamSrv/trigger.py:615-626 | raspiCamSrv/trigger.py:631-642 | raspiCamSrv/trigger.py:647-657 | raspiCamSrv/trigger.py:662-672 | raspiCamSrv/trigger.py:693-703 | raspiCamSrv/trigger.py:708-718 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/trigger.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d285bf9f42a5a9dd99d4cf95f38ddc60b2c4fd320a27b67a082f10bc3b703c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): raspiCamSrv/home.py:1390-1407 | raspiCamSrv/home.py:1412-1429 | raspiCamSrv/home.py:1434-1451 | raspiCamSrv/home.py:1478-1496 | raspiCamSrv/home.py:1523-1540 | raspiCamSrv/home.py:1545-1562 | raspiCamSrv/home.py:1567-1584 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"9825682f5f5e602ade79d42a2f86cd1d793504e446b3cfbe010d00b7c86dc1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): raspiCamSrv/trigger.py:598-610 | raspiCamSrv/trigger.py:677-688 | raspiCamSrv/trigger.py:807-818 | raspiCamSrv/trigger.py:869-885 | raspiCamSrv/trigger.py:890-910 | raspiCamSrv/trigger.py:915-935 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/trigger.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1a0cce98e16e2cd3e119e403274cda0136dd982f2ecb85f765e02610157551"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): raspiCamSrv/camera_pi.py:7385-7425 | raspiCamSrv/camera_pi.py:7536-7591 | raspiCamSrv/camera_pi.py:7698-7742 | raspiCamSrv/camera_pi.py:7859-7911 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a8c03b0e31c7085e6cf4f2e0a65d2da5ab2d628ae4942c2fc3502b2d864fe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (95 lines \u00D7 3): raspiCamSrv/config.py:892-986 | raspiCamSrv/config.py:1213-1307 | raspiCamSrv/config.py:1740-1834 \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":"raspiCamSrv/config.py"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a867d9b6f95e130baf7584cdc9f5e1a1ee98effc8b7d9b262f9b85d412def1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): raspiCamSrv/settings.py:234-276 | raspiCamSrv/settings.py:293-335 \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":"raspiCamSrv/settings.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca09ae15a547cb71449f9e2c61b1faec280529d545910bc2f05a5754c2cd728e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): raspiCamSrv/photoseries.py:152-190 | raspiCamSrv/photoseries.py:309-347 \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":"raspiCamSrv/photoseries.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31d093e37388bd0eff23d544639babcad726d25fbd0df2a84bf10c9dd938b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 5): raspiCamSrv/settings.py:2013-2045 | raspiCamSrv/settings.py:2086-2118 | raspiCamSrv/settings.py:2159-2192 | raspiCamSrv/settings.py:2262-2294 | raspiCamSrv/settings.py:2335-2367 \u2014 all 5 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":"raspiCamSrv/settings.py"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6fa6b839b3b78936f75872b18a3f35c99ec9457b8cea84aa45a64c913198a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): raspiCamSrv/camCfg.py:7610-7637 | raspiCamSrv/camCfg.py:7858-7885 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/camCfg.py:7639\u0060 calls \u0060TriggerConfig\u0060, \u0060ServerConfig\u0060 and \u0060raspiCamSrv/camCfg.py:7888\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7610}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf28921e26fe090dc406f06d4d8055ee26850ac2cb1b1ef2691d6846876d1d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): raspiCamSrv/photoseries.py:207-234 | raspiCamSrv/photoseries.py:363-389 \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 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/photoseries.py:361\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/photoseries.py:205\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":"raspiCamSrv/photoseries.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"163f6b5d31c0dc79480057501479a57f8ad84d928b1eeeba7e9585e8e30a9df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): raspiCamSrv/config.py:1450-1476 | raspiCamSrv/config.py:1679-1705 | raspiCamSrv/config.py:1970-1996 \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 \u0060raspiCamSrv/config.py:1450\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":"raspiCamSrv/config.py"},"region":{"startLine":1450}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24520985f2e31a4e84ef13e5d35d8b72b6505c97a4a392b9d5e85837d4610e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): raspiCamSrv/motionDetector.py:237-263 | raspiCamSrv/motionDetector.py:268-294 \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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"741186f7d28102841ca81432fd6f8e54107ac47622d4c1b9c5bd79b3a5ae7e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): raspiCamSrv/api.py:135-160 | raspiCamSrv/api.py:222-247 \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":"raspiCamSrv/api.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc81cf5c29a32de459ad7a04050167db3482bb94865f17c0324700e333fbf27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): raspiCamSrv/settings.py:1122-1145 | raspiCamSrv/settings.py:1227-1250 | raspiCamSrv/settings.py:1331-1354 \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":"raspiCamSrv/settings.py"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"788c7dcba3080b4c52f483b71d1132d5e91731f30fec0db203bd9a418858d970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201324 lines \u00D7 2): raspiCamSrv/camCfg.py:182-202 | raspiCamSrv/camCfg.py:206-229 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92ffbc76a81154ce81803a667b1edc24df06b7ba9a42c2c58bf365950ebd782"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): raspiCamSrv/camera_pi.py:483-506 | raspiCamSrv/camera_pi.py:2179-2201 \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 \u0060raspiCamSrv/camera_pi.py:483\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"250d5b533b48c2770114615439d3ea0d08efc8611afc0078d2b4f078e1635f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): raspiCamSrv/camera_pi.py:1788-1811 | raspiCamSrv/camera_pi.py:1862-1885 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"3278e39a6ab357a043613a47eb4d763a17cfb4ccff10cf5330cf9a70f69b1841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): raspiCamSrv/camera_pi.py:3879-3902 | raspiCamSrv/camera_pi.py:3930-3953 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3879}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b966fa7a1ab4812b4f9819f0cc207002eb25ccf5321b4b42634a075444a168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): raspiCamSrv/camera_pi.py:5001-5023 | raspiCamSrv/camera_pi.py:5054-5077 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5001}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeee1e3b20bda9ed59a56f75622ed3455586a98be997b50ed42eb3900442aa40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): raspiCamSrv/motionDetector.py:758-776 | raspiCamSrv/triggerHandler.py:50-73 \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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8eac7e487de045cae1bfa847be45c6da8c75987e5b975f940663484de9893a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): raspiCamSrv/motionAlgoIB.py:472-494 | raspiCamSrv/motionAlgoIB.py:665-687 | raspiCamSrv/motionAlgoIB.py:978-1000 \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 \u0060raspiCamSrv/motionAlgoIB.py:472\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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f793b8148206a3f61439c863003118b27ae4c2a3e02b95098f888671dce2ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): raspiCamSrv/camera_pi.py:7561-7583 | raspiCamSrv/camera_pi.py:7880-7902 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19e9d6d366f86cdbba648151c10dda55aa4d52c669cb842ab88a37c5281c622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): raspiCamSrv/console.py:54-76 | raspiCamSrv/console.py:97-119 \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 \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":"raspiCamSrv/console.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd01f9e2f4c75454fa6667afaea6c13f4717c19001612a8489447986e4e6c7ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): raspiCamSrv/settings.py:571-593 | raspiCamSrv/settings.py:655-676 \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":"raspiCamSrv/settings.py"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"6132fe7d0da4e9947663cd18223fba849c772e15216d82a3384d683f7141ba45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): raspiCamSrv/settings.py:1668-1690 | raspiCamSrv/trigger.py:1234-1256 \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. 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":"raspiCamSrv/settings.py"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"9595a34cd83fb6c749fee742056a68be45ac2333c93b946bdd1cd4a7f6858d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): raspiCamSrv/trigger.py:942-964 | raspiCamSrv/trigger.py:1265-1287 \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":"raspiCamSrv/trigger.py"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f82e3c1039dc2b15a102b92c9ceed17d512cbd73d99706f7b84271ac34d3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 4): raspiCamSrv/camera_pi.py:1789-1810 | raspiCamSrv/camera_pi.py:1863-1884 | raspiCamSrv/camera_pi.py:2168-2185 | raspiCamSrv/camera_pi.py:2253-2274 \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. 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efb6923f7df5c1a6c7cff515ea37bbe5b2040c91cc32d77bba5e9e0a825b1c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): raspiCamSrv/camera_pi.py:1456-1477 | raspiCamSrv/motionDetector.py:43-64 | raspiCamSrv/stereoCam.py:39-60 \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 all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60f498f94af7154b0f2260415e76b93ccc1e2a185d1aa6fc48cf560b9ca5609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): raspiCamSrv/home.py:1192-1212 | raspiCamSrv/webcam.py:575-596 \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 \u0060raspiCamSrv/webcam.py:575\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 \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":"raspiCamSrv/home.py"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe4a3d586065b05766534a10291c5915e8bc5286e503fde5e77a22058f63de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): raspiCamSrv/settings.py:2055-2075 | raspiCamSrv/settings.py:2128-2148 | raspiCamSrv/settings.py:2304-2324 | raspiCamSrv/settings.py:2377-2397 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/settings.py"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f786444b48f1899f12a7c3b7be5ceee971765401e6eb5dbbd20a8932e0f9c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 3): raspiCamSrv/config.py:1318-1338 | raspiCamSrv/config.py:1549-1567 | raspiCamSrv/config.py:1838-1858 \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 \u0060raspiCamSrv/config.py:1318\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":"raspiCamSrv/config.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e27004d353c29c7e756440e5d53062f87a067cbf7736ff395f20eece251aaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/camCfg.py:1430-1450 | raspiCamSrv/camCfg.py:2787-2807 \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 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbe389f7a5d1c26b43bcefad9e354c9d1baffb0a732cf6cfc3ab3ffc332649a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/camera_pi.py:6149-6169 | raspiCamSrv/camera_pi.py:6282-6302 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6d0954a4f8668d91c5f72f00429e82094726a076569bd25d74d97f8dfe6004"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/config.py:443-463 | raspiCamSrv/config.py:564-584 \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":"raspiCamSrv/config.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"9347b030db6295ff1c1b8d718846472d7c3c8402fa36588794ec2885b7f00e77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/settings.py:1616-1636 | raspiCamSrv/trigger.py:1118-1138 \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. 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":"raspiCamSrv/settings.py"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e08428d7b3b662692938a7e0415e727b0a4cceeddcd5f93ad7da332247afef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1791-1811 | raspiCamSrv/triggerHandler.py:1822-1842 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1a5fc6e358c28390ca12d4bc5011cbf28614e15c9472070c57b4034c850dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/webcam.py:880-900 | raspiCamSrv/webcam.py:938-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. 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":"raspiCamSrv/webcam.py"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b943302d79120b0214eaf506b37448baf9dec206aea2ded63f7894c9cd3096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): raspiCamSrv/camera_pi.py:333-352 | raspiCamSrv/camera_pi.py:371-390 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbeb8029515010b35e6143811e9a63e1d3bd1d4d1a8fd9fb59b1e76f5586b1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): raspiCamSrv/camera_pi.py:2678-2697 | raspiCamSrv/camera_pi.py:2722-2741 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2678}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f50c974d02360d364c149553e9a73a1d30f28e124a885caba588c6a030d6ac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): raspiCamSrv/camera_pi.py:5334-5353 | raspiCamSrv/camera_pi.py:5887-5906 \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 \u0060raspiCamSrv/camera_pi.py:5334\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. 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5334}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa20ff45ac94707b93d1ceb82c25a36a74543edfab965dfb49da672b796f33f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): raspiCamSrv/stereoCam.py:181-197 | raspiCamSrv/stereoCam.py:224-243 \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":"raspiCamSrv/stereoCam.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab343c2d2940f11b31ce684f8e5369d0e8cf55505edf0e829a1d2e4f0bcf8c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 16): raspiCamSrv/settings.py:60-78 | raspiCamSrv/settings.py:228-246 | raspiCamSrv/settings.py:287-305 | raspiCamSrv/settings.py:412-430 | raspiCamSrv/settings.py:564-582 | raspiCamSrv/settings.py:648-666 | raspiCamSrv/settings.py:692-710 | raspiCamSrv/settings.py:840-858 | raspiCamSrv/settings.py:874-892 | raspiCamSrv/settings.py:1028-1046 | raspiCamSrv/settings.py:1090-1108 | raspiCamSrv/settings.py:2403-2421 | raspiCamSrv/settings.py:2433-2450 | raspiCamSrv/settings.py:2480-2497 | raspiCamSrv/settings.py:2507-2524 | raspiCamSrv/settings.py:2535-2552 \u2014 all 16 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":"raspiCamSrv/settings.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7d785a6c5e8d9508510fd745b6d1bd6dc3b961a82a94671da66bcc1158a4b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): raspiCamSrv/camera_pi.py:2190-2208 | raspiCamSrv/camera_pi.py:2284-2302 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/camera_pi.py:2185\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/camera_pi.py:2281\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17f593fe75170ea025f8eabe08fc190f05ed795d5832a0265210c66959b0fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): raspiCamSrv/camera_pi.py:5651-5669 | raspiCamSrv/camera_pi.py:5727-5745 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5651}}}],"partialFingerprints":{"codehealthFindingId/v1":"6538a66294bce1e1cbd838c2b329faaa93ebbf58c5c334203b5af3bc7c88a393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): raspiCamSrv/camera_pi.py:6360-6378 | raspiCamSrv/camera_pi.py:6384-6402 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6360}}}],"partialFingerprints":{"codehealthFindingId/v1":"401058a8985857c80cc646ccf12a92f9070c4683f5b4dc45bc550badc09f93e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): raspiCamSrv/config.py:517-535 | raspiCamSrv/config.py:606-624 \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 \u0060raspiCamSrv/config.py:517\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":"raspiCamSrv/config.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20d693f0f34d4b131499646f4897c7f484f67d2c862b249fbdf8dda29ed4d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): raspiCamSrv/settings.py:747-765 | raspiCamSrv/settings.py:815-833 \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":"raspiCamSrv/settings.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"360f870a6c828f101d8bd1be6d144e12bf2be72c895ff8814b0133e3542b46d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): raspiCamSrv/config.py:1084-1101 | raspiCamSrv/config.py:1161-1178 | raspiCamSrv/config.py:1327-1344 | raspiCamSrv/config.py:1385-1402 | raspiCamSrv/config.py:1556-1573 | raspiCamSrv/config.py:1614-1631 | raspiCamSrv/config.py:1847-1864 | raspiCamSrv/config.py:1905-1922 \u2014 all 8 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 \u0060raspiCamSrv/config.py:1084\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/config.py:1083\u0060 calls \u0060Camera\u0060, \u0060restartLiveStream\u0060 and \u0060raspiCamSrv/config.py:1384\u0060 does not \u2014 after which the two agree again for 4 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":"raspiCamSrv/config.py"},"region":{"startLine":1084}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a9a563bcd285d658f5bb9623f4acddad8ad9c9ba0a2a7d76be39a052c4f3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): raspiCamSrv/settings.py:2046-2063 | raspiCamSrv/settings.py:2119-2136 | raspiCamSrv/settings.py:2215-2232 | raspiCamSrv/settings.py:2295-2312 | raspiCamSrv/settings.py:2368-2385 \u2014 all 5 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":"raspiCamSrv/settings.py"},"region":{"startLine":2046}}}],"partialFingerprints":{"codehealthFindingId/v1":"3135ebe6259a8a6ff7d132f1dcbb15a349be25c1b39a9f174a193995bd93ee8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): raspiCamSrv/triggerHandler.py:1770-1787 | raspiCamSrv/triggerHandler.py:1801-1818 | raspiCamSrv/triggerHandler.py:1832-1849 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"da64fb8551a4cc8a1138a73577d2e4a21e4da4228f1aff730459fcafa1060ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/camCfg.py:354-371 | raspiCamSrv/camCfg.py:446-463 \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 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df7b846bc1b72c91e81797fea5c484166050fe3222d4ffaa403468ca2721cd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/camCfg.py:7329-7346 | raspiCamSrv/camCfg.py:7361-7378 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7329}}}],"partialFingerprints":{"codehealthFindingId/v1":"66aed93d54392579002884f33a0d530107c7edf026018ec61c7f4667d91b8b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/camera_pi.py:2306-2323 | raspiCamSrv/camera_pi.py:2333-2350 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2306}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bc7a84bdd59694280f8fb772807efd24afbdfcfae455c3b6d754d1c925424d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): raspiCamSrv/camera_pi.py:2968-2985 | raspiCamSrv/camera_pi.py:3060-3076 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac8e60817ca4b91f5c59ca5c0c78b1b6147e32b991894a4ebe79ac1a8d03907"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): raspiCamSrv/camera_pi.py:5266-5282 | raspiCamSrv/camera_pi.py:5817-5834 \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 \u0060raspiCamSrv/camera_pi.py:5266\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13acfa370dd8a13baaf7c9b8fe25e0fdd71a69fb3c48dd0fac8d71695761d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/camera_pi.py:6103-6120 | raspiCamSrv/camera_pi.py:6128-6145 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9821445116ba0e1dbb00c6e24f4208ad06ae3b125e48f640f6363d7432c68e51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/camera_pi.py:7403-7420 | raspiCamSrv/camera_pi.py:7720-7737 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7403}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b839b36c4d0be48c7ee569153f0d02843102ad3f95cce40709290f7ffab818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): raspiCamSrv/home.py:1242-1258 | raspiCamSrv/webcam.py:635-652 \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 \u0060raspiCamSrv/webcam.py:635\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 \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":"raspiCamSrv/home.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3068d0ee5c3c4376d55b03f9df2945914128609f5593d162e5f1474d978f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/photoseriesCfg.py:59-76 | raspiCamSrv/photoseriesCfg.py:894-911 \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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"13078c9d3a1456c6cabf36e1e8bdd7d7e7520699be25ac9130a1517f082d5aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/webcam.py:285-302 | raspiCamSrv/webcam.py:374-391 \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":"raspiCamSrv/webcam.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfbe29acdd478330235e820c3ca3252fe1f6955bed5978f1da573077f9213bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 19): raspiCamSrv/config.py:403-419 | raspiCamSrv/config.py:711-727 | raspiCamSrv/config.py:765-781 | raspiCamSrv/config.py:1029-1045 | raspiCamSrv/config.py:1088-1104 | raspiCamSrv/config.py:1165-1181 | raspiCamSrv/config.py:1331-1347 | raspiCamSrv/config.py:1389-1405 | raspiCamSrv/config.py:1463-1479 | raspiCamSrv/config.py:1560-1576 | raspiCamSrv/config.py:1618-1634 | raspiCamSrv/config.py:1692-1708 | raspiCamSrv/config.py:1851-1867 | raspiCamSrv/config.py:1909-1925 | raspiCamSrv/config.py:1983-1999 | raspiCamSrv/config.py:2081-2097 | raspiCamSrv/config.py:2178-2194 | raspiCamSrv/config.py:2262-2278 | raspiCamSrv/config.py:2337-2353 \u2014 all 19 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/config.py:401\u0060 calls \u0060Camera\u0060, \u0060restartLiveStream\u0060 and \u0060raspiCamSrv/config.py:1027\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":"raspiCamSrv/config.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06499422634ac07793101eba88e9a72927ad65b3505e0ba9ed2fde3ce247a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 18): raspiCamSrv/settings.py:1002-1018 | raspiCamSrv/settings.py:1116-1132 | raspiCamSrv/settings.py:1176-1192 | raspiCamSrv/settings.py:1221-1237 | raspiCamSrv/settings.py:1280-1296 | raspiCamSrv/settings.py:1325-1341 | raspiCamSrv/settings.py:1384-1400 | raspiCamSrv/settings.py:1437-1453 | raspiCamSrv/settings.py:1496-1512 | raspiCamSrv/settings.py:1565-1581 | raspiCamSrv/settings.py:1723-1739 | raspiCamSrv/settings.py:1843-1859 | raspiCamSrv/settings.py:1958-1974 | raspiCamSrv/settings.py:2009-2025 | raspiCamSrv/settings.py:2082-2098 | raspiCamSrv/settings.py:2155-2171 | raspiCamSrv/settings.py:2258-2274 | raspiCamSrv/settings.py:2331-2347 \u2014 all 18 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":"raspiCamSrv/settings.py"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"113ad43118a6416b8ebe21946820e79556db21cd3802a216b9ba8d3c68432fa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): raspiCamSrv/config.py:66-82 | raspiCamSrv/config.py:524-540 | raspiCamSrv/config.py:613-629 | raspiCamSrv/config.py:843-859 \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":"raspiCamSrv/config.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd78b9846bd5fc0d9c34ae5cb2e2d7d281facc04054e93286ea047a95e349a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): raspiCamSrv/camera_pi.py:491-507 | raspiCamSrv/camera_pi.py:2188-2202 | raspiCamSrv/camera_pi.py:2281-2296 \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 \u0060raspiCamSrv/camera_pi.py:491\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 before the matched lines, \u0060raspiCamSrv/camera_pi.py:2185\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/camera_pi.py:2281\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"9520ce4d0e2f51a9a8493a18c2f269d79c73f9910bea42fe69917cb0b17687bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): raspiCamSrv/camera_pi.py:5313-5329 | raspiCamSrv/camera_pi.py:5864-5879 \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 \u0060raspiCamSrv/camera_pi.py:5313\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, \u0060raspiCamSrv/camera_pi.py:5880\u0060 calls \u0060imwrite\u0060 and \u0060raspiCamSrv/camera_pi.py:5330\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7e969fad060ea4be216e770e64a122aaadeb2cd2540a8559e5b0b0b9ab80a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): raspiCamSrv/camera_pi.py:5454-5470 | raspiCamSrv/camera_pi.py:6010-6025 \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 \u0060raspiCamSrv/camera_pi.py:5454\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5454}}}],"partialFingerprints":{"codehealthFindingId/v1":"a704912d272341aba75067ce0119446567760d29ec55e4ba2af53bb3068428d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): raspiCamSrv/home.py:1162-1177 | raspiCamSrv/webcam.py:534-550 \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 \u0060raspiCamSrv/webcam.py:534\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 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/home.py:1161\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/webcam.py:533\u0060 does not \u2014 after which the two agree again for 4 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":"raspiCamSrv/home.py"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b859989e6250f620983e737001fecc1f7eb0b72aaa2b2e19bcb2c015a55378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): raspiCamSrv/trigger.py:1302-1318 | raspiCamSrv/trigger.py:1320-1336 \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":"raspiCamSrv/trigger.py"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61fc800317b64b43ddba07cbc6cf813a4f4de1c7979d1b033e87ebdc639fd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1390-1406 | raspiCamSrv/triggerHandler.py:1447-1463 \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 \u0060raspiCamSrv/triggerHandler.py:1390\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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9153a81405398e4f9beed6d13365e8b166bc9ee61eaf3154274f8d9f3e58cb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 21): raspiCamSrv/config.py:346-361 | raspiCamSrv/config.py:429-444 | raspiCamSrv/config.py:550-565 | raspiCamSrv/config.py:639-654 | raspiCamSrv/config.py:737-752 | raspiCamSrv/config.py:791-806 | raspiCamSrv/config.py:869-884 | raspiCamSrv/config.py:1056-1071 | raspiCamSrv/config.py:1114-1129 | raspiCamSrv/config.py:1191-1206 | raspiCamSrv/config.py:1358-1373 | raspiCamSrv/config.py:1415-1430 | raspiCamSrv/config.py:1587-1602 | raspiCamSrv/config.py:1644-1659 | raspiCamSrv/config.py:1718-1733 | raspiCamSrv/config.py:1878-1893 | raspiCamSrv/config.py:1935-1950 | raspiCamSrv/config.py:2009-2024 | raspiCamSrv/config.py:2107-2122 | raspiCamSrv/config.py:2204-2219 | raspiCamSrv/config.py:2288-2303 \u2014 all 21 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":"raspiCamSrv/config.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f236c781ec994571508bd0ec4ca58b5e39dcc59938e7c68fb9996997101d21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): raspiCamSrv/photoseriesCfg.py:61-74 | raspiCamSrv/photoseriesCfg.py:896-909 | raspiCamSrv/photoseriesCfg.py:922-937 \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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e63d2ac8c675114ad0a3a37cc2252bfdee0d207a2dfbde76cca850b4f1da535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/auth.py:260-275 | raspiCamSrv/auth.py:283-298 \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, \u0060raspiCamSrv/auth.py:281\u0060 calls \u0060CameraCfg\u0060 and \u0060raspiCamSrv/auth.py:259\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":"raspiCamSrv/auth.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2794aca6892e010b93d284fc662992786acdfb85d36f329b7258d1dbddb6e96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): raspiCamSrv/camCfg.py:2827-2842 | raspiCamSrv/camCfg.py:3497-3510 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/camCfg.py:2844\u0060 calls \u0060setattr\u0060 and \u0060raspiCamSrv/camCfg.py:3511\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":2827}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad839957bdfa05b83602f6ecb12e5ac0495d9122f13bba00181a937b5bcce576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/camera_pi.py:3508-3523 | raspiCamSrv/camera_pi.py:3530-3545 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3508}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95beeca0dd13cdf14bafb96c1823e24b2d054215a214c7289c320d6b7039d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/camera_pi.py:7001-7016 | raspiCamSrv/camera_pi.py:7018-7033 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7001}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda0c03339d2be3963fd43b60781cc4db06e2f621d9cba4cafc85c9fe45d144c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/camera_pi.py:7610-7625 | raspiCamSrv/camera_pi.py:7931-7946 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7610}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac7307013ad38527cbd27c3c84b1f4d85e72976b8ad867ffd3a60768e760298"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/photoseries.py:1033-1048 | raspiCamSrv/photoseries.py:1133-1148 \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":"raspiCamSrv/photoseries.py"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80d2947b3dfe3ae8b4db0402f82a4002b0f4badde7664a7ec9b777342d44ec6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/photoseriesCfg.py:974-989 | raspiCamSrv/photoseriesCfg.py:1263-1278 \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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e3dc29027ba8d7e582a625bf520b490424fc9c98ee5df43960f404fc883c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): raspiCamSrv/settings.py:137-151 | raspiCamSrv/webcam.py:295-310 \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":"raspiCamSrv/settings.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"b588685ef1eda432015b119a857458870fc414da4929efef2be3f85552cbcd70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 17): raspiCamSrv/settings.py:39-53 | raspiCamSrv/settings.py:61-75 | raspiCamSrv/settings.py:229-243 | raspiCamSrv/settings.py:288-302 | raspiCamSrv/settings.py:413-427 | raspiCamSrv/settings.py:565-579 | raspiCamSrv/settings.py:649-663 | raspiCamSrv/settings.py:693-707 | raspiCamSrv/settings.py:841-855 | raspiCamSrv/settings.py:875-889 | raspiCamSrv/settings.py:1029-1043 | raspiCamSrv/settings.py:1091-1105 | raspiCamSrv/settings.py:2404-2418 | raspiCamSrv/settings.py:2434-2448 | raspiCamSrv/settings.py:2481-2495 | raspiCamSrv/settings.py:2508-2522 | raspiCamSrv/settings.py:2536-2550 \u2014 all 17 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":"raspiCamSrv/settings.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"700c4809eea63be19fae9a830c82d731bc5455e8c5a4bc425ff3e1667587e740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): raspiCamSrv/camera_pi.py:7411-7425 | raspiCamSrv/camera_pi.py:7569-7583 | raspiCamSrv/camera_pi.py:7728-7742 | raspiCamSrv/camera_pi.py:7888-7902 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7411}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d0ee4f27c66fd1e352e6ce060925e104f4603157e8661e73b0c27b066ab07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/camera_pi.py:898-912 | raspiCamSrv/camera_pi.py:958-972 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a44ef79164af95b2e245243e9040719a571e52f0c9502922ba47d415f7ba5eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/camera_pi.py:1821-1835 | raspiCamSrv/camera_pi.py:2209-2223 \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 \u0060raspiCamSrv/camera_pi.py:1821\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d949d85daf88627b1ec14b1cd64d274352c0870ed26b85612a56adb776facb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/camera_pi.py:1888-1902 | raspiCamSrv/camera_pi.py:1910-1924 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d6eeacee5c39b3551fe0e93b402ee11989d48f02822989d8e9b868d8d41652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): raspiCamSrv/camera_pi.py:7497-7511 | raspiCamSrv/camera_pi.py:7823-7836 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7497}}}],"partialFingerprints":{"codehealthFindingId/v1":"5887c22c99eb3e865fb58e0df3dbc2293ccb221457521c0a3f1699c846d4ebbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:592-606 | raspiCamSrv/motionAlgoIB.py:1115-1129 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8ebf42ad8e235e37921ace6917805e33dff0418b65a61ba9e7839c3ae2dabe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/settings.py:1652-1666 | raspiCamSrv/trigger.py:1218-1232 \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":"raspiCamSrv/settings.py"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"c923da97ceb246b7a214803bd8aab0d0d962102fa410a0cb93b663c51981b815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/trigger.py:236-250 | raspiCamSrv/trigger.py:512-526 \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":"raspiCamSrv/trigger.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b420c015a35df952434d8e48707d85c10baae518778cd0416284601862f0d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1363-1377 | raspiCamSrv/triggerHandler.py:1400-1414 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34d066853f00864fd69fa1d172946ca0c538042f9afe0aea8dc04b2a12a7de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 18): raspiCamSrv/config.py:342-355 | raspiCamSrv/config.py:425-438 | raspiCamSrv/config.py:546-559 | raspiCamSrv/config.py:635-648 | raspiCamSrv/config.py:733-746 | raspiCamSrv/config.py:787-800 | raspiCamSrv/config.py:865-878 | raspiCamSrv/config.py:1110-1123 | raspiCamSrv/config.py:1187-1200 | raspiCamSrv/config.py:1411-1424 | raspiCamSrv/config.py:1485-1498 | raspiCamSrv/config.py:1640-1653 | raspiCamSrv/config.py:1714-1727 | raspiCamSrv/config.py:1931-1944 | raspiCamSrv/config.py:2005-2018 | raspiCamSrv/config.py:2103-2116 | raspiCamSrv/config.py:2200-2213 | raspiCamSrv/config.py:2284-2297 \u2014 all 18 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":"raspiCamSrv/config.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8317d800419a6b0da48386ad17de8d9556a1dcddb00c0d64cd6e49afea10b322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): raspiCamSrv/home.py:1390-1403 | raspiCamSrv/home.py:1412-1425 | raspiCamSrv/home.py:1434-1447 | raspiCamSrv/home.py:1479-1492 | raspiCamSrv/home.py:1523-1536 | raspiCamSrv/home.py:1545-1558 | raspiCamSrv/home.py:1567-1580 \u2014 all 7 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":"raspiCamSrv/home.py"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1910da8c398210b54cbd5fb9283ac78f8ad51038fe0ed45594d6fa1ea7f3578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): raspiCamSrv/webcam.py:1553-1566 | raspiCamSrv/webcam.py:1656-1669 | raspiCamSrv/webcam.py:1684-1697 | raspiCamSrv/webcam.py:1721-1734 | raspiCamSrv/webcam.py:1889-1902 \u2014 all 5 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":"raspiCamSrv/webcam.py"},"region":{"startLine":1553}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ada8e5d6b25652e259d11a7bbba8a03528ffd5f38e7f27ca0daa446e460caf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): raspiCamSrv/camCfg.py:3294-3307 | raspiCamSrv/camCfg.py:7337-7350 | raspiCamSrv/camCfg.py:7369-7382 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":3294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2ffee1a29b9fca792552fcf4e3a73224747d0accd7e66c5427e478ce6f48e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): raspiCamSrv/config.py:1206-1219 | raspiCamSrv/config.py:1504-1517 | raspiCamSrv/config.py:1733-1746 \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":"raspiCamSrv/config.py"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"098a2cef8ff071e4d3618e76c22e6d8acb082b614869bee067dfea5efd42b6e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): raspiCamSrv/console.py:36-49 | raspiCamSrv/console.py:82-95 | raspiCamSrv/console.py:125-138 \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":"raspiCamSrv/console.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4c6990e2f94224f443ccb1461ffb4a579c47e1d0480c64bcdf03b48bcb340f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/api.py:37-50 | raspiCamSrv/auth.py:112-125 \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":"raspiCamSrv/api.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d081b40af8aa51e25b93216ba9d2b9d4eeced7f2e433ea77786f6dfb745e841e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/api.py:413-426 | raspiCamSrv/api.py:475-488 \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":"raspiCamSrv/api.py"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8df090768cc9f2e03c484b9c5ade8ea983a236ccc3548c76d6082c5cfaaaa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/auth.py:110-123 | raspiCamSrv/auth.py:151-164 \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":"raspiCamSrv/auth.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb79ed6ef921478acf633d8db7a5bdc1c365f9b466beaf118adadebf6afd25ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/camCfg.py:7398-7411 | raspiCamSrv/camCfg.py:7421-7434 \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 \u0060raspiCamSrv/camCfg.py:7398\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7398}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f1dfcf18d4e796e1b3d04f5b7a772b6525b641475621bcd3c28f82c876de2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/camera_pi.py:5361-5374 | raspiCamSrv/camera_pi.py:5918-5931 \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 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5361}}}],"partialFingerprints":{"codehealthFindingId/v1":"7926b440884bacfbcd494a16dd64c22b5408ba9e18cf58b5f9afa343113d4d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/home.py:1456-1469 | raspiCamSrv/home.py:1501-1514 \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":"raspiCamSrv/home.py"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bbad94dcc2779bce1c228103114a8501641e6ea60313ee6cf464ed0899fbda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/home.py:1674-1687 | raspiCamSrv/home.py:1705-1718 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/home.py:1720\u0060 calls \u0060rsplit\u0060 and \u0060raspiCamSrv/home.py:1690\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":"raspiCamSrv/home.py"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0f55cf7ca124a3c95f18b71f37a3786c48653998239ca900801e4dfe85d9ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:554-567 | raspiCamSrv/motionAlgoIB.py:1060-1073 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7c77c02b38f48356247a95961cf00bac18db8d54d12ff7e44c6c518b7aa547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/motionDetector.py:633-646 | raspiCamSrv/triggerHandler.py:1079-1092 \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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0431ebcf167e3e28dc389a095daf2c73173754b59a81ff593aeb9741c3f1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): raspiCamSrv/home.py:350-362 | raspiCamSrv/home.py:436-448 | raspiCamSrv/home.py:481-493 | raspiCamSrv/home.py:520-532 | raspiCamSrv/home.py:565-577 | raspiCamSrv/home.py:613-625 | raspiCamSrv/home.py:652-664 | raspiCamSrv/home.py:691-703 | raspiCamSrv/home.py:1655-1667 \u2014 all 9 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/home.py:349\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/home.py:435\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":"raspiCamSrv/home.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5aacccae4f6dd14feed67c4ad0404bdc3b94f8f9ac2e7d89488b848eb43d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/camera_pi.py:4266-4278 | raspiCamSrv/camera_pi.py:4408-4420 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a30ad12daadfc7f1470df6340c406f9bfbca22a424b8b3069d8176244cf94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/trigger.py:975-987 | raspiCamSrv/trigger.py:990-1002 \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":"raspiCamSrv/trigger.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"f380a60ad212dd7bb26fa7cddb6d40d30c8fb44bf9506c633507522be66445c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): raspiCamSrv/triggerHandler.py:371-383 | raspiCamSrv/triggerHandler.py:865-876 \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 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd86c41d2cdb790e609ef405356c01fdc3fd1484da3d03aa04e72bef82053dc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1681-1693 | raspiCamSrv/triggerHandler.py:1719-1731 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c3f4ad0018fecf54be88c261971e7cfac8cb6ba87506009bf7e8bf4b454c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 24): raspiCamSrv/webcam.py:89-100 | raspiCamSrv/webcam.py:117-128 | raspiCamSrv/webcam.py:145-156 | raspiCamSrv/webcam.py:236-247 | raspiCamSrv/webcam.py:336-347 | raspiCamSrv/webcam.py:418-429 | raspiCamSrv/webcam.py:515-526 | raspiCamSrv/webcam.py:562-573 | raspiCamSrv/webcam.py:608-619 | raspiCamSrv/webcam.py:664-675 | raspiCamSrv/webcam.py:698-709 | raspiCamSrv/webcam.py:737-748 | raspiCamSrv/webcam.py:779-790 | raspiCamSrv/webcam.py:828-839 | raspiCamSrv/webcam.py:861-872 | raspiCamSrv/webcam.py:909-920 | raspiCamSrv/webcam.py:968-979 | raspiCamSrv/webcam.py:1036-1047 | raspiCamSrv/webcam.py:1084-1095 | raspiCamSrv/webcam.py:1122-1133 | raspiCamSrv/webcam.py:1197-1208 | raspiCamSrv/webcam.py:1232-1243 | raspiCamSrv/webcam.py:1929-1940 | raspiCamSrv/webcam.py:1968-1979 \u2014 all 24 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":"raspiCamSrv/webcam.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cceb6a5f081eaec04a3880a3e35bdfdd00e714b83f148606993a75efc558342f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): raspiCamSrv/webcam.py:83-94 | raspiCamSrv/webcam.py:111-122 | raspiCamSrv/webcam.py:139-150 | raspiCamSrv/webcam.py:184-195 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/webcam.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b05207e02062e6f1055075a02b5047553e490c14da54ca909c615738737dd75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): raspiCamSrv/motionAlgoIB.py:542-553 | raspiCamSrv/motionAlgoIB.py:740-751 | raspiCamSrv/motionAlgoIB.py:1047-1058 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"de798720c71cecd5502375fb3c6cc01054da63c090602a75b9639a7dd44a3a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/camCfg.py:242-253 | raspiCamSrv/camCfg.py:442-453 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"004a75e54321419f1847955af620646a59769e5233cd44868668eb17d7237767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/camera_pi.py:1009-1020 | raspiCamSrv/camera_pi.py:3783-3794 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/camera_pi.py:3778\u0060 calls \u0060StreamConfiguration\u0060 and \u0060raspiCamSrv/camera_pi.py:1005\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"1781555ac0c762a8352dbf9b903c46ffdbd3a5250450c2726c20e296b10cb164"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): raspiCamSrv/camera_pi.py:3597-3608 | raspiCamSrv/camera_pi.py:3611-3622 | raspiCamSrv/camera_pi.py:3623-3631 \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. 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3597}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60b7fb8bb58e66e54c062d4065e1fca3bc257f9893ca33be614f4e42f18614d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): raspiCamSrv/home.py:1228-1239 | raspiCamSrv/webcam.py:622-632 \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":"raspiCamSrv/home.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77e7f6c9af0c024c9f63eb1ee2e6b134c8186d43da26f9fa113a64948d04a9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:526-537 | raspiCamSrv/motionAlgoIB.py:725-736 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"7458a59c9537ad6620774b4183a0cc6b12b5a8fb8d8db1a210ce26e8afb7b547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/photoseries.py:50-61 | raspiCamSrv/photoseries.py:127-138 \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":"raspiCamSrv/photoseries.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf4ecf895dd1101b7c69ea6d0e4a8e0c55845d25dd67ac6df8a504259010df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/trigger.py:778-789 | raspiCamSrv/trigger.py:853-864 \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 \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":"raspiCamSrv/trigger.py"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceab2f43d3b7ad0f09e14277595ddda0a48174bb932fb02bb28a7d5b6e2e4314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): raspiCamSrv/webcam.py:1283-1294 | raspiCamSrv/webcam.py:1347-1357 \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":"raspiCamSrv/webcam.py"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfad0cad568eac0ffe68768e43e1864f4f483efd751acc8107c43fcf7b6cc4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 25): raspiCamSrv/webcam.py:86-96 | raspiCamSrv/webcam.py:114-124 | raspiCamSrv/webcam.py:142-152 | raspiCamSrv/webcam.py:187-197 | raspiCamSrv/webcam.py:233-243 | raspiCamSrv/webcam.py:333-343 | raspiCamSrv/webcam.py:415-425 | raspiCamSrv/webcam.py:512-522 | raspiCamSrv/webcam.py:559-569 | raspiCamSrv/webcam.py:605-615 | raspiCamSrv/webcam.py:661-671 | raspiCamSrv/webcam.py:695-705 | raspiCamSrv/webcam.py:734-744 | raspiCamSrv/webcam.py:776-786 | raspiCamSrv/webcam.py:825-835 | raspiCamSrv/webcam.py:858-868 | raspiCamSrv/webcam.py:906-916 | raspiCamSrv/webcam.py:965-975 | raspiCamSrv/webcam.py:1033-1043 | raspiCamSrv/webcam.py:1081-1091 | raspiCamSrv/webcam.py:1119-1129 | raspiCamSrv/webcam.py:1194-1204 | raspiCamSrv/webcam.py:1229-1239 | raspiCamSrv/webcam.py:1926-1936 | raspiCamSrv/webcam.py:1965-1975 \u2014 all 25 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":"raspiCamSrv/webcam.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4172aabccca4d0dca4bc6fffc14940a4443564dcf5ead35d2103030e9e48c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 23): raspiCamSrv/config.py:56-66 | raspiCamSrv/config.py:201-211 | raspiCamSrv/config.py:353-363 | raspiCamSrv/config.py:436-446 | raspiCamSrv/config.py:557-567 | raspiCamSrv/config.py:646-656 | raspiCamSrv/config.py:744-754 | raspiCamSrv/config.py:798-808 | raspiCamSrv/config.py:876-886 | raspiCamSrv/config.py:1063-1073 | raspiCamSrv/config.py:1121-1131 | raspiCamSrv/config.py:1198-1208 | raspiCamSrv/config.py:1365-1375 | raspiCamSrv/config.py:1422-1432 | raspiCamSrv/config.py:1594-1604 | raspiCamSrv/config.py:1651-1661 | raspiCamSrv/config.py:1725-1735 | raspiCamSrv/config.py:1885-1895 | raspiCamSrv/config.py:1942-1952 | raspiCamSrv/config.py:2016-2026 | raspiCamSrv/config.py:2114-2124 | raspiCamSrv/config.py:2211-2221 | raspiCamSrv/config.py:2295-2305 \u2014 all 23 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":"raspiCamSrv/config.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8b3541295deab5347dfc095c707179900a5b8e37f01154209d7453b07c3746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 16): raspiCamSrv/photoseries.py:48-58 | raspiCamSrv/photoseries.py:125-135 | raspiCamSrv/photoseries.py:150-160 | raspiCamSrv/photoseries.py:239-249 | raspiCamSrv/photoseries.py:272-282 | raspiCamSrv/photoseries.py:307-317 | raspiCamSrv/photoseries.py:394-404 | raspiCamSrv/photoseries.py:417-427 | raspiCamSrv/photoseries.py:461-471 | raspiCamSrv/photoseries.py:553-563 | raspiCamSrv/photoseries.py:581-591 | raspiCamSrv/photoseries.py:614-624 | raspiCamSrv/photoseries.py:632-642 | raspiCamSrv/photoseries.py:763-773 | raspiCamSrv/photoseries.py:1031-1041 | raspiCamSrv/photoseries.py:1131-1141 \u2014 all 16 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/photoseries.py:428\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/photoseries.py:405\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":"raspiCamSrv/photoseries.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bae52ecf4bac4ab4eab79d69421c169aa5e57d978e312e8ce43b21087d4d7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 11): raspiCamSrv/trigger.py:73-83 | raspiCamSrv/trigger.py:215-225 | raspiCamSrv/trigger.py:265-275 | raspiCamSrv/trigger.py:493-503 | raspiCamSrv/trigger.py:541-551 | raspiCamSrv/trigger.py:738-748 | raspiCamSrv/trigger.py:758-768 | raspiCamSrv/trigger.py:940-950 | raspiCamSrv/trigger.py:1083-1093 | raspiCamSrv/trigger.py:1263-1273 | raspiCamSrv/trigger.py:1463-1473 \u2014 all 11 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":"raspiCamSrv/trigger.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de5521e0d0e306d0e6fbfd126fb2d4c972e1c586e36ad7c0c8d747c14eb0e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): raspiCamSrv/home.py:264-274 | raspiCamSrv/home.py:401-411 | raspiCamSrv/home.py:455-465 | raspiCamSrv/home.py:500-510 | raspiCamSrv/home.py:539-549 | raspiCamSrv/home.py:584-594 | raspiCamSrv/home.py:632-642 | raspiCamSrv/home.py:671-681 \u2014 all 8 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":"raspiCamSrv/home.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"48aec72b1c8d6446cb07c6b2b9014a985b042b0a76eb6cc725de38d85b7bfb34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): raspiCamSrv/home.py:756-766 | raspiCamSrv/home.py:821-831 | raspiCamSrv/home.py:889-899 \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":"raspiCamSrv/home.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe7e7fe829b5aa3a30b08f2f8f976bed1040b4d5ab9c21696d028c3d2e2d311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): raspiCamSrv/images.py:238-248 | raspiCamSrv/images.py:259-269 | raspiCamSrv/images.py:324-334 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/images.py:336\u0060 calls \u0060str\u0060 and \u0060raspiCamSrv/images.py:270\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":"raspiCamSrv/images.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"91473bfc05383158fabb64c294abc016368af3a1356026bef73a7927d4616253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/api.py:88-98 | raspiCamSrv/api.py:173-183 \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":"raspiCamSrv/api.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefae7705979a56df72b3264dd0de1a8f8949ba03fd9a883fef3b6268e04ba48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camCfg.py:832-842 | raspiCamSrv/camCfg.py:849-859 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2426e5adf29776f1f16404b383197b963d2b6d9229e77e348d2109e9d6a75f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camCfg.py:8075-8085 | raspiCamSrv/camCfg.py:8168-8178 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":8075}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bde19ff68ca108d7d35ae3f59294b4851aa8a7fe675d629fc0633d7ebeb9b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camera_pi.py:4825-4835 | raspiCamSrv/camera_pi.py:4929-4939 \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 \u0060raspiCamSrv/camera_pi.py:4825\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":4825}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27e2596f7690633d3ce353e7636ee61c25bf429ae5476cee3820ee3f64bd3a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): raspiCamSrv/camera_pi.py:5483-5493 | raspiCamSrv/camera_pi.py:6042-6050 \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 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad90a180cd26cdb3f31388febc9d11e159b33843ecf0b3747b090475219876e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): raspiCamSrv/camera_pi.py:6306-6315 | raspiCamSrv/camera_pi.py:6431-6441 \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 \u0060raspiCamSrv/camera_pi.py:6306\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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6306}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ff491afdad247d4a1181422e91aa54241c0dd34679785bacc29c7e772efd07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/home.py:140-150 | raspiCamSrv/home.py:224-234 \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":"raspiCamSrv/home.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"92affd13a9d1f1a3acf3a1555c7350b3b95c82977c335dfd5906613007a09536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/images.py:204-214 | raspiCamSrv/images.py:221-231 \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":"raspiCamSrv/images.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb67cd88b36d931609117b3484e4750040036259562328d82245ed287164dfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/triggerHandler.py:921-931 | raspiCamSrv/triggerHandler.py:955-965 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"110a53cc67695b13db4110460b0c8557ef051556e11190b65a46d68d72651d9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1335-1345 | raspiCamSrv/triggerHandler.py:1457-1467 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ed5de9f2f9bc4e2534e552afef0bfaa96d0aa5547d87def4601a0c2e3c350d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1331-1341 | raspiCamSrv/triggerHandler.py:1359-1369 \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 \u0060raspiCamSrv/triggerHandler.py:1331\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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe97e89c6b8906668b919b621f8298c241f75ee7eab951001d04eff660e03c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/webcam.py:1282-1292 | raspiCamSrv/webcam.py:1302-1312 \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":"raspiCamSrv/webcam.py"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa682955425480df24f0f9b56c316e529a8cb0380ccf8cbd563563bedca9ab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 29): raspiCamSrv/webcam.py:93-102 | raspiCamSrv/webcam.py:121-130 | raspiCamSrv/webcam.py:149-158 | raspiCamSrv/webcam.py:240-249 | raspiCamSrv/webcam.py:340-349 | raspiCamSrv/webcam.py:422-431 | raspiCamSrv/webcam.py:519-528 | raspiCamSrv/webcam.py:566-575 | raspiCamSrv/webcam.py:612-621 | raspiCamSrv/webcam.py:668-677 | raspiCamSrv/webcam.py:702-711 | raspiCamSrv/webcam.py:741-750 | raspiCamSrv/webcam.py:783-792 | raspiCamSrv/webcam.py:832-841 | raspiCamSrv/webcam.py:865-874 | raspiCamSrv/webcam.py:913-922 | raspiCamSrv/webcam.py:972-981 | raspiCamSrv/webcam.py:1040-1049 | raspiCamSrv/webcam.py:1088-1097 | raspiCamSrv/webcam.py:1126-1135 | raspiCamSrv/webcam.py:1201-1210 | raspiCamSrv/webcam.py:1236-1245 | raspiCamSrv/webcam.py:1559-1568 | raspiCamSrv/webcam.py:1662-1671 | raspiCamSrv/webcam.py:1690-1699 | raspiCamSrv/webcam.py:1727-1736 | raspiCamSrv/webcam.py:1895-1904 | raspiCamSrv/webcam.py:1933-1942 | raspiCamSrv/webcam.py:1972-1981 \u2014 all 29 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/webcam.py:91\u0060 calls \u0060getStereoCameras\u0060, \u0060doInitCalibration\u0060 and \u0060raspiCamSrv/webcam.py:1558\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":"raspiCamSrv/webcam.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5def826ac43b4cbd68a95abd384bb5163d336abdc93ec2f4122fb327923edbbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 12): raspiCamSrv/config.py:881-890 | raspiCamSrv/config.py:1068-1077 | raspiCamSrv/config.py:1126-1135 | raspiCamSrv/config.py:1203-1212 | raspiCamSrv/config.py:1370-1379 | raspiCamSrv/config.py:1427-1436 | raspiCamSrv/config.py:1501-1510 | raspiCamSrv/config.py:1599-1608 | raspiCamSrv/config.py:1656-1665 | raspiCamSrv/config.py:1730-1739 | raspiCamSrv/config.py:1890-1899 | raspiCamSrv/config.py:1947-1956 \u2014 all 12 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":"raspiCamSrv/config.py"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3cb181b0d8b808822eaf1798b3ff78eb457d3551ace233323d7e0896cc7ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): raspiCamSrv/trigger.py:598-607 | raspiCamSrv/trigger.py:677-686 | raspiCamSrv/trigger.py:807-816 | raspiCamSrv/trigger.py:869-878 | raspiCamSrv/trigger.py:890-899 | raspiCamSrv/trigger.py:915-924 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/trigger.py:609\u0060 calls \u0060evStartMidnight\u0060 and \u0060raspiCamSrv/trigger.py:688\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":"raspiCamSrv/trigger.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee40880ff704737ab68e578efa40819e2cfc966a785ab05a3475811138a49784"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): raspiCamSrv/camCfg.py:8076-8085 | raspiCamSrv/camCfg.py:8129-8138 | raspiCamSrv/camCfg.py:8169-8178 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":8076}}}],"partialFingerprints":{"codehealthFindingId/v1":"651d0dc9e0673ed18ad855e2c0d88aa11452423ea48fb475838e52cff9d890d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): raspiCamSrv/home.py:1147-1156 | raspiCamSrv/home.py:1184-1193 | raspiCamSrv/home.py:1219-1228 \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":"raspiCamSrv/home.py"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f646761925555ce0fb8a69720b52e1aa9839248118ebcc8547bee5bd1a7775b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): raspiCamSrv/images.py:108-117 | raspiCamSrv/images.py:165-174 | raspiCamSrv/images.py:190-199 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/images.py:107\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/images.py:164\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":"raspiCamSrv/images.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb97db5542c894151dae8869a5a7c707c9716261fd6c04d754854a16ad5bad39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/api.py:112-121 | raspiCamSrv/api.py:198-207 \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":"raspiCamSrv/api.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c774b81e519de99902dc59c65d7aae579d424dab4235b68438e3c018443808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/auth.py:29-38 | raspiCamSrv/auth.py:103-112 \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":"raspiCamSrv/auth.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"978591338ff13bbe642cd9c55519f57b5fd766554a363eb585fd0f59fdb97821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camCfg.py:1454-1463 | raspiCamSrv/camCfg.py:2811-2820 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafe96a38cf79d1edad087694f302dcae5d909c9208ce98717321015fd506883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camCfg.py:7643-7652 | raspiCamSrv/camCfg.py:7888-7897 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/camCfg.py:7639\u0060 calls \u0060TriggerConfig\u0060, \u0060ServerConfig\u0060 and \u0060raspiCamSrv/camCfg.py:7885\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7643}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e2502fff0a4c24906fe1b8ba660fcafe34ccb37305aafde2739763a1c68b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): raspiCamSrv/camera_pi.py:5440-5447 | raspiCamSrv/camera_pi.py:5990-5999 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5440}}}],"partialFingerprints":{"codehealthFindingId/v1":"209197ab8824e321c6dd97e770ca367425a4271c8daf0b4e37e6b820abb39fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/images.py:349-358 | raspiCamSrv/images.py:362-371 \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":"raspiCamSrv/images.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec120e270520cda1ff5b53684cf72893399184500545bfd911b58d0195317ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/trigger.py:568-577 | raspiCamSrv/trigger.py:584-593 \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 \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":"raspiCamSrv/trigger.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1614c1a6e3d48b6480a25b53429fa4ec537977ec4d5b52dbe829c35b3132f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/trigger.py:617-626 | raspiCamSrv/trigger.py:633-642 \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 \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":"raspiCamSrv/trigger.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e16ecc831a5063b9cb7517ae420fc4ce4a4a73fdf1026de254d2de2c991e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): raspiCamSrv/trigger.py:566-574 | raspiCamSrv/trigger.py:582-590 | raspiCamSrv/trigger.py:615-623 | raspiCamSrv/trigger.py:631-639 | raspiCamSrv/trigger.py:647-655 | raspiCamSrv/trigger.py:662-670 | raspiCamSrv/trigger.py:693-701 | raspiCamSrv/trigger.py:708-716 \u2014 all 8 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/trigger.py:576\u0060 calls \u0060evStartMidnight\u0060 and \u0060raspiCamSrv/trigger.py:657\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":"raspiCamSrv/trigger.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"52effefb82a822470409affed9bcc5ecfc195231ebfd63ebbcc4e57fba19ca94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): raspiCamSrv/webcam.py:41-49 | raspiCamSrv/webcam.py:1554-1562 | raspiCamSrv/webcam.py:1657-1665 | raspiCamSrv/webcam.py:1685-1693 | raspiCamSrv/webcam.py:1722-1730 | raspiCamSrv/webcam.py:1890-1898 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/webcam.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7e7fcfae9cb5f8812609bbf95f3e1e699f9a316b2c26d38d40ad4354bb6443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): raspiCamSrv/home.py:1169-1177 | raspiCamSrv/home.py:1204-1212 | raspiCamSrv/webcam.py:541-550 | raspiCamSrv/webcam.py:587-596 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060raspiCamSrv/webcam.py:541\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 \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":"raspiCamSrv/home.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b3af8b3525960912d01aade0d53580e4ffa8a7d07d589f115a1f1c534e75b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): raspiCamSrv/photoseries.py:898-906 | raspiCamSrv/photoseries.py:909-917 | raspiCamSrv/photoseries.py:920-928 | raspiCamSrv/photoseries.py:931-939 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/photoseries.py"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3bbe753b0c024b0f2ae269c92ba40eb7cc352cd378e6dfa7bc5a2bfba2ab81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): raspiCamSrv/camera_pi.py:7699-7707 | raspiCamSrv/camera_pi.py:7866-7874 | raspiCamSrv/camera_pi.py:7966-7974 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7699}}}],"partialFingerprints":{"codehealthFindingId/v1":"a186af53b17a73d5da28980fc6b34da3e63ab690cca1803013a88e00c48ac3eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): raspiCamSrv/webcam.py:544-552 | raspiCamSrv/webcam.py:590-598 | raspiCamSrv/webcam.py:646-654 \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. 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":"raspiCamSrv/webcam.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9d7c6a4877ebebbf55434ea3bdab48ebcb4c8c349efa70e3051707829dcc87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): raspiCamSrv/webcam.py:719-727 | raspiCamSrv/webcam.py:761-769 | raspiCamSrv/webcam.py:810-818 \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. 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":"raspiCamSrv/webcam.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eedccd932e0320ff11015362a09353a4bacf9ccd64e8681355cda2ea8e0ff7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/api.py:473-481 | raspiCamSrv/api.py:536-544 \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":"raspiCamSrv/api.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa63cfc6c1859a81bb64eca8ee4ba0ad06ad5c927034f980fa252bd3ab6b169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/camCfg.py:6055-6063 | raspiCamSrv/camCfg.py:6080-6088 \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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6055}}}],"partialFingerprints":{"codehealthFindingId/v1":"b695076cd0cebb3a75d7f0308266598f32ba96e844d55ecea578dc594a812835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/config.py:2234-2242 | raspiCamSrv/config.py:2320-2328 \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":"raspiCamSrv/config.py"},"region":{"startLine":2234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e153d340f187c0a8331dee4266e6704c66b9a56adc6a67d88c0c16d61c382b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/gpioDevices.py:122-130 | raspiCamSrv/gpioDevices.py:202-210 \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":"raspiCamSrv/gpioDevices.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ee54ff686bf49548efe57a85977c4470caac1f8037bbdda0ad8e067707c94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:499-507 | raspiCamSrv/motionAlgoIB.py:1005-1013 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/motionAlgoIB.py:510\u0060 calls \u0060cvtColor\u0060 and \u0060raspiCamSrv/motionAlgoIB.py:1016\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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"111f4adfc16633b4d9a393c25c8dc42dd0908061007dd792b8b00eb6a655d3c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:517-525 | raspiCamSrv/motionAlgoIB.py:1021-1029 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"a873d64c275eada9cef4832fbc652bbfa7b00f807b89bf8635253f4f12205d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/motionDetector.py:115-123 | raspiCamSrv/motionDetector.py:148-156 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/motionDetector.py:145\u0060 calls \u0060debug\u0060, \u0060get_ident\u0060 and \u0060raspiCamSrv/motionDetector.py:114\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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d0a31bc245b2f1ed957f21ebb9e15a5ac5764043aa82f180714d6cf5cc7413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/webcam.py:1392-1400 | raspiCamSrv/webcam.py:1408-1416 \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":"raspiCamSrv/webcam.py"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3e3985e11db84ce6bfc7f1578b0ca42038e356b60ff24f707e19486b61d33c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 23): raspiCamSrv/config.py:205-212 | raspiCamSrv/config.py:357-364 | raspiCamSrv/config.py:440-447 | raspiCamSrv/config.py:561-568 | raspiCamSrv/config.py:650-657 | raspiCamSrv/config.py:748-755 | raspiCamSrv/config.py:802-809 | raspiCamSrv/config.py:880-887 | raspiCamSrv/config.py:1067-1074 | raspiCamSrv/config.py:1125-1132 | raspiCamSrv/config.py:1202-1209 | raspiCamSrv/config.py:1369-1376 | raspiCamSrv/config.py:1426-1433 | raspiCamSrv/config.py:1500-1507 | raspiCamSrv/config.py:1598-1605 | raspiCamSrv/config.py:1655-1662 | raspiCamSrv/config.py:1729-1736 | raspiCamSrv/config.py:1889-1896 | raspiCamSrv/config.py:1946-1953 | raspiCamSrv/config.py:2020-2027 | raspiCamSrv/config.py:2118-2125 | raspiCamSrv/config.py:2215-2222 | raspiCamSrv/config.py:2299-2306 \u2014 all 23 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":"raspiCamSrv/config.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a501ec32feca404070c3c3aba3438db03555c81ac51cb6e55ba3bcfbf16877fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): raspiCamSrv/motionAlgoIB.py:586-593 | raspiCamSrv/motionAlgoIB.py:801-808 | raspiCamSrv/motionAlgoIB.py:1109-1116 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"1162505e40218e55fce3efeaf523aa1ed46abf690faff9539e42c5a2e116ba05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): raspiCamSrv/api.py:188-195 | raspiCamSrv/api.py:212-219 \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":"raspiCamSrv/api.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3e5baf596ba41c493798c10f7de04521d16d2b416fdcdd529e5240d62423fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:949-956 | raspiCamSrv/motionAlgoIB.py:967-974 \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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"02be42e953dc2671e2e2adef4dc919707c0427955e01cb0d113a6fec7b560328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): raspiCamSrv/camCfg.py:8301-8307 | raspiCamSrv/camCfg.py:8341-8347 | raspiCamSrv/camCfg.py:8353-8359 | raspiCamSrv/camCfg.py:8365-8371 | raspiCamSrv/camCfg.py:8377-8383 \u2014 all 5 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060raspiCamSrv/camCfg.py:8299\u0060 calls \u0060debug\u0060 and \u0060raspiCamSrv/camCfg.py:8340\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":8301}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36c035ee6c3897a673e021b1c23cf60a79f645816fd4cbb10b1ae0d466c713b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): raspiCamSrv/camera_pi.py:3013-3019 | raspiCamSrv/camera_pi.py:3515-3521 | raspiCamSrv/camera_pi.py:3537-3543 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3013}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dbf6cc47a3cbc69e60353faee9b4da0942a33f3802785b01a34e76149e8669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/api.py:103-109 | raspiCamSrv/api.py:126-132 \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":"raspiCamSrv/api.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"44693754dc03f22356b70cb15bcc89699cfd4bdf360cf45af124a156498344b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/camera_pi.py:7291-7297 | raspiCamSrv/camera_pi.py:7314-7320 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7291}}}],"partialFingerprints":{"codehealthFindingId/v1":"92dc4faf499805c6a552fa0da2e3e51cdfbd5bcf50a451dccc40ae0995cc5fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/camera_pi.py:7646-7652 | raspiCamSrv/camera_pi.py:7972-7978 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7646}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dd2785c19549612f153f36d1b37f328a31fe46cefdbddd1518bb69b604971b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/home.py:513-519 | raspiCamSrv/home.py:684-690 \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":"raspiCamSrv/home.py"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6fd52f8baca4541f82777e57f914790a9152c7ec04c46780e61e72839b3a72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/triggerHandler.py:141-147 | raspiCamSrv/triggerHandler.py:151-157 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f90131830b0851f9a3a105b27930d3bf4499563ad4c7dae3c3bc852e8830c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/triggerHandler.py:620-626 | raspiCamSrv/triggerHandler.py:715-721 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"8563645c928debd48bd62f1316c592589ccbb8573a6210b02e31b75602ec2ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): raspiCamSrv/home.py:298-303 | raspiCamSrv/home.py:358-363 | raspiCamSrv/home.py:444-449 | raspiCamSrv/home.py:489-494 | raspiCamSrv/home.py:528-533 | raspiCamSrv/home.py:573-578 | raspiCamSrv/home.py:621-626 | raspiCamSrv/home.py:660-665 | raspiCamSrv/home.py:699-704 \u2014 all 9 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 \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":"raspiCamSrv/home.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee799be0ec40e1282a0c6a8930134670a8285d35200791843cea2a4c18b4a1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): raspiCamSrv/api.py:166-171 | raspiCamSrv/api.py:190-195 | raspiCamSrv/api.py:214-219 \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":"raspiCamSrv/api.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4f31d29e1fe91e8335c6935f43263085cd4f380e8dad40f1c9acbe5f8c9f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): raspiCamSrv/home.py:1227-1232 | raspiCamSrv/webcam.py:621-626 | raspiCamSrv/webcam.py:981-986 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4241bac94604d2f8cb4df415499d610747ed02b4ccea848828f6da07f55974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): raspiCamSrv/motionAlgoIB.py:502-507 | raspiCamSrv/motionAlgoIB.py:702-707 | raspiCamSrv/motionAlgoIB.py:1008-1013 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/motionAlgoIB.py:510\u0060 calls \u0060cvtColor\u0060 and \u0060raspiCamSrv/motionAlgoIB.py:710\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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"93053202dd66d056732fd703cd1dbafd465a8b37868b2cd99551aa4807f9eda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): raspiCamSrv/camCfg.py:7050-7055 | raspiCamSrv/camCfg.py:7062-7067 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/camCfg.py:7069\u0060 calls \u0060strip\u0060 and \u0060raspiCamSrv/camCfg.py:7057\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7050}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5eb62befc55fcb3541523701e5fc390ac82d49562bde3a4896b8b5f82254871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): raspiCamSrv/home.py:329-334 | raspiCamSrv/home.py:1623-1628 \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":"raspiCamSrv/home.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"363ee5a7c73f987a8744e04ce20f156c3e13b1ddd3e7b5a2ff7fd25bada05775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): raspiCamSrv/photoseriesCfg.py:1208-1213 | raspiCamSrv/photoseriesCfg.py:1223-1228 \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 \u0060raspiCamSrv/photoseriesCfg.py:1208\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":"raspiCamSrv/photoseriesCfg.py"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f81705ef83b4cf5a5815473cf0e77dd16789dcf78447b5dc015c1bf420dfe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): raspiCamSrv/triggerHandler.py:565-570 | raspiCamSrv/triggerHandler.py:622-627 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060raspiCamSrv/triggerHandler.py:629\u0060 calls \u0060now\u0060 and \u0060raspiCamSrv/triggerHandler.py:572\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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8df38c58d5c04f1a53bd043d709cdedb970a96dfa8c67bf284b314ba2820ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): raspiCamSrv/camera_pi.py:3416-3419 | raspiCamSrv/webcam.py:161-166 | raspiCamSrv/webcam.py:207-212 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":3416}}}],"partialFingerprints":{"codehealthFindingId/v1":"493428a609c9fc18e6cc72421c64c5b02c841b8c8357a1aefd28a21214241a3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): raspiCamSrv/settings.py:1211-1215 | raspiCamSrv/settings.py:1315-1319 | raspiCamSrv/settings.py:1427-1431 \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. 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":"raspiCamSrv/settings.py"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb60fb35363d997b7d3ecc6665840d6040c539b6ecbca538c7bf3495fbf426e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): raspiCamSrv/triggerHandler.py:1647-1651 | raspiCamSrv/triggerHandler.py:1685-1689 | raspiCamSrv/triggerHandler.py:1723-1727 \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":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"8edb463420b4ec8ae62eadb059669531b334682069888d7ec440ca1a6536a51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): raspiCamSrv/camera_pi.py:7397-7401 | raspiCamSrv/camera_pi.py:7714-7718 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afc3443668c6af39d2988a5822c69b09f1718d645758ea3193bd3df89faf984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): raspiCamSrv/stereoCam.py:450-454 | raspiCamSrv/stereoCam.py:475-479 \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":"raspiCamSrv/stereoCam.py"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4c0dc46fdac04e8279b78e4d485f7432dc3582e3bca15fcbfecf71cab2b19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): raspiCamSrv/camera_pi.py:1441-1453 | raspiCamSrv/motionDetector.py:28-40 | raspiCamSrv/stereoCam.py:24-36 \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 all 3 call sites, so a change lands once. 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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1441}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6cab64d640a7191ad1120b7d65d457fd20f75efc277d85295ef51fbd8873a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): raspiCamSrv/home.py:1362-1372 | raspiCamSrv/images.py:416-426 | raspiCamSrv/photoseries.py:1202-1212 | raspiCamSrv/trigger.py:1520-1530 \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 all 4 call sites, so a change lands once. 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":"raspiCamSrv/home.py"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b722c63d63f651843839f008c7864ddfe8163367586b2b5a2215ca17eec07a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:335-341 | raspiCamSrv/stereoCam.py:116-123 \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. 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":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e11a4572f4cf46ca0786f2ea06458e74ff09dd247cccde9573a2437b493d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): raspiCamSrv/camCfg.py:745-749 | raspiCamSrv/camCfg.py:776-780 | raspiCamSrv/camCfg.py:2527-2531 \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. 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d551737f19d8e364fbce84b83d62da7cb6ef59569db73c1a3b0b027d391da2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): raspiCamSrv/camera_pi.py:7452-7456 | raspiCamSrv/camera_pi.py:7778-7782 \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":"raspiCamSrv/camera_pi.py"},"region":{"startLine":7452}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb62d7e5b474e2a4f7393364e60f7e120ea7223444be94497742566de01a3429"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): raspiCamSrv/settings.py:1198-1202 | raspiCamSrv/settings.py:1302-1306 | raspiCamSrv/settings.py:1406-1410 \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":"raspiCamSrv/settings.py"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c6dc0192969a0a981f956367f7faa74b040c2cfaf648a765e82fdecf809cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): raspiCamSrv/settings.py:1204-1209 | raspiCamSrv/settings.py:1308-1313 | raspiCamSrv/settings.py:1419-1424 \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":"raspiCamSrv/settings.py"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90d72530a4506d71ef8eb9e7d7cbd6b7827c7665fb01952fc03f87637fb8a09"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ServerConfig (LCOM4 13): ServerConfig\u0027s methods fall into 13 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 13 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":"raspiCamSrv/camCfg.py"},"region":{"startLine":4412}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa764c00a5fad8f0c9613b420f712cf9acce2da4ad093caee03e6899cbde6d6f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TriggerConfig (LCOM4 9): TriggerConfig\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43cf8b62d4075657b1bfd2a4b6c2a6a4f02e14fa05533fc4bbbe95ff3e264a4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StereoConfig (LCOM4 5): StereoConfig\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":3797}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c8b8d7219ffa36d82dd50a60b28c2087d560b1b5d6c40aab440b4ea8d919c6"}},{"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 (pytest or unittest), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: raspiCamSrv/motionDetector.py: raspiCamSrv/motionDetector.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in MotionDetector._motionThread at line 786. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-12..2026-07-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-12 22:38:55 \u002B02:00\u0027 --until=\u00272026-07-11 22:38:55 \u002B02:00\u0027 --full-history --no-merges -- raspiCamSrv/motionDetector.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/motionDetector.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e9c9e33e7ecc6c674697646e80f56eb3b6ed028d2ddfbfffd242e3e8d9c2dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: raspiCamSrv/__init__.py: raspiCamSrv/__init__.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in raspiCamSrv.create_app at line 15. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-12..2026-07-11, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-12 22:38:55 \u002B02:00\u0027 --until=\u00272026-07-11 22:38:55 \u002B02:00\u0027 --full-history --no-merges -- raspiCamSrv/__init__.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/__init__.py"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6dfa37468fba838a940fd7d0084fd709e56b169563f6d195d4c58d3c9dea404"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: int-\u003Efloat \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae47a94be6dc1ea3441011eb288e50d1802f87e1124006081d6fe7d092b6262"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Investigate why this test no longer works \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aef9d3ae7473c0e1da94d7c5a679e67b857c819722ba1226c0e1fac407ed45b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Clarify under which conditions this exception is raised \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5566dfdfa30ca00b9c39d6267ce1132243ffc82cb103df19fd49f6c0b76364ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Clarify under which conditions this exception is raised \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"46291c43d803e86bcacf777f162bd74d464299a0225c46c81c7a6db2960c119f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Check sleep time. This might lead to errors when stopping video within that time \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd97cc085ca02e74f13b7725f996983637bfdcfa59095e87081cba20b505483"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: ceil ? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab9608cb4b4a120090a6c226dfab98cc8cc68770013dc7d97aa52ffeeeaf762"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 57 % of calls cross a namespace and only 45 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D29","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":"46fa37b4cc40c103f729f66d52a65378ab79532066801cc5c282185eff3a3ce9"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"cf29491e4cde89b9be34ba65423c5fadbefaf96c7604ae659f198d9f5492d4ef"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"78d5b6f68d55d9d7a69a41902d6b39404befdae0f6fd84fa426bfa033796b48c"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"f96c6e6c7ce70f4479768f6c31e704b7f2ae900d2c809d1442bc7ddffea4e288"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"fddd25e6f9f3e1c0300a0dbdf5804c0c3f26a4c9ed15f1a09ccd7e2f64321566"},"taxa":[{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"d949e84b0d06c9af851d7861535a93ee29a22be23a948a80379a3f5ff782a9b4"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"73b6e94b0081e00416117b8a72b76d6c5fc08d75ff2c75866251bbbe4b3f6d32"},"taxa":[{"id":"CWE-22","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"eb431162230b9040ae9a72686e05589719d17e4b880f3f43fa9b7ebad7afd474"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"aba3837eb812c6cca1afd0f5f169c110c32bb9eb8c01bb2e20afc8eea9525532"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"7c8a858ec40f5cebbc2d6f1f1d0343510e22cfac0566ae13dfa53732c2d71f6a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"5acf7ab5f939006ac50c16f1ff8ec06b3273880117685b40485ed8ba7af78f90"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"daec8ca5d726fde3846e2fdf984997a78fdb084108e24ba1cc24517948e8b379"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"1c5847d7b54f533d62b5f6c360a56e0e90041d356ba30b144f28fdd579a17ec3"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"9931a9a8f5965705fb3eec6de69b9af659d0129e486c505d738a5f8f464745b2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"8025930d93a7ce14f506f65366b16a177631acf9a3a63c889e0b68d3d54e8621"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"247b045d65aa8afee552492db4a200a2740683d24e2a9f23a30c2f6ce52cb878"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"63b58dc43aae4b5b4e7d8c92accd211f072c60abaf751d3660584119db734de4"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"37b0a4a9505b4d86f4d15dc25e21b794eac4a02f96a38b49275271b4eb94a4a7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"69ebe6189298f8e4361ed2d19ba9f9d9653f27e8058321b416035de7fcc6d8d9"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"30ebcc5c47cbdf02e373244f1c06f32bc089b0af8146739ac8f0e180e0935984"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"90b37dec34366f5fa4a31403790f6863517cafae0a1d46089e4c71768a451615"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"90cf01ee61173bb81429bcb29bd50f17764d3a4b017096213e8fef227ab2b31c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"4cb99736207d656b7a83d6f6ca459f8dc1e4a1c545c3039626e1f215f9bab6ab"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"ac3a8035cc8c1be86b04d0865cc6161c59dcadf20efda54b2e4c55b8d5d6d5d6"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"a787c50bd16ad0683b12ff7e23101c3f7d5727d1cb9685a03fdaafc80def4e36"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"9ab1eb9522e20b7bc4ec7d806c55c5b1ace3c0d11b48e2a96a5221a7fe80a143"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"53dca292bd92bfff28075a1b1b1bb58b675d960b3d66e60dadfd358b0313a4cc"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"f2ff62a9b8277499b619f481a00ba6e310356cbcc8f3332248e067c1113e4de2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"fd2763e5a460bd7d4de8d457df7f37ddefe2a452d618c14e8c32f073baf0b8d0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"8ef803246bb8af4e9ee99d392816dc1e180002dc7718441a69a4b2a43aebfe00"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"f2a64d364b1544f24d2f9edc03d8d39a0ba83ab3475eb7b04f3c2332249a68bb"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"c64ae474d382137082427b44b1483d30e3d3a51f60631570634b9b8cf7f05ad7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"27a1361b6e76b3ea5ff1e5052e1e9916d65e4cf172977f78fc530078197761e0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"466e619d02fadbb26048eabbe4f24fdb888551d5a8b9aa2e7a9a1d46adbc699b"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"c25db63bea587c41ca4dc1e7bcb2154ee20d8bc0defa110c5837d595914d92a7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"9442de1e9e2578d6805cb1d1936d42ea6ae0f12aacb70be8b9840dba91e9b22f"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"638d7254580d7cf64ab29edfc0f8b7d012d8aeff45e81ff1bac7c2a6c9ed36a2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"a096f8fae4b5bed97ff4a9902e0a0901df807e80e430864d8bd652838097d6f6"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"6b1412158a98a0a3511c7d24275df3cf773686c0064cd43bc5e7616c6591953e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"771e23e8ca76457f560cb429116f5c7959efb8f4473dac48c7b9001725e5a498"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"cd62aab72dcb983c83cb14903b92e771ca7ec41fb5e661083c0911ab72a84dca"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"a07ac00ed12b9bb4f9e3849aa8061dcaa3644b17696508d0975fcf8cacb378af"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"70d62a0e64fdcfaa5b4e65d19b5e0e5862b72a31a568e150543dfcf1c57430a2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"1adacdec8b4254d878003dabf9295a26b91819caa4215729d25ebdfdf83d807e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"5c147c822310a01c277649451abe56f1d76c8cbdc64209d1fba93beada905a11"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"f0375902b67e0dec90e2c16f25b854b1edea00c863887f35f02caca1577326d7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"f75ac4939cd9d30af7d845d198ea8352550ac8baf4551e60177a83b6daec6729"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"af92959ac5c64578a93d4628b041e37a8fa4a20f4c6935539c0f78f5334155bc"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"ad9c758cadc03e67b2eabe4a6fba169e78e70df5aa44c3d28ecfe58fcc04c910"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"18870f6b3644c95e3356d5fe17bba198db7421c8fe7df5bc67a641ca53de9cef"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"e9f0f953aa9506c57fb739d3b20b9d73390441d540bf76e6a8bbabcf2bf51d19"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"20caf218f529413d53998db7d21294aa32a163dbbe5b6ee466f7a1988a6c2357"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"20f6081ee6589799e6e3395bf8219fbc6ffd89e5ad804455a682182fb4fda196"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"807fe09bd4a8408aff35bcf2773d260909492f7e29ebf97f7d14d01cc012b978"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"7ada233ed47fee7bda33531eac9ad8cd865e22ef5c02eb67a7a4292291fc60ca"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"1944d0a439ca7773a44bd1a64a1b8e7a9a2161123daf71f59c7641684ed35980"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"d9586e2ca53a1b888367217dc960ac344dfb95638ecffab48900c2829f463841"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"b03c6158e4c7297d6a91efb267ed5dde79f6f80e5d97c62f3dcfcbb5faa6c05d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"96dea7567da3d5b85926fd0039e8805c76137392b9435dfa4e8419ac6b271f1d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"1ab82ab4f9e72e970ff84076a0925fc7089bf25e202a9ec7e9ec3291b711c86e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","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":"950d2e2713c109bf5b536ad13044448d53d26b7839224f6c749d362fe111bd8a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"1c25b9d024e67103eae90050f40a800e99680795b1f8b0927b828582eae3f822"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"d85b5bf243f272d4df01fbb7353c475b3768bcad48f8cdf979a9b48180561e51"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","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":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","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":"62ba3f391b97d680ac34e630794a6a7fc0f3b16bd44bab9e323085ff4fa2c944"}},{"ruleId":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a203b01a99ef918ced476f310b26ac48880ac069ff7dc96f53af1bb98f2aac"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc40f3568fd646d999d4ba22d21011997fa7cb0a1b2b050021da5583304d572"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. This player\u0027s source is set at runtime, so there is no caption file to author here: give the player a way to carry captions \u2014 accept a track/captions URL alongside the media and render a \u003Ctrack kind=\u0022captions\u0022\u003E when one is supplied \u2014 and capture that asset wherever the media enters the product (upload, import or generation)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/media_viewer.html"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5cb331157054901b00d8e0c1318d9611280f5f1a60719f68f2a171f4bf6a847"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cimg\u003E: This \u003Cimg\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea9b6dedcea6269f102a48ce846af4243958e7094ad9bd290e71e02872c3dde"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca753d5fb6aa2c888935556e39ed8d34b6c7d413e2f987f492d2b42108d545bc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb3c37deeaa1c1f6499a8c7c7a37d2fa6c43dc3128eed146e3507ec42d24163"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5499e8ef2d3c091c73a32206bc46c9f723733dc2a2f4da6d037ba1a1dc0143c8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d779408b6b633657a114e073f87091100317a7e93f5a06237df1c2187b375b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"276cd4ede44ab33a37946ded634a3e881215ccddad0afe96de7b445ff44ceb9b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/info/info.html"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5c4ed3cbd82c64eca5b4b60dfff9c11c5dfe1a80024ef0cd29e8916f4a220a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/base.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"2599b6ec9d371aaac9ba0864a6a0ee840de82787e912e2d0836eeafe3e2ee5f9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/config/main.html"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1123aec4f7c3a96c03890fba11cc987447b0043c0b8d3ee4c59c526457388c47"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3877544d08696d8a05673b703cb1f01347fa822eabdd932320041adddc95f45"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e800373d508b8f5b583bda876352f999180ac12f393a02c8ab3e0ec735799d0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac7bb47c63c1c556602bed335c0bdb9356bbf102fb9caa8b750dbeed36717d6"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/liveDirectPanel.html"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0300e184980037f3ab9bee3f35bb5383b48ca7cdba52434c6ee698a57238b88"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/liveDirectPanel.html"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4ac2721f1505c1c8afb57ad07f2bbdecf75f8b346955af9a07b5fc4b8f97bf"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3da1fdbe7935e7660eef2734ac465e3e9a944c4d4fbc2c5a0c9bc3d11fe8aa7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebf9fb057e01c3dfe486e29be373f80668780a159e2706c3a0bf7a998b7c695"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/info/info.html"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be8934d84e4d6d7693be3d62e4050fa8f3a8ef14e261bafae6da987b1b71c56"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/info/info.html"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8918662b081f046161bf607683cc38a6132fee573d6bada2dbb6184a1dcc4a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/info/info.html"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd434ad8831588a3a9e6562a12905644e1da433e54678d3b37f435861e4023a7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/media_viewer.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"43649490ede7de872858a4d42f81ce4a626092c3943ee11b983d7249d0d423b8"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/base.html"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a513e63eb5f309f6c01e25a8abdcedc99a8fc4845ec325ba754285bb6557a6c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/config/main.html"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2f4cb757b344d1ef2dfe9da30a4e3d6d88199bf74b0bdd703e37d02aaab0a3"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/console/console.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1a79d2e2e97b6d3cc4c797b33ddb1c92977d10e6db6c711239c12d93956af7"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"31294a1fddbc28c6dd3a8e6d5195760b76ccb1e0cdee1f2ee079acaef5ccaa82"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"061e7c1af9e59ad63129f1cf99a462999dca479d432e254caeac3f791d7ab237"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/index.html"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdfeb5aac0cde5866e29bd4f921894b5960a4397d16e52717a61fb654a2e379"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/home/liveDirectPanel.html"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7926b47cecdacfbcd809d3d97cfc481d77da6ff3d4735210d4380e8ddaa35be"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6244aacdca2ff985c35ef6ea7e82f6157886ceb85e006b1e5191371cef50a490"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/images/main.html"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb52db53c7cddfda1aafe5953ab342cfecd81b38b585561308297154ab48369"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/info/info.html"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a61a2d3974e27b6a532696f6348b3a111f529d6fc43c2cd18eb04f20b385e0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/photoseries/main.html"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcded34be435066c6bd8e49588db36df7a8ac5e12713caa37461c4d51a182b0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/settings/main.html"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb62b16e03f101f49555fb863a66c2df4b3923b52f5ea58a33d500ea3102be8"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/trigger/trigger.html"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b99634b5f283f45ce7b0345f3888a0fbcb5428a6fead0a9f97c02ca8e11933d"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cimg\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/templates/webcam/webcam.html"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a708a4162baa127e497ce0ed261c3285296287fb98e02f482f623289e408054"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060.w3-blue, .w3-hover-blue:hover\u0060 sets color: #fff on background-color: #2196F3 \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dc404cc6f767b0d69205b37210a82c81beee2f5ae207e584f90ff3656ec5ac"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.8:1): \u0060.w3-green, .w3-hover-green:hover\u0060 sets color: #fff on background-color: #4CAF50 \u2014 2.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d6b289011e1deadb56147b5041a74ba0ecd27cb2895150ea231692068a3844"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.7:1): \u0060.w3-red, .w3-hover-red:hover\u0060 sets color: #fff on background-color: #f44336 \u2014 3.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"987dc619462675bb98ad554a7874385735bce5ffc1b8d340a72b81f5e3639e72"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.w3-modal-content\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd93c3637b10846817c297f89970f1244b418ce74c30f59d1ae281a93cab9ce9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.w3-bar .w3-bar-item\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca074937879fe9762f6c7899dea54ce76479c0b380a72bc5b519986005c7cf1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.w3-bar-block .w3-bar-item\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"065b667c0ec0e9d55d33aa5d37ade8e16fcdd94adaebb37d6a58f9bcfbcc0bcc"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-main\u0060 moves (\u0060transition: margin-left .4s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcef8e3ab40125ce440d4647594e701aec7d449bd2ea897b9c3f32a46738a3ed"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-spin\u0060 moves (\u0060animation: w3-spin 2s infinite linear\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b74ef501aa77f32b65fab5f96cab2063e99375dc2cbc4aadfac60ac67f0e888"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-animate-top\u0060 moves (\u0060animation: animatetop 0.4s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c3c2282af854907c574a7ebc17cd41897a9688fb27e25fdb1562c25d7277b6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-animate-left\u0060 moves (\u0060animation: animateleft 0.4s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"527c584cf3747bbeb6a13fecfff8a2a49d6bc479cddb597d7914069f4d5e12ed"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-animate-right\u0060 moves (\u0060animation: animateright 0.4s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1dfc534ef226c6d729fd54e49e188e8aeac58cf2c8374fb66af3812dde113ab"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-animate-bottom\u0060 moves (\u0060animation: animatebottom 0.4s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc22b8ead7f3b034398334b937b8d62b97738bda39269f2c7479477b0a6cb17"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-animate-zoom\u0060 moves (\u0060animation: animatezoom 0.6s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"8babfb696c5310731ac36214bc8e823741215a416c38e0981ca9f337dc0aa3cc"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.w3-animate-input\u0060 moves (\u0060transition: width 0.4s ease-in-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/static/w3.css"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"e570499290eb5762df45ea44ca09d4125ce9218ef2aafc12206e4dae7c138393"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no automated accessibility check runs over your pages. Add an accessibility checker (axe-core, pa11y or Lighthouse) over your HTML in CI and fail the build on new violations. What was searched, so you can tell an absence from a miss: the 15 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"C4","level":"note","message":{"text":"Partial data-retention evidence: A retention mechanism is present, but the data-lifecycle is not yet complete \u2014 missing: an expiry limit \u2014 a declared maximum age / TTL after which the data is no longer kept, a scheduled purge / cleanup job (a Celery beat task, APScheduler job or management command that deletes rows past their retention \u2014 Session.objects.filter(created__lt=cutoff).delete(), purge_expired\u2026 / delete_old\u2026)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6c843eccaff7ffcfe5241125b74768c2364055ab6678b12b10d47f44086afa4"}},{"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":"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 bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack \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":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":6019}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e63b069c788618d16c39311657b23d6c7ca0e672e1796189d7ebc683626fe08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dm \u003E= tc.operationStartMinute and dm \u003C= tc.operationEndMinute\u0060 appears character-identically in 2 files \u2014 raspiCamSrv/motionDetector.py, raspiCamSrv/triggerHandler.py. 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":"raspiCamSrv/motionDetector.py"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"729bfdf0eb0b411e94b97a4b3a34579d709c2e1a23afb1bc8ee27b33244bfd68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sr.isExposureSeries == False and sr.isFocusStackingSeries == False\u0060 appears character-identically in 2 files \u2014 raspiCamSrv/__init__.py, raspiCamSrv/photoseries.py. 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":"raspiCamSrv/__init__.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"1caaa35d5992234f2718582fbc2700c76a655f73bd7fca51d0410a74eb2436cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tc.triggeredByMotion or tc.triggeredByEvents\u0060 appears character-identically in 2 files \u2014 raspiCamSrv/api.py, raspiCamSrv/trigger.py. 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":"raspiCamSrv/api.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32ff31f366ce4af354e3d0e069a584f5ed40bb723c1becdf1bf243afc9fb8f2"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060castType\u0060 is public and takes \u0060tpl: object\u0060 from its caller, and it calls itself at line 1200 (\u0060castType\u0060) with a piece of \u0060tpl\u0060 \u2014 and nowhere in \u0060castType\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060castType\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/trigger.py"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2f0612e4378d605892301851487dd0043b561bd52c817679663c206f06e417"}},{"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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8f5ba7c71878eaaff570770a923612b72ec19d831d67c3c203b66249d7bab4"}},{"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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1497}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bcba209e12d12f4bb9f5a6471d09f230e03395b39806762ba4bab7d85fd35d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":1598}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b01ab36391bddc7858e95a9bc95a2f624b9b613a9e48754d0381cf5810ba10"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a5c0bdbfc5da0576617e21d053b000876442ab79efd7a10fa1f4f52562367c"}},{"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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6881}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2451e9ccdbc87d4c2df596bc8b70efb2411a8435fc663fd4d9a44f9aed3c66"}},{"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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6930}}}],"partialFingerprints":{"codehealthFindingId/v1":"a759ee504d0ab9e9bfbea5bd3c863de3382a1ce4e0fe483449b7320765cd4e20"}},{"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":"raspiCamSrv/camCfg.py"},"region":{"startLine":6960}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fe430077c752564ac62ef649fa229cae4d8aeb4e8f6122e8b64a62c47e98da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7058}}}],"partialFingerprints":{"codehealthFindingId/v1":"161c3641198f57d2d454f88e9dc4636da04dfa9388c266b3147d0587df1cf560"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7071}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddd280bc0df9d6e02e7b29d39a2f4c6f283bf27f0ddeaa7c585bb1557a8afc5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1037c998d8888cc726ca8959fd179436f2835b81eb49ae0eeb3ec63d9eb66087"}},{"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":"raspiCamSrv/camCfg.py"},"region":{"startLine":7291}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02190df914a22330de3791010e434f863d9219786c7db42c5ca689f3365f4d8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except\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":"raspiCamSrv/images.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6abf449ab6f1963c8585a85c44aa7afea5c1796ae80bc3e0976866dd289b53"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 6032 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":6032}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf5e498075c2c801743dc7d1dc7936f45726092dc9b9609ce467b6949d38225"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 6564 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":6564}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58dde8cea6bcbc12f8f45cc1380112fdbf7edfefe2329c85f2e6f49471ff98c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 73 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e0c29987ac929bb07b1aeb3dd4c0b773b9e2f207e2d9ae64a4b0497e75ae85"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 74 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ab4bafc54a8f7cdeb61962e3e45168155ecf0fe1c25a516d17458f6ddcd7fc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 75 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dc82712ae3d6dbc7a1888c9f7eef94d022bbfd7ca2b1a3af7df654d5fe9cc3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 78 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"53809c70a2adc6b2ea352b8b52c430cdcc1bd594f378c6fca262ca3414306690"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 83 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2d929676450eb709f60b50f04c342aa34dde7759706cf3ebad2ddc60d39cbc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 93 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"05db88987eb216a556f2144df6383e0b4b8465ff3ae8f147df980cb19c775eb5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 108 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"419fe471d1d051a8927fe97cf8c254b2ba7a9a94807ce2c6d6b7d6356bbbb624"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 113 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4332f30a86262e9e7efc34d3faa01c3a21f0a42704ec30253d48f571b3ad82b1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 119 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c21d8c27fd7ef1612d3c2f4672ab4948678ed092779df8158e0986db1e78109"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 134 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02d310541b18146fe23ae52c12f123fc84b3bb1258cade3c494809b4a2aa32d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 139 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ced0f12001c40c61cc6f27eed2f3ef517e09dccbeadf15753c34104ea715502"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 140 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cbf1f8b9667aab465ccca4f577bd5e3279e09e635df93825b0f2bdc1ab752f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 141 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/sun.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f73b80cfeac2f7977f02552e3e3110738bd0002bb77c50833dc38413758008d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060libcameraInfo\u0060 swallows every exception into \u0060return \u0027Unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. 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 on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":6236}}}],"partialFingerprints":{"codehealthFindingId/v1":"97da2e10c3a08595837b2ab3e4ac584f3731098ff32e1835f6c8955633aa353d"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)","shortDescription":{"text":"Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/22.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-653","guid":"aa3e371b-590e-225d-a56c-cd490a1dca63","name":"Insufficient Compartmentalization","shortDescription":{"text":"Insufficient Compartmentalization"},"helpUri":"https://cwe.mitre.org/data/definitions/653.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_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":67,"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."]}]}