{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"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":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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":"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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."},"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 300, loops 18, boolean chains 9 (nesting depth added 255). 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":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 186, loops 17, boolean chains 8, error handling 5 (nesting depth added 148). 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":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 180, boolean chains 12 (nesting depth added 133). 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":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 170, error handling 16 (nesting depth added 138). 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":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 159, loops 21, boolean chains 2 (nesting depth added 137). 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":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 148, boolean chains 12 (nesting depth added 111). 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":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 145, boolean chains 12 (nesting depth added 109). 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":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 130, loops 10, boolean chains 4 (nesting depth added 102). 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":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 135, loops 3, boolean chains 2 (nesting depth added 74). 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":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 72, if/else 64 (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 101, 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 83, error handling 21, loops 12 (nesting depth added 88). 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":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 95, error handling 14, loops 5, boolean chains 1 (nesting depth added 79). 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":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 104, loops 3, 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 97, loops 9, boolean chains 2 (nesting depth added 71). 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":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 94, boolean chains 11 (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/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 88, error handling 12 (nesting depth added 75). 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":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 87, loops 7, boolean chains 3 (nesting depth added 58). 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":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 73, error handling 17 (nesting depth added 55). 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":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 84, boolean chains 2 (nesting depth added 50). 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":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 71, error handling 8, boolean chains 1 (nesting depth added 49). 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":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 58, error handling 16, loops 5 (nesting depth added 59). 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":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 78, 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 61, error handling 7, loops 7 (nesting depth added 42). 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":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 54, loops 16, boolean chains 2 (nesting depth added 51). 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":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 68, boolean chains 3 (nesting depth added 48). 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":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 63, loops 8 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 61, loops 9 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 57, error handling 9, boolean chains 3 (nesting depth added 35). 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":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 67, boolean chains 2 (nesting depth added 48). 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":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 62, error handling 3, boolean chains 2, loops 1 (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 57, loops 9, 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 53, boolean chains 4, error handling 4, loops 4 (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/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 63, boolean chains 2 (nesting depth added 42). 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":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 53, loops 8, error handling 2 (nesting depth added 44). 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":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 59, boolean chains 4 (nesting depth added 42). 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":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 62 (nesting depth added 42). 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":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 56, loops 6 (nesting depth added 46). 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":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 39, loops 21 (nesting depth added 42). 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":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 56, error handling 2, loops 1 (nesting depth added 40). 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":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 40, error handling 16 (nesting depth added 40). 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":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 40, error handling 16 (nesting depth added 40). 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":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 40, error handling 16 (nesting depth added 40). 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":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 40, error handling 16 (nesting depth added 40). 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":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 51, error handling 2, loops 2 (nesting depth added 33). 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":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 53, 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 49, error handling 2, boolean chains 1 (nesting depth added 33). 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":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 38, loops 13 (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 48, boolean chains 2 (nesting depth added 29). 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":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 46, error handling 2, 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 47, loops 3 (nesting depth added 30). 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":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 39, error handling 8, 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 39, loops 9 (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 41, loops 6, boolean chains 1 (nesting depth added 28). 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":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 42, loops 3, error handling 2, boolean chains 1 (nesting depth added 30). 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":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 43, loops 5 (nesting depth added 35). 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":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 46, boolean chains 2 (nesting depth added 29). 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":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 40, loops 7 (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/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 44, boolean chains 2 (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/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 38, loops 7 (nesting depth added 32). 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":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 38, 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 30, loops 14 (nesting depth added 29). 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":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 30, loops 14 (nesting depth added 29). 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":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 30, loops 14 (nesting depth added 29). 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":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 30, loops 14 (nesting depth added 29). 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":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 37, loops 7 (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/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 44 (nesting depth added 28). 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":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 32, loops 9, error handling 2 (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/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 31, loops 5, boolean chains 4, error handling 3 (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/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 39, loops 4 (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 41, loops 2 (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/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 34, loops 6, 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 42 (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 38, boolean chains 3 (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/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 38, loops 2, 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 36, 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 36, error handling 2, loops 1 (nesting depth added 20). 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":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 31, error handling 8 (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/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 37, 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 32, loops 6 (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/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 27, boolean chains 5, loops 4, 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 34, loops 3, boolean chains 1 (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/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 22, error handling 9, loops 6 (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 33, boolean chains 2, loops 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."},"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 37 (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 31, loops 5, boolean chains 1 (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/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 34, loops 3 (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 36 (nesting depth added 20). 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":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 36 (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/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 33, loops 3 (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/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 33, loops 3 (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/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 27, loops 5, error handling 4 (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":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 29, loops 4, 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 28, loops 4, error handling 3 (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/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 35 (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/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 29, error handling 5, boolean chains 1 (nesting depth added 20). 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":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 35 (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/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 32, 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 29, loops 4, 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 29, loops 5 (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 23, loops 11 (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/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 33, boolean chains 1 (nesting depth added 20). 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":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 25, loops 8 (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/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 31, 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 22, loops 9, 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."},"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 22, loops 9, 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."},"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 22, loops 9, 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."},"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 32 (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/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 30, 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 31 (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/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 22, error handling 6, loops 3 (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/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 18, error handling 12 (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 29, boolean chains 1 (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":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 26, loops 3 (nesting depth added 20). 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":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 29 (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 24, 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 28 (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/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 18, loops 9 (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 25, 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 20, loops 4, 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 27 (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/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 26, 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 16, error handling 10 (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 22, 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 26 (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 15, error handling 6, loops 3, boolean chains 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/camCfg.py"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73d42bd9eacf241651cc2bd20be8a483203eaec61ef2e19ea45fb4bddc7d052"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera._thread2 (cognitive 25): Camera._thread2 has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, 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 23, 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 17, loops 4, 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 25 (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 21, 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 24 (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 23 (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/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 23 (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/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 20, error handling 3 (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":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 20, loops 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/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 23 (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 12, if/else 11 (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 23 (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":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 21, loops 2 (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":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 21, 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 17, loops 6 (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":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 23 (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":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd37a1305fb2b859c01680973b2d5cec8ff081b897e5aed6994f8cc07aec724c"}},{"ruleId":"D2","level":"warning","message":{"text":"Camera.startLiveStream (cognitive 22): Camera.startLiveStream has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 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/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 19, loops 3 (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/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 19, loops 3 (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/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 19, loops 3 (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/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 19, loops 3 (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/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 22 (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 22 (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 22 (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/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 18, loops 4 (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/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 19, 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 16, loops 6 (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 21 (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/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 21 (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 17, error handling 3, 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 14, loops 4, 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 14, loops 4, 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 13, loops 8 (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 18, error handling 3 (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 19, loops 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/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 11, error handling 5, loops 4, 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 18, 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 11, loops 9 (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 18, boolean chains 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/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 17, loops 2, 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 20 (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 20 (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":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 20 (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/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 16, 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 14, error handling 5 (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 14, error handling 4, 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 13, 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 19 (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/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 12, loops 5, 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 18, 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 15, error handling 4 (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":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 17, 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 15, loops 3 (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":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d641b74378e0117b6bf581103f7a3c84ea210ad41e47c7d760a605a9abae4cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerConfig.unregisterStreamingClient (cognitive 18): ServerConfig.unregisterStreamingClient has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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 12, loops 6 (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 18 (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/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 18 (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 12, loops 5 (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 14, loops 3 (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":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 14, loops 3 (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":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 9, if/else 8 (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 12, loops 4, 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 17 (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 14, loops 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/home.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df7bd8a89e00534b538ac37ea32c916e5c48f13d4345ec25b947ad558e9ef23"}},{"ruleId":"D2","level":"warning","message":{"text":"Series.nextPhoto (cognitive 17): Series.nextPhoto has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (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":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 15, 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 11, loops 6 (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 13, loops 2, ternaries 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/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 14, loops 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee48e0608f51fbc202a0b528e81e42a4368d50d182398b17788788a2abd0323"}},{"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 13, loops 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/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 14, 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/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 15, 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/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 15, 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/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 14, error handling 1, 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/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 16 (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 16 (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/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 16 (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/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 16 (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/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). 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). 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). 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). 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. 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). 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). 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). 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). 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). 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). 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). 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. 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). 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). 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). 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":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): raspiCamSrv/motionAlgoIB.py:472-496 | raspiCamSrv/motionAlgoIB.py:665-689 | raspiCamSrv/motionAlgoIB.py:978-1002 \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. 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/motionAlgoIB.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb5420b5f270c90a2038228c16d4067c021492ee558abae2bf2790d44eae567"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): raspiCamSrv/camera_pi.py:483-505 | raspiCamSrv/camera_pi.py:2179-2200 \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":"7028ed15dc4b3a1926672440b116853633846396c8ae89095cafb4d0fcd8dcce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 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":"52929a42ff3e0298ca66be797be599277605257dd2511f4f58d90d9ab2dfda48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/camera_pi.py:333-353 | raspiCamSrv/camera_pi.py:371-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/camera_pi.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"537505a7be47a25c76102d0a7cc5c5e029cfbfb06466c6711b55275697d90dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): raspiCamSrv/camera_pi.py:3882-3902 | raspiCamSrv/camera_pi.py:3933-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":3882}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fef62e13399fb3a8ef9bef98b334cfdfcf269e41a03730d2e9db62e3f2a204"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): raspiCamSrv/settings.py:1616-1635 | raspiCamSrv/trigger.py:1118-1137 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/settings.py"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e95fe6e79ff18d1959e3b5016cdb597dbc14a0fb591e0ba0375f500a92eda9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): raspiCamSrv/camera_pi.py:1459-1477 | raspiCamSrv/motionDetector.py:46-64 | raspiCamSrv/stereoCam.py:42-60 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb4976ec3d923d2dd09b376d1c0f871949482f7752371d9077387549f75b311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): raspiCamSrv/config.py:1450-1468 | raspiCamSrv/config.py:1679-1697 | raspiCamSrv/config.py:1970-1988 \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":"23a4ff606aead5abce50f26dd50602a78a34da35f8db0b166be95110b6b62b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/camera_pi.py:1795-1812 | raspiCamSrv/camera_pi.py:1869-1886 \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:1795\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":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"09845e98e3ed640e420fa24c309db3e180f3b0efdc2e6e6208bd2a304d16840e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/camera_pi.py:2682-2699 | raspiCamSrv/camera_pi.py:2726-2743 \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:2682\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":2682}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c83d269ecaf339fe95e5fedb817e363e997dbff4be0c443f5480966c4253928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1791-1808 | raspiCamSrv/triggerHandler.py:1822-1839 \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":"9c87e7c323975ae3188204e37ba41619ed75537d43ae43cc6c2dac72fece3a03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 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":"1ec83768c01f11a455241de7642e948112af00f57d188f5055591bd1623fe176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): raspiCamSrv/config.py:1086-1101 | raspiCamSrv/config.py:1163-1178 | raspiCamSrv/config.py:1329-1344 | raspiCamSrv/config.py:1387-1402 | raspiCamSrv/config.py:1558-1573 | raspiCamSrv/config.py:1616-1631 | raspiCamSrv/config.py:1849-1864 | raspiCamSrv/config.py:1907-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:1086\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":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"007b606fda5be2a32c041a4a401209e618722395550c11be758334412b4b76d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): raspiCamSrv/config.py:403-418 | raspiCamSrv/config.py:711-726 | raspiCamSrv/config.py:1029-1044 | raspiCamSrv/config.py:2081-2096 | raspiCamSrv/config.py:2178-2193 | raspiCamSrv/config.py:2262-2277 | raspiCamSrv/config.py:2337-2352 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060raspiCamSrv/config.py:403\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":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"411f5a96c9f8f9d28af9523e16641be9bd501456af625580e236fb6b3f086a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): raspiCamSrv/settings.py:2017-2032 | raspiCamSrv/settings.py:2090-2105 | raspiCamSrv/settings.py:2163-2178 | raspiCamSrv/settings.py:2266-2281 | raspiCamSrv/settings.py:2339-2354 \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":2017}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe001e543109e8ee4a3dc5b6bfdbe5c03b181d7aaa276cc046f0326150b145d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): raspiCamSrv/config.py:67-82 | raspiCamSrv/config.py:525-540 | raspiCamSrv/config.py:614-629 | raspiCamSrv/config.py:844-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":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0f69e09689537ccc4d6c7662e689c88b75f05b60ea4034a0406f31d7fe62a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/camera_pi.py:5267-5282 | raspiCamSrv/camera_pi.py:5818-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:5267\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":5267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eac23bcb4d51dfc5a4bd978cc89ddaa3aef6983ae906c4fe7792ecb1dd4ffa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/camera_pi.py:5653-5668 | raspiCamSrv/camera_pi.py:5729-5744 \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":5653}}}],"partialFingerprints":{"codehealthFindingId/v1":"5948803e5835bd5d08e22572889d7a1acfff1c2bcb9adb2bd0a73982b64ef470"}},{"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":"5e33bf87f1bd72a834126cfe979daf9d1d4b3d9312e02d0a61c82eaf3f2c4557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): raspiCamSrv/stereoCam.py:181-196 | raspiCamSrv/stereoCam.py:224-242 \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/stereoCam.py:181\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/stereoCam.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09930b128ddff80de6f654a712f01e9ddfe375831d7a1f01287237573ad44ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/camera_pi.py:2309-2323 | raspiCamSrv/camera_pi.py:2336-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060raspiCamSrv/camera_pi.py:2309\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":2309}}}],"partialFingerprints":{"codehealthFindingId/v1":"47caaf2e252b383d292e93f5a855092e5897eed88c91e5d829540a4541c5f9b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/camera_pi.py:6149-6163 | raspiCamSrv/camera_pi.py:6282-6296 \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":"50cfb928d2edd6efd6c75687cc9f925d40eb0942b76b6aa00eb817727ac063fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/camera_pi.py:7565-7579 | raspiCamSrv/camera_pi.py:7884-7898 \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":7565}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3a997d060b5f0be4a7acbbe5884ddd6e6c1f73e402d243ba6322901002f799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): raspiCamSrv/config.py:447-461 | raspiCamSrv/config.py:568-582 \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":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba65aafe113cc9e09cad75a2cbf55557feddce49d682ef4e3809f3bd194e73a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 18): raspiCamSrv/settings.py:1002-1015 | raspiCamSrv/settings.py:1116-1129 | raspiCamSrv/settings.py:1176-1189 | raspiCamSrv/settings.py:1221-1234 | raspiCamSrv/settings.py:1280-1293 | raspiCamSrv/settings.py:1325-1338 | raspiCamSrv/settings.py:1384-1397 | raspiCamSrv/settings.py:1437-1450 | raspiCamSrv/settings.py:1496-1509 | raspiCamSrv/settings.py:1565-1578 | raspiCamSrv/settings.py:1723-1736 | raspiCamSrv/settings.py:1843-1856 | raspiCamSrv/settings.py:1958-1971 | raspiCamSrv/settings.py:2009-2022 | raspiCamSrv/settings.py:2082-2095 | raspiCamSrv/settings.py:2155-2168 | raspiCamSrv/settings.py:2258-2271 | raspiCamSrv/settings.py:2331-2344 \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":"e596be06fcc7f44dfc66584ec3c8f273645b6df544d0924f52f8a0fb0ebe6147"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): raspiCamSrv/settings.py:419-432 | raspiCamSrv/settings.py:699-712 | raspiCamSrv/settings.py:1035-1048 \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/settings.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"be41b479cb24d1e95700b7ee6b050eae453d3508fddd1bda93b087cd10eefce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/camera_pi.py:1888-1901 | raspiCamSrv/camera_pi.py:1910-1923 \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:1888\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":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb36fb2c3cab139b04207211a9ca49387a5a137934f765783a3454b1b187d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/camera_pi.py:2190-2203 | raspiCamSrv/camera_pi.py:2284-2297 \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":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a3202de18104a2f55d245d04c41ffbdd427e5dc5ad6c649c06a8635f0e64fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/camera_pi.py:7407-7420 | raspiCamSrv/camera_pi.py:7724-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":7407}}}],"partialFingerprints":{"codehealthFindingId/v1":"f851d812e43a56f7fdbf624f06e2a58678f12126c95c2d3a9be8188ef930ba98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/home.py:1242-1255 | raspiCamSrv/webcam.py:635-648 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a463d5cd65373de4719be92b77e617b507e415bf9ace99050b054e08e6a51b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/settings.py:234-247 | raspiCamSrv/settings.py:293-306 \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":"c78751fdf8d51bf16280d826946c295495d96dc063e97ae16cd8889bf400f674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/settings.py:571-584 | raspiCamSrv/settings.py:655-668 \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":"2eff74d84ae0b524922effaeaec6dce81b34f8a293d509ac69a1627d2f47d1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): raspiCamSrv/settings.py:752-765 | raspiCamSrv/settings.py:820-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":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbfdca39a7dff28b98db0995e7e11fda1d2027665a2fbec7243ea441a3f1ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 17): raspiCamSrv/settings.py:39-51 | raspiCamSrv/settings.py:61-73 | raspiCamSrv/settings.py:229-241 | raspiCamSrv/settings.py:288-300 | raspiCamSrv/settings.py:413-425 | raspiCamSrv/settings.py:565-577 | raspiCamSrv/settings.py:649-661 | raspiCamSrv/settings.py:693-705 | raspiCamSrv/settings.py:841-853 | raspiCamSrv/settings.py:875-887 | raspiCamSrv/settings.py:1029-1041 | raspiCamSrv/settings.py:1091-1103 | raspiCamSrv/settings.py:2404-2416 | raspiCamSrv/settings.py:2434-2446 | raspiCamSrv/settings.py:2481-2493 | raspiCamSrv/settings.py:2508-2520 | raspiCamSrv/settings.py:2536-2548 \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":"d0613f194476f4e3a6e7d4d26b66e6026ae2b2f50eb985b6d09d8b6fb18753fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): raspiCamSrv/camCfg.py:3294-3306 | raspiCamSrv/camCfg.py:7337-7349 | raspiCamSrv/camCfg.py:7369-7381 \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":"27a85c8ef72409c1e62b14749092e287f8aa38d413cc7a0fbc4053e5bd8b4ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/api.py:37-49 | raspiCamSrv/auth.py:112-124 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/api.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa99bcc0eedbe7df60543c728bfc865d987ba3cdad95379d5b85ab144bd91f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/auth.py:111-123 | raspiCamSrv/auth.py:152-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":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"60abd3d14efc3a8015c6d0e344714e0c54f9eee12427a91b42636bed1cf1791d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/camera_pi.py:900-912 | raspiCamSrv/camera_pi.py:960-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":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c78f8cef3e28996937a85d1ccc05757afa64cdf657d346f058b66a792e5c581"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/camera_pi.py:3597-3609 | raspiCamSrv/camera_pi.py:3611-3623 \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":3597}}}],"partialFingerprints":{"codehealthFindingId/v1":"643aca675ca552571ba12d6adfe61974bc0e70b256056573bd4c6760c9974f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/camera_pi.py:5010-5022 | raspiCamSrv/camera_pi.py:5063-5076 \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:5010\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":5010}}}],"partialFingerprints":{"codehealthFindingId/v1":"41aece7afeed2bee79e6c5608afe0a694db39b8b5efbcfb408712fd57ddc7fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/config.py:2025-2038 | raspiCamSrv/config.py:2123-2135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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/config.py"},"region":{"startLine":2025}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c45647ac1e5abddabdcfec33494c903c1717e0591fe468a7c923bff8839a7b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/motionDetector.py:758-770 | raspiCamSrv/triggerHandler.py:50-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/motionDetector.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d450a7dc47ca8a0553ecced850b1a8c7755139a19dee160315f89bcae43ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/photoseries.py:154-166 | raspiCamSrv/photoseries.py:311-323 \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":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff30bd22b6def0e247e41c962ae8c882997c73eb1784f9d9fc9b3c751b65d71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): raspiCamSrv/triggerHandler.py:371-383 | raspiCamSrv/triggerHandler.py:865-877 \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. 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":"53a1fc828192d15c7477839b32ef10d14ef8e75acc1e8d36168a618b759c5177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 18): raspiCamSrv/config.py:342-353 | raspiCamSrv/config.py:425-436 | raspiCamSrv/config.py:546-557 | raspiCamSrv/config.py:635-646 | raspiCamSrv/config.py:733-744 | raspiCamSrv/config.py:787-798 | raspiCamSrv/config.py:865-876 | raspiCamSrv/config.py:1110-1121 | raspiCamSrv/config.py:1187-1198 | raspiCamSrv/config.py:1411-1422 | raspiCamSrv/config.py:1485-1496 | raspiCamSrv/config.py:1640-1651 | raspiCamSrv/config.py:1714-1725 | raspiCamSrv/config.py:1931-1942 | raspiCamSrv/config.py:2005-2016 | raspiCamSrv/config.py:2103-2114 | raspiCamSrv/config.py:2200-2211 | raspiCamSrv/config.py:2284-2295 \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":"11ff11b2d3a707ec28006b8d8b110402aaa6f3575cf4812767443d99615ae377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 7): raspiCamSrv/home.py:1390-1401 | raspiCamSrv/home.py:1412-1423 | raspiCamSrv/home.py:1434-1445 | raspiCamSrv/home.py:1479-1490 | raspiCamSrv/home.py:1523-1534 | raspiCamSrv/home.py:1545-1556 | raspiCamSrv/home.py:1567-1578 \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":"acc7f463a0f5187ba0bf1fcfd4d036d84fae387142390a42194bb4908c8a95a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): raspiCamSrv/config.py:1051-1062 | raspiCamSrv/config.py:1353-1364 | raspiCamSrv/config.py:1582-1593 | raspiCamSrv/config.py:1873-1884 \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/config.py"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bdd16548e23778b4464d75d37a8a663bca0375fcceb8686ab582b5a00f79fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): raspiCamSrv/config.py:913-924 | raspiCamSrv/config.py:1234-1245 | raspiCamSrv/config.py:1761-1772 \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:913\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/config.py"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dcbe652209482f273b068363bc84ac0a0ce591250ecfa4fc4bdd93bf2356af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): raspiCamSrv/console.py:36-47 | raspiCamSrv/console.py:82-93 | raspiCamSrv/console.py:125-136 \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":"cbd33708c28eb7b30947cf2901d430b3cd0f3c8e6106be59dd77f47dc63b12a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): raspiCamSrv/photoseries.py:764-775 | raspiCamSrv/photoseries.py:1032-1043 | raspiCamSrv/photoseries.py:1132-1143 \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/photoseries.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d207063ebae5243183b3a1ff0a2ffad1840b67cbcde394c44b9210289e4f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): raspiCamSrv/triggerHandler.py:1770-1781 | raspiCamSrv/triggerHandler.py:1801-1812 | raspiCamSrv/triggerHandler.py:1832-1843 \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":"035c1e8aada27ef1115a1da33379841a0dc2758775c4df5ec2fe3d2c79085346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/camCfg.py:359-370 | raspiCamSrv/camCfg.py:451-462 \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:359\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":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bdef24daa9949c7e02ef9a8a8a02f9adbdb8f68198df09771619e7bb6986f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/camCfg.py:1430-1441 | raspiCamSrv/camCfg.py:2787-2798 \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":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"90681fe0f0608431b88903bd848794112ead7630e9e43687927c0053d91427c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/camCfg.py:7400-7411 | raspiCamSrv/camCfg.py:7423-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:7400\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":7400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d765bb403f0d53bf6ab7a1e2defba6200290c5326ac0243f83ad590bbd34ab4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/camera_pi.py:6110-6121 | raspiCamSrv/camera_pi.py:6135-6146 \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. 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":6110}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a43b98ebc911d21cc2b869128794edc54993cce79c5ae8ff52c32970512593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/camera_pi.py:6368-6379 | raspiCamSrv/camera_pi.py:6392-6403 \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. 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":6368}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27596c86c16a0e7e6078baefff95cb453682a46994ecae470530c6098556b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/config.py:1299-1310 | raspiCamSrv/config.py:1826-1837 \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":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4dfcd7c3e7fe0ecd994683e0fc84e590b36076ff172ef8cca7f262cfe1f104f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/console.py:63-74 | raspiCamSrv/console.py:106-117 \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/console.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb7e3f18619fd18a69a444bede99c257c422c5fedc98b2faf0ee308f55bbf17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/home.py:1163-1174 | raspiCamSrv/webcam.py:535-546 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e636774a23b74d66d6798099986f9887e389542362d8f10d0f1523ef09cc94d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/home.py:1456-1467 | raspiCamSrv/home.py:1501-1512 \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":"b4dcb7808499928bdfe06f943107f3624265520787222f4fa851d211ccc07676"}},{"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":"04e0e318612278258f08a636be4583e635a3346f42717fb094d193dbe530dc40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/photoseries.py:209-220 | raspiCamSrv/photoseries.py:365-376 \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":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ab63c2b56a3d3538d393c5b134e5cebce715c8af8f9286cc5135030ea9bc5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/photoseries.py:555-566 | raspiCamSrv/photoseries.py:583-594 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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/photoseries.py"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeb2516f0ed736a4112d1d615c40ae230a62fc19933ca8d30e5e0f02122f8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/photoseriesCfg.py:59-70 | raspiCamSrv/photoseriesCfg.py:894-905 \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":"010c8305f6c3c4164b0e41cb557bd9fc2f82096c68a9a552df4eb27dfe34944b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/settings.py:1668-1679 | raspiCamSrv/trigger.py:1234-1245 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/settings.py"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ebe97182655c9441ca3efab7e186811056dfd9310004a9704a3b8f7da04c45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/trigger.py:942-953 | raspiCamSrv/trigger.py:1265-1276 \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":"67426366ab6ae08948b2967d69dd23400027fef3d46797bac9a47a47e0b5c24a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1390-1401 | raspiCamSrv/triggerHandler.py:1447-1458 \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":"d7226f0d86461cbaa770f62044165fac572f1e49b40e2f69673d960ee0836ca6"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/photoseries.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5bc06c98ad505ece127b1ac8306b05cdc854ff12c1ead202ca02ab397aca13"}},{"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":"e515e3e8b308ead3215de91ce879996c6ae73c14ee0d69d89157784e6fd9d5d2"}},{"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":"b08d53beb6fe25f361c6a10bd74fac7e2bddbb53631ba08de206b5336f0f3027"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): raspiCamSrv/trigger.py:598-608 | raspiCamSrv/trigger.py:677-687 | raspiCamSrv/trigger.py:807-817 | raspiCamSrv/trigger.py:869-879 | raspiCamSrv/trigger.py:890-900 | raspiCamSrv/trigger.py:915-925 \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. 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/trigger.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a54dbcc726988b59385ee23feb9441e1f38a49ba103ee04f94c2b525c79ebf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): raspiCamSrv/webcam.py:1555-1565 | raspiCamSrv/webcam.py:1658-1668 | raspiCamSrv/webcam.py:1686-1696 | raspiCamSrv/webcam.py:1723-1733 | raspiCamSrv/webcam.py:1891-1901 \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":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"de20ca919fd6920e36c332e2fe0d3db3e9346ace78573b348e29e33c6be5f051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): raspiCamSrv/home.py:476-486 | raspiCamSrv/home.py:515-525 | raspiCamSrv/home.py:647-657 | raspiCamSrv/home.py:686-696 \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/home.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c71b347b4fe230d383ade79922b47b209c3ab45795a28dec689691921c8ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): raspiCamSrv/webcam.py:84-94 | raspiCamSrv/webcam.py:112-122 | raspiCamSrv/webcam.py:140-150 | raspiCamSrv/webcam.py:185-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":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6365af894a5d2ac6eb91664324a7b501bd8a983f346fcfe8574ed53a8f514ec5"}},{"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":"dc2d2f2f1dc8c9051076a9fe66adc5d00863678e35d613998cc8b0f927269ae7"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/images.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7026a481251bfafae8ee3d4968f4ba953f0c0f38c7896900e2a8e16b6416ff76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/api.py:135-145 | raspiCamSrv/api.py:222-232 \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":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0dfc1af352dd9d3963a957e0ab359c081cea0006084e629c9669f8ccd72dce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/api.py:413-423 | raspiCamSrv/api.py:475-485 \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":"1eb33111b7ffa6da3352e5589671dcdd9f5399204be5f5ccc9530fca514888bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/auth.py:261-271 | raspiCamSrv/auth.py:284-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. 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/auth.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94fde8cfecae6c369d12365b6f344217a31c57f3d6a091364aa7b8803690d11"}},{"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":"d501a5786fc83d71104b6e79b4f8480cf979dd5f9b12d12f3932b6fa7e52a05d"}},{"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":"998086372317a1c06c95ed54618e1a68027af362f520e4ca7787f7a6814795f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camera_pi.py:1009-1019 | raspiCamSrv/camera_pi.py:3783-3793 \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":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f7779cc722bade0131b5d4952514bf46ee5efa222674749d71e56dccaddc80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camera_pi.py:1821-1831 | raspiCamSrv/camera_pi.py:2209-2219 \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":"a20349e2fc18ea388beeabefcf91361ca467d2b81860a33b2e93bd6d8a69ded0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camera_pi.py:5313-5324 | raspiCamSrv/camera_pi.py:5864-5874 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5313}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd06fc92d16f005855e79227b7d5d312eac4d6e122124ee35fb99d9dd4a62fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camera_pi.py:5334-5344 | raspiCamSrv/camera_pi.py:5887-5897 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":5334}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8364f0700f6f5201f2ad51dcc398a71bd5234ccd2a0a4cdef3c09cbfd0e0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/camera_pi.py:5454-5465 | raspiCamSrv/camera_pi.py:6010-6020 \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":"483d4b235153a14bb6d715223f9d51ec564ee5aaa649e58349b13cf03b9e28c3"}},{"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":"ad5afe58d6446fed026c5e0d06df9d9e2b160d807a16ce654e2c9792bae95a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/home.py:346-356 | raspiCamSrv/home.py:1651-1661 \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":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d37cbaaa1dd1d6ff4b5319a4556721337a43beb4a67e2e6934d4b97c1134ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/home.py:560-570 | raspiCamSrv/home.py:608-618 \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":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a6e51401051357b6e41a9c16d904d9042b70165529f8d15ff409e158c6e3f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/home.py:1201-1211 | raspiCamSrv/webcam.py:584-594 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebdb5aba135db1fb3b25051cbb43a1d77a4c9c740ef74b5866c2dbfe92d1b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/home.py:1675-1685 | raspiCamSrv/home.py:1706-1716 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/home.py"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6dec5a0be9dd0bfda843be0c9ba9446e4b9e589cd9ac9f852927c96691a558"}},{"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":"3a9c15113a2ff6513f5dba1f4da296e01a3394d4706fbf552a966d8d5389fe8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/images.py:349-359 | raspiCamSrv/images.py:362-372 \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":"f0371eaf12a914a87be5e70147c5d62add0107852b3d1b971fd5e16158cadb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/motionDetector.py:252-262 | raspiCamSrv/motionDetector.py:283-293 \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":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa077c70947e2a4df564b7b8a36efc26649789901061745f963ce3cd777a616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/settings.py:138-148 | raspiCamSrv/webcam.py:296-307 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/settings.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5feb315282f1e0eca379176bd6f91008d5936a9daae20706a75957296511a8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/settings.py:1653-1663 | raspiCamSrv/trigger.py:1219-1229 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/settings.py"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"9307a793e96b2c1a51c3f4fadd477dc2dde36e8836d4591facdfa6321bf63950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/trigger.py:239-249 | raspiCamSrv/trigger.py:515-525 \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":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"628a7355d67c45f1fe27d1b82915701070b067051a27aa1b82e85b80f1f976e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/trigger.py:778-788 | raspiCamSrv/trigger.py:853-863 \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":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5a9971a1c523943a700dd47c9a3cfc7f5c634e9af55c528423f5ea602a00d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/trigger.py:1308-1318 | raspiCamSrv/trigger.py:1326-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":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"5633e0f84eb2d39f2dde94625425bfe2e5e40d72af772d12145926ed85ab28b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1367-1377 | raspiCamSrv/triggerHandler.py:1404-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060raspiCamSrv/triggerHandler.py:1367\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":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fe86e74f939067cdea329356240168619be5d87042a8f8e548aa994f62f808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/webcam.py:285-295 | raspiCamSrv/webcam.py:374-384 \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":"b9302ff1bd6ce5367c472154bdd8c5414195dc4489097216a2576e7001dc9535"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): raspiCamSrv/webcam.py:880-890 | raspiCamSrv/webcam.py:938-948 \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":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8650f4771c972b34a4b30ffe94b8d00646a84e337ac0233e46d80e339629aa5"}},{"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":"a179df02cce8d4a77f407414ad183421f46c2c2bf79e185cf70ad7e2cb371457"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 18): raspiCamSrv/webcam.py:511-520 | raspiCamSrv/webcam.py:558-567 | raspiCamSrv/webcam.py:604-613 | raspiCamSrv/webcam.py:660-669 | raspiCamSrv/webcam.py:694-703 | raspiCamSrv/webcam.py:733-742 | raspiCamSrv/webcam.py:775-784 | raspiCamSrv/webcam.py:824-833 | raspiCamSrv/webcam.py:857-866 | raspiCamSrv/webcam.py:905-914 | raspiCamSrv/webcam.py:964-973 | raspiCamSrv/webcam.py:1032-1041 | raspiCamSrv/webcam.py:1080-1089 | raspiCamSrv/webcam.py:1118-1127 | raspiCamSrv/webcam.py:1193-1202 | raspiCamSrv/webcam.py:1228-1237 | raspiCamSrv/webcam.py:1925-1934 | raspiCamSrv/webcam.py:1964-1973 \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/webcam.py"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"82de14df5a5ec5110ae68d089570b5a7cfe6ee425384cbff010ac35cb0cab651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 8): raspiCamSrv/trigger.py:566-575 | raspiCamSrv/trigger.py:582-591 | raspiCamSrv/trigger.py:615-624 | raspiCamSrv/trigger.py:631-640 | raspiCamSrv/trigger.py:647-656 | raspiCamSrv/trigger.py:662-671 | raspiCamSrv/trigger.py:693-702 | raspiCamSrv/trigger.py:708-717 \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. 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/trigger.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcb65280c2b9d59cf788c81976a2edc7dd6d78f5ce6061cfa262f2a345e98a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): raspiCamSrv/config.py:1128-1137 | raspiCamSrv/config.py:1205-1214 | raspiCamSrv/config.py:1429-1438 | raspiCamSrv/config.py:1503-1512 | raspiCamSrv/config.py:1658-1667 | raspiCamSrv/config.py:1732-1741 | raspiCamSrv/config.py:1949-1958 \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. 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/config.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eab03c393faa63470574fbdbfe61bf7f5c07810e3a3434706fee8cb3d6af585"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): raspiCamSrv/home.py:434-443 | raspiCamSrv/home.py:479-488 | raspiCamSrv/home.py:518-527 | raspiCamSrv/home.py:563-572 | raspiCamSrv/home.py:611-620 | raspiCamSrv/home.py:650-659 | raspiCamSrv/home.py:689-698 \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":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefeecfb757c9fb86d3088b0d5b705b2b86c535bfa8758353c77d6b74fc1c74c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): raspiCamSrv/webcam.py:41-50 | raspiCamSrv/webcam.py:1554-1563 | raspiCamSrv/webcam.py:1657-1666 | raspiCamSrv/webcam.py:1685-1694 | raspiCamSrv/webcam.py:1722-1731 | raspiCamSrv/webcam.py:1890-1899 \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. 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/webcam.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f64be1f126640f8c69f21bb43e480e1117d494948e28d38b7c70f5ba08fc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): raspiCamSrv/config.py:1070-1079 | raspiCamSrv/config.py:1372-1381 | raspiCamSrv/config.py:1601-1610 | raspiCamSrv/config.py:1892-1901 \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/config.py"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1869d8f1f755e87bb1434d2aebdb86229a35f4fe0cc95139accecabfd2c18ac"}},{"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":"e6434330547fbbb6d80b4d8fec35294046802f409dc12295a1478cb7f55a8b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): raspiCamSrv/webcam.py:232-241 | raspiCamSrv/webcam.py:332-341 | raspiCamSrv/webcam.py:414-423 \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/webcam.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad77e1b2ab6c8d3f389ad79652dc05eacfa6c14e32fe56fd5798230730584fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/api.py:88-97 | raspiCamSrv/api.py:173-182 \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":"b0aa4e85f7e81d5082483cbbe9fabd448997f17143b64ef3378a6032bf58fade"}},{"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":"d706915117d3b492fff67bfc4b452db12a0a7ec317944b04ea2fbc2449271e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/api.py:473-482 | raspiCamSrv/api.py:536-545 \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":"9afaa01e303fc185feb42f1186d0f12e8060d870cae7c1e440e06ebc59246031"}},{"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":"a1c18310cc887918e88d131497e4b1d5e74993c42e5295337054286a37472935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camCfg.py:243-252 | raspiCamSrv/camCfg.py:443-452 \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":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ec5f70baf560e72b299b6d8ac9d6e8b1eff384b1d00647cd7a48cd047446a2"}},{"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":"9bba757216c674e8ce25852e65716d3d388d00e1eeba6e28e9952dbb1cea0690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camCfg.py:8130-8139 | raspiCamSrv/camCfg.py:8170-8179 \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":8130}}}],"partialFingerprints":{"codehealthFindingId/v1":"db25fd57b2e08a8e9fb0a54071dde4136700c3a66bf5562bdd113f32a118e7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camera_pi.py:3508-3517 | raspiCamSrv/camera_pi.py:3530-3539 \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:3508\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":3508}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a78f390c5bcc7ac142e6851322c863d2152a6fb36ceb0f3712795763c7fe658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camera_pi.py:4826-4835 | raspiCamSrv/camera_pi.py:4930-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:4826\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":4826}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0cad0fce5772147e0e759106738210f7ba8a38fc0d2753a03dfe5f06150a0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camera_pi.py:6306-6315 | raspiCamSrv/camera_pi.py:6431-6440 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":6306}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ca326d502d513f33fba4f7fb88263f5e3c8b963a5417d5c9c2868c4c0d893e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/camera_pi.py:7610-7619 | raspiCamSrv/camera_pi.py:7931-7940 \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":"2f1eaf823a37ff7b366dedc2867b77ba296652406631bf856c424b61aaa8a989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/config.py:1548-1557 | raspiCamSrv/config.py:1837-1848 \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":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48ed5b062ae16091c6ca1a3fcc79fb65ec5e5fabdc6673dbd9b6a56e844b927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/config.py:2234-2243 | raspiCamSrv/config.py:2320-2329 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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/config.py"},"region":{"startLine":2234}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb92298ca3238ea0214931e04a01f88e82893331ac0ad6d4331eceda3e6af74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/home.py:1231-1241 | raspiCamSrv/webcam.py:625-634 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad6a3ca9b88a0d951acdeff566bee784117a9fc24bf45d6cf4d592102bda6de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:554-563 | raspiCamSrv/motionAlgoIB.py:1060-1069 \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":"28e62e4267915728f71ccea65fe4f14830e99fa7f439e85d5f63c227416d72c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:597-606 | raspiCamSrv/motionAlgoIB.py:1120-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":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff3af4ddb0de85373fbed3010d9c3b2e27d9da8929454d4370005ee6bb60efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/triggerHandler.py:141-150 | raspiCamSrv/triggerHandler.py:151-160 \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":"f8df35d479fb0a3b8377b26e533c6665700450c6fe6d13a88ad817a757213c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/webcam.py:343-352 | raspiCamSrv/webcam.py:425-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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/webcam.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea39c15db7d88459d1a9450cca65668777a04760111d338f1bb7fe91bde64e59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/webcam.py:542-551 | raspiCamSrv/webcam.py:588-597 \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/webcam.py:542\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/webcam.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe71aeddb3061e721b2f85c9b7a58514edd6afb4ea3c455a332d342688051ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/webcam.py:1238-1247 | raspiCamSrv/webcam.py:1897-1906 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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/webcam.py"},"region":{"startLine":1238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a39054ee75c12ecd16588edae507439b903028e6e1287d9fb10f9f0931474e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): raspiCamSrv/webcam.py:1392-1401 | raspiCamSrv/webcam.py:1408-1417 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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/webcam.py"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"849163e88f7c2d8a78bece8ce17f11495992544bc8f709fb21bde87b862b8de2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 22): raspiCamSrv/config.py:204-212 | raspiCamSrv/config.py:356-364 | raspiCamSrv/config.py:439-447 | raspiCamSrv/config.py:560-568 | raspiCamSrv/config.py:649-657 | raspiCamSrv/config.py:747-755 | raspiCamSrv/config.py:801-809 | raspiCamSrv/config.py:879-887 | raspiCamSrv/config.py:1066-1074 | raspiCamSrv/config.py:1124-1132 | raspiCamSrv/config.py:1201-1209 | raspiCamSrv/config.py:1368-1376 | raspiCamSrv/config.py:1425-1433 | raspiCamSrv/config.py:1597-1605 | raspiCamSrv/config.py:1654-1662 | raspiCamSrv/config.py:1728-1736 | raspiCamSrv/config.py:1888-1896 | raspiCamSrv/config.py:1945-1953 | raspiCamSrv/config.py:2019-2027 | raspiCamSrv/config.py:2117-2125 | raspiCamSrv/config.py:2214-2222 | raspiCamSrv/config.py:2298-2306 \u2014 all 22 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":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b51941e3c73829bde481e7a603d3011b3f157fefc711878aefb607ea7f15438"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 19): raspiCamSrv/webcam.py:151-159 | raspiCamSrv/webcam.py:242-250 | raspiCamSrv/webcam.py:342-350 | raspiCamSrv/webcam.py:424-432 | raspiCamSrv/webcam.py:521-529 | raspiCamSrv/webcam.py:568-576 | raspiCamSrv/webcam.py:614-622 | raspiCamSrv/webcam.py:704-712 | raspiCamSrv/webcam.py:743-751 | raspiCamSrv/webcam.py:785-793 | raspiCamSrv/webcam.py:867-875 | raspiCamSrv/webcam.py:915-923 | raspiCamSrv/webcam.py:974-982 | raspiCamSrv/webcam.py:1090-1098 | raspiCamSrv/webcam.py:1238-1246 | raspiCamSrv/webcam.py:1692-1700 | raspiCamSrv/webcam.py:1897-1905 | raspiCamSrv/webcam.py:1935-1943 | raspiCamSrv/webcam.py:1974-1982 \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. 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/webcam.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89445bf0254d1fa81692901d403cae8b8914ea21bf06eae7bdc51895f6c440e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): raspiCamSrv/config.py:881-889 | raspiCamSrv/config.py:1068-1076 | raspiCamSrv/config.py:1126-1134 | raspiCamSrv/config.py:1203-1211 | raspiCamSrv/config.py:1370-1378 | raspiCamSrv/config.py:1427-1435 | raspiCamSrv/config.py:1501-1509 | raspiCamSrv/config.py:1599-1607 | raspiCamSrv/config.py:1656-1664 | raspiCamSrv/config.py:1730-1738 | raspiCamSrv/config.py:1890-1898 | raspiCamSrv/config.py:1947-1955 \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":"909decc9d61391fa80c6fbc1155a1e9b4452373b3878c60da7a90d8f89036635"}},{"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":"20e4849f0aff51e58b64bdf4f3a615634dfbf31383b40d9a74cf995672cba070"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): raspiCamSrv/webcam.py:670-678 | raspiCamSrv/webcam.py:834-842 | raspiCamSrv/webcam.py:1042-1050 | raspiCamSrv/webcam.py:1561-1569 \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/webcam.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"0174799535a6e8d119109f90721062234769e4ba9c8d2c3c580d732be6966f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/camCfg.py:2827-2835 | raspiCamSrv/camCfg.py:3497-3505 \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":2827}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28fbca2c43224d5b2017a9a988e0c6d216714505ac86d7ba15e3a6ba60571c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/camCfg.py:7610-7618 | raspiCamSrv/camCfg.py:7858-7866 \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":7610}}}],"partialFingerprints":{"codehealthFindingId/v1":"763c7fcb8a64fe05be59259a26e4dd0e6af694b98a6dadfbbd3f1a624284f109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/camera_pi.py:4268-4276 | raspiCamSrv/camera_pi.py:4410-4418 \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":4268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47c37a501e8900f3dfd558b6bdb677ba1b25017f513bc0d8dcad8c9ff7249ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/camera_pi.py:5362-5370 | raspiCamSrv/camera_pi.py:5919-5927 \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":5362}}}],"partialFingerprints":{"codehealthFindingId/v1":"10927d9a1cb0f7240becfa265157ca50b9f51d10487271bfe912765ff5887d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/camera_pi.py:7505-7514 | raspiCamSrv/camera_pi.py:7830-7838 \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:7505\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":7505}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97f7cbfd7307f3aff27fc147241795c505c60e206430d3d913b6611117fc48a"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/motionAlgoIB.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ce0041bc62560a930f9803a7d1fe216ed78d0a90d54ee639fe1d9a51064702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/motionDetector.py:635-643 | raspiCamSrv/triggerHandler.py:1081-1089 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060raspiCamSrv/motionDetector.py:635\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/motionDetector.py"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"e581bee7ff7daf05e6408083616f1d58dd76cf28bbadbe5b56418531fed4c729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/trigger.py:979-987 | raspiCamSrv/trigger.py:994-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":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"a878c10401413e2257069f5100247796e14bd9d2a3d2ff89a130bebbeca5e553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/triggerHandler.py:921-929 | raspiCamSrv/triggerHandler.py:955-963 \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":"c2532b2b93d2182d24ce38a326dadba74f1cb78447b595cc36bc2559e18623fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1336-1344 | raspiCamSrv/triggerHandler.py:1458-1466 \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":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8ff7f964f8d17d32aa96707c7e4943a25c019330b0e969cde9685ac19636a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/webcam.py:718-726 | raspiCamSrv/webcam.py:760-768 \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/webcam.py:718\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/webcam.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"17bd909273f17f87a3c0c437ef81ad5e678e96ca56d9dfe81a4603ec9eeba76b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): raspiCamSrv/webcam.py:1128-1136 | raspiCamSrv/webcam.py:1203-1211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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/webcam.py"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"05af256c12d467c651d4d3aaf23fdbd0abc6ed31a00636a2bb87001618748b43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): raspiCamSrv/camera_pi.py:3013-3020 | raspiCamSrv/camera_pi.py:3515-3522 | raspiCamSrv/camera_pi.py:3537-3544 \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":3013}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f95be7ae8225a4481931777b5c14c2df8944aab7ff2a7140462550fd3f5d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): raspiCamSrv/camera_pi.py:7699-7706 | raspiCamSrv/camera_pi.py:7866-7873 | raspiCamSrv/camera_pi.py:7966-7973 \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":"a3db6ffde710295b7ba6ed776b06ecb77a23371150b63d61d325da6e2d01e54d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): raspiCamSrv/images.py:110-117 | raspiCamSrv/images.py:167-174 | raspiCamSrv/images.py:192-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 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/images.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccffa3995db4b8529a01d4d08b72fdae0a52568485d7c01d0d901a921d129e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 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":"2758f795ce3daf7c6bd99e94b1cde37cfe0ccd9793dd51655475a8f40e78a01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:801-808 | raspiCamSrv/motionAlgoIB.py:1109-1116 \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":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e142434447145dbcbf843087e7622da392ef2e47831365d81f1331b70fd967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): raspiCamSrv/motionDetector.py:116-123 | raspiCamSrv/motionDetector.py:149-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/motionDetector.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5352105ad7ff24269358d627466d6c44ff7860964a3f11bd0bdf10be2f74f30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): raspiCamSrv/photoseriesCfg.py:976-983 | raspiCamSrv/photoseriesCfg.py:1265-1272 \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":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fa0249121b6bb46031622cee8195af75dbb42fbf152456f566b0583ba989b3"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":8301}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f7fac44ce9daabc893a04725f1d7cbdf7ce303faf2bd33b8affaeb2c013430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): raspiCamSrv/api.py:166-172 | raspiCamSrv/api.py:190-196 | raspiCamSrv/api.py:214-220 \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":"c9ce03afe880bd6d0017661f68a665cebb63637d6c80fd66eddd913786e92933"}},{"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":"d7ba8794ae6628bcd738be013c0273d14ff38d1f023bf3e2bf2f6b38ec74ff37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/camCfg.py:7643-7649 | raspiCamSrv/camCfg.py:7888-7894 \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":7643}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d94c948e356e55ee265fe88b15602edba706b933e457c7bd51c37e4abbee5a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/camera_pi.py:5484-5492 | raspiCamSrv/camera_pi.py:6043-6049 \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":5484}}}],"partialFingerprints":{"codehealthFindingId/v1":"720a271e4c06aa5dcaf9ff2a4ba6634becc6ec8438745d9279d138690e54e4bb"}},{"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":"37973512a98f79d4e9356d52c83326af238651a64687b431ed4a54df71827841"}},{"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":"1c848dd062f3a0fb66f04e6ce5041571e648042bfd21919d51cde3e2e1a9784a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/photoseriesCfg.py:1202-1208 | raspiCamSrv/photoseriesCfg.py:1219-1225 \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":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"de704db910b416554ae2c1878eda613124af6b1c27d09316898148aeb86500ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/stereoCam.py:450-456 | raspiCamSrv/stereoCam.py:475-481 \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":"02dae2b2f50654319b9257bafca187d64223172903f3772f6acd2e3864cb76f3"}},{"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":"c88c089811c0b1f768044ae4ab82a63b37e4d62e79407d7762bb52de86212404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): raspiCamSrv/triggerHandler.py:1686-1692 | raspiCamSrv/triggerHandler.py:1724-1730 \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":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"52590370d84d6318f68c34275e0d62e4768b726a4b00a3c4fd8b53a75050a5b2"}},{"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 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":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b097438ac18a8a5d43e1ed18579c186190b4d6f29066f0df2ed25bde12985c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): raspiCamSrv/triggerHandler.py:1647-1652 | raspiCamSrv/triggerHandler.py:1685-1690 | raspiCamSrv/triggerHandler.py:1723-1728 \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":"e0e1a5b594c398b344e987c2a2fd5ec77446782a808e451a7cc6717ef420ce0d"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camCfg.py"},"region":{"startLine":7050}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a366d3c419ce90e9b2fb21692f36aa6355be1212c33a1ff7b08f9f04cf68ce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): raspiCamSrv/camera_pi.py:7396-7401 | raspiCamSrv/camera_pi.py:7713-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":7396}}}],"partialFingerprints":{"codehealthFindingId/v1":"a743e23c0333fd845dc98b3a0b274bec8e68a7ebf5ba829fc5c7ce94de3cc478"}},{"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":"02594031e46c0497c6edd60c3b0c963e0e34d0f62b042eeafe29b1e680b7d0dd"}},{"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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/triggerHandler.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea928d681f71f437e9dbc23dfcc367c96d2ad2939d64d454ac3c644e637b402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): raspiCamSrv/webcam.py:161-166 | raspiCamSrv/webcam.py:207-212 \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":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b864911eee43ad6c3de361dff41d9fe2c0b0a19e326ddeee442089809f9ec68d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): raspiCamSrv/camera_pi.py:3416-3420 | raspiCamSrv/webcam.py:163-167 | raspiCamSrv/webcam.py:209-213 \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":"1ad5fd73efb29ce4b4d929c13905693fc0d85347793edf33d1a66961e6e3c917"}},{"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":"2071054f540b2808194705f7dcea12dc3d7c410ca5e464b4de96a16ed9f6506c"}},{"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 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":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"717aeaa8cbd6be87649064b0db90dec2f916e9e7d2d85f1d309c613a196880f9"}},{"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":"3edbd4e5045d789cec35914f9a99f4cdd51ec2c8c9f8132fa54093cc6eb5e2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): raspiCamSrv/motionAlgoIB.py:706-710 | raspiCamSrv/motionAlgoIB.py:1012-1016 \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":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e3190d66d55551cfe7897a37421e2dc3352fe5baaf8ff46b111be9d059a8ca"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test suite could be collected \u2014 nothing here references a test framework (pytest or unittest), so there were no discoverable tests to count. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: raspiCamSrv/camera_pi.py: raspiCamSrv/camera_pi.py changed 3 times in last 90 days, max complexity 85. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/camera_pi.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91ff93ddb5e74323b76fff4e752cc3da4ec74a1323f9a1b8c0c8b973f5aeb6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: raspiCamSrv/motionDetector.py: raspiCamSrv/motionDetector.py changed 2 times in last 90 days, max complexity 49. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/motionDetector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e9c9e33e7ecc6c674697646e80f56eb3b6ed028d2ddfbfffd242e3e8d9c2dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: raspiCamSrv/__init__.py: raspiCamSrv/__init__.py changed 2 times in last 90 days, max complexity 20. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raspiCamSrv/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6dfa37468fba838a940fd7d0084fd709e56b169563f6d195d4c58d3c9dea404"}},{"ruleId":"D16","level":"note","message":{"text":"Small-team knowledge concentration: 15 file(s) are concentrated to one author \u2014 the ambient state with 2 active author(s), not 15 separate risks. The signal becomes meaningful as ownership spreads; no per-file action implied now."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8aa75b6daa18f1b578387fa04036c50b3163d47f957c8f5601bf083ed4489b0c"}},{"ruleId":"D19","level":"note","message":{"text":"The document begins with a \u0027To get started\u0027 list that links to the User Guide, but no steps follow for updating when running Docker (the SetupDocker.md path is referenced), and there is no mention of rollback or reconfiguration after an update.: Add a brief rollback note under step 6 (\u0027Restart the service\u0027) indicating how to revert to the previous version."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/updating_raspiCamSrv.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"237de14f75e8fafef9d68025ed8c712227715026cd5da6f0c642f9bb38af8ac8"}},{"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":"28877b0acbc87541a16206a3edb7e767374bcfeedd7ec079a09f7088fc104a84"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"702b9d66c06dc437e87208aa5dfffd1f894107a4aa56e9991e1395fb5414a408"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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"}}]},{"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":"892a4b308daac0ef952b3fa9b9efd8d83ceeb49be7cfb55fccca5d09ea0d3a5b"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"b42754cfca440a7d1197524e68a337af6a8f6fa3eaaeaa6ae83bd928dd4c550d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"27fb3c7979d4423ff621153d85515c7ce5133d46f11609d061f9123098e2954f"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"213285f3759bf9c8cc0ee12ed457065cb361b850678fcfa880aa61b9a66d9f40"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c33112f0c0131557f4e7b59965c47da15c50e9112ba28a743ecb7dfbbe253176"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c7f3d0902472a71d7ce0c16f9e765bdb24822311e27eaa0eb2080286fd0d6968"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"ef58babb94d50ff3b61b401cb95c1cb9b556a51d9a3431ca769d5148e79c984c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"9db425f6883d5a6a6859a1ac520ef898d2d1c420fb9a42eb467bb6732deca3a3"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"e5784c6b8d099dcd1edb9f8e2f0bff51d0c7364c5d439e47663528ea815c55af"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"444d93f34b9408c5a58ae5455760e6ba2879fb7e0d6dee357afb614aeb82a7ba"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"65ad762fe855f25d7873e410d2a941e6690b1a6631bcba2a1d7b133c6b20d7f7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"32331edbc91d834e7930ecb7178f69baf4da196ec94c05bbc5f1b82f6a00e8eb"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"07258ea1ce5b57e2f793c86e39d96f679b61358c90d9c18334da3cdd63c8cfa6"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"af17a42d1f7ca50e589bac87b14e640ee365bbf876aa0f9f9faa6ac7cff5357f"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6790f5be8832e0859440e32cb2c97eca4517d8b4efbd2ca6a99eb482d6b2120d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"d981617432fc8a0c100d85e12b4a7a7fde4e48266b17354d93e19684358d8c9a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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"}}]},{"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"}}]},{"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":"825544427b587cce5e22b4387436ac32f799b38a39b599fcb675aa6e6068974a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"0bf965bdd370bb3cb8f3aa25ca49d6a1ee8cad1de12aa3e848c9331577a52c13"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"dcfc5bc7a219a713afe847a7f515f7080c756586f68e041facf2c8201822f225"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6fd5b99b8fe395498c2097a301733234958c0aca140729fcc18e658a2a94be11"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"8392f840ecfb2f8d3fb05f3aa16dca42cb7d30725fc4fbfd1b501917aadf1e53"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"b5e8065cb3006cdf05c43686d1d50562a3ead4d421b9e424616f733e4de15fe0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"3052135734ad69cb6b2164b8065e504e4b5042d8234b4825fc963bb58bf0b296"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"1185a66b99cda6af18c9cd29cabd459edcd0fc64a3f972b4bc7bf6d32d863167"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"a23cff0d124de4b38084251914faa447f5090a177abc864e4db066d9be8fab33"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"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":"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":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"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"}}],"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-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":"CWE-22","shortDescription":{"text":"CWE-22"},"helpUri":"https://cwe.mitre.org/data/definitions/22.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-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"CWE-532","shortDescription":{"text":"CWE-532"},"helpUri":"https://cwe.mitre.org/data/definitions/532.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":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"SQL Injection","shortDescription":{"text":"SQL Injection"},"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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":38,"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."]}]}