{"$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":"Driver.handle_call (cyclomatic 17): Driver.handle_call has cyclomatic complexity 17 (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":"lib/scenic/driver.ex"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5a28f925ffbccf676bcd0cfe48d50e759efaa296f99946ca5b93be8ea168c3"}},{"ruleId":"D1","level":"warning","message":{"text":"Sprites.validate_commands (cyclomatic 17): Sprites.validate_commands has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/primitive/sprites.ex"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"56df36a50ff0501e551bab01cb8bf18014e0390caaf6d15ad761b8e5ded8a17f"}},{"ruleId":"D1","level":"warning","message":{"text":"Dropdown.init (cyclomatic 16): Dropdown.init has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/component/input/dropdown.ex"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f886c27261141a687c5fc0b2753246ecbbf69792c1037700d9ac7caa907e1d"}},{"ruleId":"D2","level":"warning","message":{"text":"Sprites.validate_commands (cognitive 17): Sprites.validate_commands has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 15, if/else 1, match/switch 1. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/primitive/sprites.ex"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"630faf018cc3744b72e7278ea9c964eb2e0c846f0e103eb4a3f45c1c7175a47e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scenic/script.ex: FileTooLong \u2014 2379 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":"lib/scenic/script.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"420329aa305cf0c629264b3d74ad14d1ea69cfbc5bd5079d31e615f6c6901669"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Script: TooManyMethods \u2014 79 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":"lib/scenic/script.ex"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"126900169314bca22a6381605ff6e2d11f924cf0aac06959f23c459b51a33f51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scenic/view_port.ex: FileTooLong \u2014 1221 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":"lib/scenic/view_port.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53daadb60e05e0cec1c92a7faba5fc82f6d07c36a34a21614e0466dad304d4a6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewPort: TooManyMethods \u2014 71 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":"lib/scenic/view_port.ex"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"da83c6311c31eef3755a01e74569d49d2478551fd52a5916d06a70d4a8193527"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scenic/scene.ex: FileTooLong \u2014 1168 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":"lib/scenic/scene.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7a08312c3826337825ac1608e1267f60518ebb71d29bf3ab84799df20b351f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scenic/primitives.ex: FileTooLong \u2014 1006 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":"lib/scenic/primitives.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40ac9e3c76fb675bb0746557217a37d4b9ccfb6bd39805c7997462b0b439558"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scenic/driver.ex: FileTooLong \u2014 694 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":"lib/scenic/driver.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9dde8a8244ca42e80194dd881a22a4878813e0a28751ca5d12c88fd155e16b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Matrix: 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":"lib/scenic/math/matrix.ex"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"71473344c2d835188db3309bebc29bcccaf4afa7a15d8814f0d6e6913153ac15"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Primitives: TooManyMethods \u2014 38 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":"lib/scenic/primitives.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72430666473845a84d93a67d2da0fd72942f654172fba3f7a37ca572bbf3fbc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scenic/graph.ex: FileTooLong \u2014 565 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":"lib/scenic/graph.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"732d737457fbd40615e40d99b9abe6ccd2f91de4ea2f9e4fb3403081329fc1b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Graph: 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":"lib/scenic/graph.ex"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8b053f4e0cc971e83fa48e3acb01da36d87235e80a8ab5643048f8607b4013"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: input/text_field.ex: FileTooLong \u2014 521 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":"lib/scenic/component/input/text_field.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1ce2500e4ab5eb3a2a86732042d813f531a79f092a4b19ff83a323c05475a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Vector2: 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":"lib/scenic/math/vector_2.ex"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0018dfb4fae277ba4209432d1ba60646d6b22d65813254f3281c90c536c62c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: input/dropdown.ex: FileTooLong \u2014 504 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":"lib/scenic/component/input/dropdown.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1d74c1c9d026b51042307b9e24943d3e8b2bf97d85e9da7ab881b611f4637c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/scenic/driver.ex:629-645 | lib/scenic/driver.ex:673-689 | lib/scenic/driver.ex:703-719 \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":"lib/scenic/driver.ex"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7b49677b433e38e7d5f3b893b83862188a122778af356ac2aed0772a5da929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/scenic/color.ex:473-484 | lib/scenic/color.ex:533-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/color.ex"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84ad76b17c6761247ed358e272df3191bc2b7d3d8e7f49247989eb6eff5e943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/scenic/component/input/dropdown.ex:203-214 | lib/scenic/component/input/dropdown.ex:349-360 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/component/input/dropdown.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"518210935e8cb6e58a049f20813bffd11d99e058e8df8a37b1a69e12a8aff86c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/scenic/script.ex:1830-1840 | lib/scenic/script.ex:1866-1876 | lib/scenic/script.ex:1946-1956 | lib/scenic/script.ex:1982-1992 \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":"lib/scenic/script.ex"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"622abfe956fc9668c6eefd975b73212e3a073fd518fd25b44a367f0c76e048ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/scenic/component/button.ex:191-201 | lib/scenic/component/button.ex:244-254 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/component/button.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"134924bbd1a8cd8c3eaed32f309462990d8e77427193b71f7b565e65889f1e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/scenic/component/input/checkbox.ex:94-104 | lib/scenic/component/input/dropdown.ex:193-203 \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":"lib/scenic/component/input/checkbox.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"007fd823acab252a721a18fb4c596c5a8c7f00f8b07ab8d526a059cfd349392e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/scenic/component/input/dropdown.ex:126-136 | lib/scenic/component/input/radio_group.ex:106-116 \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":"lib/scenic/component/input/dropdown.ex"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38e8d20d644bd71ac3fb20e435cd2db86473da92d1f39f2c2f7a2bedc6e4696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/scenic/scene.ex:1387-1396 | lib/scenic/scene.ex:1421-1430 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/scene.ex"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc8b558e0bfc6ff9168c826b0803d0a42afdf96d0550fe46e39652e0d998796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/scenic/component/input/dropdown.ex:543-551 | lib/scenic/component/input/dropdown.ex:585-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/component/input/dropdown.ex"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9c1f9d61b520b4d8e72a2ee4d855775c37cb05de6ddb4e6af11110359c10df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/scenic/component/input/dropdown.ex:580-588 | lib/scenic/component/input/dropdown.ex:705-713 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/component/input/dropdown.ex"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25ca292f1d7c2e1d08eb163b6249b55eac88f4864b15b456850b6a5d9ab3e54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/scenic/script.ex:1526-1534 | lib/scenic/script.ex:2298-2306 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/script.ex"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"440b76da0dbefa9bb20b03016d3b362d7c7b42414e01837901acaeb168e722da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/scenic/script.ex:1645-1653 | lib/scenic/script.ex:1785-1793 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/script.ex"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef8f727aefacb812cf3e04478a94e1b81c9abf432136010edce4614671e89e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/scenic/script.ex:1436-1443 | lib/scenic/script.ex:1528-1535 | lib/scenic/script.ex:1690-1697 | lib/scenic/script.ex:2300-2307 \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":"lib/scenic/script.ex"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b10fb11df38d15bc57ce59895fac414d6c1a54bcb0665c52fe2c60aa8a68df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/scenic/script.ex:1422-1428 | lib/scenic/script.ex:1435-1441 | lib/scenic/script.ex:1557-1563 \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":"lib/scenic/script.ex"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4a472fedf5e43002a31c4898ad23e17679f62f3b92ccbb513b2baf78f17db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/scenic/scene.ex:1455-1461 | lib/scenic/scene.ex:1469-1476 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/scene.ex"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a41191bb19f273a9f58b9271e48367f5bd3a11174c16bc6125caede015b7a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/scenic/script.ex:1676-1682 | lib/scenic/script.ex:1689-1695 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/script.ex"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"74794282cb915204e1e46549393404ec450ebade9dbd6a1cedb30df509c5fefa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/scenic/component/input/checkbox.ex:174-179 | lib/scenic/component/input/radio_button.ex:140-145 \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":"lib/scenic/component/input/checkbox.ex"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffa05b8ba2ceb6b62d4bfb3581040e4ad598f3a049f5c140325be808af4276e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/scenic/math/matrix.ex:245-249 | lib/scenic/math/matrix.ex:250-254 | lib/scenic/math/matrix.ex:255-259 \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":"lib/scenic/math/matrix.ex"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcd1ff3199d1eb81ab5831ba616cb1670256ce7033e71b0f6bdcaf7e981b00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/scenic/graph/bounds.ex:426-430 | lib/scenic/math/vector_2.ex:487-491 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/graph/bounds.ex"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b56e4de7d05ee6c1a0d5db7f947d3e70f04d543a1366214011d72eb7f42f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/scenic/math/matrix.ex:256-260 | lib/scenic/math/matrix.ex:355-360 \u2014 both copies are in the same file, so extract the block 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":"lib/scenic/math/matrix.ex"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d02ad63379dfeb60161e709b3625e645e94ee405845af916fd97cf497eac609"}},{"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":"c8012c42d297dc9578a0981eaaa3ed7c6e73ed5aa3dc41882e27c10ca099fea5"},"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":"33481d65436b8c4d4966093c756a5171f447c98db75da061478225b3b933918f"},"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":"66547d01684e92101f7d2ffc32a4e8d5b1cc84079cdee9a5236f6ed281bb9909"},"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":"45873b5190c1f7db843a906de8be07b6ff9ede22df47c6fd905a2a8ef6f783ed"},"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":"D34","level":"note","message":{"text":"Dormant codebase: 54 of 56 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 54 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/script.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1835084d9fc10a6400dfae07d18fcb0e394ad29d839bcefa049b775720a0fd"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/view_port.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea25daaaac355a397ee54a9925078c45f78b70f2f84e3c623056d0c1cc709158"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/scenic/scene.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb8997330fae87696f1d83980fbe3e68ecede18dcf73ac22fa64a1aaf7493cb"}},{"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":"3ca3a6bb3145bcf27fc2353dbf967e495a6f4b6fdb4ee13d50aa64d28278079e"}}],"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":5,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}