{"$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":"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":"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":"BaseAggregate.__init_subclass__ (cyclomatic 83): BaseAggregate.__init_subclass__ has cyclomatic complexity 83 (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":"eventsourcing/domain.py"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfa1ce69f4468df8d14e5e13e03e32cec027c92db5fe5f30b725ae8c2bb870a"}},{"ruleId":"D1","level":"warning","message":{"text":"TestDocs.check_code_snippets_in_file (cyclomatic 29): TestDocs.check_code_snippets_in_file has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/docs_tests/test_docs.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a502e44d136eae01601629756327c371a08b9fbd14aa101d08e71f855e3d7d5d"}},{"ruleId":"D1","level":"warning","message":{"text":"domain._spec_coerce_args_to_kwargs (cyclomatic 25): domain._spec_coerce_args_to_kwargs 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":"eventsourcing/domain.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2ba388ff477a955d35405af20e284e72019cbcd6be520728b592f92667b6b2"}},{"ruleId":"D1","level":"warning","message":{"text":"BasePostgresFactory.__init__ (cyclomatic 25): BasePostgresFactory.__init__ has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventsourcing/postgres.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f88a5940655ee3dead5583bfdac336d6a05fcc0b83a7a6843b0e63bf0ce71b0"}},{"ruleId":"D1","level":"warning","message":{"text":"ApplicationRecorderTestCase.optional_test_insert_subscribe (cyclomatic 19): ApplicationRecorderTestCase.optional_test_insert_subscribe 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":"eventsourcing/tests/persistence.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7bb626e0e58e7847909adb5c6da5d76afa870d12c6fc4ebf72cfb6b9ab7d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"CommandMethodDecorator.__init__ (cyclomatic 17): CommandMethodDecorator.__init__ 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":"eventsourcing/domain.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f079c5816907713fc9595b8e7db5463173fa98c0b94d9797be025ca2db3f899d"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseAggregate.__init_subclass__ (cognitive 173): BaseAggregate.__init_subclass__ has cognitive complexity 173 (threshold 15). Drivers by points: if/else 126, loops 24, boolean chains 13, error handling 10 (nesting depth added 94). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventsourcing/domain.py"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7011f3a62f67677890efee7de68c63f0207aacaca066c26ead88da6e49a7c3"}},{"ruleId":"D2","level":"warning","message":{"text":"NewSingleThreadedRunner.receive_recording_event (cognitive 40): NewSingleThreadedRunner.receive_recording_event has cognitive complexity 40 (threshold 15). Drivers by points: loops 19, if/else 18, boolean chains 3 (nesting depth added 27). 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":"eventsourcing/system.py"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba1a65d6b1faaaeaddcbea3994eb4a6e84d33062e8e4b2a3d2e0130c945683b"}},{"ruleId":"D2","level":"warning","message":{"text":"TestDocs.check_code_snippets_in_file (cognitive 39): TestDocs.check_code_snippets_in_file has cognitive complexity 39 (threshold 15). Drivers by points: if/else 31, boolean chains 6, error handling 1, loops 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":"tests/docs_tests/test_docs.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acb15dfa1d7858ae6f50f1024a613a2254ff45a64311b0dd4d191501b050585"}},{"ruleId":"D2","level":"warning","message":{"text":"domain._spec_coerce_args_to_kwargs (cognitive 37): domain._spec_coerce_args_to_kwargs has cognitive complexity 37 (threshold 15). Drivers by points: if/else 25, ternaries 6, loops 4, boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventsourcing/domain.py"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"b890ad0340635ba717e9d1985773e1f026a8cfa1440bbd27899ce70f17fc9e25"}},{"ruleId":"D2","level":"warning","message":{"text":"BasePostgresFactory.__init__ (cognitive 31): BasePostgresFactory.__init__ has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13, error handling 12, 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":"eventsourcing/postgres.py"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a11d2b6807fc60765b954a31a0444d648778cf1e4219314a9de2aa929d4626"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.resolve_multi_generic_target (cognitive 31): utils.resolve_multi_generic_target has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, loops 7, boolean chains 2 (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":"eventsourcing/utils.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e798fa984fa708944faa7004d8079095280089f7cc25abfbf3f658d151513b3"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.resolve_topic (cognitive 30): utils.resolve_topic has cognitive complexity 30 (threshold 15). Drivers by points: error handling 19, loops 9, if/else 2 (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":"eventsourcing/utils.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1a3f9fd86245bb784b1a0f7ef9b6b6f3e5a382cab7f5f38a2d73dcd0f86e38"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPool.get_connection (cognitive 24): ConnectionPool.get_connection has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, boolean chains 1, ternaries 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":"eventsourcing/persistence.py"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3544c134762cbb9e9d2622775a7eeff237de98d18832c5243a39ba51072854"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseInfrastructureFactory.construct (cognitive 23): BaseInfrastructureFactory.construct has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 2, loops 2, 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":"eventsourcing/persistence.py"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"99eab01a7309f286a473b12759cf882fb8452b76fa3e1f6a818bb2ba0da7cdf6"}},{"ruleId":"D2","level":"warning","message":{"text":"System.__init__ (cognitive 23): System.__init__ has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 8, 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":"eventsourcing/system.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6320ddcf18479bd808306fbc89280b5b56e659fc7a9ccbf3baad2db214a8d1c0"}},{"ruleId":"D2","level":"warning","message":{"text":"CommandMethodDecorator.__init__ (cognitive 22): CommandMethodDecorator.__init__ has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 4 (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":"eventsourcing/domain.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8f8f2137a53c7f5dc5d46f9c0cfffb64d2b65c0315d8925db362f464faf3d6"}},{"ruleId":"D2","level":"warning","message":{"text":"ApplicationRecorderTestCase.optional_test_insert_subscribe (cognitive 22): ApplicationRecorderTestCase.optional_test_insert_subscribe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, loops 9, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventsourcing/tests/persistence.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"f980261da0020885137d18cd4544778899265c15a650bb7c46f241195329ad1f"}},{"ruleId":"D2","level":"warning","message":{"text":"Application._take_snapshots (cognitive 20): Application._take_snapshots has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, error handling 7, boolean chains 2, 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":"eventsourcing/application.py"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"3352c7ec04caa8176ed26e71a3499438b5f046241c508a017538a74b493061df"}},{"ruleId":"D2","level":"warning","message":{"text":"Repository.get (cognitive 18): Repository.get has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 3, error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventsourcing/application.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"14dbc55ccf83f3e002926fcd7155cdeafcbdd757176f943ad942f5e8d335ddd1"}},{"ruleId":"D2","level":"warning","message":{"text":"ConvertingThread.run (cognitive 18): ConvertingThread.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 2, 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":"eventsourcing/system.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb5db7c899e48e91eefc7a999a0ca61704c204e6ce937654e47147cf5a147dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Cargo._ (cognitive 18): Cargo._ has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, 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":"examples/cargoshipping/domainmodel.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"960ab21b9f380df29de9b885f4cc9b585c94b3d5946030fe4ab5274162940f1e"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryDCBRecorder.read (cognitive 17): InMemoryDCBRecorder.read has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5, ternaries 4, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventsourcing/dcb/popo.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb11d77d60fa6ad98cecbf2047f9272b3b2b971141d4d9d29ea31f86d5cb47e"}},{"ruleId":"D2","level":"warning","message":{"text":"EnrolmentWithDCB.join_course (cognitive 17): EnrolmentWithDCB.join_course 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":"examples/dcb_enrolment_with_basic_objects/application.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81385fe80fb39330d911fbd77d33fb133652272ae018006c7210909952eda60"}},{"ruleId":"D2","level":"warning","message":{"text":"TestDocs.test_docs (cognitive 17): TestDocs.test_docs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 7, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/docs_tests/test_docs.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36e6f8d9252649b02743a09da36fbb3ce1835d3a0c6a987fb3fccaafc45a84d"}},{"ruleId":"D2","level":"warning","message":{"text":"dcb_speedrun.count_events (cognitive 16): dcb_speedrun.count_events has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 2 (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":"tests/benchmark/dcb_speedrun.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f653e06a13de258c5ff3ad680e1596f5c699c1b176d31a17a26824578d70e13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eventsourcing/domain.py: FileTooLong \u2014 1181 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":"eventsourcing/domain.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54bc61b6b368b514a75264ee6904a678311bf87c862301e008a37dc1736388b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eventsourcing/postgres.py: FileTooLong \u2014 1135 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":"eventsourcing/postgres.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01908374a52fb356190f07098ab8564286c95ad5156c8ee7442a3f36969aeb4c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eventsourcing/persistence.py: FileTooLong \u2014 980 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":"eventsourcing/persistence.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec54384e07a2f1e3f972fc47263fcc30a0e702b3b73a6507922734fcd251b4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eventsourcing/system.py: FileTooLong \u2014 818 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":"eventsourcing/system.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbe9fdb20f76e78ce6e6f708e69c771d2e9fe5822cbf6d7d599190cdd39bdd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eventsourcing/application.py: FileTooLong \u2014 675 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":"eventsourcing/application.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"515ef5b923ffc9c74fc01cecef8c056060b14cedb66d59c10515786dba5413c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: eventsourcing/sqlite.py: FileTooLong \u2014 644 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":"eventsourcing/sqlite.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"164865b14810e3b87bd6e511c46e3deecd1eb255a2aeca02a398af56b2440a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/dcb_enrolment_with_basic_objects/application.py:142-158 | examples/dcb_enrolment_with_basic_objects/application.py:182-198 \u2014 both copies are in the same file, so extract the block 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":"examples/dcb_enrolment_with_basic_objects/application.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9589d4f1b7eba2abaa98c0ebf86a88cbeda00f66fe46e1547824e7d30be60549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): eventsourcing/dcb/postgres_tt.py:675-688 | eventsourcing/postgres.py:844-857 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eventsourcing/dcb/postgres_tt.py:675\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":"eventsourcing/dcb/postgres_tt.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f2bbaeb9780afdc3d7245f01e5eaef399c2d17106791e4bd3f2a9038885648"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): eventsourcing/system.py:411-424 | eventsourcing/system.py:509-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":"eventsourcing/system.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"045e222e6d403f253ffda056c2e21b9e72fdcc166f6856ac655f3d36f157c019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): eventsourcing/system.py:634-647 | eventsourcing/system.py:803-816 \u2014 both copies are in the same file, so extract the block 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":"eventsourcing/system.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f820a4e9d899524f20688714c68798c1b1b6a2cdbb620249465d1d4fa8e5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): eventsourcing/postgres.py:1008-1019 | eventsourcing/sqlite.py:595-606 \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":"eventsourcing/postgres.py"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"8549df30023f575e3a37c1585a359d48b8741ae7ce740710396954f9b053b64f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): examples/shopvertical/slices/add_item_to_cart/cmd.py:29-40 | examples/shopvertical/slices/remove_item_from_cart/cmd.py:29-40 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"examples/shopvertical/slices/add_item_to_cart/cmd.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"646c550ffe088f5de9e7851947ea85232de9bc6ee8245bdf68377792a7d5ddc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): eventsourcing/domain.py:1811-1822 | eventsourcing/domain.py:1831-1841 \u2014 both copies are in the same file, so extract the block 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":"eventsourcing/domain.py"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb184338ab53aed791a135f1e1d637679fd7d4094a2bc80d8b7bc87768123f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): eventsourcing/postgres.py:1299-1309 | eventsourcing/sqlite.py:724-734 \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 \u0060eventsourcing/postgres.py:1299\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":"eventsourcing/postgres.py"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d229e5e71e6ae430902c75a50b7a376bd14374034c9a61a497e797ef8f424466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): eventsourcing/system.py:398-406 | eventsourcing/system.py:496-504 \u2014 both copies are in the same file, so extract the block 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":"eventsourcing/system.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63434d9f4d54f3a0411d3b000a6732077f5db84114a16c70e58f7e046bec0ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): examples/aggregate5/domainmodel.py:74-80 | examples/aggregate6/domainmodel.py:78-84 | examples/aggregate6a/domainmodel.py:143-149 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/aggregate5/domainmodel.py:74\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":"examples/aggregate5/domainmodel.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"da77a6044e340e09d7dc4c090dfb200e8fe2b35d16e1d771aa58750c1fb24620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): eventsourcing/application.py:144-149 | eventsourcing/application.py:170-175 \u2014 both copies are in the same file, so extract the block 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":"eventsourcing/application.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fecfeba52a90822f55ad3e15ac5dc2ab513bd0e1ec3260ebdd2affb63372df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: eventsourcing/domain.py: eventsourcing/domain.py changed 7 times in last 90 days, max complexity 83. 1 of those changes was a fix/bug commit, 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":"eventsourcing/domain.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2489cab50e99be89e3c77fdd411c9be8efafb2bc577e84b1f0d21ee8ee24fb"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 16 significant file(s) lose their only recent owner: eventsourcing/domain.py, eventsourcing/persistence.py, eventsourcing/postgres.py, eventsourcing/system.py, eventsourcing/application.py, eventsourcing/sqlite.py, eventsourcing/dcb/postgres_tt.py, eventsourcing/projection.py (\u002B8 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5724965eaa3c512a37566b93067ffeec79ce4c374be1c415ec883092bf605c0c"}},{"ruleId":"D19","level":"note","message":{"text":"The tutorial\u0027s table of contents lists only one part (\u0027tutorial/part1\u0027) but the body contains links to \u0027tutorial/part2\u0027 through \u0027tutorial/part5\u0027, so all five parts are present and not missing.: "},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/topics/tutorial.rst"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"377e7882c6c988140d37f8855af109dd4f951ede3d6f4c4a20c11e46b1ab0791"}},{"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":"1627e34ebf7a01f5da06b2cf9b8e931025dd9cc22cf1fdef8bc239856b4597b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"b153c52555460b349cd80ff26c75080d7c1fb42fb81bb0d316f839d070a57f5a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"fa7530d5d0249d0001527a0a4819f9004dcdb4268cf06840e57d0fa547e9cecc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"5a4019d804ed4aa8d9b4147639b4436e2937baf569c844c73c99cf7238a87e19"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: prepare-distribution.py, release-distribution.py, test-released-distribution.py: 3 files \u2014 \u0060dev/prepare-distribution.py\u0060, \u0060dev/release-distribution.py\u0060, \u0060dev/test-released-distribution.py\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dev/prepare-distribution.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a777842e912f29ace7c059ccc6c7283e2ac64953969ab5310e4ce88792b7d9ac"}},{"ruleId":"D38","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":"7e7168db88523bb09c73a7cb8368bc073457075b4e323dce0359c339f107e77e"}},{"ruleId":"D38","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":"a5c4dc29a19fda2a943e5873f8f315b5e0cb2b7c61ba349cf2805bbe9e77984d"}}],"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-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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":6,"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."]}]}