{"$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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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":"D3","level":"warning","message":{"text":"TooManyMethods: Sqlite: TooManyMethods \u2014 108 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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1dceed64ae5b806f5540f3e84021f2243b01fc684f41023c0dbcc05d3cdde7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: future/code.ex: FileTooLong \u2014 1521 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":"apps/forge/lib/future/code.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13a92a8dfd1f28d9bf89a22bd5cba75c04d72901edf11b851b16cc7321d462b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Beams: TooManyMethods \u2014 66 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":"apps/engine/lib/engine/search/indexer/beams.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"219c54dbddcacc03efbef47877b80506d1337c93e2150962968c5dd6abcd5b77"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Code: TooManyMethods \u2014 59 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":"apps/forge/lib/future/code.ex"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"afef9a113b71f1f59dfff5e36a384e0d34dfa9435b7e74b8e79a057765b7802c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: code/fragment.ex: FileTooLong \u2014 850 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":"apps/forge/lib/future/code/fragment.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a0ed8157233f7c844770d3d8cf63947ad80bbeedbf20bd98bee0dc6ad72249"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backends/sqlite.ex: FileTooLong \u2014 838 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":"apps/expert/lib/expert/search/store/backends/sqlite.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b2c415f088040b67049d0ce1137713b5573d6a2c0fbac5b5caba49f72e98d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tasks/format.ex: FileTooLong \u2014 781 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":"apps/forge/lib/future/mix/tasks/format.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d588976027d48545b83d79fb250b5e73e8ccec9489bcfed66bca8b4af59dbdc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Ast: TooManyMethods \u2014 40 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":"apps/forge/lib/forge/ast.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0063c0e9d084f3055ca6802b0f32c19d670d79faf3b8aaa30a0ba53380cb2c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Port: TooManyMethods \u2014 39 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":"apps/expert/lib/expert/port.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ce1b2d9904131f8e2950f744d2a0ddac4283d1e01edc421ca6db7e93aa08cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Store: TooManyMethods \u2014 37 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":"apps/expert/lib/expert/search/store.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce0af3e04e7fc76cd8c33b676b5d0b5ecb232bf472643f7b9ae552ac2f85a50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Fragment: TooManyMethods \u2014 36 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":"apps/forge/lib/future/code/fragment.ex"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3a958ff4756aee4645d3c08dbfcfdd8f9028028309d6e67879bfeda5808920"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: forge/ast.ex: FileTooLong \u2014 578 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":"apps/forge/lib/forge/ast.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07355d271043b69983840a231957c6f6cca8115828e2a6c6e45b540600eac32"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Paths: TooManyMethods \u2014 34 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":"apps/engine/lib/engine/search/indexer/paths.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4525133bb9ecc31e219d1e22d1e2a7791840538e3e834f50e108c3e194d6e4e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: indexer/beams.ex: FileTooLong \u2014 550 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":"apps/engine/lib/engine/search/indexer/beams.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"709597903c869d90969fdba2b2dec8b113c7bd39be9520a64c4a6b4d3c338900"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: translations/macro.ex: FileTooLong \u2014 535 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":"apps/expert/lib/expert/code_intelligence/completion/translations/macro.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b940158b7a11a1e60739509e8387eea60bac5e469cd69c9d503b2167cf40a379"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Project: TooManyMethods \u2014 32 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":"apps/forge/lib/forge/project.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa1f2e046346293b7b2c72492d1e77e0d452f4ac3d4a91c4203e00893eaf97d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Entity: TooManyMethods \u2014 31 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":"apps/engine/lib/engine/code_intelligence/entity.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0562b5164a66c31c10ef7d7bb37cdc729340c35215f18fb24c8e012a51c842ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:238-254 | apps/expert/lib/expert/search/fuzzy.ex:183-199 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c0fb3f6e6388aaabd058690c76af800a7fbfbe81dabdb39fae3e3d953216e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/expert/lib/expert/code_intelligence/completion/translations/module_attribute.ex:18-34 | apps/expert/lib/expert/code_intelligence/completion/translations/module_attribute.ex:48-64 \u2014 both copies are in the same file, so extract the block 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":"apps/expert/lib/expert/code_intelligence/completion/translations/module_attribute.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"787fedae17359edec558861775e38377097607ecce90a43c10bddf141a3b02c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/engine/lib/engine/search/indexer/extractors/module.ex:148-162 | apps/engine/lib/engine/search/indexer/extractors/module.ex:180-194 \u2014 both copies are in the same file, so extract the block 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":"apps/engine/lib/engine/search/indexer/extractors/module.ex"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb461e5f79c2c269a3b9531ca544ae4def8c96d003ba4f5816cafdc7ddb7740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): apps/engine/lib/engine/search/indexer/extractors/module.ex:98-110 | apps/engine/lib/engine/search/indexer/extractors/module.ex:148-160 | apps/engine/lib/engine/search/indexer/extractors/module.ex:180-192 \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":"apps/engine/lib/engine/search/indexer/extractors/module.ex"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"295f4ad80d5974552f43e1654702fdfb9eb22000ee527900f19c95a6e8022df8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/engine/lib/engine/modules.ex:61-73 | apps/engine/lib/engine/modules.ex:108-120 \u2014 both copies are in the same file, so extract the block 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":"apps/engine/lib/engine/modules.ex"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa860487998a9fa4b82162c639f98a00dc1392a259f6ea8d0ad1ceba076131e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:158-172 | apps/expert/lib/expert/search/fuzzy.ex:125-137 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2eb0e0fb78d679ea07b22ca5d3750a651b8a045c0b0f86867a078e78d0d526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:82-93 | apps/expert/lib/expert/search/fuzzy.ex:66-77 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b4cb1e29c08b32d48d1fc70244fa42f210567fed801cdad15217b5b72f0b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:167-180 | apps/expert/lib/expert/search/fuzzy/scorer.ex:161-170 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a4103a106f43c9555f8e598d4df5928ef406c48a9ecde4e6f58b66c1470276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:219-227 | apps/expert/lib/expert/search/fuzzy/scorer.ex:122-130 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8162d1aeb4b2f86378a22fec50b7e9b2e254cf7635a69f41258f6736d92d8055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:123-134 | apps/expert/lib/expert/search/fuzzy.ex:98-106 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"503b86b6ba4d35627fb26d086d361e1295b9c9357205bac836800b2e9bea50d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy.ex:361-369 | apps/expert/lib/expert/search/fuzzy.ex:276-284 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy.ex"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae04352a973e750d9614802b8ac1ef28443095b32123eb6b1b7015e5a7503889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/expert/lib/expert/code_intelligence/completion/builder.ex:46-54 | apps/expert/lib/expert/code_intelligence/completion/builder.ex:67-75 \u2014 both copies are in the same file, so extract the block 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":"apps/expert/lib/expert/code_intelligence/completion/builder.ex"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ffa1d96dbc386473f64939450647fb4f7dbb85c52c6ed436caff887c022c50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/engine/lib/engine/search/fuzzy/scorer.ex:106-113 | apps/expert/lib/expert/search/fuzzy/scorer.ex:78-85 \u2014 before extracting anything, compare \u0060apps/engine/lib/engine/search/fuzzy/scorer.ex\u0060 and \u0060apps/expert/lib/expert/search/fuzzy/scorer.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/fuzzy/scorer.ex"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b625264b4d11480ee70cda79b833a393bf90599864d56b08c014aba91020b6b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 11 significant file(s) lose their only recent owner: apps/engine/lib/engine/search/indexer/manifest.ex, apps/engine/lib/engine/search/indexer/paths.ex, apps/engine/lib/engine/search/indexer/extractors/variable.ex, apps/engine/lib/engine/code_mod/directives.ex, apps/engine/lib/engine/search/indexer/extractors/ex_unit.ex, apps/expert/lib/expert/code_intelligence/completion/builder.ex, apps/forge/lib/forge/epmd.ex, apps/engine/lib/engine/search/indexer/manifest_store.ex (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3b2008d4b140e0b50dbe355313d7f3c2cf2e05f9f2c0c46d90bc24b240f1f4db"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 4 significant file(s) lose their only recent owner: apps/expert/lib/expert/code_intelligence/completion/translations/macro.ex, apps/engine/lib/engine/code_intelligence/heex.ex, apps/expert/lib/expert/provider/handlers/code_folding.ex, apps/forge/lib/forge/document/line_parser.ex. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"be66f35e9b85ddec9973eb62d45160f84a65a9ab31a8e3cdfa9963a12b98f1e1"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (17 single-owned of 158 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/forge/src/future_elixir_tokenizer.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c33fae3464bd627308bbc2f1ae725029efe83d7a1c1e28d0a8bfbc1d43318b3"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 2 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (3 orphaned of 158 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: function_reference.ex \u2194 module.ex: \u0060apps/engine/lib/engine/search/indexer/extractors/function_reference.ex\u0060 and \u0060apps/engine/lib/engine/search/indexer/extractors/module.ex\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/engine/lib/engine/search/indexer/extractors/function_reference.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d2322b3d76684d8e0f53b49bcd358c3eb7811db0f4d36ebec18a5f855db5fd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: port.ex \u2194 build_engine.exs: \u0060apps/expert/lib/expert/port.ex\u0060 and \u0060apps/expert/priv/build_engine.exs\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/expert/lib/expert/port.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c09b6f6ddeff73eebc9921e0a0b0babc6a2c20f0607bac50078b40bd8949d3e2"}},{"ruleId":"D36","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":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","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":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}}],"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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.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":3,"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."]}]}