{"$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":"Parser.update_date (cyclomatic 66): Parser.update_date has cyclomatic complexity 66 (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/parse/datetime/parser.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"a926e030137e4dfad7b3118bae1155a41d949066769c1016bb5719ac05b75b7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.update_date (cognitive 69): Parser.update_date has cognitive complexity 69 (threshold 15). Drivers by points: match/switch 45, if/else 24 (nesting depth added 33). 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/parse/datetime/parser.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"23585c34de3d40fc445716cd23d1b83944e2d23c94a9cf59471791f84d6bbe8e"}},{"ruleId":"D2","level":"warning","message":{"text":"Convert.convert_map (cognitive 23): Convert.convert_map has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 18, if/else 5 (nesting depth added 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. 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/convert/convert.ex"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacd0f3a15619a0fc7a9fb6df5f30faff4f26c3ee003348ce1ac74849d4e5f69"}},{"ruleId":"D2","level":"warning","message":{"text":"Local.localtz (cognitive 16): Local.localtz has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 11, if/else 5 (nesting depth added 7). 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/timezone/local.ex"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69ce47ed3e5a6764c6d52d21a7d31aa52bf3c13e75ac73fb5233ea8c726f95a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/timex.ex: FileTooLong \u2014 1555 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/timex.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28931ceb4b44f84d2b26d9b67aa9bbd13b9dba83aa5de30837f7f022ed0e116e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Timex: TooManyMethods \u2014 54 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/timex.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2feabc15c187002578f58da341a3aee1dea09b2a2bd556ef0db4e786796f28"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Parsers: TooManyMethods \u2014 51 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/parse/datetime/parsers.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff86a6103f8922ae35915724c1f1cfeaf71110afe5850bc8af55c45f24167403"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Duration: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/time/duration.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5460ab3f4dfbc4e1f2e155b79419f4ac460149b4b28cf61c0aa62904509b1c88"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: datetime/formatter.ex: FileTooLong \u2014 710 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/format/datetime/formatter.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4037603449ae1a667d8e0a77d3349f4d154b12f95ac96bbc5798b38e8feaccb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: timezone/timezone.ex: FileTooLong \u2014 602 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/timezone/timezone.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"227139eec4c0d6722395f5ecd22e10e4519dc65b2bee8761d8015f2962d4bf14"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Parser: 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":"lib/parse/zoneinfo/parser.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a9e912d925e80bab4d270680a39c6b8c5ce2efb9f987a12d140ba66b63cf87"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: datetime/parsers.ex: FileTooLong \u2014 580 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/parse/datetime/parsers.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94060da5f7be8f34a2bfbdeafdde863f132a2329222b132ba7819daac0bd6bed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: time/duration.ex: FileTooLong \u2014 562 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/time/duration.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c9319397919e37fb38cbf19258610491aceacd19d261c44d5ecdfdb991362f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): lib/parse/datetime/tokenizers/default.ex:47-82 | lib/parse/datetime/tokenizers/strftime.ex:46-80 \u2014 before extracting anything, compare \u0060lib/parse/datetime/tokenizers/default.ex\u0060 and \u0060lib/parse/datetime/tokenizers/strftime.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/parse/datetime/tokenizers/default.ex"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80780607a5e6c4357c041de0965beef6d47e97a1996fa5e8d0a1890a4f34a5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/parse/datetime/parsers.ex:9-24 | lib/parse/datetime/parsers.ex:33-48 | lib/parse/datetime/parsers.ex:63-79 \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/parse/datetime/parsers.ex"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e710a87701c23afef7f4ef02e9019e8c2c045c8ffb8c35d9edec8743c16134c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/parse/posix/parser.ex:164-177 | lib/parse/zoneinfo/parser.ex:428-441 \u2014 \u0060lib/parse/posix/parser.ex\u0060 and \u0060lib/parse/zoneinfo/parser.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 5 separate duplicated blocks between them, totalling at least 56 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/parse/posix/parser.ex"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea9358d3c4a8100f5243e580b0623ed99e0a6b9d2d0d09d9a84672199284c6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/parse/posix/parser.ex:229-241 | lib/parse/zoneinfo/parser.ex:493-505 \u2014 \u0060lib/parse/posix/parser.ex\u0060 and \u0060lib/parse/zoneinfo/parser.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 5 separate duplicated blocks between them, totalling at least 56 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/parse/posix/parser.ex"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c923ca7256c53ec1852a37165647d4c2aa7d187e1b5607f585e3b01d6b60ad40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/parse/posix/parser.ex:249-261 | lib/parse/zoneinfo/parser.ex:513-525 \u2014 \u0060lib/parse/posix/parser.ex\u0060 and \u0060lib/parse/zoneinfo/parser.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 5 separate duplicated blocks between them, totalling at least 56 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/parse/posix/parser.ex"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fa90b4db49a63f52ad29011267358dac07261226014c0682610338cfcf6ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/datetime/helpers.ex:58-69 | lib/datetime/helpers.ex:87-98 \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/datetime/helpers.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a8a1b109bc72d387b91fdfa09fbe1dd6d990330855ace8f782dfce975644d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/datetime/helpers.ex:70-80 | lib/datetime/helpers.ex:84-94 \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/datetime/helpers.ex"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cd27a9c83768092a446b5f40bc6438b3c66fc3cfb3461380fd75658d4ed7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/parse/posix/parser.ex:210-220 | lib/parse/zoneinfo/parser.ex:474-484 \u2014 \u0060lib/parse/posix/parser.ex\u0060 and \u0060lib/parse/zoneinfo/parser.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 5 separate duplicated blocks between them, totalling at least 56 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/parse/posix/parser.ex"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf3db4ae4796daf981c9da268f8356cf566d8a57241081de7ce2a124a9aa837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/parse/datetime/parsers.ex:374-383 | lib/parse/datetime/parsers.ex:616-625 \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/parse/datetime/parsers.ex"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"36af1d7eebe64423e993de24cfb3d6e4a99708b8a48ef3b1cbd6e2379addfdf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/parse/datetime/parsers.ex:521-529 | lib/parse/datetime/parsers.ex:541-549 \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/parse/datetime/parsers.ex"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"832ace5dee0b232f8ba30973e6ebd6d04ab15aad524df328e09fe90434903ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/format/datetime/formatter.ex:569-576 | lib/format/datetime/formatter.ex:590-597 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/format/datetime/formatter.ex"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc2360e8791ce146d644b3443df163fe48f34a86318b118b145bf65f1ac729d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/parse/datetime/parsers.ex:562-568 | lib/parse/datetime/parsers.ex:596-602 \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/parse/datetime/parsers.ex"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"41818d110edfe761ace0a17edb1ff8cd71e2665b185976b81d9d441750742fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/timezone/timezone.ex:310-316 | lib/timezone/timezone.ex:373-379 \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/timezone/timezone.ex"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"923cbc0841b734e61eb1a038d0363692eeafc18438e98eee1a65ba03701e1989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/l10n/translator.ex:68-73 | lib/l10n/translator.ex:84-89 | lib/l10n/translator.ex:120-125 | lib/l10n/translator.ex:141-146 \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/l10n/translator.ex"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16b8bdfde1f92d9266f64fb994c7fc1ae4ed13da82a1951e4577fb127c6241f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/format/datetime/formatter.ex:211-216 | lib/format/datetime/formatter.ex:243-248 | lib/format/datetime/formatter.ex:342-347 \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/format/datetime/formatter.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b64520590cd84e882339289a57884cc6f294a07765b63cee1085f8b0dc3c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/format/datetime/formatters/relative.ex:35-40 | lib/parse/datetime/tokenizers/default.ex:23-28 | lib/parse/datetime/tokenizers/strftime.ex:21-26 \u2014 before extracting anything, compare \u0060lib/parse/datetime/tokenizers/default.ex\u0060 and \u0060lib/parse/datetime/tokenizers/strftime.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/format/datetime/formatters/relative.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1318ce36887477dcf6de9b1925507ecf172c3f5105e22fcc4e9a62010752858f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/parse/datetime/parsers.ex:293-298 | lib/parse/datetime/parsers.ex:366-371 | lib/parse/datetime/parsers.ex:603-608 \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/parse/datetime/parsers.ex"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"822356d05ea5ccac2a5f96e53f0ea16c2121e9767d316629812420e1dd0fa424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/l10n/translator.ex:97-102 | lib/l10n/translator.ex:159-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/l10n/translator.ex"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1712095c91b592349d75691f02b8c2ab1396bfdcd3dc275e5743af0a568319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/parse/datetime/tokenizers/default.ex:166-171 | lib/parse/datetime/tokenizers/strftime.ex:176-189 \u2014 before extracting anything, compare \u0060lib/parse/datetime/tokenizers/default.ex\u0060 and \u0060lib/parse/datetime/tokenizers/strftime.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/parse/datetime/tokenizers/default.ex"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ef59f5c9215fab9489872ef254692db85ca4c0aa4a1c93f0a10e04a2bdf43c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): examples/tokenizer/humanized.exs:38-42 | lib/format/datetime/formatters/relative.ex:35-40 | lib/parse/datetime/tokenizers/default.ex:23-28 | lib/parse/datetime/tokenizers/strftime.ex:21-26 \u2014 before extracting anything, compare \u0060lib/parse/datetime/tokenizers/default.ex\u0060 and \u0060lib/parse/datetime/tokenizers/strftime.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/tokenizer/humanized.exs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8f2fbb1662236cda67088178526dfdca31e082b0092e6a476b454b44050366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/parse/datetime/parser.ex:458-462 | lib/parse/datetime/parser.ex:470-475 \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/parse/datetime/parser.ex"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de16e0ada7cc0210f7053f285fbaa7e35153fda06c68db75bdba15c4384b48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/parse/posix/parser.ex:337-341 | lib/parse/zoneinfo/parser.ex:601-605 \u2014 \u0060lib/parse/posix/parser.ex\u0060 and \u0060lib/parse/zoneinfo/parser.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 5 separate duplicated blocks between them, totalling at least 56 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/parse/posix/parser.ex"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd04407f4a918c0f6f3b0eb168aa392ee4ed5853ebe8f18eb2b76468cf119ce"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 37 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so 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":"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":"89b55c0ab1270719f29aee1d7cca8258d2a38e4614522f786cbc5f595e932b8c"},"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":"ad811f63aefcbe46cc4fdf27e48d1bc5033e327cbfd1945de8a2fc0c328c961e"},"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: 44 of 44 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 44 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/timex.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"726978972276dde4a7a872f71c5ca3a33747f4369aa2a276c43cd2d79cc6bda6"}},{"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/format/datetime/formatter.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"115a31e0e373615de1aec7bb099db213c5579409e15ec76ccd2367ede81f0c8e"}},{"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/time/duration.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaeb09b32956c028d956ad21d24729b2ee96dc1115b9c9f8e37ff85b247330ed"}},{"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":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."]}]}