{"$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":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","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"]}},{"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":"D2","level":"warning","message":{"text":"Form.build_item (cognitive 23): Form.build_item has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, match/switch 4, boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/form.ex"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"58acc156336791d63748eda48e797066f28e629d5f6d99c7c50fe3d0eec835ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Form.theme_build_has_many_fieldset (cognitive 23): Form.theme_build_has_many_fieldset has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, match/switch 4, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/form.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"da867b284f881d9e6fae84dc07fd87a28e3e1eb3cdbc3e22799a11bb1e24b2dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Form.theme_build_has_many_fieldset (cognitive 22): Form.theme_build_has_many_fieldset has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, match/switch 8 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/admin_lte2/form.ex"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b179ebae45587715866ca31f93a81c52301db7fdec74d14590aacd0b07741784"}},{"ruleId":"D2","level":"warning","message":{"text":"Index.batch_action_form (cognitive 17): Index.batch_action_form has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/index.ex"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab0f487ad9eb06a8edacceb52a7eb774d2cc2590d1ad1a71c2534b405707980"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ex_admin/form.ex: FileTooLong \u2014 1441 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/ex_admin/form.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48629cd080534fefd87bb1f267c2ad25847bcaf375fa097b7a55e4d408ab1894"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Form: TooManyMethods \u2014 56 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/ex_admin/form.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f38771c69748459e9254c10c9e65776585578355dcaabd37665b3b961f2d16"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ex_admin/register.ex: FileTooLong \u2014 875 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/ex_admin/register.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b36bdbe9e95cf1f7fe4a02c3721d9bce401df169b1aefcdc443658a04b9cf6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Helpers: 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":"lib/ex_admin/helpers.ex"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"196fd9006013941c9f74067ea12a7b6d08b0da449b4b3dd92315bba19cb8eddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ex_admin/themes/active_admin/index.ex:202-221 | lib/ex_admin/themes/admin_lte2/index.ex:193-212 \u2014 \u0060lib/ex_admin/themes/active_admin/index.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/index.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/index.ex"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d06b2a8b185166fb0935840585f372763b69f013ef50a85b7accddc7c6c0bdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ex_admin/table.ex:211-229 | lib/ex_admin/table.ex:237-255 \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/ex_admin/table.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"6332b77ccfa7be8a416ae58c9faa1da2170c07167fe0737d74a2af6e2412dc2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ex_admin/themes/active_admin/index.ex:150-168 | lib/ex_admin/themes/admin_lte2/index.ex:141-159 \u2014 \u0060lib/ex_admin/themes/active_admin/index.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/index.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/index.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddbaa73347e4b728b8b29498e5d11ddafe8581e1af86e5fec3bb81073e88aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ex_admin/themes/active_admin/index.ex:286-303 | lib/ex_admin/themes/admin_lte2/index.ex:248-265 \u2014 \u0060lib/ex_admin/themes/active_admin/index.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/index.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/index.ex"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67d77a774205e65721530a07d1c2f49729e6a4c4f9ce6e2f5c6214ecd26937e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ex_admin/themes/active_admin/index.ex:57-72 | lib/ex_admin/themes/admin_lte2/index.ex:56-71 \u2014 \u0060lib/ex_admin/themes/active_admin/index.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/index.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/index.ex"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"714fe34af4ad36fc6985a9f670047c51c4215efae17b8ad15d7aea8bc727e121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): web/views/active_admin_view.ex:74-88 | web/views/admin_lte2_view.ex:77-91 \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":"web/views/active_admin_view.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47080efe2a925dc3a4507badf2813b57095087f6eba0f74d5fe33767b4d7078"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ex_admin/themes/active_admin/filter.ex:141-154 | lib/ex_admin/themes/admin_lte2/filter.ex:203-216 \u2014 \u0060lib/ex_admin/themes/active_admin/filter.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/filter.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/filter.ex"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8b75dbdd97c036bde0da5e84495cf8d7a268bd412556809e21af025ff7cd97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ex_admin/themes/active_admin/filter.ex:187-200 | lib/ex_admin/themes/admin_lte2/filter.ex:248-261 \u2014 \u0060lib/ex_admin/themes/active_admin/filter.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/filter.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/filter.ex"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb334c92848fb4e13281e4cf0c00dd8e921c4c642c393d57617dd1fae0fa16f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ex_admin/themes/active_admin/form.ex:18-30 | lib/ex_admin/themes/admin_lte2/form.ex:18-30 \u2014 \u0060lib/ex_admin/themes/active_admin/form.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/form.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/form.ex"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b589f29b1d71f6a7be8fe4032c4868699e7c56e1332724d71068c36df45910ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ex_admin/themes/active_admin/form.ex:265-276 | lib/ex_admin/themes/admin_lte2/form.ex:272-283 \u2014 \u0060lib/ex_admin/themes/active_admin/form.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/form.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/form.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e9bdc17e25a5fa9dd5288e52118f99b1c0b39b28b9c5392a9623401e3b2d32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ex_admin/helpers.ex:317-327 | lib/ex_admin/view_helpers.ex:61-71 \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/ex_admin/helpers.ex"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"3563821caaf63221d00db8780487de732088939b2a69cbc67b195872ed28cb8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ex_admin/themes/active_admin/filter.ex:169-179 | lib/ex_admin/themes/admin_lte2/filter.ex:230-240 \u2014 \u0060lib/ex_admin/themes/active_admin/filter.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/filter.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/filter.ex"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d874d1cfd5b308edce8dfa76cd58c38856ab09811ade89fc81a5ee06f13c289"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ex_admin/themes/active_admin/index.ex:120-130 | lib/ex_admin/themes/admin_lte2/index.ex:111-121 \u2014 \u0060lib/ex_admin/themes/active_admin/index.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/index.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/index.ex"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed8ffabf5d027da7f2e722d6d23c39d7621f6c437439194cbf196d91c9c0c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ex_admin/form.ex:1123-1135 | lib/ex_admin/form.ex:1204-1212 \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/ex_admin/form.ex"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b481321d0ec3bbe114e0a41dd3ed6b89795a1418a2f5a229d99d473b3060345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ex_admin/themes/active_admin/form.ex:182-190 | lib/ex_admin/themes/admin_lte2/form.ex:177-185 \u2014 \u0060lib/ex_admin/themes/active_admin/form.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/form.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/form.ex"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe5992674f5352179b387cc3bb802e7106b3b5b189b019e4f38830331de9a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ex_admin/index.ex:336-343 | lib/ex_admin/index.ex:376-383 \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/ex_admin/index.ex"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"b526bb7e4816034ef738d84ce7d4d4d639a3ce4a7de1f63845cab367eda59e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ex_admin/table.ex:80-87 | lib/ex_admin/table.ex:98-105 \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/ex_admin/table.ex"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ebf7c9cb8edeabe77527ee8cbdd035f59693290c877c2a0ab5e674114c4a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ex_admin/themes/active_admin/index.ex:26-33 | lib/ex_admin/themes/admin_lte2/index.ex:25-32 \u2014 \u0060lib/ex_admin/themes/active_admin/index.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/index.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 92 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/index.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"683988f5dd54d9a630a9fd914c3160ec0a8f94c758076fa0670578ec1df1eae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ex_admin/themes/active_admin/form.ex:376-382 | lib/ex_admin/themes/admin_lte2/form.ex:399-405 \u2014 \u0060lib/ex_admin/themes/active_admin/form.ex\u0060 and \u0060lib/ex_admin/themes/admin_lte2/form.ex\u0060 are the same file name in two sibling directories, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ex_admin/themes/active_admin/form.ex"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"009027501d912edf5917a21218b778e2dadfea7147c0f62c0ba793a483ce73bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): web/views/active_admin_view.ex:94-100 | web/views/admin_lte2_view.ex:97-103 \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":"web/views/active_admin_view.ex"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5525d514d66f2851864ade509d06f4d08b6c7de0a43a2a57a6a2fe60972a7f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ex_admin/show.ex:415-425 | lib/ex_admin/show.ex:459-464 \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/ex_admin/show.ex"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e0b929143fe5e8f6c5366eba6e444bdfe11612ba6d6c400de0c75073d9f173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/mix/tasks/admin.install.ex:119-123 | lib/mix/tasks/admin.install.ex:154-158 \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/mix/tasks/admin.install.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dd992990aa2d4c67cd60d794862ee6ce85ad144ed1c54d33b40946f7c0e2c9"}},{"ruleId":"D13","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":"51a4794cf20cfad63d58bf27b658cdae057529f207f0c754d3a26509c101fef6"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: Every one of the 31 significant source file(s) was last meaningfully changed so long ago that no living knowledge remains, so there is no concentration to measure \u2014 the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D28","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":"8996e2a15b15b4df60dd1288996b768b86e0a2fdd447c673befa8baf42a7d7a6"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 31 of 31 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 31 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/ex_admin/form.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5c3485577d240f88df88fcc283d9aaa0fff606047dcdf4a4c63f678593e074"}},{"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/ex_admin/register.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c128cc898c9e91b5e7cd2040384514aad4da7cefedc0a318b16c061811a136ed"}},{"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":"76997f6f800861a02d6e015add78631ef804feaab4e28eac349fda9ba179fca8"}},{"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"}},{"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":"4930bcb47d7052d1e76d052976611b9e631e64df2abdf7538feb518aa6a1e5ee"}},{"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":"57939e6c2a896e506b5494220c2e6e138c4761ec6a7fe1550f76e72ca62793c8"}},{"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":"02f653e77f2ef04e30d929258fa8121148ff1f1ff3695c15f89999db0d4ba505"}},{"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":"5388d352b02c67e570302efad706957601d97532ac6924127c39d72a7cfdfaaf"}},{"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":"a1d093a25aa7b6521a295d036e0fcdad59418a9a91cff996fc0a56b9eb96c537"}},{"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":"f02b40a3f4904b9e0bf6ec0885dc653a95d046735673b7a39ca27d7fba193dc7"}}],"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-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-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":11,"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."]}]}