{"$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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"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":"D1","level":"warning","message":{"text":"protocolV2.messagePump (cyclomatic 40): protocolV2.messagePump has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"03274f14d7a1ecc482d61cc6688df8f7db4ed1b35c7d13b8d4e0e3c0792db843"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 34): main.main has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ed51dcf039ef10b65f529ef32cd9921aa09fdb66d1ee1118f76c50f345dc34"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 31): main.main has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_nsq/nsq_to_nsq.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ce0668a583e708e28dbc9533160419464f7e5827182ac4d6cc8d4071649433"}},{"ruleId":"D1","level":"warning","message":{"text":"nsqd.New (cyclomatic 31): nsqd.New has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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":"nsqd/nsqd.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eea04d403ec4e1c1c0e4c0e927ecea274dc6b20b262800263b3f9958d3cc5f0"}},{"ruleId":"D1","level":"warning","message":{"text":"protocolV2.IDENTIFY (cyclomatic 28): protocolV2.IDENTIFY has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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":"nsqd/protocol_v2.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb186cdc95c43402b6415a16a997979eeb9463798fb25cc1e2d073485b13e0d"}},{"ruleId":"D1","level":"warning","message":{"text":"nsqadmin.New (cyclomatic 25): nsqadmin.New has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/nsqadmin.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5a4fb2cc5db4f2fc84d1c6b140d48a6a9cb3c68ecf7b16469a5a5f1405bdad"}},{"ruleId":"D1","level":"warning","message":{"text":"Topic.messagePump (cyclomatic 25): Topic.messagePump has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/topic.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ed89145f20ede2e39887e41c37375988cd751a41a7bb6d623d5b347e46294b"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 21): main.main has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. 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":"apps/nsq_to_file/nsq_to_file.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd60fb25a4465eacff91564d35ef124c9e405efb5253d973ab98a00c18b972e"}},{"ruleId":"D1","level":"warning","message":{"text":"main.subWorker (cyclomatic 21): main.subWorker has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e54f56022081cca2a6b4ed2a87d31f1eefa1b17aeebb029df01524d543941ed"}},{"ruleId":"D1","level":"warning","message":{"text":"NSQD.lookupLoop (cyclomatic 21): NSQD.lookupLoop has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/lookup.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b93c75a289b9047078e755aae82800e0dd8729facd456d02dcd86983a7062361"}},{"ruleId":"D1","level":"warning","message":{"text":"FileLogger.router (cyclomatic 20): FileLogger.router has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7df57d687b010ed5cbf93a672a6ae19d94b03a640c82423778baecaab30a5d3"}},{"ruleId":"D1","level":"warning","message":{"text":"main.subWorker (cyclomatic 19): main.subWorker has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_reader/bench_reader.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebda7b9ff438d62634c788d889a4ddb3ca9ba4c02284b6e15d3d709866907ce1"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 18): main.main has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/to_nsq/to_nsq.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"079b46ae78fd91784693ea94800eac16a0d0efb7e1d74eabea9ce8885c147cd8"}},{"ruleId":"D1","level":"warning","message":{"text":"NSQD.statsdLoop (cyclomatic 18): NSQD.statsdLoop has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/statsd.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"820f1fd9c54229b0dd60a738cf9f38326ef5949839ace30e930fe7d07e511dc6"}},{"ruleId":"D1","level":"warning","message":{"text":"Channel.flush (cyclomatic 17): Channel.flush has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce183b5cc022f845af9d6a6090073cfc9b2df0f2010951a96e2f6b012492a24"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 16): main.main has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_tail/nsq_tail.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"355e60f0b08b06b62eb71a15e75aa69ecf9ecee08b24222753ab139088ab9048"}},{"ruleId":"D1","level":"warning","message":{"text":"FileLogger.updateFile (cyclomatic 16): FileLogger.updateFile has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4b4f33daf0f1b0ed0ec046642d3175688c9af45a3cc63b66bb0aa8ec7b9a7f"}},{"ruleId":"D1","level":"warning","message":{"text":"httpServer.doMPUB (cyclomatic 16): httpServer.doMPUB has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc95860b7c5353c3763985bc0f5d94f3fb724bcfca5c5144f75a95274e6f5533"}},{"ruleId":"D1","level":"warning","message":{"text":"protocolV2.IOLoop (cyclomatic 16): protocolV2.IOLoop has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f2737ad2935d36423d8a65cb3da63a549819cbddb65c449da4e3a93fb4a6f5"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.messagePump (cognitive 79): protocolV2.messagePump has cognitive complexity 79 (threshold 15). Drivers by points: if/else 66, jumps 6, boolean chains 4, match/switch 2, loops 1 (nesting depth added 40). 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":"nsqd/protocol_v2.go"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5956345c2b29f0d8ffbcff5ac715a709f93d3ed516bb891cd738b6533b35dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.statsdLoop (cognitive 57): NSQD.statsdLoop has cognitive complexity 57 (threshold 15). Drivers by points: if/else 26, loops 26, boolean chains 2, match/switch 2, jumps 1 (nesting depth added 40). 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":"nsqd/statsd.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"785d4fd47698a8155dc2f89a4306b761e7e05094596035be225a877849a62d16"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.lookupLoop (cognitive 52): NSQD.lookupLoop has cognitive complexity 52 (threshold 15). Drivers by points: if/else 33, loops 13, match/switch 5, jumps 1 (nesting depth added 33). 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":"nsqd/lookup.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c78ff11a8e70d01aca78e37836fd196e6d366141589483b766b006a57631d9"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogger.router (cognitive 41): FileLogger.router has cognitive complexity 41 (threshold 15). Drivers by points: if/else 33, loops 5, match/switch 2, boolean chains 1 (nesting depth added 25). 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":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3c3a9efdca66457105a1a117d7b3bf0a976639cd889e67292a61ebd7cd102d"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 41): main.main has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27, boolean chains 6, loops 5, match/switch 3 (nesting depth added 8). 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":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de10d6ab030fae2b16279c705d9cd075b70098e930cef17ac6918dba6516bba"}},{"ruleId":"D2","level":"warning","message":{"text":"Topic.messagePump (cognitive 38): Topic.messagePump has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21, loops 8, match/switch 4, boolean chains 3, jumps 2 (nesting depth added 17). 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":"nsqd/topic.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e1af01bb4b0d09aeac2800f755f2679649c0d99123337720d41058ba539d06"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 37): main.main has cognitive complexity 37 (threshold 15). Drivers by points: if/else 22, loops 10, boolean chains 4, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_nsq/nsq_to_nsq.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"8113680ccf254976344254a764de198416378b80c74ff5595867c15eec282d22"}},{"ruleId":"D2","level":"warning","message":{"text":"nsqd.New (cognitive 36): nsqd.New has cognitive complexity 36 (threshold 15). Drivers by points: if/else 28, boolean chains 7, loops 1 (nesting depth added 6). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b64d07b02da2ef157c3453c369efdfd75d0a6a8b657d0b8f3c3cdbf7dd88ce2"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.IOLoop (cognitive 36): protocolV2.IOLoop has cognitive complexity 36 (threshold 15). Drivers by points: if/else 34, boolean chains 1, loops 1 (nesting depth added 19). 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":"nsqd/protocol_v2.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e318f684d6ca0c75e07a72febf3123381c3b8fbb4d2a8975d1a0a9f9fbb056aa"}},{"ruleId":"D2","level":"warning","message":{"text":"main.subWorker (cognitive 34): main.subWorker has cognitive complexity 34 (threshold 15). Drivers by points: if/else 33, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5d2814455200648878b9a31a7f9d829ab70ffba35ef25e350a986d7b436ce8"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.GetNSQDStats (cognitive 33): ClusterInfo.GetNSQDStats has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, loops 10, boolean chains 1 (nesting depth added 19). Most of this is not in the body itself: 3 of the 33 points are its own statements and the rest belongs to one function literal inside it that branches (line 560). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b99835bdb4b0b7e2c20657702262cf2d6cebf714cae623509c52ec5b08ce9a9"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.IDENTIFY (cognitive 33): protocolV2.IDENTIFY has cognitive complexity 33 (threshold 15). Drivers by points: if/else 28, boolean chains 5 (nesting depth added 6). 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ac51fff126cb7df2a55ada4d606b000efbf5306595b352dc604c1b82b7d979"}},{"ruleId":"D2","level":"warning","message":{"text":"httpServer.doMPUB (cognitive 32): httpServer.doMPUB has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, loops 2, boolean chains 1 (nesting depth added 16). 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":"nsqd/http.go"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e12bcc529b7edb2be0731b2cb17a49ad23f6acbcaef46c061ae5171a284892"}},{"ruleId":"D2","level":"warning","message":{"text":"nsqadmin.New (cognitive 31): nsqadmin.New has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/nsqadmin.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e33a6df98126513e7c103c0f23e12a839473a5afd37204a729f6262d6740c9d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogger.updateFile (cognitive 29): FileLogger.updateFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, boolean chains 2, loops 1 (nesting depth added 11). 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":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e90302daa65ba181b29b79d0196222be526d54f2a8995205a79e2c9ab50e85"}},{"ruleId":"D2","level":"warning","message":{"text":"main.subWorker (cognitive 28): main.subWorker has cognitive complexity 28 (threshold 15). Drivers by points: if/else 27, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_reader/bench_reader.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f38f5e14553a282f3fdae6cc2d22aa73488da3a74392c2c07338594292b26a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.GetNSQDTopicProducers (cognitive 28): ClusterInfo.GetNSQDTopicProducers has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, loops 5 (nesting depth added 17). Most of this is not in the body itself: 3 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 456). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa83006e9e7b3cd71eebfb739be2b115e0735bb3d6aaf2a3565db79a087210ca"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 25): main.main has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, loops 4, match/switch 1 (nesting depth added 8). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 93, 76). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/to_nsq/to_nsq.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdad9b36d2734de78c8dd01bb0a053a99e2f934943da2f723ccf1f7e3ffb5d82"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.GetStats (cognitive 25): NSQD.GetStats has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, loops 12 (nesting depth added 11). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"nsqd/stats.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e96168e90348033d63ec5574738ff0e8e670a9250a8918101a54195d4ca6e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupProtocolV1.IOLoop (cognitive 25): LookupProtocolV1.IOLoop has cognitive complexity 25 (threshold 15). Drivers by points: if/else 22, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/lookup_protocol_v1.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"06307e17c07e3716edefcab6d8220aae4f1a69cf0f8060700a699bef513693e4"}},{"ruleId":"D2","level":"warning","message":{"text":"auth.QueryAuthd (cognitive 24): auth.QueryAuthd has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 5, match/switch 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/auth/authorizations.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce65568de0b68d1f9cda12d76becf657fc6bcd6cbef0256e7d820c1b8d59a11"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.LoadMetadata (cognitive 23): NSQD.LoadMetadata has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3789e62aaa281d0b4e5890038b5304f1d4e20e8cb67fa714f0da63afbb34b26"}},{"ruleId":"D2","level":"warning","message":{"text":"httpServer.doConfig (cognitive 22): httpServer.doConfig has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, match/switch 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaff8f6bd5913d64ce566cb020258f7dac53e4bf7604c791e14495f649d776b0"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 21): main.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 5, loops 1 (nesting depth added 1). 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":"apps/nsq_to_file/nsq_to_file.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f839ec601b1f4f5a96261c229b04320c889d065638791338a286cfc93097f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Channel.flush (cognitive 21): Channel.flush has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 3, match/switch 2, boolean chains 1, jumps 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a0afff89236964a1d2cc162ad6ced01c6d2a8ac4e7c70350ba50333f7f6df7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.CreateTopicChannel (cognitive 20): ClusterInfo.CreateTopicChannel has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e33a71dd5cd1add953e323d7788d34afa1d9b57f07705b0f1be18be8db76211"}},{"ruleId":"D2","level":"warning","message":{"text":"httpServer.printStats (cognitive 20): httpServer.printStats has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 8 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b7cfe1a641eed9755e4a6322eb6d4661c71e90b19bdb0d7939882128b1bd97"}},{"ruleId":"D2","level":"warning","message":{"text":"FileLogger.Close (cognitive 19): FileLogger.Close has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_file/file_logger.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b615da32fedab5440ecd5247288e7d1bc81c4a41b3befe488fff43ad2212d5"}},{"ruleId":"D2","level":"warning","message":{"text":"NSQD.queueScanLoop (cognitive 19): NSQD.queueScanLoop has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 5, jumps 2, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f798759c288c268a7b62644ce6c9453c534678a808905a3b030ebd2ce41dfb10"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupProtocolV1.UNREGISTER (cognitive 19): LookupProtocolV1.UNREGISTER has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/lookup_protocol_v1.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86de6ce94f7f0c51faf2b823453650962f04e35d8672060491951fe65a8559a"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 18): main.main has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_tail/nsq_tail.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9009c10b8ce5c77d610d62dcd421c2cc54f51022b5bf879b042a1c7b3f965a"}},{"ruleId":"D2","level":"warning","message":{"text":"PublishHandler.shouldPassMessage (cognitive 18): PublishHandler.shouldPassMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_nsq/nsq_to_nsq.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f3a0c50d4a5ec0f8c6f6ea8e9165fc62966ea77845c05b2ffc0b68ec3a2cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"main.pubWorker (cognitive 18): main.pubWorker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, loops 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":"bench/bench_writer/bench_writer.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4991aa697196a4ad530a4464ba0f7fdc6449d5e53e75e3962f3e1822da73a15a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterInfo.GetLookupdProducers (cognitive 17): ClusterInfo.GetLookupdProducers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 4 (nesting depth added 8). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 185). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ead88057a99a4c6edcf9726d071c30481ff0bbe548ba7bc2c43b558fb73f85"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.POSTV1 (cognitive 17): Client.POSTV1 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, jumps 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_request.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"55efefba29a981942961de0bcfed6c9f906e4254d2686fdf0c51e5b24286f23d"}},{"ruleId":"D2","level":"warning","message":{"text":"protocolV2.SUB (cognitive 17): protocolV2.SUB has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"295a176079125d95cc9e7fa4aab32ed6287e5f17e69c0d0b79369451a3b7a25a"}},{"ruleId":"D2","level":"warning","message":{"text":"config.Validate (cognitive 16): config.Validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 5). 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":"apps/nsqd/options.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f85e72748be06fc3dd9e28f73552dfe165dab41b32dd3199dcd8ea92b956e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nsqd/protocol_v2.go: FileTooLong \u2014 672 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":"nsqd/protocol_v2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"074a1567b72c6b77d13fb3d12545b072a75ed3f43c37ef3cb0e031f2d7797c7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: clusterinfo/data.go: FileTooLong \u2014 601 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":"internal/clusterinfo/data.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2855384b153c5f2ef2b23235375b2b6a085a2b6c21d5a2bf780711e67e2dc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nsqadmin/http.go: FileTooLong \u2014 598 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":"nsqadmin/http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b59ce87f9d93b5ea115d6cd95e9bfccab4cc31eab2a18d980979996a1eb860"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Channel: 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":"nsqd/channel.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0385d862d2e07055fd94bb7f4c15b0e92040e375edc6bf7ce90fc6ce19de43a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NSQD: TooManyMethods \u2014 31 methods, declared across 5 files: nsqd/nsqd.go (26), nsqd/lookup.go (2), nsqd/logger.go (1), nsqd/stats.go (1), \u002B1 more file(s). That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"nsqd/nsqd.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bcd3ac4d815dc623d3c6a4022f761c8346a0e6593f8a8d988540ced9bb1d0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: nsqd/client_v2.go: FileTooLong \u2014 506 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":"nsqd/client_v2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"419ec7210d9c69995415b1e3bd06aa03b71cd945ae6fc7e26a319edc35fe6f31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): internal/clusterinfo/data.go:344-365 | internal/clusterinfo/data.go:433-454 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0eee4ac89298c2573e494314f5fd7f0957c11e995c1d45280aebe2fb94861e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): bench/bench_reader/bench_reader.go:45-58 | bench/bench_writer/bench_writer.go:48-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/bench_reader/bench_reader.go:45\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_reader/bench_reader.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"57212ee5372c456cbfcbc11cfdf3067fb20a737d10b131c0bd16d41f76dc6e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/http_api/api_request.go:60-73 | internal/http_api/api_request.go:114-127 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/http_api/api_request.go:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/http_api/api_request.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3b8c119fa4b91d73a2ddaef58ce822191bf94cbf55748bd651f54d7aa36317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/clusterinfo/data.go:89-101 | internal/clusterinfo/data.go:189-201 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa35201f5834fcdfaa899c72a460aaf67d8fec763338ef8a28e527809d7c2520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/clusterinfo/data.go:103-115 | internal/clusterinfo/data.go:152-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc2568d24ce1bf0a4964fd55b0bd336c212d6bb303e45144be53a7d7a700fbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/clusterinfo/data.go:138-150 | internal/clusterinfo/data.go:256-268 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3d90e4822be30bd96f4b1e6e01a198b3c199afb1c5f7a3ac4d4d94fc7715a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/clusterinfo/data.go:310-322 | internal/clusterinfo/data.go:576-588 \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. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"df45645cce0d9d53fd470abe7393547237073a45412a907c48730d01ffdd15fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/clusterinfo/data.go:670-682 | internal/clusterinfo/data.go:763-775 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:670\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc838c284be2847d83eade0a2e4c4a1774857ed6be3c0b0bf507457c313e083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nsqadmin/http.go:834-846 | nsqd/http.go:686-698 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqadmin/http.go:834\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d534fd164479cfe0feda225408524f829d51686a4326ff6b1cabb5cc41bddf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): apps/nsqadmin/main.go:96-107 | apps/nsqd/main.go:41-52 | apps/nsqlookupd/main.go:70-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/nsqadmin/main.go:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsqadmin/main.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d3e9fd81ed5392db01690f4d3b15156db22d7148d57737717d08b5231496ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): bench/bench_channels/bench_channels.go:67-78 | bench/bench_reader/bench_reader.go:97-108 \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":"bench/bench_channels/bench_channels.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7dcdb594e6fd14cfe4ccac16bf9baf90d6173ba8033f720db3c996530f109b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/clusterinfo/data.go:191-202 | internal/clusterinfo/data.go:258-269 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/clusterinfo/data.go:191\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5db27751cdd71e506612b3311e127c04e0c3d46bd80c98ae718670b9c047b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/clusterinfo/data.go:737-749 | internal/clusterinfo/data.go:778-789 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/clusterinfo/data.go"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be4adc9def7dedccc97b367aac72d93059da4d052451a032529190b482d6a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nsqd/channel.go:125-136 | nsqd/topic.go:68-79 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/channel.go:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efff2669c2a2ce97cb0d5380fbefdab93b2a86f47be8783047a256f92426996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nsqd/http.go:413-424 | nsqd/http.go:488-499 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/http.go:413\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"db46e3e9ed5e8f2b8d128f6cac60e1494732414cfd0f3b0bc85df26f3c7ce0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nsqd/nsqd.go:258-269 | nsqlookupd/nsqlookupd.go:55-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/nsqd.go:258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7acb83a82652efd08dde4b4d0527c239b524eab16887c5d8a0913976561cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/nsq_to_http/nsq_to_http.go:130-140 | apps/nsq_to_http/nsq_to_http.go:152-162 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/nsq_to_http/nsq_to_http.go:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/nsq_to_http/nsq_to_http.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"52029be45cbe23526fe732610342ccf263f58f5b8041e357de3f6de0bddaf4b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/clusterinfo/data.go:387-397 | internal/clusterinfo/data.go:465-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":"internal/clusterinfo/data.go"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff44a2e67e64ccc143f4c939533b98817e9ac09a6727caf89a0b0f0a55ceada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/clusterinfo/data.go:406-416 | internal/clusterinfo/data.go:509-519 \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":"internal/clusterinfo/data.go"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ee5eb3b3fe76ddde3f4760f439e525cd73e77cdcb106672d187ce5aade3883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nsqd/nsqd.go:766-776 | nsqd/nsqd.go:786-796 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/nsqd.go:766\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/nsqd.go"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd2dd5e28667efe11390f8847a06a70950aa92416084832ed2c302efdf26c89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): nsqlookupd/http.go:89-98 | nsqlookupd/http.go:106-115 | nsqlookupd/http.go:154-163 | nsqlookupd/http.go:180-189 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/http.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0ac78365d2786e0ec4d03b9212977126820a9b0c46b3578b8fdd746b4a4ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): bench/bench_channels/bench_channels.go:83-92 | bench/bench_writer/bench_writer.go:115-124 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060bench/bench_channels/bench_channels.go:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78109bb299f0f163771b909a7fdfa1e2733f239955dd48bef1d187885b2b607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nsqd/http.go:350-359 | nsqlookupd/http.go:133-142 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/http.go:350\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1aca5d0d78c35a511fec134744c74e9370b709df5ee66bc89b0e19cc66dbbc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nsqd/http.go:378-387 | nsqd/http.go:398-407 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/http.go:378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d3597a17e87164503269ea14c5e50bdee47b2fabde5a07ce6a84b138709689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nsqd/protocol_v2.go:501-510 | nsqd/protocol_v2.go:514-523 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/protocol_v2.go:501\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/protocol_v2.go"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c98fda68b77de7870a451e11f6561c60f29965a6424a70742c36d473a87540"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nsqlookupd/http.go:208-217 | nsqlookupd/http.go:230-239 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqlookupd/http.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"06224d01b5cc55d5146a95e301b2a9734138f5d26e356476972890566f120c8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): bench/bench_channels/bench_channels.go:42-50 | bench/bench_reader/bench_reader.go:72-80 | bench/bench_writer/bench_writer.go:75-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9eb848725c85495ff7332f0e6250e2d82027d756c695f61ed28c07971744b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): bench/bench_channels/bench_channels.go:54-62 | bench/bench_reader/bench_reader.go:86-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bench/bench_channels/bench_channels.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f2316e1f63071567869a2cc0a9ff2758592e0b0a1a2b3cf03e5a835cbf6c94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nsqadmin/http.go:790-798 | nsqd/http.go:656-664 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqadmin/http.go:790\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f29be91f8a9a82628897ed2e36967932bf5818166e7415d79b4b19bf125aad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nsqadmin/http.go:66-74 | nsqd/http.go:45-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqadmin/http.go:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb211570faba43394cd3e5322ed1617a882db37d4e25676149d05d6850a7318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nsqadmin/http.go:778-785 | nsqd/http.go:644-651 \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":"nsqadmin/http.go"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f980dff96789e3b4f155d4a02b54e9f9f242435a0521bd2bb2d871f14130459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nsqd/http.go:43-50 | nsqlookupd/http.go:21-28 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/http.go:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d47dacaaeab2420694b46027516c9f071f0caded622a95da3e21529cf1d516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nsqadmin/http.go:272-278 | nsqadmin/http.go:312-318 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqadmin/http.go:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a212b258b982f0d20190b37348d58bb1311088ae20d5e2e5c198afa1d39241f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nsqadmin/http.go:462-468 | nsqadmin/http.go:578-584 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqadmin/http.go:462\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbd378d69bde0b2eca80a92dfb26b228d13b047dda6100a931475e62ecd6bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nsqadmin/http.go:319-324 | nsqadmin/http.go:665-670 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqadmin/http.go:319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqadmin/http.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24d5009812df5441263b93d50f1f256a5636d3d056e5285e11a16a9f348e1c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nsqd/channel.go:117-123 | nsqd/topic.go:62-67 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/channel.go:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/channel.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81dd5eb349a92e21cdb1b4fb2a99ba0be27ef5d12c3da6fedbec0c140adddcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): nsqd/http.go:223-228 | nsqd/http.go:642-647 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nsqd/http.go:223\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nsqd/http.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8bd2f0bab2033656e15933f1f37bde1b884c6f7962e27658038890274e7dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nsqd/http.go:81-85 | nsqlookupd/http.go:52-56 \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":"nsqd/http.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b16c6fc2b4a68bd248c5049e3aa9eb9d8f5663c7fb44bca60bb7405367e65a6"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 35 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":"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":"2b882ffdbf18255b61b407b8d76423257457279ab393029fb7e320e2b18200d6"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"920227652f5085ff02d59e50a6aea77ba654f5e6806ce78cba6deb4ebb141863"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"063f774149f6771aa86cc7410756a5e88d141a17cbfa1b27c6575e9436c8b04e"},"taxa":[{"id":"CWE-322","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"9d16f92eaefa603327aa93cecf032d776d724b82b3e9f266bfa23e3a6196b619"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"0a0b93d629370f31bc1eea2b56e1573dc639652e4f938a62bffa689199f64544"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"c480d529768f24767c35c96836b37e684e3b73cc977d4cf952d2bc1f4addcf29"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"fa1a1f96ffd11c47e1cd44221385496f702103b9ef3dd795e3a08fef81627f01"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"913957a312d49aceae5660135375af154c948e677ed71d4fe6b9f256daf3a429"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"d8ed1ec3774333443c949bd593c8ce34d2e408631a45babd1ea4e2b0a1b0580d"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"6c8c35f650e532aaed63e74424b35b6d7044d45209de786efad97cc448c0b400"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"a2467d95a43a52fc692cbcccdb71b5cee98401cabd563977616e94ad5ae8b207"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"4c27f7af9d56a6a3d069102239a7819b42bdc4c4a70a954d2df08f0dffc03d1c"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"81b7b122dd29fa300cc907bb6c67190012ccd02c5ea06ad02dcacb4f073ceaf0"}},{"ruleId":"D31","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":"becbc5502f94878197b05d70c7ef15f1353fd99a90efcb824b9c43f11ae5ce7a"}},{"ruleId":"D31","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":"ae2dfb06bfe0dcadfc949c881aa237cb2a4aac5b1cc69adf101d9e003549ef46"}},{"ruleId":"D31","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":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"D31","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":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D34","level":"note","message":{"text":"Concentrated knowledge decay: 30 of 37 significant files have no living knowledge, while the repository is still being changed at a low rate (3 commit(s) in the last 90 days) \u2014 so this is one repo-wide knowledge-decay state, not 30 separate risks. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"008bd8d3156a7f5206da709f59f1f87af76671c6b9becea72c8c9cffbcbd4f8e"}},{"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":"nsqd/protocol_v2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde2e47151ff69db3956b3a9e78935aae27fada67e2c91e05b0862ac6783cab9"}},{"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":"nsqadmin/http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6075549527c8f70a676240619f682bcda4989ad10038bc128257859c47bc4d33"}},{"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":"internal/clusterinfo/data.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d52e260d9422e1d546437b07db486abc55244ed406fc504f2cfbb56603ba4f4b"}},{"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":"c79a20c588139dbdf795cc17ac0d1761b25bde04e27aeb0572e3fceab543a262"}},{"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":"0112f08ec6a2b9613052805286360a6d4e67b392f11f9ef805d46da5cb94164c"}},{"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":"746771d447ce041fe02ed015b742460d16fd535e8e1d1ca6057c2a411c00a683"}},{"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":"d1692fe8ce50a116b39dc01301522abfc8dd4549cd07313753630c12b76d0a40"}},{"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":"a3119d0ff06698ea12af37a160151a5f5113d7d9984d1c0227d564818eebaecb"}},{"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":"07517a86f70737ba69f59533ae93d360d1dabffebb325e1c7f294ff75d921718"}},{"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":"585ee1278688ad1d191ef83a44afebb1132255f5d5c877eac51722f100a21082"}},{"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":"a1d19629c1b9f6138b07ab987c13f7e4a95433a275032dfa3755fb01ef6e720b"}},{"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":"8cc02480c02953f908f7a6eaa7c367a8811119e5bf7e012e676a7b7136dbbe1f"}},{"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":"3d0b8e9f84f2babcf70e30a6a81576d1c5e90f2723caf7fbc35dd902f201d874"}},{"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":"2f27367f8cbd897e571f49c717316fa0b53e327d73cb9d34191b285bba816ccf"}},{"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":"49fe82d561ec5c3372f004339ae3ebf544cefc83858ede5a22b257e509c8b360"}},{"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":"362166b9071f43567ea22d6e7aec3ad4daa8de914c18da363e90137693047bf3"}},{"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":"e36825e89c05d61dc826be3cb173972d8100ffaba3ce9fba7e83b770ff182465"}},{"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":"60b3ad33d20821efb25d504a27091c7c1ce726c90be4cafbeddadb53be6f38f3"}},{"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":"ab5ae4ff580499a1fd11555dedf6c5ed0c2572110c60b3b07a809e081af6fcab"}},{"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":"3a202b44193c707af045064fc579a7630205b09149a91de67dc6a78c4a0d149d"}},{"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":"a12b06bcbeb791d58cb440d825042003948b8f0bceec0c1af655876c8ac2ea41"}},{"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":"0ed3059bf92da9927e761a3d63e74ae2c4d8a64ea8cf25ec067bd0950666a20f"}},{"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":"d90b9457d85816bbab31bf632d98718caea21f51ff17575833a5191757c5874b"}},{"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":"15068192dc9a76f130329270a19f628518d25a2af3c1c0194077d0c646fde9f3"}},{"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":"3fa106eb0b99b9c4ffcfa04f8359921c4d8a4b1b3f42f3d30fb6987efb9f1672"}},{"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":"08d6193a00493c5fb0fcd7810e5d910527757404fb9233a00ca84d3631d002f2"}},{"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":"8b41e472d522d9177323c9f04ef5cb4261e6f38363f9d0d96c3d101d014c367f"}},{"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":"168beddd0bd90810e6b49dda6677a8887e42ee9637794c7ce69cad7c4449848b"}},{"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":"5a340d1652f7b21e4d1df3893d116b5ff8f400bb864f7d1f1fcdf9211549b694"}},{"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":"c385a60f626b5a77747659e97c8555e93fc6a1845dfc9865c9865fe984bf5834"}},{"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":"8f875a31a8da37773cd2c46247bfe5475786b8bf191c95c224d7cb1f9caa9098"}},{"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":"8fdf17203c4f438c0e363268df3ca3a37097e138995253eed671c079f22e8b83"}},{"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":"c6e0392ee754ebfa7d5cb25ee3cabd0ef2cc657097ff34124e1bd794d0eeae2a"}},{"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":"5a5651c89f9ca7260df0984eb185f25b0d0741bdd6cf593f89d80a387e6a4938"}},{"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":"626e01eacf94c3b3382809ff8a91277880813d4497b12c2cdcf28b0d8c94458b"}},{"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":"7460c438003ba38c6f4cd4e92132c52739859f05c0ed7c23e36fe0418e97247e"}},{"ruleId":"D38","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":"459f39c90ad11bfd908362ce0b2cbc298a33db847515ef8e23390cd2aad9e0af"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-242","guid":"5c147e5c-be37-b051-9928-764ef5a8f3d3","name":"CWE-242","shortDescription":{"text":"CWE-242"},"helpUri":"https://cwe.mitre.org/data/definitions/242.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-322","guid":"f9bcce90-227a-d056-9902-7b1c2f9f299c","name":"CWE-322","shortDescription":{"text":"CWE-322"},"helpUri":"https://cwe.mitre.org/data/definitions/322.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"CWE-327","shortDescription":{"text":"CWE-327"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"CWE-338","shortDescription":{"text":"CWE-338"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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":52,"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."]}]}