{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}},{"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":"Server.serveConnCounted (cyclomatic 117): Server.serveConnCounted has cyclomatic complexity 117 (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":"server.go"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"218ba86f2d523d7f6154b76a4f47a572ba45989059007b140e7d533c390fb942"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHeader.parseHeaders (cyclomatic 40): RequestHeader.parseHeaders 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":"header.go"},"region":{"startLine":3126}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b27cd3b61d609a1ffff2b49d4c2602e805720d5ea1fc8b69792ce74ed2e1af"}},{"ruleId":"D1","level":"warning","message":{"text":"fsHandler.handleRequest (cyclomatic 38): fsHandler.handleRequest has cyclomatic complexity 38 (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":"fs.go"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a96996cea9cf344518b9479e2198196cee22b9a6305482cae24fe85a2626bb"}},{"ruleId":"D1","level":"warning","message":{"text":"Cookie.ParseBytes (cyclomatic 34): Cookie.ParseBytes has cyclomatic complexity 34 (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":"cookie.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23cc4ccce52f316d41573fe7a5ff4655e0077034db239552169c2ec914b2244"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponseHeader.parseHeaders (cyclomatic 34): ResponseHeader.parseHeaders has cyclomatic complexity 34 (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":"header.go"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed798aaf5799ab4091334619a4ed2898afccfbe84625e8566cbc368781fefee7"}},{"ruleId":"D1","level":"warning","message":{"text":"transport.RoundTrip (cyclomatic 33): transport.RoundTrip has cyclomatic complexity 33 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. 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":"client.go"},"region":{"startLine":3236}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2bdb6ed02dfd58b4df49645a381873cc2a4e8790eb3e9006fc2304283b535f"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.isBadTrailer (cyclomatic 30): fasthttp.isBadTrailer has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"header.go"},"region":{"startLine":2732}}}],"partialFingerprints":{"codehealthFindingId/v1":"8320bc005a4a363f477e1b60b5be61c6bbc39a544c9396a7900379e5b4dd7007"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.parseRFC1123DateGMT (cyclomatic 28): fasthttp.parseRFC1123DateGMT has cyclomatic complexity 28 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bytesconv.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba9eefebd17046db63025d4cc8272e0e0a2ab82cbd73be4e7bcbaf54fcee11c"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.validateIPv6Literal (cyclomatic 27): fasthttp.validateIPv6Literal has cyclomatic complexity 27 (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":"ipv6.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f17d3dfdfb033b7e1571e7e2bed6857ce2d1cf29f246f7ad51cfa8e1a9c3c8f"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttpadaptor.NewFastHTTPHandler (cyclomatic 27): fasthttpadaptor.NewFastHTTPHandler has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to one function literal inside it that branches (line 54). 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":"fasthttpadaptor/adaptor.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72757a658f51abc1469f81a2770d9a7c19afed46abc3e9242ec4a36b28db293"}},{"ruleId":"D1","level":"warning","message":{"text":"pipelineConnClient.writer (cyclomatic 25): pipelineConnClient.writer 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":"client.go"},"region":{"startLine":3031}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebbc09b0b6595aa5a637672c8859dc75229d4aee8cc738b517bb21a0576fd23"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.VisitHeaderParams (cyclomatic 24): fasthttp.VisitHeaderParams has cyclomatic complexity 24 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"header.go"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6d2dfc423bcc80beb9106f4ed4f627400a5352ce523eceade14f10fdaf55e7"}},{"ruleId":"D1","level":"warning","message":{"text":"Prefork.prefork (cyclomatic 24): Prefork.prefork has cyclomatic complexity 24 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 7 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":"prefork/prefork.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1415956ae56f5e17d18f010e2b6dc6d42cc9d5f1bfc9d0d208222ae29a69c64"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.unescape (cyclomatic 21): fasthttp.unescape 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":"uri.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d2203b9cdbacbe9bed8c3f4fc2db8274cb08bd6891f7bbec8999d6873f67f5"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.normalizePath (cyclomatic 21): fasthttp.normalizePath 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":"uri.go"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cc5d26e54fcc6be52efd28503787cb5a19e27d8d510765dec674568bae30c9"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHeader.AppendBytes (cyclomatic 21): RequestHeader.AppendBytes 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":"header.go"},"region":{"startLine":2594}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6666a4db96d33ce86a21fe12b7140e4104d7162d2f58dcb11dc1cdc3d6ea24d"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.parseIPv6Hextets (cyclomatic 20): fasthttp.parseIPv6Hextets 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":"ipv6.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"681a39f869259e5736255d8cae98dd6d96e972da935e59548b3b4ecc91dc409f"}},{"ruleId":"D1","level":"warning","message":{"text":"HostClient.AcquireConn (cyclomatic 19): HostClient.AcquireConn has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"client.go"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e3e2283c5a3319e155dee7c7b9bea2e73b8b648b5c4e4d7cfa3d23e15aac05"}},{"ruleId":"D1","level":"warning","message":{"text":"Dialer.getDialFunc (cyclomatic 19): Dialer.getDialFunc has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. 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":"fasthttpproxy/dialer.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c5c0daf0bcacdc70b67d5406b946a270a1e5836d1fac6be3c2cd85c3ce6338"}},{"ruleId":"D1","level":"warning","message":{"text":"Request.MultipartFormWithLimit (cyclomatic 19): Request.MultipartFormWithLimit 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":"http.go"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb422f4821dbd501a0c18cea278f1b66865e72a3161f4f6274dab9d519fccb39"}},{"ruleId":"D1","level":"warning","message":{"text":"HostClient.Do (cyclomatic 18): HostClient.Do 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":"client.go"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fbcb4e18cd3f8eedbf3d005a8c911a29624ce472a205c975b72650bd6acb52"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponseHeader.AppendBytes (cyclomatic 18): ResponseHeader.AppendBytes 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":"header.go"},"region":{"startLine":2458}}}],"partialFingerprints":{"codehealthFindingId/v1":"83eb035df65d522ad89e137473c2b828c80f6a01330111fb484adc49957d4ddc"}},{"ruleId":"D1","level":"warning","message":{"text":"Request.Write (cyclomatic 18): Request.Write 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":"http.go"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbe81d0ed09b63de51e5204a02b6fb0ebf516f95ebf8dfcc42b4bd4cce3c0fe"}},{"ruleId":"D1","level":"warning","message":{"text":"requestStream.Read (cyclomatic 18): requestStream.Read 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":"streaming.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df0e27feb046a6b20ddbdfc50e3a5224057b2faf5565581004f89d9cf57de98"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponseHeader.All (cyclomatic 17): ResponseHeader.All has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 1078). 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":"header.go"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26e24dd0f84447302172f02ca72947e063ee73aeb697715de28c6e84bd61f7b"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponseHeader.setSpecialHeader (cyclomatic 17): ResponseHeader.setSpecialHeader 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":"header.go"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"821ba382c299cbba146ff4a33c630f086bb80bc573c5f3d36e89a0737037290f"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHeader.All (cyclomatic 17): RequestHeader.All has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 1234). 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":"header.go"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"2654150e38d163b5baa1e98ba3ba2774112bf760268a440fb9e2ea96836f7a67"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestHeader.setSpecialHeader (cyclomatic 17): RequestHeader.setSpecialHeader 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":"header.go"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf6c1339cced164d90a61688583cedb425da54bc56a0e247346c6a88958faf4"}},{"ruleId":"D1","level":"warning","message":{"text":"Response.writeBodyStream (cyclomatic 17): Response.writeBodyStream has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"http.go"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d0ce74955f5009dcb62cf82e08a665f83773e1873b5569c9ddc4c72d59311f"}},{"ruleId":"D1","level":"warning","message":{"text":"URI.parse (cyclomatic 17): URI.parse has cyclomatic complexity 17 (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":"uri.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ee5b90450014be48016babdad695ba245a5513353f3a4bb6221e3730d58617"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.decodeCookieArg (cyclomatic 16): fasthttp.decodeCookieArg has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cookie.go"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38d6624e0a2664f274fc74736a3ebea28c28d8b178a2a2140e1902ecff05d76"}},{"ruleId":"D1","level":"warning","message":{"text":"fasthttp.parseHost (cyclomatic 16): fasthttp.parseHost 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":"uri.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1493a4f2fd7519496e489dc8a6286e85e44c48282652baffac5f676acb71bd44"}},{"ruleId":"D1","level":"warning","message":{"text":"ResponseHeader.parseFirstLine (cyclomatic 16): ResponseHeader.parseFirstLine 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":"header.go"},"region":{"startLine":2797}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eaf8449c2aa5770d81b9ad7ac3fed27b3926178c2b9fe79541661dbe18c6633"}},{"ruleId":"D1","level":"warning","message":{"text":"headerScanner.next (cyclomatic 16): headerScanner.next 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":"headerscanner.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"988c216b37c048157e1fe90e7502eaef0be757a5d8311c565bb16bff362bdc43"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.serveConnCounted (cognitive 290): Server.serveConnCounted has cognitive complexity 290 (threshold 15). Drivers by points: if/else 267, boolean chains 17, match/switch 5, loops 1 (nesting depth added 175). 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":"server.go"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c3d64e8a96d9d1bb984c0d6fcf9aa6385ef54802eea626f5ad402180a7f683"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHeader.parseHeaders (cognitive 100): RequestHeader.parseHeaders has cognitive complexity 100 (threshold 15). Drivers by points: if/else 90, match/switch 4, boolean chains 3, loops 3 (nesting depth added 64). 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":"header.go"},"region":{"startLine":3126}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b93708ea06139df5caa2ae086dac7bf34803935e72907e6f1331dcc386f7fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Cookie.ParseBytes (cognitive 97): Cookie.ParseBytes has cognitive complexity 97 (threshold 15). Drivers by points: if/else 84, match/switch 12, loops 1 (nesting depth added 72). 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":"cookie.go"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d75dc51524fda66d4b098f9687babd5816560f3ef979bd3055c9643d8c57b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseHeader.parseHeaders (cognitive 85): ResponseHeader.parseHeaders has cognitive complexity 85 (threshold 15). Drivers by points: if/else 78, loops 3, boolean chains 2, match/switch 2 (nesting depth added 54). 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":"header.go"},"region":{"startLine":2979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c20e06160ce7c1c771de984c92650fa1f721fc1e1f1e55ae3a73a2a25319c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttpadaptor.NewFastHTTPHandler (cognitive 57): fasthttpadaptor.NewFastHTTPHandler has cognitive complexity 57 (threshold 15). Drivers by points: if/else 40, loops 12, match/switch 5 (nesting depth added 33). Most of this is not in the body itself: 0 of the 57 points are its own statements and the rest belongs to one function literal inside it that branches (line 54). 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":"fasthttpadaptor/adaptor.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cd0dfd8330453876053463cb1f0ade85123d632ecc38031c56f78bf0c8775e"}},{"ruleId":"D2","level":"warning","message":{"text":"fsHandler.handleRequest (cognitive 55): fsHandler.handleRequest has cognitive complexity 55 (threshold 15). Drivers by points: if/else 44, boolean chains 7, match/switch 4 (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":"fs.go"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e741e95c105a0317ef15b52e6e543ba2a43152f331cedfa912519f647adb611"}},{"ruleId":"D2","level":"warning","message":{"text":"pipelineConnClient.writer (cognitive 46): pipelineConnClient.writer has cognitive complexity 46 (threshold 15). Drivers by points: if/else 29, match/switch 10, boolean chains 3, jumps 3, loops 1 (nesting depth added 23). 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":"client.go"},"region":{"startLine":3031}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbb39eb526f1cb091d61daafcc01bc4e41110dae6117290bede84d7cac018ff"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.VisitHeaderParams (cognitive 42): fasthttp.VisitHeaderParams has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19, loops 13, boolean chains 8, match/switch 2 (nesting depth added 20). 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":"header.go"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcc654dc9e5caedd3a73e16bca8485336398b7e31d00712a33a410be15b2314"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.parseIPv6Hextets (cognitive 41): fasthttp.parseIPv6Hextets has cognitive complexity 41 (threshold 15). Drivers by points: if/else 34, boolean chains 4, loops 3 (nesting depth added 23). 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":"ipv6.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacca0d5748a93de517288682053a8aee5641c3287c6909124f047d0622374be"}},{"ruleId":"D2","level":"warning","message":{"text":"Prefork.prefork (cognitive 40): Prefork.prefork has cognitive complexity 40 (threshold 15). Drivers by points: if/else 33, loops 4, match/switch 3 (nesting depth added 18). Of this number, 31 points are the body\u0027s own statements and 9 belong to 2 function literals inside it that branch. 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":"prefork/prefork.go"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0a552722b8bb4e6f5d8cbea87ea6b0cb1f81545cd6aed35495d6b7cdb6d0f7"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.normalizePath (cognitive 36): fasthttp.normalizePath has cognitive complexity 36 (threshold 15). Drivers by points: if/else 25, loops 9, boolean chains 2 (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":"uri.go"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b831a2b1cf041737f2791be99ff7f92423adbb80b80616a46a2650cc1b216cb"}},{"ruleId":"D2","level":"warning","message":{"text":"transport.RoundTrip (cognitive 36): transport.RoundTrip has cognitive complexity 36 (threshold 15). Drivers by points: if/else 28, boolean chains 8 (nesting depth added 5). Of this number, 28 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"client.go"},"region":{"startLine":3236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b983dd7fdd0905981f9c14183a3f7311f93ce9abcc04a44d5243de04c07cdac1"}},{"ruleId":"D2","level":"warning","message":{"text":"Response.writeBodyStream (cognitive 34): Response.writeBodyStream has cognitive complexity 34 (threshold 15). Drivers by points: if/else 32, boolean chains 2 (nesting depth added 17). Of this number, 33 points are the body\u0027s own statements and 1 belongs 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":"http.go"},"region":{"startLine":2316}}}],"partialFingerprints":{"codehealthFindingId/v1":"791ab745e05c59ae27c1c4b38ee02745b16741c75df29af15e363b5ddb0fdcfc"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.validateIPv6Literal (cognitive 33): fasthttp.validateIPv6Literal has cognitive complexity 33 (threshold 15). Drivers by points: if/else 21, boolean chains 12 (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":"ipv6.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1265a0bcb6a17720a197ee3a61e1660d8ace508e35ce640a6257c7647b502d1"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.acceptConn (cognitive 33): fasthttp.acceptConn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 29, boolean chains 3, 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":"server.go"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b241f4ffb9355d44665332f7584264f65b613ebba2daa3a78a2bbf93896c39"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.unescape (cognitive 32): fasthttp.unescape has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, boolean chains 5, match/switch 4, loops 2 (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":"uri.go"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1725b96bd4529c735230339868dd1e2e5b75f358b97318170325c79a40612b"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.MultipartFormWithLimit (cognitive 32): Request.MultipartFormWithLimit has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, boolean chains 3 (nesting depth added 13). 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":"http.go"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f14b6be657f5fb36b7a7575db4c1a8307c62c47a8c2859d6e56edcd114e355a"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.parseHost (cognitive 31): fasthttp.parseHost has cognitive complexity 31 (threshold 15). Drivers by points: if/else 29, boolean chains 2 (nesting depth added 15). 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":"uri.go"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7edbd5184a239636a02f7abec6dcbb7ae998cc9ef0b6eea1533f85a350156e2"}},{"ruleId":"D2","level":"warning","message":{"text":"requestStream.Read (cognitive 29): requestStream.Read has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, boolean chains 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":"streaming.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"562598b5a066e4e2b544e9f2ee78901a43ab5aa152d907eff34a662536c5de09"}},{"ruleId":"D2","level":"warning","message":{"text":"HostClient.AcquireConn (cognitive 28): HostClient.AcquireConn has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, match/switch 4, boolean chains 2 (nesting depth added 11). Of this number, 26 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":"client.go"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"3757c98f8a34502c26cbfbc399842942a9f005f5ac41904fc00bd25b1368c11a"}},{"ruleId":"D2","level":"warning","message":{"text":"HostClient.Do (cognitive 27): HostClient.Do has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, boolean chains 2, match/switch 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":"client.go"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"766ab77f94f36e9d33a7570ebdc9320b538bc9cd8c6f2ae2f121bdbc7e374359"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestCtx.EarlyHints (cognitive 27): RequestCtx.EarlyHints has cognitive complexity 27 (threshold 15). Drivers by points: if/else 25, loops 2 (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":"server.go"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2cabe0ff8372c28170d05f8a77cde8b08dc9b5da356dbfaaa4217cb49cad3c"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.validIPv4 (cognitive 25): fasthttp.validIPv4 has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, boolean chains 3, 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":"ipv6.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7ac6fe445e81382b5274a142977adedf394a9d493e0ef7aee162b636524ccd"}},{"ruleId":"D2","level":"warning","message":{"text":"fsHandler.pathToFilePath (cognitive 25): fsHandler.pathToFilePath has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, boolean chains 4 (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":"fs.go"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a18e7e472b35bbd0153b2795d1385241562c0796e65dc3382b6c82ed60eef4"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.ContinueReadBody (cognitive 25): Request.ContinueReadBody has cognitive complexity 25 (threshold 15). Drivers by points: if/else 22, boolean chains 3 (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":"http.go"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"239d2c6384e0c506d830948adb8176876b634b9571e356c8ea2a14ea663179e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.Write (cognitive 25): Request.Write has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, boolean chains 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":"http.go"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dfe5a4a48e9e2021e599bb41fce31cd0da7d908dd0dd5d5a44e70fb90bb7c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.WriteMultipartForm (cognitive 24): fasthttp.WriteMultipartForm has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, loops 6 (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":"http.go"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dba2716b7ec2d2e99f5c4fa451aa691524f0d4d7060a92244ad065ceaa4bbf2"}},{"ruleId":"D2","level":"warning","message":{"text":"Dialer.getDialFunc (cognitive 24): Dialer.getDialFunc has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, match/switch 3, boolean chains 2 (nesting depth added 8). Of this number, 16 points are the body\u0027s own statements and 8 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":"fasthttpproxy/dialer.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"140091ad1f34c185b607a532fcf756152b104da47926229008945c29ada6ed67"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseHeader.AppendBytes (cognitive 23): ResponseHeader.AppendBytes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, loops 5, boolean chains 3 (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":"header.go"},"region":{"startLine":2458}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd31a66c743491a4a8e9c7ead6a3fa1e4f0fab736eb15645ce56d37fecd3e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHeader.AppendBytes (cognitive 23): RequestHeader.AppendBytes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 7, loops 3 (nesting depth added 4). 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":"header.go"},"region":{"startLine":2594}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7643b44343bda4b65b5bf304ea17b4607473cbbc40b73c7913fe500c70cbd7"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.copyBuffer (cognitive 22): fasthttp.copyBuffer has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, boolean chains 1, loops 1 (nesting depth added 13). 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":"http.go"},"region":{"startLine":2642}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f0ab93163df2cbfd194af64b3928d032d5cebe3d51aa05cac5325066aa17f8"}},{"ruleId":"D2","level":"warning","message":{"text":"URI.parse (cognitive 22): URI.parse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 4 (nesting depth added 4). 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":"uri.go"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d65e80cf2a4704c1c7c8d83f9c1ce61b59afb9c313d64136afe9098ca93d5f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseHeader.parseFirstLine (cognitive 20): ResponseHeader.parseFirstLine has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 2, loops 2 (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":"header.go"},"region":{"startLine":2797}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3cc910fe47143c8adf4cea6eb1385b89b1cef7bae263a1d2f097bf146e5f53"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHeader.MultipartFormBoundary (cognitive 20): RequestHeader.MultipartFormBoundary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 4, loops 3 (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":"header.go"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c1bc96fe6932a2d5bb301f871eb79a75ee4419dc7cf7a8ef3430a21db561b0"}},{"ruleId":"D2","level":"warning","message":{"text":"headerScanner.next (cognitive 20): headerScanner.next has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 5, loops 1 (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":"headerscanner.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f304a2d4d0d638ff9a297440beba11a7ba2f0eb4ecdc5743dcc4301fccd2832e"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.ContinueReadBodyStream (cognitive 20): Request.ContinueReadBodyStream has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, boolean chains 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":"http.go"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60f93d191215e67e8c7e698a171012a6d3dce3d0dd9bd729d7a3d6af8519567"}},{"ruleId":"D2","level":"warning","message":{"text":"tcplisten.getSockaddr (cognitive 20): tcplisten.getSockaddr has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, match/switch 1 (nesting depth added 11). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tcplisten/tcplisten.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b4d692e9f74d52d45f8fb897077e892f7b5b29c8e6f0291ae8912c9c5570bb"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.doRequestFollowRedirects (cognitive 19): fasthttp.doRequestFollowRedirects has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, match/switch 2, loops 1 (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":"client.go"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"763a290200b6ebf5f0e19d009f59c610dfca4675e47d5274ba62b7d25b85fe58"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.parseChunkSize (cognitive 19): fasthttp.parseChunkSize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, match/switch 2, loops 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":"http.go"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e41d3bdba17e70cb28c6a5b8d127d0192cadaf7dc940002ea0a3c89957d813"}},{"ruleId":"D2","level":"warning","message":{"text":"fsHandler.createDirIndex (cognitive 19): fsHandler.createDirIndex has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 4, jumps 2, match/switch 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":"fs.go"},"region":{"startLine":1567}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fc3f3a175b2ddd05ff1ff329711eb1ef6382f163f419f96fb632e8703fd0bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseHeader.setSpecialHeader (cognitive 19): ResponseHeader.setSpecialHeader has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, match/switch 3 (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":"header.go"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9183d31f6dffab722923d3c39de36d496b4787bef48ba8d1e282f098ad9452"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHeader.setSpecialHeader (cognitive 19): RequestHeader.setSpecialHeader has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, match/switch 3, boolean chains 1 (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":"header.go"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"590f5d763b11f9c4408afd3b477ffdba2ed8ee7e7b5fe66332f09790f274ddf5"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHeader.parseFirstLine (cognitive 19): RequestHeader.parseFirstLine has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"header.go"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1326c396295813bb4399b8ff98a5acbbf6edbd5f45d9f995078a6f3f5e3a8a4"}},{"ruleId":"D2","level":"warning","message":{"text":"Response.ReadLimitBody (cognitive 19): Response.ReadLimitBody has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, loops 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":"http.go"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1a35383de74c60acc2688ea5b594d11f0b6e721b6d74c2665bc846dbad4f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.parseRFC1123DateGMT (cognitive 18): fasthttp.parseRFC1123DateGMT has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 7. 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":"bytesconv.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeab9d445c736a2ed6097ec1afaadaf55a56e1615b92395181594b4996d454d3"}},{"ruleId":"D2","level":"warning","message":{"text":"HostClient.connsCleaner (cognitive 18): HostClient.connsCleaner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, loops 8, boolean chains 1 (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":"client.go"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"c922db1132396ab4ee7a345e6f485575f1eb260adbaa0953d4049ad912bdf022"}},{"ruleId":"D2","level":"warning","message":{"text":"FS.normalizeRoot (cognitive 18): FS.normalizeRoot has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 4, 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":"fs.go"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56a21408f614bd5b1002f494b608b3b0cc0560c2a3d2fe4689f7c07838d216a"}},{"ruleId":"D2","level":"warning","message":{"text":"fsHandler.openFSFile (cognitive 18): fsHandler.openFSFile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 3 (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":"fs.go"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa18e714f7fdf24487fbb1332d0438b2c9b33b315ff20c2cb5f3ce8b5bab2ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ResponseHeader.All (cognitive 18): ResponseHeader.All has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 6, loops 2 (nesting depth added 2). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 1078). 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":"header.go"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fd5b7f5c226b5d5187f03d7b1fa29825b1b3d1b504dad82a7e3be95bb5da5c"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestHeader.All (cognitive 18): RequestHeader.All has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 6, loops 1 (nesting depth added 2). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 1234). 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":"header.go"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d33983d19b24ed3d0d3a3ced6fc61a48474a6e193b6498fe16047d9e456399"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.writeBodyStream (cognitive 18): Request.writeBodyStream has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"http.go"},"region":{"startLine":2274}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36e56e253645238b258d39d24f1b0ef219df6e184c9d484c66c291926e03aa4"}},{"ruleId":"D2","level":"warning","message":{"text":"URI.updateBytes (cognitive 18): URI.updateBytes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 2, match/switch 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":"uri.go"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c79a997fddd0a5e743071e097ce271df80af9e3d7c078614d750948737b6d5"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.readHexInt (cognitive 17): fasthttp.readHexInt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 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":"bytesconv.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5295bc2d1e51556f5834c5fc9729350ff166d8791a2680a366cd473147bd5ea"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.readFileHeader (cognitive 17): fasthttp.readFileHeader has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, match/switch 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":"fs.go"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"9958573b475314c50d3ae07474d418929ddb67fdbe55f9b7c7aa38596ecbfad3"}},{"ruleId":"D2","level":"warning","message":{"text":"fasthttp.readBodyIdentity (cognitive 16): fasthttp.readBodyIdentity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, match/switch 3, boolean chains 2, loops 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":"http.go"},"region":{"startLine":2758}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e64d934bea2029c7b3b85347c0e598fa3657eb7af81d24f45ad9bb6d5f9ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.Serve (cognitive 16): Server.Serve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, loops 1 (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":"server.go"},"region":{"startLine":1969}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51c78d8492c6e03ed7433cd1fac981687eaffb919f9f7599e1badb3d5e7dd4a"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.fdSetup (cognitive 16): Config.fdSetup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 4). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tcplisten/tcplisten.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2080301e27ba8f88a142153c10c227b390636c9d34f50eed000795d69294b961"}},{"ruleId":"D2","level":"warning","message":{"text":"workerPool.workerFunc (cognitive 16): workerPool.workerFunc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, 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":"workerpool.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"104cea476213024e2b528a23a10711030e787897b58807d3973bd959f4bf0501"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./header.go: FileTooLong \u2014 1834 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":"header.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec80074b56d4d6c730368bd3d75390114ac0029e30f08cec98cfa04a5f82603"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RequestHeader: TooManyMethods \u2014 95 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":"header.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"04940f8ca9870a4fae3a110272a5a1c18b0a30745eee2dcdb064dcb234f12dad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./client.go: FileTooLong \u2014 1539 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":"client.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71b306da47d4f62376e057d23d8d1023408a02b7fb4aaa0a583a0c3bf0c3951"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./http.go: FileTooLong \u2014 1469 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":"http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7b5965501a521ded2aeab5eccb5833c36dcde38da03c72a8a026dda7b7096e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RequestCtx: TooManyMethods \u2014 87 methods, declared across 2 files: ./server.go (86), ./http.go (1). 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":"server.go"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e764bdd12dd05e0dd9b4567d80e5a84dcde3d9c55f1a334eb1abebb2c4bba272"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./server.go: FileTooLong \u2014 1354 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":"server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85f57bec37267373e020a2ef4d9c3de9d27f3f7ef92f401350eb870c93509dd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Request: TooManyMethods \u2014 73 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":"http.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c0808d2628f5b2bacbcc5704f35f0e73c49c4837d78251feb67c4c1f97547c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./fs.go: FileTooLong \u2014 1202 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":"fs.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dee871668213aa291acde0ad98b13992159e3b48a175742d57f3ef3ac98b3fe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResponseHeader: TooManyMethods \u2014 68 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":"header.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"65923033a9ad1acb15a8167b103b9fa9bdac1ebbcb828e414dfd2a5c24d582ba"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Response: TooManyMethods \u2014 57 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":"http.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"641ed4938229c59f10082cd1b45a41075d34cc8924d3754dc8c64e14105966c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Args: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"args.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"673c6373727ac4fdc9e5f6499f9e939daa0440be05283f2bb5b39d9a1b7f660b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: URI: TooManyMethods \u2014 40 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uri.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9bd297620d503a9e35b05563fffe712caf063745dc94dd048fe67ad8fd4ffd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Server: TooManyMethods \u2014 37 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea0368633224ae9d0c125b377efc220e200423fe59bcdba94fbd7ab1ac3aca5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Cookie: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cookie.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3190513a0a3f394b7b7d6da824ee4a4db28397741602bcba686d6800ef19820"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HostClient: 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":"client.go"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6ace9f2173dc45b371ff23725449ae902cbab65577d76bfcbfa26f9dfba4e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./uri.go: FileTooLong \u2014 501 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":"uri.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4623e04cca6dfbfcae69052c023e97a2059568340ba8b6f7ff511c61e729dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): http.go:1442-1460 | http.go:1524-1543 \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 \u0060http.go:1442\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":"http.go"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8664ee481975bcc7b559b1a478f825620198eccb334839e6a797286395d18a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): client.go:2664-2677 | client.go:2776-2789 \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 \u0060client.go:2664\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 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":"client.go"},"region":{"startLine":2664}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c9fbb098b8dcea3fd28b802b07af7831520440ebd5e7452eabcd6c51a6bc57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): http.go:677-690 | http.go:708-721 \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 \u0060http.go:677\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":"http.go"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf891262daff90e3ac13178ee76ed207681240d6b6712fa054a0312b514f355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): http.go:2278-2291 | http.go:2326-2339 \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 \u0060http.go:2278\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":"http.go"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca58652f3703ec49e31cc0080c30232cd79efba1a6fcdd4777f4f7f5a190275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): server.go:1853-1866 | server.go:1880-1893 \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 \u0060server.go:1853\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":"server.go"},"region":{"startLine":1853}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cff55f177f75cbb71ab6709f3552abfce418cf93443c388ba8059751d0ccd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): cookie.go:588-600 | cookie.go:626-638 \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 \u0060cookie.go:588\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":"cookie.go"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a11f66f26d0da0a1428f367e2807b9813bffa39c87ee6efd09a5c8b32646601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): header.go:1405-1417 | header.go:1469-1481 \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 \u0060header.go:1405\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":"header.go"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"982a94813be6b37c9885cabb55dd41c1e0e4f48b5b304438ee0f4156c66f8bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): header.go:2157-2169 | header.go:2209-2221 \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 \u0060header.go:2157\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":"header.go"},"region":{"startLine":2157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c4daf13ab8e130abc62af0166269bcfc8caf6f9cc31e2ff48241939417fdfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): fs.go:1756-1767 | fs.go:1804-1815 \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 \u0060fs.go:1756\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":"fs.go"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"801f33d79b574fdd98fdcb648894e77051cf6804d8f9f3b5d3a4fd97493bc613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): client.go:1949-1959 | client.go:2011-2022 \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 \u0060client.go:1949\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 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":"client.go"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3485ac128b45352f6e6335031a8a9654626209b82f1692b7877c682460fc98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): header.go:1356-1365 | header.go:1390-1399 \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 \u0060header.go:1356\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":"header.go"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e18d412cf6cab9867ebf2a534f115c18ee3a53a70ceaf90ca88ab54e86346a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): header.go:2006-2015 | header.go:2054-2063 \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 \u0060header.go:2006\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":"header.go"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f17f8bed7f02768f32b007f3dac9573be6768e2d79840ddc0256a02cc5ba14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): header.go:2490-2500 | header.go:2624-2633 \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 \u0060header.go:2490\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":"header.go"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"0253c735088136ee3e313f596ff994a0d4cb51f748df3900195967a07c3d3930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): tcplisten/tcplisten.go:156-165 | tcplisten/tcplisten.go:174-183 \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 \u0060tcplisten/tcplisten.go:156\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":"tcplisten/tcplisten.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5248b48c65e9d1958feffff98903713c91f6b2461eaf1b76c75cd033af143588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): client.go:1672-1680 | client.go:2675-2683 | client.go:2787-2795 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client.go"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d3f0285d71c6c32151534f5a4125c58d36267eb83d507bdbd2b78948eb2d85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): args.go:598-606 | args.go:637-645 \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 \u0060args.go:598\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":"args.go"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3e38e953912ac7414862d8eff00fc1a94d5ac8c0189699c27db18ea016e3bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): header.go:378-386 | header.go:393-401 \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":"header.go"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9acd270a04292d8d904e9ff6604f749096774653d9468ca7f6df827917d63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): server.go:563-570 | server.go:597-604 \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 \u0060server.go:563\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":"server.go"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25811758e9b3e6b1d3a59d203cf1b8e65af7b6cd47c795e108f5368ba0ac7eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): header.go:2432-2438 | header.go:2564-2570 \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 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":"header.go"},"region":{"startLine":2432}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1b3982b546d6ea1d88c71806c9b02940bf77df42cb96339f545f279bcb8db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): uri.go:693-699 | uri.go:740-746 \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":"uri.go"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcaeb76e7dcda9ef75064e6d971115b97ccdbbae3a6c781df6d7f2f37579af0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): header.go:1577-1582 | header.go:1808-1813 \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":"header.go"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72acd3ebd86289f7decf426782032a8e2e1ffceb7b86ad7aa34daffd2abe473"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bf70d8d2cb93647ebb63883bf65f3e47dfb2737b76e7c73ecc24e1a8ad633317"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: server.go: server.go changed 13 times in last 90 days, max complexity 117. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46aa5b885287c844bd1f996fa86f8f9030920edfa81ee82598b45fe28f6795b0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: header.go: header.go changed 12 times in last 90 days, max complexity 40. 2 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"header.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4892f16aeae6b79d26e73dd06145517f7c1d90ec8adce71dd87c0f1f4f9c47d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: fs.go: fs.go changed 12 times in last 90 days, max complexity 38. 6 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fs.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68d33ba32b81596ef06cf29fdc4a91d86cf1f483c41e2ff57864463e5eb9de4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: client.go: client.go changed 12 times in last 90 days, max complexity 33. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7395a22d5855647c13091262fadc62789f0a10eca810f000c382ae0130aea775"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cookie.go: cookie.go changed 6 times in last 90 days, max complexity 34. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cookie.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d54ec516130072d26457a1555c3030e265a082d80ce0985bc29a0b215c890e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: http.go: http.go changed 7 times in last 90 days, max complexity 19. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"http.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c95d1335089ac99781926d102871469b49e29106cbccc4a99961eef823d231e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: uri.go: uri.go changed 5 times in last 90 days, max complexity 21. 1 of those changes was a fix/bug commit, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"uri.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c921ca8a49c8b35f9e71629c5964e69108f009fc1776e728e61beffbbbde37"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: prefork/prefork.go: prefork/prefork.go changed 4 times in last 90 days, max complexity 24. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"prefork/prefork.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c0a277014089169e9df246c4b15d1f2ea555789a198190eb4e4e5fe54b5a1d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: fasthttpadaptor/adaptor.go: fasthttpadaptor/adaptor.go changed 3 times in last 90 days, max complexity 27. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fasthttpadaptor/adaptor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"607d1be193e4c117e06805d76aa028c5299f09afca7d10a4a54a5750995e0672"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: fasthttpproxy/dialer.go: fasthttpproxy/dialer.go changed 4 times in last 90 days, max complexity 19. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fasthttpproxy/dialer.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f515c5e05cd2da65d7950ac613a1496581b16fdc5bb6ecbdd7b7a23990eba78"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: status.go. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3c40a2e23bca492446b28fa4c901ff060ac238030b3be8bb3c27afe20dc0ba69"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (2 single-owned of 29 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d1996c63735f25f2d24e7afe2cacca75270f3ca4454a05b8797ce4bb089e8287"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6d11cf10badab8f6895c6e0bdbc88b8ceb5a5b257f861696bc18f08adf8daecf"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b7ccaba8bb579f12c965817d1cfc7f10e98a4d2a636f7527d86aa6cfdcf95b6"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"91fd58c4bb14451bd01738ed9ed9cafd45057397ec9153d7ec757a077fa391e5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a62aad4ae88a9410b5216bb3b2c59555408bf327a70b5c0bb04259f584dec269"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a408fe97165a87f03e358887b46e500a5d47f29e3a3723946e93d1dedb7d3b8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"566f63d8575e22cb91a38c0b10e974d9cc3b3164a014a960dec64d3d1393da95"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c26743c88404afca9aaaf97d23937c65513a24ff65ab3c2f2387bed1d8218cdf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d61629f85e491a4be78966ff70e1f1bbcfe6e47dc8b33ec51c77d183a33efbca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"af998ec9dc567217fde4e22246cbad2d2203ca995589e41f8334faf06741288b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d8ebcbf300497ab132177f23370debffae1c4b01f0283c544d0f240ac5a3b23"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aaac50fc45baaa5ec38afaa6e9bb52f6b259511d7733bcc8919c9631140ed71b"},"taxa":[{"id":"CWE-94","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":"ccb6d22279382cf7bd1d426eacf6ca12e24bd6dc4da477e94f084e4bc2c50bc0"},"taxa":[{"id":"CWE-200","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":"ed17e53c813d1623c493b40de349101f55984c92d8b77345fbed8355a3b8f37e"},"taxa":[{"id":"CWE-242","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":"6cfd9f544d252aa017f8a4ec14c98dd4bd228bbe48c50c526b33dda75f739ec1"},"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":"943389e648eb6a69f31883b8d970cad631a34785f6eced794d98e579be9a5675"},"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":"8a2775a97ede287c662f670110a2c986fec1a918fc70e00aff2cd889cbc0ab19"},"taxa":[{"id":"CWE-242","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":"5a0aa2dc3a073043036c0ce058f2328603c73d48e000656ff2bc1e1f300a7702"},"taxa":[{"id":"CWE-242","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":"e383215f1f5ba430e2fdfdfd0b3f229f8a9eae5e94b2cd488aeb60213376d075"},"taxa":[{"id":"CWE-242","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":"9bb6cab4c78d05a4703b8c2db2a946974b215830c7c608729bfad8647b4d236c"},"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":"254d5238d3ec4b29dad993a7687448f20100e22931dfd38115934af8516ca7f4"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"50c379534161bb30611d421e82af3666b891a67b9a6a35df5a4fc4b4977e653b"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.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-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":25,"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."]}]}