{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"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":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED1","name":"Handler temporal coupling","shortDescription":{"text":"Handler temporal coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/ED1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X31","name":"Test-only surface in a production module","shortDescription":{"text":"Test-only surface in a production module"},"helpUri":"https://codehealth.canine.dev/dimensions/X31"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"mango_selector.match (cyclomatic 59): mango_selector.match has cyclomatic complexity 59 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2efc846e2bb3a6fb3a704e24d08584c285d37d0580df87a6f4766f259f8c3c3"}},{"ruleId":"D1","level":"warning","message":{"text":"mango_selector.norm_ops (cyclomatic 58): mango_selector.norm_ops has cyclomatic complexity 58 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a49fd7f8543957edaa20b9cdcd106cebd58fffa9d039b1d8afb56b2899a00a"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_log_trunc_io.print (cyclomatic 54): couch_log_trunc_io.print has cyclomatic complexity 54 (threshold 15). 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":"src/couch_log/src/couch_log_trunc_io.erl"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"918fdac028a48493702ddc4076e3aef6e403e296046d04b19f315ceea69b6f7d"}},{"ruleId":"D1","level":"warning","message":{"text":"mem3_reshard_httpd.handle_reshard_req (cyclomatic 53): mem3_reshard_httpd.handle_reshard_req has cyclomatic complexity 53 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_reshard_httpd.erl"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee92f0ddf81f20554dd3bb687e272ab52d88efe891c025824ab1724effeafb13"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_mrview_util.validate_args_int (cyclomatic 50): couch_mrview_util.validate_args_int has cyclomatic complexity 50 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_util.erl"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04f491ca140f6422751d531b5fc878cc42e1e2fc1f966db6c146537760ddd36"}},{"ruleId":"D1","level":"warning","message":{"text":"mango_selector_text.convert (cyclomatic 49): mango_selector_text.convert has cyclomatic complexity 49 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector_text.erl"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9073f5ad9f75692efc876c1b19b44c4b8c340269b0dc26fe49238393504e9e5b"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_server.handle_call (cyclomatic 44): couch_server.handle_call has cyclomatic complexity 44 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_server.erl"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daf59d617c8217dddcaf86fc3e2ad7273aebc1406d925f9d4bcc1e9f825ae5d"}},{"ruleId":"D1","level":"warning","message":{"text":"mango_idx_view.range (cyclomatic 40): mango_idx_view.range has cyclomatic complexity 40 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_view.erl"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e2eba647cbb60e47f41e834a6e354f542497dfb572a1b2e49274f64bfa088a"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_ejson_size.encoded_size (cyclomatic 32): couch_ejson_size.encoded_size has cyclomatic complexity 32 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_ejson_size.erl"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9673c3e920b71b7dc91d8d17c962b78d7337ce3782a90415d565428aede117b7"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_native_process.ddoc (cyclomatic 30): couch_native_process.ddoc has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_native_process.erl"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ec6894ccb16ae2a4775ff048cf31b80ba5796d90642487a14f7f0e8a786bb5"}},{"ruleId":"D1","level":"warning","message":{"text":"mem3_reshard.handle_call (cyclomatic 30): mem3_reshard.handle_call has cyclomatic complexity 30 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_reshard.erl"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"66645576bc468fd4db4a610c83b9fa104b6ad972996020fec7a6261a5449ec39"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_replicator_auth_ibm.handle_info (cyclomatic 28): couch_replicator_auth_ibm.handle_info has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth_ibm.erl"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"805623d684fcdbaf88ebd94403e2e4723c40cd6d4c38ba85aff73152438613e1"}},{"ruleId":"D1","level":"warning","message":{"text":"chttpd_db.parse_changes_query (cyclomatic 27): chttpd_db.parse_changes_query has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef58408b713679c858ca1d070f163dffd4a1ab954efb520ecef4b082dddd6d0d"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_replicator_scheduler_job.handle_info (cyclomatic 27): couch_replicator_scheduler_job.handle_info has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler_job.erl"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3cc84480047d2ed831b018ef28a9f92d488c8a26eade985b8ca1d5251d6ab80"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_changes.filter (cyclomatic 25): couch_changes.filter has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_changes.erl"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec7fcb0694d12584f6b02ebbc7c45c04d19cc9cbfe1b5f9e4c7523e28cb0ad6"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_log_formatter.do_format (cyclomatic 25): couch_log_formatter.do_format has cyclomatic complexity 25 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: couch_log_formatter.format_reason (cyclomatic 34) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_formatter.erl"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"de68ebf5ce5012fd906d591950ffd3295d7f15bc9c0587dc4be2fc0bdf137202"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 25): (anonymous) has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 8 function items inside it that branch (fitnessAndQualityParsed, parseMediaRange, parseMimeType, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/mimeparse.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e281456005ff227f48289a4765588b44ce74738deeb091dff7e4b763b26bf9"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_file.handle_call (cyclomatic 24): couch_file.handle_call has cyclomatic complexity 24 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_file.erl"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f4d5694dc4c0804a03da76cccc1813bd91b9f0a36058a20086eb261b182167"}},{"ruleId":"D1","level":"warning","message":{"text":"mem3_reshard_api.pick_shards (cyclomatic 24): mem3_reshard_api.pick_shards has cyclomatic complexity 24 (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":"src/mem3/src/mem3_reshard_api.erl"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"199a8ac14f8aa43f12c4c066c6bcc0c5563544f6bd1e21db3af27ae6b7a4b4e2"}},{"ruleId":"D1","level":"warning","message":{"text":"mango_httpd.handle_index_req (cyclomatic 22): mango_httpd.handle_index_req has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_httpd.erl"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"febea0be76ac79c00dcb0cc2738b20aa6d7b9db9b0e681580b0f1d7d0f6d010f"}},{"ruleId":"D1","level":"warning","message":{"text":"fabric_view_all_docs.go (cyclomatic 21): fabric_view_all_docs.go has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_all_docs.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa60f4c54a5a573397ba51339e27b89ba82e333d84425505e2c054ba0f0d8fb8"}},{"ruleId":"D1","level":"warning","message":{"text":"mango_native_proc.handle_call (cyclomatic 21): mango_native_proc.handle_call has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_native_proc.erl"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f568afebdf4212a05ac242b241a0af7e18c6a83c6291babf97d4daa4984681"}},{"ruleId":"D1","level":"warning","message":{"text":"mango_doc.rem_field (cyclomatic 20): mango_doc.rem_field has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_doc.erl"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"4312be961bacd1361c2e4c798b8e5d47a7e8f8dd63816566b5504f5f4a058300"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_native_process.run (cyclomatic 19): couch_native_process.run has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_native_process.erl"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"84715cb74a29a4f5c117f731ceca34d9d43e1f042d6b3f3bbac06717ae39b9df"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_log_trunc_io.alist_start (cyclomatic 18): couch_log_trunc_io.alist_start has cyclomatic complexity 18 (threshold 15). 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. This is NOT this file\u0027s highest cyclomatic complexity: couch_log_trunc_io.alist (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_trunc_io.erl"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"0705de3401b786aa8f88f784fa4243596ae062b82438f052768a3443a1524162"}},{"ruleId":"D1","level":"warning","message":{"text":"fabric_streams.handle_stream_start (cyclomatic 18): fabric_streams.handle_stream_start has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_streams.erl"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df09ec60ed7c0750758700bae17d45ea50a81a9b5457d96de37da0c01fffeb0"}},{"ruleId":"D1","level":"warning","message":{"text":"ken_server.should_start_job (cyclomatic 18): ken_server.should_start_job has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ken/src/ken_server.erl"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd29e970676075022d22c7e81f52716b146454ba54e17e0d5d4e5776e220058"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_db_updater.handle_info (cyclomatic 17): couch_db_updater.handle_info has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db_updater.erl"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6580d56be90d86f9a994d999f0d792e6950987eb6df3d584c992a3b056ab6d0"}},{"ruleId":"D1","level":"warning","message":{"text":"smoosh_server.get_priority (cyclomatic 17): smoosh_server.get_priority has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/smoosh/src/smoosh_server.erl"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8de701a95a101f2da0e27645fe78b316cebc190a144527a5550d947e7a3bc1"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_btree.modify_kvnode (cyclomatic 16): couch_btree.modify_kvnode has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_btree.erl"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d315ada2751c1fc1bc57fca3f7335dec08559ac19578f4795f98378bcf6ed"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_db.prep_and_validate_replicated_updates (cyclomatic 16): couch_db.prep_and_validate_replicated_updates has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db.erl"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dca3e2ae8654df425f87cb622066bc8230b4f6093d49f605d70cc55807e9951"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_doc.validate_docid (cyclomatic 16): couch_doc.validate_docid has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_doc.erl"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7796d8cc2f20c012abf8cdc61b787595e03be5006d412f8dfff9e5cedbcc9822"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_httpd_multipart.maybe_send_data (cyclomatic 16): couch_httpd_multipart.maybe_send_data has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_multipart.erl"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc565fe44af5bbd31e5f990076273e82afa750ccf6691c919ca1bc2fa20635cb"}},{"ruleId":"D1","level":"warning","message":{"text":"couch_httpd_multipart.mp_parse_atts (cyclomatic 16): couch_httpd_multipart.mp_parse_atts has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_multipart.erl"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1568a7495a7510f5fed2c6c5b612fbe8e8bc7a8315e371cec9c98afb32594e06"}},{"ruleId":"D1","level":"warning","message":{"text":"dreyfus_httpd.handle_search_req (cyclomatic 16): dreyfus_httpd.handle_search_req has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: dreyfus_httpd.parse_json_index_param (cyclomatic 23) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_httpd.erl"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6582b38fcb9ad7d322e873ff1fbd122dab9a8761768cdda8b6c06615fe53da"}},{"ruleId":"D1","level":"warning","message":{"text":"fabric_view_all_docs.handle_message (cyclomatic 16): fabric_view_all_docs.handle_message has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_all_docs.erl"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d5a9db434a7145df6f00a11948c93533ba9e89199e442c9e9b719c5c5b119c"}},{"ruleId":"D1","level":"warning","message":{"text":"mango_doc.set_field (cyclomatic 16): mango_doc.set_field has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_doc.erl"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f72c7944bc2142c1cf1f913c48948331ba135e67637a2ad39a34800be3c88f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).runShow (cyclomatic 16): (anonymous).runShow 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":"share/server/render.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1921df41deec7097a3e50972dd3d3db8a853ba7176e0b4965509406b42ae6391"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_httpd.error_headers (cognitive 51): couch_httpd.error_headers has cognitive complexity 51 (threshold 15). Drivers by points: match/switch 14 (50 pts), if/else 1 (nesting depth added 36). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd.erl"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"3676344f28a7cdce3d5d107cb07b70bf2ded246e532304388d610e639715f697"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_server.handle_call (cognitive 42): couch_server.handle_call has cognitive complexity 42 (threshold 15). Drivers by points: match/switch 23 (32 pts), loops 3 (7 pts), boolean chains 1, error handling 1, if/else 1 (nesting depth added 13). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_server.erl"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"1553c5a0189f290768edb66624231f7b14853bd294e3a0eeffa222b590c8353a"}},{"ruleId":"D2","level":"warning","message":{"text":"chttpd.error_headers (cognitive 41): chttpd.error_headers has cognitive complexity 41 (threshold 15). Drivers by points: match/switch 13 (41 pts) (nesting depth added 28). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca8c38bb19495033780472909a8f7e1476e65bd88df22740baeec920c9b7293"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_log_trunc_io.print (cognitive 39): couch_log_trunc_io.print has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 19 (29 pts), boolean chains 8, error handling 1 (2 pts) (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":"src/couch_log/src/couch_log_trunc_io.erl"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"88277cd12688bc21f46270728015b849226e5fa2478a4d84d4cad395548788bb"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_mrview_util.validate_args_int (cognitive 39): couch_mrview_util.validate_args_int has cognitive complexity 39 (threshold 15). Drivers by points: match/switch 36, boolean chains 3. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_util.erl"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaa3ce69267f7bf57ddd718f13fd4e025dbfb4e1b3fda0f162fc7fe89c35794"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).ddoc (cognitive 32): (anonymous).ddoc has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (22 pts), ternaries 1 (6 pts), loops 2 (4 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/dispatch-quickjs.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6973d80459f53647b8bdd77f0a188f4b4d27c48455c6ddba0eeea053555e4d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).ddoc (cognitive 32): (anonymous).ddoc has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (22 pts), ternaries 1 (6 pts), loops 2 (4 pts) (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/loop.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71baf34740bc113be26980beff2c188f55f4b04bdc423dc07dc3ebde72c71c2"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_httpd_multipart.maybe_send_data (cognitive 29): couch_httpd_multipart.maybe_send_data has cognitive complexity 29 (threshold 15). Drivers by points: match/switch 11 (20 pts), loops 2 (5 pts), if/else 3, boolean chains 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_multipart.erl"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a294aa1a6c60bbbb47d62c775c854c85073809f197ff63f1b4a77e7d18b0da"}},{"ruleId":"D2","level":"warning","message":{"text":"LuceneIndex.toDocument (cognitive 28): LuceneIndex.toDocument has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 3 (9 pts), error handling 1 (4 pts), 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":"extra/nouveau/src/main/java/org/apache/couchdb/nouveau/lucene/LuceneIndex.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34752d9833e64dc0b22d3cc3f715fc59b59067dac5f9052b153fa775a0dd103"}},{"ruleId":"D2","level":"warning","message":{"text":"chttpd_db.parse_changes_query (cognitive 27): chttpd_db.parse_changes_query has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 14 (19 pts), error handling 4 (8 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af511d6f29e00955205aae3de76d272f8a8366a2091646a8ae93e4a1f32128e"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_db.prep_and_validate_replicated_updates (cognitive 26): couch_db.prep_and_validate_replicated_updates has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 11 (21 pts), loops 3 (5 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db.erl"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a5526d19f9ddd20eb72e0de794ea428b13d9d7d9d561f03bcc6c104faf93cc"}},{"ruleId":"D2","level":"warning","message":{"text":"mem3_reshard_httpd.handle_reshard_req (cognitive 26): mem3_reshard_httpd.handle_reshard_req has cognitive complexity 26 (threshold 15). Drivers by points: match/switch 17 (25 pts), loops 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_reshard_httpd.erl"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6545a885d85df3ebf5ff3233adb16fbcbe9f7a3d4727ec642b2d5eea52c492d"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_db_updater.handle_info (cognitive 25): couch_db_updater.handle_info has cognitive complexity 25 (threshold 15). Drivers by points: match/switch 8 (11 pts), error handling 3 (7 pts), loops 3 (5 pts), if/else 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":"src/couch/src/couch_db_updater.erl"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b552b1634d52adc80591fa9edab90a5b4ddf5fa44760d999c7bd8c73ad01e36"}},{"ruleId":"D2","level":"warning","message":{"text":"mango_selector.match (cognitive 24): mango_selector.match has cognitive complexity 24 (threshold 15). Drivers by points: match/switch 10 (13 pts), error handling 6, boolean chains 3, loops 1 (2 pts) (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e40fb01dbe832ba85b7d91a3e64dcaf31fe32db804991e1d895a0c030a0002"}},{"ruleId":"D2","level":"warning","message":{"text":"mem3_reshard_api.pick_shards (cognitive 23): mem3_reshard_api.pick_shards has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 5, boolean chains 4 (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":"src/mem3/src/mem3_reshard_api.erl"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6c657d93f87cd2c0eb42a93b0f289c55802352cd8555c2e76bb59de252f089"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::fitnessAndQualityParsed (cognitive 23): (anonymous)::fitnessAndQualityParsed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 2 (6 pts), boolean chains 4, loops 2 (4 pts) (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":"share/server/mimeparse.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce77115dc83a11b0e0305297fdf8c6f68248c99d0b92c7895b624b406fb4507"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_replicator_auth_ibm.handle_info (cognitive 22): couch_replicator_auth_ibm.handle_info has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 13 (20 pts), if/else 2 (nesting depth added 7). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth_ibm.erl"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"23be2abdd06667f3c0c0cd6a587f404f2f6834f8e02d314bd3ae1a64d3e4c5f2"}},{"ruleId":"D2","level":"warning","message":{"text":"dreyfus_httpd.handle_search_req (cognitive 22): dreyfus_httpd.handle_search_req has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 9 (17 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_httpd.erl"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d6ea67fb5bf37f0d36996adbdfd5a233f2e42f61578c01384dfe2ca8aa539d"}},{"ruleId":"D2","level":"warning","message":{"text":"fabric_view.possibly_embed_doc (cognitive 22): fabric_view.possibly_embed_doc has cognitive complexity 22 (threshold 15). Drivers by points: match/switch 10 (21 pts), boolean chains 1 (nesting depth added 11). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view.erl"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"155b0c2f3e907b679c3e6cd7b0a4646cd16ac4b01c3e42a48c247ea921f98833"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_native_process.ddoc (cognitive 21): couch_native_process.ddoc has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 13 (14 pts), error handling 7 (nesting depth added 1). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_native_process.erl"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"10453041aefc17c81a0efbf65653367f6ac51e374e15d1ee7ba830f9a382cb9e"}},{"ruleId":"D2","level":"warning","message":{"text":"fabric_doc_atts.middleman_loop (cognitive 20): fabric_doc_atts.middleman_loop has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 7 (12 pts), loops 2 (5 pts), if/else 2, boolean chains 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_atts.erl"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47552a7c7794ad8c19ba991d9c82387c7952393554bdcf632736ffb95c16bf7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).runShow (cognitive 19): (anonymous).runShow has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts), loops 1 (2 pts), error handling 1 (nesting depth added 2). 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":"share/server/render.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d89ab73e404b92f2885882c7bf62e7565c9aefd5e418dc7c07d92461ba0c09b"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_file.init (cognitive 18): couch_file.init has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 9 (18 pts) (nesting depth added 9). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_file.erl"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"444dcd92507baf3170d3f23015b269c28c0c058c5e7f444bf50701122dc3f0ea"}},{"ruleId":"D2","level":"warning","message":{"text":"fabric_doc_update.force_reply (cognitive 18): fabric_doc_update.force_reply has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 7 (16 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_update.erl"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f3c15a04e755dad0cfbe2db4bf857a4c225ac0e8bc33598d5186fc3e7f1837"}},{"ruleId":"D2","level":"warning","message":{"text":"mango_httpd.handle_index_req (cognitive 18): mango_httpd.handle_index_req has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 13 (17 pts), boolean chains 1 (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_httpd.erl"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"097859a29fcfcc8829e6d2e6eba7b9c70210eadb5317677ca895ca91f90e31d9"}},{"ruleId":"D2","level":"warning","message":{"text":"linter.line_length_checker (cognitive 18): linter.line_length_checker has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, 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":"src/docs/ext/linter.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"784bf56e142467b56363933a12d23e5470a53eafcd011d25501149ab9a503d1d"}},{"ruleId":"D2","level":"warning","message":{"text":"chttpd.absolute_uri (cognitive 17): chttpd.absolute_uri has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 11 (17 pts) (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"442b3ce012e2554209ed38a29262d054525b9675736174f118ae6aaa2c6de7ae"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_file.verify_checksum (cognitive 17): couch_file.verify_checksum has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 11 (17 pts) (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_file.erl"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cedd621594791710082bad291e28ba99239abe67d1e370120da540c6544e474"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_mrview_util.get_view_index_state (cognitive 17): couch_mrview_util.get_view_index_state has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (10 pts), error handling 4 (6 pts), boolean chains 1 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_util.erl"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a34434b4c52a1a748cec2ab337c458752bb04eb9467a42770eca41bc1ccc26"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_replicator_httpc.process_stream_response (cognitive 17): couch_replicator_httpc.process_stream_response has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (7 pts), error handling 2 (6 pts), boolean chains 3, if/else 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_httpc.erl"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0918301331de6ca9330792f8306f60bf27676e1449b098432d42c8efcb33c8"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_replicator_scheduler_job.handle_info (cognitive 17): couch_replicator_scheduler_job.handle_info has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 9 (10 pts), error handling 4 (6 pts), boolean chains 1 (nesting depth added 3). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler_job.erl"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7ade2367760bdd29a165d27990dae89236f9c895500019be740cc24ffcf501"}},{"ruleId":"D2","level":"warning","message":{"text":"fabric_db_create.go (cognitive 17): fabric_db_create.go has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 7 (17 pts) (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_db_create.erl"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db40689308b4026f257171f34b4429818602cb46a81084013f7f1c057d54945"}},{"ruleId":"D2","level":"warning","message":{"text":"ken_server.should_start_job (cognitive 17): ken_server.should_start_job has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 6 (10 pts), boolean chains 5, if/else 2 (nesting depth added 4). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ken/src/ken_server.erl"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcee84befde408868303d98ece2ed225317cb74bf6247af27d22da873ef8305"}},{"ruleId":"D2","level":"warning","message":{"text":"mango_doc.rem_field (cognitive 17): mango_doc.rem_field has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 8 (13 pts), boolean chains 2, error handling 2 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_doc.erl"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50e7e734c01f3b913b2f41373e522be75641fc6b6e35fb0529ebc326d967c5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Range.equals (cognitive 17): Range.equals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (17 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extra/nouveau/src/main/java/org/apache/couchdb/nouveau/api/Range.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ef57b026eebe5b1c91b43595d68020d655082cb49f799c0d005784192b75f0"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_btree.make_group_fun (cognitive 16): couch_btree.make_group_fun has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_btree.erl"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f37ca44c31c83ed142eec38a25492ac76afc9ef3fc745b0a538e5e10e1c7900"}},{"ruleId":"D2","level":"warning","message":{"text":"couch_httpd_multipart.mp_parse_atts (cognitive 16): couch_httpd_multipart.mp_parse_atts has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 9 (14 pts), boolean chains 2 (nesting depth added 5). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_multipart.erl"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47cc39ca6f1d343ea12c47cc3ba9664fccb341f807a335ca15d6f12dcb90358"}},{"ruleId":"D2","level":"warning","message":{"text":"fabric_view_all_docs.go (cognitive 16): fabric_view_all_docs.go has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 13 (16 pts) (nesting depth added 3). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_all_docs.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"307e36ae5cd38a49404c5e9c495ab5f2254d34f9767fbf9b89e3957c955d738a"}},{"ruleId":"D2","level":"warning","message":{"text":"mem3_shards.changes_callback (cognitive 16): mem3_shards.changes_callback has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (7 pts), if/else 1 (5 pts), loops 1 (4 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_shards.erl"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c785b8a452ce3c1fc23a957317f9ec1c7a73119c11d89e5fd471aa814b8621f"}},{"ruleId":"D2","level":"warning","message":{"text":"setup_httpd.handle_setup_req (cognitive 16): setup_httpd.handle_setup_req has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 8 (16 pts) (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup/src/setup_httpd.erl"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdef3cbeed5937ca937fecefb053c35b37a1bf383fae26b9442bde9f10e4f983"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexManager.with (cognitive 16): IndexManager.with has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, match/switch 1 (2 pts), 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":"extra/nouveau/src/main/java/org/apache/couchdb/nouveau/core/IndexManager.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"92725ce5b2d19312d39d69c9725db8dbe0663d60aeb173664c5222dd9b077f58"}},{"ruleId":"D2","level":"warning","message":{"text":"linter.validate (cognitive 16): linter.validate has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (8 pts), if/else 2 (5 pts), error handling 1 (3 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/docs/ext/linter.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f370fa8cf524105217d49318d42beedc38631726032185d3206666d5352b76a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).runProvides (cognitive 16): (anonymous).runProvides has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 4). Of this number, 13 points are the body\u0027s own statements and 3 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":"share/server/render.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70c06ce17956de634445a7606895617aa7ecb47a332534478915726eee67813"}},{"ruleId":"D2","level":"warning","message":{"text":"compileFunction (cognitive 16): compileFunction has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 3). Of this number, 10 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. 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":"share/server/util.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cc583a7ea53678ba4d7cc32e930bb3ea573d4420d89eb1db93b8d7ea67d1a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/chttpd_db.erl: FileTooLong \u2014 2619 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 83 functions. The bar is 500 significant lines; this is 2119 over it, 5.24\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c270753aa34a41896aea1949ee929b52319b9f196c5cd6dd2cd650f5a444f9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_db.erl: FileTooLong \u2014 2051 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 147 functions. The bar is 500 significant lines; this is 1551 over it, 4.10\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b64d1b961883cc64f3d7aa7596391d6fab73e0e1f9ae6cf06bead73cdd9734"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mango_cursor_view.erl: FileTooLong \u2014 1671 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 31 functions. The bar is 500 significant lines; this is 1171 over it, 3.34\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_view.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e0db607a0e160e1e337d88f5cdac0198ced6e7e069c4c4cc7833a231bbe4b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/chttpd.erl: FileTooLong \u2014 1374 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 101 functions. The bar is 500 significant lines; this is 874 over it, 2.75\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbcdc3d0c4d5ab8d1281ec8abdf59ef7fe7dae1feb0c6feab00e9c020802107"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_scheduler.erl: FileTooLong \u2014 1331 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 71 functions. The bar is 500 significant lines; this is 831 over it, 2.66\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4a7d3729ac15be72b61b2d8755c57926ec97879cc031ea973de8e1f3661ea2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_httpd.erl: FileTooLong \u2014 1273 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 100 functions. The bar is 500 significant lines; this is 773 over it, 2.55\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f01a7e019160a2f7e5577a4f702863963d47fd37b3e270bcb945fd49b9645c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem3_rep.erl: FileTooLong \u2014 1212 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 44 functions. The bar is 500 significant lines; this is 712 over it, 2.42\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_rep.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"859e9ba9aabf084e8ca5501e3914ce1d817c4b80fd8a3218809ece8119bb3f4e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_httpd_db.erl: FileTooLong \u2014 1204 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 704 over it, 2.41\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_db.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6c7a48962b1be762ea24cc8b40a6bc50c8ca8a05e5a8d037cdab45c329288c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_doc_update.erl: FileTooLong \u2014 1188 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 35 functions. The bar is 500 significant lines; this is 688 over it, 2.38\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_update.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93bac832c2b069c65752a99521a79973c564f1fdb1b0cba28bd28e59f9ff7d9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_scheduler_job.erl: FileTooLong \u2014 1155 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 41 functions. The bar is 500 significant lines; this is 655 over it, 2.31\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler_job.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc781bd7cb9f0cc48a2c4c3bf6e1427f03075bc216b54378dace7eab5634d75"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mango_selector.erl: FileTooLong \u2014 1148 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 648 over it, 2.30\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0b672911c8dcac21cc85ced2dac39a69b3a22ebe736fcbd6c3f19b52e3fb17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_btree.erl: FileTooLong \u2014 1141 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 63 functions. The bar is 500 significant lines; this is 641 over it, 2.28\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_btree.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9cfc1ed265f4e3350fcc3c68a59e0c5db2ed3636f00551682c0c3ca9330c03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_mrview_util.erl: FileTooLong \u2014 1132 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 94 functions. The bar is 500 significant lines; this is 632 over it, 2.26\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_util.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcf477391c80154f6114afb125717eb84d2973bc2da3565f4b99b4fa0598f38"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mango_cursor_text.erl: FileTooLong \u2014 1089 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 589 over it, 2.18\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_text.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"894ed6948d2fa419ae8da753e504d855afca889c602f5cdbe7fea8734e35cfb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_debug.erl: FileTooLong \u2014 1064 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 64 functions. The bar is 500 significant lines; this is 564 over it, 2.13\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_debug.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dd203151f226a5ea7a8a782c062f1ecbb832e65bb9aa5b693bb7b5bb7518af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mango_cursor.erl: FileTooLong \u2014 1019 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 519 over it, 2.04\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b792bb398bdd7cdbac64b00630ae89522e82995054913c123ea281be738b4f1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_bt_engine.erl: FileTooLong \u2014 1009 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 89 functions. The bar is 500 significant lines; this is 509 over it, 2.02\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77e678a1f8627123e26b9a524f105a628f6887cf1875618d8c29851dd4a82f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_multidb_changes.erl: FileTooLong \u2014 989 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 489 over it, 1.98\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_multidb_changes.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f4c23424a9fcfc49f70af60cbd0ed00df9d867bfddb5a36a1792798c689939"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_view_changes.erl: FileTooLong \u2014 985 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 36 functions. The bar is 500 significant lines; this is 485 over it, 1.97\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_changes.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13a82355d4423fa01bf47b2f49a1d4794cbadf12c1c13779d306b140ab650b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_server.erl: FileTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 55 functions. The bar is 500 significant lines; this is 464 over it, 1.93\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_server.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2467f11c94edbf3b142bf624b54508469406fffcb590b79488f2835932c4421c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_api_wrap.erl: FileTooLong \u2014 959 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 40 functions. The bar is 500 significant lines; this is 459 over it, 1.92\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_api_wrap.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36de84f6c1c02f0996c21e7b375ac3d367a559fcab7ab8a9899a283c0f984037"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_query_servers.erl: FileTooLong \u2014 868 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 64 functions. The bar is 500 significant lines; this is 368 over it, 1.74\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_query_servers.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"731f6dd68ca7ba7e21e63ee5a83a173cd1264cf01e4296bd7d682fbe3accf788"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_doc_processor.erl: FileTooLong \u2014 840 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 40 functions. The bar is 500 significant lines; this is 340 over it, 1.68\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_doc_processor.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3e94bc0130101ed537a937b2ed83829a6c5be703eea93706de277b1087b328"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_db_updater.erl: FileTooLong \u2014 837 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 34 functions. The bar is 500 significant lines; this is 337 over it, 1.67\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db_updater.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce89831a38bdbc55ed9271670dfe1fa7f3444d10134d34b5832b31a8fa2b4bc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_file.erl: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 71 functions. The bar is 500 significant lines; this is 334 over it, 1.67\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_file.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd99192d0cede989e8cb02f90986021b003eb9d36c533ae10a647bc5b3dcc528"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_log_trunc_io.erl: FileTooLong \u2014 830 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 330 over it, 1.66\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_trunc_io.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbb00c269b390d062adc9c70cf82cf1181657e06c37ef04b6d7963d600624cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_view.erl: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 320 over it, 1.64\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28a6d272d64c4d6c0067b387878d81335eaebac6961e6fa1ad5afb4617c78d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: fabric_util: TooManyFunctions \u2014 47 functions. The bar is 30 functions; this is 17 over it, 1.57\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_util.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d64180e318dc470fd0fb58c531982b02d776f4f74e5c8078447d49779b43359"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_att.erl: FileTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 38 functions. The bar is 500 significant lines; this is 277 over it, 1.55\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_att.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa2351ea98f208367483e65c39d80c5a598ce1b889cef73b6daf7332da196a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_view_all_docs.erl: FileTooLong \u2014 776 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 276 over it, 1.55\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_all_docs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b18ad68fbd9b8ef976801991ce08667587922ea673ee368089a449b2100bfdc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_rpc.erl: FileTooLong \u2014 767 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 80 functions. The bar is 500 significant lines; this is 267 over it, 1.53\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_rpc.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e79b1a2ea89dae2a35193ff80fc0515e869bdbd0ddaa5cfda48a1d941e49372"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_quickjs_scanner_plugin.erl: FileTooLong \u2014 758 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 58 functions. The bar is 500 significant lines; this is 258 over it, 1.52\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_quickjs/src/couch_quickjs_scanner_plugin.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfca16ca8bb3c499bd749e450a37b59ce80cb1a12dfb8e61b4cd7fdd03d2616"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: couch_log_trunc_io_fmt: TooManyFunctions \u2014 44 functions. The bar is 30 functions; this is 14 over it, 1.47\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_trunc_io_fmt.erl"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba188184905391f0bde78b4c1517086e6d1c6afb9e7c114753eac6e18a6fbad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_changes.erl: FileTooLong \u2014 732 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 38 functions. The bar is 500 significant lines; this is 232 over it, 1.46\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_changes.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c144a7def7aaff81dd997c356bfae653c4c7355b58b95a2ce23bde8a6d607d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem3_shards.erl: FileTooLong \u2014 715 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 41 functions. The bar is 500 significant lines; this is 215 over it, 1.43\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_shards.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e1fe5803210525daa705fd70402600412213e0656cb1f06c4dde16e26f70e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem3_reshard.erl: FileTooLong \u2014 703 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 58 functions. The bar is 500 significant lines; this is 203 over it, 1.41\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_reshard.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d8d3f553302f9cb7aaddab0e8a2ac27c932aa42e35967049908c6b0e8e90af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_util.erl: FileTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 76 functions. The bar is 500 significant lines; this is 200 over it, 1.40\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_util.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eca49e85a796e3c9b8d3670fd82e7ac309b6ad517cb6085f905a01715656a29"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_httpd_auth.erl: FileTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 37 functions. The bar is 500 significant lines; this is 194 over it, 1.39\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_auth.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39633320884de9bb2ecf3c75b411e5d468715115e1962224a32d69fe8479d888"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_mrview.erl: FileTooLong \u2014 694 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 42 functions. The bar is 500 significant lines; this is 194 over it, 1.39\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd95a4c9021ecbe3a4d6491ccf26c4d429c759c7a4d83888d21103df1cb77f5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_parse.erl: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 31 functions. The bar is 500 significant lines; this is 189 over it, 1.38\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_parse.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ebe8e6b2a2b8791df0b9a6e0a8c4934796df25871b333584ae1b81dca9ace9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/config.erl: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 66 functions. The bar is 500 significant lines; this is 170 over it, 1.34\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/src/config.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e64e6613d94b1c95820eceb3b04f057189ef6e456bc6b3cf6e91506192e911c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: couch_key_tree: TooManyFunctions \u2014 40 functions. The bar is 30 functions; this is 10 over it, 1.33\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_key_tree.erl"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e76cba6474c92487e72d9f9a91fec5f9f7c23023ac7a75e1360734ea823a8cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric.erl: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 73 functions. The bar is 500 significant lines; this is 163 over it, 1.33\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47422c546c55968ccef6051e637be98bf181a14c6b8865af392742072706bea1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_proc_manager.erl: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 57 functions. The bar is 500 significant lines; this is 155 over it, 1.31\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_proc_manager.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4f5dab4004334f80efdfb6c8a20ee565d0250ea7d73bb1a5cee67b6845dc64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/smoosh_server.erl: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 40 functions. The bar is 500 significant lines; this is 147 over it, 1.29\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/smoosh/src/smoosh_server.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"148fc888dbb6a372448e504a5412f6d519ebbaa74a02d8bac21eee2aad4cbf90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mango_selector_text.erl: FileTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 146 over it, 1.29\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector_text.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09c6a1103a5d6d80c45f723e1a2bd053fbd651e858f5e882839243e3dfa405a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/dreyfus_httpd.erl: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 140 over it, 1.28\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_httpd.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7473fe91aaed26e4582b8c46320106fa4ca8b33f4bd199679eb54ef6dbcdb38d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: mango_native_proc: TooManyFunctions \u2014 38 functions. The bar is 30 functions; this is 8 over it, 1.27\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_native_proc.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9191896c755255a0ba5710eda870b5c8bd07aa7ac170a42302fc1642069744fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_auth_session.erl: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 31 functions. The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth_session.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cf750ec6611f2c1b7d91a382f7c46346f49906eb2a5ebe245c358e8c292d14"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_worker.erl: FileTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 128 over it, 1.26\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_worker.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06e6e21a884d02b62e623ac9d7003c96fc7183c508b56be93b84261ab7719d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_bt_engine_compactor.erl: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 121 over it, 1.24\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine_compactor.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f226f429c7cbc9d8167121f71673b08f90f0074519fd31bda8cfa4b8c389fe2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_mrview_http.erl: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 115 over it, 1.23\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_http.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c41c11b2b2b87450da4f8c4e2016edfd51d68af4139e4952cfdf459936dfe5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_docs.erl: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_docs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"340eb91b95ae27e86462a192a8467aeffda89f8f245ac494011e7024c6ad8a52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mango_idx.erl: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 38 functions. The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b471864ef18b5808a495c31b385ee3586236ef7454c71a37cd7bee2f6535dd4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: couch_bt_engine_header: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine_header.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"40091ff4246a6fd7f7e863af6189fd3a32609923b47b4a9fc0fda5b73d0e3fc1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: weatherreport_getopt: TooManyFunctions \u2014 36 functions. The bar is 30 functions; this is 6 over it, 1.20\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/weatherreport/src/weatherreport_getopt.erl"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a64cecbd8b0b2bc3637729baaac09d7ffca822fe17538142c5926ddb698b234"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: couch_doc: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_doc.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e838ad9e04a779af1b6e8db10f27e2cba86a36fff636518f1436e80e507235"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_auth_ibm.erl: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 33 functions. The bar is 500 significant lines; this is 77 over it, 1.15\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth_ibm.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6774ff86589f2a493e1ad7768e4d10a201714d90d63690ea73e609418e7f11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_utils.erl: FileTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 31 functions. The bar is 500 significant lines; this is 77 over it, 1.15\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_utils.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a17faa2952ab39a4b30156a81cb03d98c96984df1a5dd38190c576725f6ccd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_doc_open_revs.erl: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_open_revs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f43d0004eecef0e3cc1954ca9d44f7a5415ac674a56eed475977a257e9c4018"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_scanner_plugin.erl: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 46 functions. The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_plugin.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdd157b0f921b881a5da1b21c48d05735cd6148918b56671c870f20e49fd113"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_doc_purge.erl: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_purge.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbe72f23ffb8177c92fecc4b07d7384ae779c4f9de774fdca49eb57592a4650"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: mango_util: TooManyFunctions \u2014 34 functions. The bar is 30 functions; this is 4 over it, 1.13\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_util.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34c2822055b8f9fdf0f1f3bbe6f71c0eaceeb64e9a03209855b2f9149d5e5c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem3_reshard_job.erl: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 45 functions. The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_reshard_job.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cbdeac41b7227a4b32aef97be9516565498a953011ba22881948bc284122d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: mem3_sync: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_sync.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5b38df54505b9b7f3e3f969094275ac6783664564f5459a14fe61fbca2c7aa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: setup: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/setup/src/setup.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9c426171468cef845c535061f8c8fe2a1b994c2bd9e4304b06397864128acf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: smoosh_channel: TooManyFunctions \u2014 33 functions. The bar is 30 functions; this is 3 over it, 1.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/smoosh/src/smoosh_channel.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8292e51ca3fe0d7aceeb9a3b210c9f2a027e24c66a725aebff6c6b5a42c0354b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_replicator_httpc.erl: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 47 over it, 1.09\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_httpc.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5b79db578ba42cadbced3cb4503966f990d2fc652976714534f17b900e4d21"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_view_map.erl: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_map.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9739ad0c9cf4aa6fbe51805214100c3da7a921d88789512a82f717e02ad380f5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: couch_scanner_server: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_server.erl"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90556374ad1d1227d7f06cf88d3aa55f8128545048cd7c2e3b5f63fb77fae31"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: jwtf: TooManyFunctions \u2014 32 functions. The bar is 30 functions; this is 2 over it, 1.07\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/jwtf/src/jwtf.erl"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a12e58792f892d330895833d2486c4f88a183c3ce85404f447e56c870e3d1cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_db_engine.erl: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 57 functions. The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db_engine.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57fbdf96c0cab719c0658b69310de221e688ce5024f84a05784bda0769224f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem3_util.erl: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 40 functions. The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_util.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8e3c3fc19c0cdda322c316617bfaef764c4ea1be5a469c464af496c5aba00a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem3_rpc.erl: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 23 over it, 1.05\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_rpc.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65a12a2d09069945914c76c379a735460c90175229c30b5df43a7b4bff16274"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/mem3.erl: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 67 functions. The bar is 500 significant lines; this is 19 over it, 1.04\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ca13cbb70a2cca9fc86b987b71f99eb729c116732dfa0012768d160f7d3cd6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: couch_httpd_vhost: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_vhost.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0afa7e2b0672bd5e597d5102d6cbe0212873577eab26cc69ea4cb56138c7f0a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: couch_epi_functions_gen: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_epi/src/couch_epi_functions_gen.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b747508f9df4ae8e231ab4a8ff19bfcaf6c5c3713d6851c066d156468f6ae5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/fabric_ring.erl: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 11 over it, 1.02\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_ring.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c1b5a772bc50b091a1bc2b5919a5d9dcf6eae1c64bf213a2ec10dd0646b921"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/couch_db_split.erl: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 9 over it, 1.02\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db_split.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db842124c26da8d1f616f01efda6cf68f0177168406a60a9031d7117b68a438"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (45 shared lines): src/chttpd/src/chttpd.erl:102-177 | src/couch/src/couch_httpd.erl:60-129 \u2014 These two members are variants of one another: 45 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"228661edff3fda79451d330845cfa13252dc162833af7657d9fde7c2f079149a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/dreyfus/src/dreyfus_fabric_info.erl:48-64 | src/nouveau/src/nouveau_fabric_info.erl:66-82 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_info.erl"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dff01b32f40a868a3c653a69a4a9c48809da78dfc9db874369370b82399816c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/mango/src/mango_idx_nouveau.erl:169-178 | src/mango/src/mango_idx_text.erl:176-185 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2947e861faf0d683fd07d9f7061c6870b8f68bf0d70036da7be21d4d3527828"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/nouveau/src/nouveau_api.erl:85-96 | src/nouveau/src/nouveau_api.erl:101-114 | src/nouveau/src/nouveau_api.erl:116-137 | src/nouveau/src/nouveau_api.erl:139-157 | src/nouveau/src/nouveau_api.erl:159-187 | src/nouveau/src/nouveau_api.erl:292-303 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/nouveau/src/nouveau_api.erl"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb996eb668c6dc043d5efc2ec7ba8e54005722691829e519eff59eaa9d08033"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/couch_replicator/src/couch_replicator_fabric.erl:95-140 | src/fabric/src/fabric_view_all_docs.erl:193-274 | src/fabric/src/fabric_view_map.erl:147-224 | src/fabric/src/fabric_view_reduce.erl:133-186 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_fabric.erl"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7638590385c297df958b80d6625fcb6df179f4f10d564e0e98449fb5e495a73c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76\u201390 lines \u00D7 2): src/chttpd/src/chttpd.erl:1172-1247 | src/couch/src/couch_httpd.erl:1087-1176 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb28c8db2c40141f2fa94cc0af4713e645b0b1015b1534c32f11e5d7151b7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55\u201358 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:319-373 | src/mango/src/mango_idx_text.erl:329-386 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"99926eb005d486305e6a8749bb3eb28aa123175c5f5ebd6b9a1b3e39fa2a1b66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:242-286 | src/couch/src/couch_httpd_rewrite.erl:238-282 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc32d6427a0f422ce352ae3f3c00fe5297a956461dcde89a18cef962ea8fd44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:225-261 | src/mango/src/mango_idx_text.erl:230-266 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"40dfdd81a3e153e2f4d6985ae89e931fc6bd5811d00a76487319bb74ea3909db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): src/mango/src/mango_cursor_nouveau.erl:183-214 | src/mango/src/mango_cursor_text.erl:190-222 \u2014 before extracting anything, compare \u0060src/mango/src/mango_cursor_nouveau.erl\u0060 and \u0060src/mango/src/mango_cursor_text.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7252a07ea8b8aabb3be0beff63acd0bf434d7a4737a0f5abd1eca2b560c040f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/chttpd/src/chttpd.erl:133-163 | src/couch/src/couch_httpd.erl:87-117 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba015e53090900cc183e0e34c5d48e5d12c4c560e4097e3436ce036ed93bfbb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:1768-1798 | src/couch/src/couch_httpd_db.erl:896-926 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b177f5a5218c897942e5bd24d0772e7d70796984c5c2b660eed90ac4c9d17d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/fabric/src/fabric_ring.erl:241-271 | src/fabric/src/fabric_view.erl:468-498 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_ring.erl"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"01dd74612c0c0d5558251105b4e2274277aeae872afbc3441ff512d5af976c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/mango/src/mango_cursor_nouveau.erl:95-125 | src/mango/src/mango_cursor_text.erl:100-130 \u2014 before extracting anything, compare \u0060src/mango/src/mango_cursor_nouveau.erl\u0060 and \u0060src/mango/src/mango_cursor_text.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9b46177180bda1490e5951a9e74cbb8254b82698c23344a16c7d0d816773d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:450-478 | src/couch/src/couch_httpd_rewrite.erl:452-480 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"8583984d43c4a8cac23780a072f5f736fa3093ccac38711fe6750bf04e8d1aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): src/couch/src/couch_btree.erl:754-781 | src/couch/src/couch_btree.erl:796-824 \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":"src/couch/src/couch_btree.erl"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0dee0ceb899ccc2334c031427732861685b5fca102b7a91ca728f586066013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:105-128 | src/mango/src/mango_idx_text.erl:105-128 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc549743e4ceb82f6ccf0d71fa83a4bd4b92e3ebbe31eddb5c0af355c98a9b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:288-311 | src/mango/src/mango_idx_text.erl:293-316 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"9274a0515b72df748f9185173560f8bb128ab5cfd9f9317932d0421665e715e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/dreyfus/src/dreyfus_fabric_group1.erl:52-74 | src/dreyfus/src/dreyfus_fabric_group2.erl:57-79 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_group1.erl\u0060 and \u0060src/dreyfus/src/dreyfus_fabric_group2.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_group1.erl"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0338b5729adb488a41c4cfde8002292a76fef7da3c99cd3074a91883d73b7d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): src/chttpd/src/chttpd.erl:710-731 | src/couch/src/couch_httpd.erl:666-685 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8fbca7f175aeeb3503895b98ba1043d468f039e01a5abf95e739ba525b157a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201322 lines \u00D7 4): src/fabric/src/fabric_db_doc_count.erl:36-57 | src/fabric/src/fabric_db_uuids.erl:37-40 | src/fabric/src/fabric_design_doc_count.erl:36-57 | src/fabric/src/fabric_time_seq.erl:45-48 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_db_doc_count.erl"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9cf022be28dce88eb0aac3ac4eec6580a8514254352dbf03e9efec67a593db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/dreyfus/src/dreyfus_util.erl:155-175 | src/dreyfus/src/dreyfus_util.erl:179-198 \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":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc7e87c6e49b785ed437bbd5bb37c5e3d914130b74693b4f04563167229a100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:306-325 | src/couch/src/couch_httpd_rewrite.erl:302-321 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e75872cad721d5369592c095f76341c877adb47326e0b66e69b882a2e2ed844"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/fabric/src/fabric_view_map.erl:45-63 | src/fabric/src/fabric_view_reduce.erl:37-55 \u2014 before extracting anything, compare \u0060src/fabric/src/fabric_view_map.erl\u0060 and \u0060src/fabric/src/fabric_view_reduce.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_map.erl"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1011f542f95cc2f912d3464b528b9938458c3b63a8242b014ee1d0c146b70d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201318 lines \u00D7 4): src/couch_replicator/src/couch_replicator_fabric.erl:96-99 | src/fabric/src/fabric_view_all_docs.erl:197-214 | src/fabric/src/fabric_view_map.erl:151-167 | src/fabric/src/fabric_view_reduce.erl:134-137 \u2014 before extracting anything, compare \u0060src/couch_replicator/src/couch_replicator_fabric.erl\u0060 and \u0060src/fabric/src/fabric_view_all_docs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_fabric.erl"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1902497f7ab2648124b023ee6670d6eb1d1b217ce5599197fc073c9fca0a909"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:382-398 | src/couch/src/couch_httpd_rewrite.erl:378-394 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08c0e4d9744d95f0bdabd3f60e7179e29930019bd89c7061bbd9a3ef647f3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): src/chttpd/src/chttpd_show.erl:211-227 | src/chttpd/src/chttpd_show.erl:230-244 \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":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"94aceec88f384a235552a01a3f2150475af75c1e6f8eeb2fc85ff88ab881db8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): src/couch/src/couch_bt_engine_compactor.erl:566-582 | src/couch/src/couch_db_split.erl:541-554 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine_compactor.erl"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"982ecb668c7b7638e73acd2f1d9e9bd01d1c27a96a808e92d7b59ab92423d3a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/couch_log/src/couch_log_writer_file.erl:74-90 | src/couch_log/src/couch_log_writer_stderr.erl:31-47 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_writer_file.erl"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab648cdae76fad836cef4f3e6823df2ef34ca9d80b35359ddaef512c509f282f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): src/mem3/src/mem3_shards.erl:90-105 | src/mem3/src/mem3_shards.erl:122-138 \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":"src/mem3/src/mem3_shards.erl"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"58edd877cc7c1ca76e21901a1e4176ff23e26d1ddad8cdc60a4bc0f353f89210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/chttpd/src/chttpd.erl:694-708 | src/couch/src/couch_httpd.erl:647-662 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eaa32d6753de0cd705a267a6c4cc96e25406879346de920a6697f095e02899c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:499-514 | src/couch/src/couch_httpd_rewrite.erl:501-516 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae27743fb2a7b5a68e2e1a53a540a4af16cf9e6af07c892e4c73a7682afef64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/dreyfus/src/dreyfus_fabric_info.erl:93-108 | src/fabric/src/fabric_group_info.erl:84-99 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_info.erl\u0060 and \u0060src/fabric/src/fabric_group_info.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_info.erl"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"9689618f8e78c520c1de2484f1f62c55309efad2243284fe71373a9d92231fe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/dreyfus/src/dreyfus_util.erl:446-461 | src/nouveau/src/nouveau_util.erl:157-172 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_util.erl\u0060 and \u0060src/nouveau/src/nouveau_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf6b5ae26c24ad75a92cb00ac0406b6fa985f9f0b34f0825f341d93cd6ad931"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:271-286 | src/mango/src/mango_idx_text.erl:276-291 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36dabacfb82392ca8e09f191819619f2558880ffd40cf17e3d69c838ad3f6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/dreyfus/src/dreyfus_fabric_group1.erl:109-123 | src/dreyfus/src/dreyfus_fabric_group2.erl:128-142 | src/dreyfus/src/dreyfus_fabric_search.erl:193-207 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_group1.erl\u0060 and \u0060src/dreyfus/src/dreyfus_fabric_group2.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_group1.erl"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"82503d5152ac63c3f33c5ed506a49263af162bd42544d048efb1196711096def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/dreyfus/src/dreyfus_fabric_info.erl:66-80 | src/fabric/src/fabric_group_info.erl:57-71 | src/nouveau/src/nouveau_fabric_info.erl:84-98 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_info.erl\u0060 and \u0060src/fabric/src/fabric_group_info.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_info.erl"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3f20ffedfcc112a6236873356e395e887590976560bbae8a26ba5c837a3a83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:1129-1143 | src/chttpd/src/chttpd_view.erl:33-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd501602a0a27f399473115f209d72d271d597ebba497bc93c9bbe1b21c81dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/couch/src/couch_native_process.erl:467-481 | src/mango/src/mango_json.erl:94-108 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_native_process.erl"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f638df11aa9da552a78874af5205ce3fa23d0bf76e2068f9b634e6cda3d603a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/couch_mrview/src/couch_mrview_http.erl:365-379 | src/couch_replicator/src/couch_replicator_httpd_util.erl:141-155 \u2014 before extracting anything, compare \u0060src/couch_mrview/src/couch_mrview_http.erl\u0060 and \u0060src/couch_replicator/src/couch_replicator_httpd_util.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_http.erl"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f06bbad3bc7790a665278aef6ffe8a73ba3d991005a624e2662b8d811200f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/dreyfus/src/dreyfus_index.erl:125-139 | src/nouveau/src/nouveau_util.erl:77-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_index.erl"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b720749da0b671ec86448df2707996a37ccdf205d856fdcaea031c8048ee118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/fabric/src/fabric_view_map.erl:99-113 | src/fabric/src/fabric_view_reduce.erl:101-115 \u2014 before extracting anything, compare \u0060src/fabric/src/fabric_view_map.erl\u0060 and \u0060src/fabric/src/fabric_view_reduce.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_map.erl"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5204305002e3fc257eea647ce53eb03bd607de55bbaab596bf80b33ae4c5d26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:375-389 | src/mango/src/mango_idx_text.erl:388-402 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"74150ef0639c8bb5c56314078a0ccd8cef81e64d230d5e06b6de7fff5479c839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/dreyfus/src/dreyfus_util.erl:138-151 | src/dreyfus/src/dreyfus_util.erl:155-168 | src/dreyfus/src/dreyfus_util.erl:179-192 \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":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2aafe90a1a68fe11d0a10f62857e400e70563d892fe4a85cda5f52e5f04605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:434-447 | src/couch/src/couch_httpd_rewrite.erl:436-449 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"f867812930a4714522df0ee097c97955f534430c4786293aa4c42dd32f6ff7c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:516-529 | src/couch/src/couch_httpd_rewrite.erl:518-531 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"e796e0144ad2770fe38803a17fe6dd53bf1e4e20be79911dc0a31588cad6a131"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/chttpd/src/chttpd_show.erl:84-97 | src/couch_mrview/src/couch_mrview_show.erl:82-95 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_show.erl\u0060 and \u0060src/couch_mrview/src/couch_mrview_show.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc106809eebd9fe8269bb35daa98c43adc9e3035876222728e95b02772e1aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/couch_mrview/src/couch_mrview.erl:412-425 | src/couch_mrview/src/couch_mrview.erl:441-454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview.erl"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"338ae1b85689f99690087ff60b64c8ae0d7ead9ac1b79c72fabbbc45d5d0642d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/mango/src/mango_cursor_nouveau.erl:216-229 | src/mango/src/mango_cursor_text.erl:224-237 \u2014 before extracting anything, compare \u0060src/mango/src/mango_cursor_nouveau.erl\u0060 and \u0060src/mango/src/mango_cursor_text.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c023c7032b9af2a1eff5762dbb0a64ba4ddac5e93d58824ead4abd73937d4625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/mem3/src/mem3_rep.erl:503-516 | src/mem3/src/mem3_rep.erl:575-588 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_rep.erl"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"863f4f86733f9bbe181a2ed2f93882cd23635c5aa8b03236143222d7728a5f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/mango/src/mango_idx_nouveau.erl:54-66 | src/mango/src/mango_idx_text.erl:54-66 | src/mango/src/mango_idx_view.erl:59-71 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad662b4615518284b8ca1b5f534daa914716fa00cf57c7cb60ad0da0538b9a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/couch/src/couch_att.erl:612-624 | src/couch/src/couch_att.erl:672-684 \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":"src/couch/src/couch_att.erl"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b22aad2e2fb120179d98f6fe1bf99bc1603eeb6c8a39d1c45ca16496c61372b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/couch_replicator/src/couch_replicator_fabric.erl:142-154 | src/fabric/src/fabric_view_all_docs.erl:276-288 \u2014 before extracting anything, compare \u0060src/couch_replicator/src/couch_replicator_fabric.erl\u0060 and \u0060src/fabric/src/fabric_view_all_docs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_fabric.erl"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ceb685b91c39844034f45519be941de99e78e596656274081c47b8fefd1e5be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/weatherreport/src/weatherreport_getopt.erl:193-203 | src/weatherreport/src/weatherreport_getopt.erl:282-294 \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":"src/weatherreport/src/weatherreport_getopt.erl"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf6af4c5438e635418a8d9dc777652b800d420820c70f46dc20f02ae4ddbc39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): src/couch_mrview/src/couch_mrview_updater.erl:377-388 | src/dreyfus/src/dreyfus_index_updater.erl:191-201 | src/nouveau/src/nouveau_index_updater.erl:293-303 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_updater.erl"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5bdd892b43cda78f8e72a3a537b93ab32a598361de97cb3bab40a8e1d95892c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): src/nouveau/src/nouveau_api.erl:106-114 | src/nouveau/src/nouveau_api.erl:126-137 | src/nouveau/src/nouveau_api.erl:149-157 \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":"src/nouveau/src/nouveau_api.erl"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbc62932f6b81c0af628a9dd4e551306274af9dc7dfc9324e782295b70648e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/config/src/config_util.erl:31-42 | src/couch/src/couch_util.erl:287-298 \u2014 before extracting anything, compare \u0060src/config/src/config_util.erl\u0060 and \u0060src/couch/src/couch_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/src/config_util.erl"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9510ce9bb79bbc40b0f27803508129553c7bb6465e0cb5e3688272dd354caa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): src/couch/src/couch_btree.erl:187-197 | src/couch/src/couch_btree.erl:218-229 \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":"src/couch/src/couch_btree.erl"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"017f8bff99382946f32b4035ee9c05c4654e9df2d44f858f7b62b736cc0e2fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:198-209 | src/mango/src/mango_idx_text.erl:203-214 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"092c546b5f3374b48d0649f6eb070924e5aa608cbb9de27bab0672fab7f48883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): src/nouveau/src/nouveau_api.erl:88-96 | src/nouveau/src/nouveau_api.erl:176-187 \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":"src/nouveau/src/nouveau_api.erl"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68281c24e6296a8e26654614171e367751983fbdb6f9777300372a02f068115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:487-497 | src/couch/src/couch_httpd_rewrite.erl:489-499 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"304a387739fc7b8d30fb9c6cce67786ec10ff3fa7bb69b8631fbdbc484905b78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): src/chttpd/src/chttpd_show.erl:182-192 | src/chttpd/src/chttpd_show.erl:195-202 \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":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f3137e24e81a4102c27eba3dae737b34399b17b8bb3b507f6941139f941dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/chttpd/src/chttpd_show.erl:317-327 | src/couch_mrview/src/couch_mrview_show.erl:366-376 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_show.erl\u0060 and \u0060src/couch_mrview/src/couch_mrview_show.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"a131a8b88e3940d05d976a50188649e333fed9a31fd80159383db26bad32ae9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): src/couch/src/couch_btree.erl:247-256 | src/couch/src/couch_btree.erl:259-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_btree.erl"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7114f007a0d04af65598ba7a7ed208694cb00e2d2ef5a6d5cadc3dac26fcf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/couch_index/src/couch_index_server.erl:282-292 | src/couch_index/src/couch_index_server.erl:338-348 \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":"src/couch_index/src/couch_index_server.erl"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8580c3b5ff95362bc34562713605fbcdb100a75aaebf148e55c1f9219d0775bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/mango/src/mango_native_proc.erl:202-212 | src/mango/src/mango_native_proc.erl:367-377 \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":"src/mango/src/mango_native_proc.erl"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"167305c990b089607d86099fb952ea27b2bb70585d1741ad1a286666c20a3baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/mem3/src/mem3_reshard_httpd.erl:54-64 | src/mem3/src/mem3_reshard_httpd.erl:200-210 \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":"src/mem3/src/mem3_reshard_httpd.erl"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7df13209f560fcec8bfd33bd2f28540006e876ad476768507ca1ee0b4ef389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 3): src/dreyfus/src/dreyfus_fabric_group1.erl:79-85 | src/dreyfus/src/dreyfus_fabric_group2.erl:91-100 | src/dreyfus/src/dreyfus_fabric_search.erl:156-162 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_group1.erl\u0060 and \u0060src/dreyfus/src/dreyfus_fabric_group2.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_group1.erl"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc858d83345fd8c19c429ef2b40a5cc7eae5d087802799b0204303cc5d35902"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): src/mango/src/mango_doc.erl:213-222 | src/mango/src/mango_doc.erl:297-305 | src/mango/src/mango_doc.erl:330-338 \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":"src/mango/src/mango_doc.erl"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0615b31e57f49cf48d00706a6a8d1fade4196e9e1353944b6b2a7082f6fe8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/b64url/src/b64url.erl:52-61 | src/exxhash/src/exxhash.erl:39-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/b64url/src/b64url.erl"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb42d2b0e50becf41f3ad73011e3d72776f913ddf2fb8ac77339e83904f21cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/chttpd/src/chttpd_auth.erl:89-98 | src/couch/src/couch_db_plugin.erl:85-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_auth.erl"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc6b0963e7d342fa29ff9c8f08f6ca890dbde30f58e6435059e21ace8af2db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:2296-2305 | src/couch/src/couch_httpd_db.erl:1286-1295 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2296}}}],"partialFingerprints":{"codehealthFindingId/v1":"08aa08ecbb88159a9a116d0ce352d90ef7e3db1bd12e890aef136bc6cbad6dda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:2427-2436 | src/couch/src/couch_httpd_db.erl:1355-1364 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2427}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcaf5d0e673e26030f504c8e55a10ba39ea54bbdea011f32ddfff092188ea871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): src/couch/src/couch_db_split.erl:524-533 | src/couch/src/couch_db_split.erl:538-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_db_split.erl"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"159738bbe1757e1a8e81d7a913faea2a3b5d075465a756764898358d87d7a026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/couch_log/src/couch_log_trunc_io.erl:398-406 | src/couch_log/src/couch_log_trunc_io.erl:408-417 \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":"src/couch_log/src/couch_log_trunc_io.erl"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f022e14ad49cc8ac1918d33a66f15544fb6c21bd8aa983159f4997f87375f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): src/fabric/src/fabric_db_info.erl:124-133 | src/fabric/src/fabric_group_info.erl:149-157 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_db_info.erl"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"dffec50d17c05cf71d03047df9f56cb7415cf3355b68b420c7242b30256c768c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/mango/src/mango_cursor_nouveau.erl:127-136 | src/mango/src/mango_cursor_text.erl:132-141 \u2014 before extracting anything, compare \u0060src/mango/src/mango_cursor_nouveau.erl\u0060 and \u0060src/mango/src/mango_cursor_text.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae5278a25827000f75a4028bf8bbb9a832480504e07bad793074a166cd8110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/mem3/src/mem3_reshard.erl:553-562 | src/mem3/src/mem3_reshard.erl:565-574 \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":"src/mem3/src/mem3_reshard.erl"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fde69c81a9d92dddb7ec59a1a9a2a11701ccc0ae4bce9fb8660b814036a957"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/mem3/src/mem3_reshard_api.erl:92-101 | src/mem3/src/mem3_reshard_api.erl:110-119 \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":"src/mem3/src/mem3_reshard_api.erl"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"57948193fb3c4c720215c1aa5ca8285100876b1067919f83fe602d9e4fb7da94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/b64url/src/b64url.erl:53-61 | src/couch/src/couch_cfile.erl:221-229 | src/exxhash/src/exxhash.erl:40-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/b64url/src/b64url.erl"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"df357fc0a3ebbe2e1d2878b743d8de06798b784722b2a1ccbbd0d7138fb90a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): src/couch_log/src/couch_log_trunc_io.erl:399-406 | src/couch_log/src/couch_log_trunc_io.erl:409-416 | src/couch_log/src/couch_log_trunc_io.erl:419-427 \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":"src/couch_log/src/couch_log_trunc_io.erl"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b429690247c49c55f91dd1ec211136639932fee6442d33c8fc65e96d986f83ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/couch_mrview/src/couch_mrview_http.erl:422-430 | src/couch_replicator/src/couch_replicator_httpd_util.erl:108-116 | src/mango/src/mango_httpd.erl:321-329 \u2014 before extracting anything, compare \u0060src/couch_mrview/src/couch_mrview_http.erl\u0060 and \u0060src/couch_replicator/src/couch_replicator_httpd_util.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_http.erl"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3c12f0ab38c54e35d2cb3bb59af43f9aba499d9946422746b59f8bbd6d59fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/chttpd/src/chttpd.erl:113-121 | src/couch/src/couch_httpd.erl:69-77 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9049e41e3f71ce5de9b850f0bb83bf20eeed98a7e4d630067cc19a9bad6797aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:1169-1177 | src/chttpd/src/chttpd_view.erl:83-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f655fbe9aeefdf8d19d2fac05e6c3797d30246cb8c6a12167be7b6dd9cc157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:2131-2139 | src/couch/src/couch_httpd_db.erl:1212-1219 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f954795b8bf9be1e9ae650b07c6f3b55b93f255c3a0e79da76ec0281398fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/config/src/config_util.erl:21-29 | src/couch/src/couch_util.erl:277-285 \u2014 before extracting anything, compare \u0060src/config/src/config_util.erl\u0060 and \u0060src/couch/src/couch_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/src/config_util.erl"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce04422cf71226a0406ac703e1b76f62d957e6454906d1a84546265bc2c0918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/config/src/config_util.erl:56-64 | src/couch/src/couch_util.erl:302-310 \u2014 before extracting anything, compare \u0060src/config/src/config_util.erl\u0060 and \u0060src/couch/src/couch_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/src/config_util.erl"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5030e63ab6b673d94d93316406fca8358c6a3c87c0ae84e0db4a35d0a3d3de36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/couch/src/couch_att.erl:404-411 | src/couch/src/couch_att.erl:416-424 \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":"src/couch/src/couch_att.erl"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cf7b03508a307e1491b43b6ed1728bb658c3a0403e0a1a918ef94856a1250a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/couch/src/couch_key_tree.erl:261-268 | src/couch/src/couch_key_tree.erl:583-591 \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":"src/couch/src/couch_key_tree.erl"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9e2615804204988d1a426a06c474dc1673b5450924d98507d568682c3a7039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/couch_mrview/src/couch_mrview_http.erl:382-390 | src/couch_replicator/src/couch_replicator_httpd_util.erl:158-165 \u2014 before extracting anything, compare \u0060src/couch_mrview/src/couch_mrview_http.erl\u0060 and \u0060src/couch_replicator/src/couch_replicator_httpd_util.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_http.erl"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46c225aab1d6d94c91bac4b5f3e98006f39a3d06d243c5d6d8646f169cfbc92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/couch_replicator/src/couch_replicator_httpc.erl:313-321 | src/couch_replicator/src/couch_replicator_httpc.erl:331-339 \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":"src/couch_replicator/src/couch_replicator_httpc.erl"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"245f824840099f4b73d19214702e096d9911269afbc342493cd5c4bc1e6dab28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): src/fabric/src/fabric_view_all_docs.erl:251-258 | src/fabric/src/fabric_view_map.erl:190-198 \u2014 before extracting anything, compare \u0060src/fabric/src/fabric_view_all_docs.erl\u0060 and \u0060src/fabric/src/fabric_view_map.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_all_docs.erl"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5a1fd4f3766ef4440776a2b8f4dd6150325b4f9d409858e741455537a1f236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/mango/src/mango_cursor_nouveau.erl:235-243 | src/mango/src/mango_cursor_text.erl:243-251 \u2014 before extracting anything, compare \u0060src/mango/src/mango_cursor_nouveau.erl\u0060 and \u0060src/mango/src/mango_cursor_text.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c3a71b32e102881e6ffb36832b5d5a10a34c74eff0c4b7135f692623cbcf97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/setup/src/setup.erl:151-159 | src/setup/src/setup.erl:318-326 \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":"src/setup/src/setup.erl"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"16248e181cfbf8e548b6caebfce287bfaaaf35e4433a66fd016dbbc6acaab369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/mango/src/mango_idx_nouveau.erl:96-103 | src/mango/src/mango_idx_text.erl:96-103 | src/mango/src/mango_idx_view.erl:102-109 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf140b4a80084b1f2486426c461e5cf718304eac016026d1d44af5e1b7565b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/config/src/config_util.erl:68-75 | src/couch/src/couch_util.erl:370-377 \u2014 before extracting anything, compare \u0060src/config/src/config_util.erl\u0060 and \u0060src/couch/src/couch_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/src/config_util.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5802cd6444aabd48f9abb099f191576acd828aa0a979e18b56195ec4cd62308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/couch/src/couch_base32.erl:108-115 | src/couch/src/couch_base32.erl:121-128 \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":"src/couch/src/couch_base32.erl"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80c9f892ffec0fee1afcd2331f38e4b7ed74af4b5da91c19fdbb9a77ccd5ec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/couch/src/couch_base32.erl:117-124 | src/couch/src/couch_base32.erl:134-141 \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":"src/couch/src/couch_base32.erl"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"995956184a192abc792032ed83762ed8da35c781f3a52c929fa00331e97a7b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/couch_mrview/src/couch_mrview.erl:689-696 | src/couch_mrview/src/couch_mrview.erl:709-716 \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":"src/couch_mrview/src/couch_mrview.erl"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"be5c17bf819c6d3725d1eeecc62034e1686f21b8da2ac46ff9aa1400d961e654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/couch_scanner/src/couch_scanner_checkpoint.erl:48-55 | src/mem3/src/mem3_reshard_store.erl:157-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_checkpoint.erl"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10659dfff1a1abfd7affa5c826b595c798ce8bd562e9e69d09875bfa768528e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/dreyfus/src/dreyfus_util.erl:437-444 | src/nouveau/src/nouveau_util.erl:148-155 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_util.erl\u0060 and \u0060src/nouveau/src/nouveau_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e161fb0542e451c7b979154415fda44f17cecda608068c3c122737f4bfd1e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/fabric/src/fabric_db_create.erl:132-139 | src/fabric/src/fabric_db_delete.erl:60-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_db_create.erl"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1c14faa0da6ccf5b41090ecf1e92a100dd3288fdf98417257adf1000acfdbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/mem3/src/mem3_shards.erl:423-430 | src/mem3/src/mem3_shards.erl:433-440 \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":"src/mem3/src/mem3_shards.erl"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"b50a72d44f05257970fee3b5bbf6a3246958ef57910b7d248e7596b72e23bf60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/couch/src/couch_base32.erl:98-104 | src/couch/src/couch_base32.erl:109-115 | src/couch/src/couch_base32.erl:122-128 \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":"src/couch/src/couch_base32.erl"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b52642636511967862c09b25435717dda830e9ff8d54c2e311f42be95e2f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/couch_event/src/couch_event_listener.erl:131-137 | src/couch_event/src/couch_event_listener.erl:143-149 | src/couch_event/src/couch_event_listener.erl:155-161 \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":"src/couch_event/src/couch_event_listener.erl"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f74faef4d4b06969953d5a13ce0c5fa94993f14a75fce11dce776d5ef3689b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/dreyfus/src/dreyfus_fabric_info.erl:92-98 | src/fabric/src/fabric_group_info.erl:83-89 | src/nouveau/src/nouveau_fabric_info.erl:110-116 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_info.erl\u0060 and \u0060src/fabric/src/fabric_group_info.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_info.erl"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3e669ff85029f86f3539bff017ec4aca77c18a903a8aa61b55a8c682041f09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/chttpd/src/chttpd.erl:844-850 | src/couch/src/couch_httpd.erl:834-840 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c7190919a3bb7dc10b914eb062016da27e204b5e015849d1e3fe444b94f964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/couch/src/couch_query_servers.erl:778-785 | src/couch/src/couch_query_servers.erl:794-800 \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":"src/couch/src/couch_query_servers.erl"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c1c1971e2af78900db68560ef6e304cea740090bddbedebf6b400d188f6a23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/dreyfus/src/dreyfus_fabric_cleanup.erl:27-33 | src/nouveau/src/nouveau_fabric_cleanup.erl:27-33 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_cleanup.erl"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcd7ee0f42f9fd6ef2b377a6a55db6c9214b088f66ec27c9edbf653c0a33216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): src/dreyfus/src/dreyfus_fabric_group1.erl:34-40 | src/dreyfus/src/dreyfus_fabric_group2.erl:36-42 | src/dreyfus/src/dreyfus_fabric_info.erl:23-25 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_group1.erl\u0060 and \u0060src/dreyfus/src/dreyfus_fabric_group2.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_group1.erl"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"114c5bcec1786d877ae6f9177974deff1c54060c5808a540eb940eacaabaf4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/dreyfus/src/dreyfus_util.erl:209-217 | src/dreyfus/src/dreyfus_util.erl:222-228 \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":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6da579dc4098ebd054b99251dd4af90bcb7ea8f35dc835ceb5fec30f17a06b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:152-166 | src/mango/src/mango_idx_text.erl:159-173 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64a0ee8aeecd94e663759a94a1977737c9a2d5fdc02cd49022b90fa7e062399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/chttpd/src/chttpd_show.erl:145-150 | src/couch_mrview/src/couch_mrview_show.erl:146-155 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_show.erl\u0060 and \u0060src/couch_mrview/src/couch_mrview_show.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfceedafad2c8d889265553d236d863a36b615fc036042281378630067e2952"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/couch/src/couch_base32.erl:43-48 | src/couch/src/couch_base32.erl:56-61 \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":"src/couch/src/couch_base32.erl"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf40c0c879e5079ac0899aa37da351da28312a3f0e5fa4abd58a4a94cb8eb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/couch/src/couch_bt_engine_compactor.erl:557-562 | src/couch/src/couch_db_split.erl:530-535 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine_compactor.erl"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff512ab68eb8fcd53092e61541c64f844ec9507957a9be571cbcf845a1d6348"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/couch/src/couch_bt_engine_compactor.erl:615-620 | src/couch/src/couch_bt_engine_compactor.erl:717-722 \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":"src/couch/src/couch_bt_engine_compactor.erl"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ed54623858f12fb68291a55fcc142bceef422db9b43081679317e13347bde2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/couch/src/couch_httpd_multipart.erl:143-148 | src/couch/src/couch_httpd_multipart.erl:207-212 \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":"src/couch/src/couch_httpd_multipart.erl"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc3d6b242f2eee139e568bde1c91cd4c97ef7d589aff601dd3a4f8708de0b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/couch_replicator/src/couch_replicator_fabric.erl:131-136 | src/fabric/src/fabric_view_reduce.erl:172-177 \u2014 before extracting anything, compare \u0060src/couch_replicator/src/couch_replicator_fabric.erl\u0060 and \u0060src/fabric/src/fabric_view_reduce.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_fabric.erl"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6793fe0889a13fd896c653c3732e416032623739466c99513ae253efa5b363"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/dreyfus/src/dreyfus_util.erl:467-472 | src/nouveau/src/nouveau_util.erl:178-183 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_util.erl\u0060 and \u0060src/nouveau/src/nouveau_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd64f33a80945f0a288b6d470836c34b7ea12c8a193f8dde4e9182dbe8f0ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): src/couch/src/couch_bt_engine_compactor.erl:557-561 | src/couch/src/couch_bt_engine_compactor.erl:566-570 | src/couch/src/couch_db_split.erl:530-534 | src/couch/src/couch_db_split.erl:541-545 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine_compactor.erl"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d165e4c465639d379fa06654c4fc6dc77696e049d4ab9fcafe85c4bc34eb6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/couch/src/couch_base32.erl:31-35 | src/couch/src/couch_base32.erl:43-47 | src/couch/src/couch_base32.erl:56-60 \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":"src/couch/src/couch_base32.erl"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd32c8e61c631e3c16e1f1d62e9b9cb1f165c56e0f1168d299bd13f4db3cda6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/couch_replicator/src/couch_replicator_fabric.erl:132-136 | src/fabric/src/fabric_view_all_docs.erl:261-265 | src/fabric/src/fabric_view_reduce.erl:173-177 \u2014 before extracting anything, compare \u0060src/couch_replicator/src/couch_replicator_fabric.erl\u0060 and \u0060src/fabric/src/fabric_view_all_docs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_fabric.erl"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d838eead26c2ceb11f5a02796eef62f2e2ed393533fddb13551bba25866d870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/dreyfus/src/dreyfus_fabric_info.erl:84-88 | src/fabric/src/fabric_group_info.erl:75-79 | src/nouveau/src/nouveau_fabric_info.erl:102-106 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_info.erl\u0060 and \u0060src/fabric/src/fabric_group_info.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_info.erl"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"989fb2acd6672d84df5dd2a77b94b3e19c48d23d7087e34d5ab31323f24b208f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/chttpd/src/chttpd_auth_request.erl:157-161 | src/couch/src/couch_db.erl:768-772 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_auth_request.erl"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa0d87dc1c699c08a2a1bc97b866bdc385c0c03fb695b8916f7d520c037e1c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:420-424 | src/couch/src/couch_httpd_rewrite.erl:416-420 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb12e4d51dbeb0f07f8beb2b2491f12ea91ab396cd8bc134e8ffb89aacbd2fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/config/src/config_util.erl:47-51 | src/couch/src/couch_util.erl:382-386 \u2014 before extracting anything, compare \u0060src/config/src/config_util.erl\u0060 and \u0060src/couch/src/couch_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/src/config_util.erl"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"23639a742d167bd73e07e1703de758bcefe3c108a8d4114b1e7114061158fa05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/couch/src/couch_btree.erl:1223-1228 | src/couch/src/couch_btree.erl:1238-1242 \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":"src/couch/src/couch_btree.erl"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51fc0888410bb4f817d6f56fae572e310f2aeb81c064435a95bd06d4480c46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/couch_log/src/couch_log_trunc_io_fmt.erl:194-198 | src/couch_log/src/couch_log_trunc_io_fmt.erl:205-209 \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":"src/couch_log/src/couch_log_trunc_io_fmt.erl"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0023c9d3bcc06d0ef77aed597526885ef9e59fcc21548998633760ee67dd7d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/couch_mrview/src/couch_mrview_debug.erl:424-428 | src/couch_mrview/src/couch_mrview_debug.erl:467-472 \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":"src/couch_mrview/src/couch_mrview_debug.erl"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c786c536a7ed2f26366d867547ea45e0ac0317f756eb66c15c5fabb309067f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/fabric/src/fabric_db_create.erl:116-120 | src/fabric/src/fabric_db_delete.erl:44-48 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_db_create.erl"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fe5ba430fef4707e6db23a50674c5dae4440d16698907afdd3cca7efddec52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:169-173 | src/mango/src/mango_idx_text.erl:176-180 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca8ef4d65d48eefa98b40c18d34403cdb5b4a98e36be00b635f1b62c8f94583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/chttpd/src/chttpd.erl:564-572 | src/couch/src/couch_httpd.erl:528-536 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"425cdb619b5a59b5dfc9010a102e8dfd37ea1175586f2785b42f37528ddb9d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/chttpd/src/chttpd.erl:652-656 | src/couch/src/couch_httpd.erl:591-595 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"537624446339fbafd991c8c265a91ba5b1ff7b490fb5bd3690072da1a6c601bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/chttpd/src/chttpd.erl:800-804 | src/couch/src/couch_httpd.erl:736-740 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ff3fc308c753da073afd4d15ed2065205c84ee1facc6d77055b7974428921e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:2124-2129 | src/couch/src/couch_httpd_db.erl:1205-1210 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffc6cdc902501dea57077acfe1cc3a1b0e134057afad631b88d9a50f2ee84d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:2462-2469 | src/couch/src/couch_httpd_db.erl:1388-1395 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2462}}}],"partialFingerprints":{"codehealthFindingId/v1":"68261abb21f757994cd1ae3e51659379b16bf9acb85ecb35f44bef0158c20a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:349-355 | src/couch/src/couch_httpd_rewrite.erl:345-351 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"717467601d36ff1f0e5bcac8b123eacbf605ee14d445d71df285d0db8bfa3840"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:404-409 | src/couch/src/couch_httpd_rewrite.erl:400-405 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"e21d3d295048e58ac8fc82f2e35984ab23ef26d0857e9a12f6d6672e73acff54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/chttpd/src/chttpd_show.erl:305-315 | src/couch_mrview/src/couch_mrview_show.erl:354-364 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_show.erl\u0060 and \u0060src/couch_mrview/src/couch_mrview_show.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de1b2130d01098746d0f0a6895c9f880c7ae616c8dcf7c3144010b9cb7ffc5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/chttpd/src/chttpd_show.erl:328-332 | src/couch_mrview/src/couch_mrview_show.erl:377-381 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_show.erl\u0060 and \u0060src/couch_mrview/src/couch_mrview_show.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"49335a116ac9055f71e1bc47b05550d944113f901a3bcee49f3dc5877cb4a272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/chttpd/src/chttpd_sup.erl:161-169 | src/couch/src/couch_sup.erl:159-167 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_sup.erl"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"472ac28876af281c2f4be95cd03aaed338b12ef189fc831493ecdb0344e80e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/config/src/config.erl:115-120 | src/couch/src/couch_util.erl:441-446 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/config/src/config.erl"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"080b6e8695809cbd04443a80180721e0bc5a14aafe6e1fba3260aeb21de6aa64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/couch/src/couch_httpd_vhost.erl:407-411 | src/couch/src/couch_uuids.erl:75-79 | src/jwtf/src/jwtf_keystore.erl:72-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_vhost.erl"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8936f99dec7e4350f0c9449f74a77459343cc3ee1d3a274487c6bfac7dac4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/couch_epi/src/couch_epi_data_gen.erl:147-155 | src/couch_epi/src/couch_epi_functions_gen.erl:158-166 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_epi/src/couch_epi_data_gen.erl"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"09713b49eba9b2519b0d5edc92504d6e78b0110a9a134833c00bace076eff3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/couch_epi/src/couch_epi_data_gen.erl:200-204 | src/couch_epi/src/couch_epi_functions_gen.erl:224-228 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_epi/src/couch_epi_data_gen.erl"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4798ab26cd9e19bf1f40c22f0aedc375118ad1040640321e15161a3fcdef25e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/couch_replicator/src/couch_replicator_auth.erl:167-171 | src/couch_replicator/src/couch_replicator_connection.erl:267-271 | src/couch_replicator/src/couch_replicator_scheduler.erl:401-405 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth.erl"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b96dcd960289e41b6a49a3803634ad564d59f13625713317acd7c88bee2bb37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/couch_replicator/src/couch_replicator_scheduler.erl:721-727 | src/mem3/src/mem3_reshard.erl:600-606 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler.erl"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"8511bc3327ca9813e8a7c3e5eb4ecd7b02f7819e64cd0c857fb1f45cbf143db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/couch_replicator/src/couch_replicator_scheduler.erl:812-818 | src/couch_replicator/src/couch_replicator_share.erl:282-287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler.erl"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9bc496c86d48649db93f6d981f913f4b07abf31135624cb6d64276e2b7eb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/dreyfus/src/dreyfus_fabric_info.erl:112-119 | src/fabric/src/fabric_group_info.erl:102-109 | src/nouveau/src/nouveau_fabric_info.erl:133-140 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_info.erl\u0060 and \u0060src/fabric/src/fabric_group_info.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_info.erl"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb1dfb9ccff00a9029b639393142d0128ce29f2914f47e9c237c58bdccc1ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/dreyfus/src/dreyfus_util.erl:322-333 | src/nouveau/src/nouveau_util.erl:206-217 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_util.erl\u0060 and \u0060src/nouveau/src/nouveau_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe29523ff6b4c584b0c7bc5cedb87eaae0f7d073856807044c14901ffbe6805c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/fabric/src/fabric_ring.erl:45-50 | src/fabric/src/fabric_view.erl:461-466 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_ring.erl"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"093ed3cbe2edce251a3af03547a115b97b35282b56802defb40a75321ce80aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/fabric/src/fabric_rpc.erl:842-849 | src/rexi/src/rexi_server.erl:178-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_rpc.erl"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ec3a501fdf1c52a4dc49a3754c71df4a91452bccb982c8b71bd27f7e17c461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mango/src/mango_cursor_nouveau.erl:167-171 | src/mango/src/mango_cursor_text.erl:172-176 \u2014 before extracting anything, compare \u0060src/mango/src/mango_cursor_nouveau.erl\u0060 and \u0060src/mango/src/mango_cursor_text.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12eef93ad5c0b02ac8c5c696a018bb5ea5ead54f6d1e8509a3218a9c1327e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/mango/src/mango_cursor_nouveau.erl:265-271 | src/mango/src/mango_cursor_text.erl:273-279 \u2014 before extracting anything, compare \u0060src/mango/src/mango_cursor_nouveau.erl\u0060 and \u0060src/mango/src/mango_cursor_text.erl\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 109 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e3a8093ffb84bf8a6c1fae0df1be2e49ca1ee83746348e46f775f1ee8e07df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:146-150 | src/mango/src/mango_idx_text.erl:153-157 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"878fa6de9c7258b57bb4f1a77d4d7ec90817607062c0a121a1dee782f8faffc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:182-187 | src/mango/src/mango_idx_text.erl:189-194 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d2d3bf9fe78e1d57ad9d5e0572fbc6ea73e538602e3c35ed27a258f82ed80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:211-223 | src/mango/src/mango_idx_text.erl:216-228 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"30451193ae38e6880dba6935fe1b855c423e3b128f318582b7e4c2d35bfefd9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:263-269 | src/mango/src/mango_idx_text.erl:268-274 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f855366dcb0eaf2fbf3fdb9237824300b7f0f7582f52f81f59f0947f7bca66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:313-317 | src/mango/src/mango_idx_text.erl:321-325 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21ee7fd3b6eb16785f20faf09a97dbb0f31f2e2d33cace2241d571926ca4c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/dreyfus/src/dreyfus_fabric_group1.erl:145-154 | src/dreyfus/src/dreyfus_fabric_search.erl:284-293 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_group1.erl\u0060 and \u0060src/dreyfus/src/dreyfus_fabric_search.erl\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_group1.erl"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfc3a086d395ca1a58df69e742da0df9f9e77481b709dc06ec608a2d01010d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:77-94 | src/mango/src/mango_idx_text.erl:77-94 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f927cd9fab5aca055517de37310f879acef3577d7e73dba786af50914da7d761"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/couch_replicator/src/couch_replicator_fabric.erl:34-45 | src/fabric/src/fabric_view_all_docs.erl:37-47 | src/fabric/src/fabric_view_map.erl:65-76 | src/fabric/src/fabric_view_reduce.erl:57-68 \u2014 before extracting anything, compare \u0060src/couch_replicator/src/couch_replicator_fabric.erl\u0060 and \u0060src/fabric/src/fabric_view_all_docs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_fabric.erl"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"408312baa1fb9ae1d7d1f66b198a24285e5ea895ae128d10a6594af5683cff3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:103-114 | src/couch/src/couch_httpd_db.erl:76-87 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"973b27c1e107ce143b184e92a48b33d6d067abce84cf39976d0b0a6136245c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): src/nouveau/src/nouveau_api.erl:88-96 | src/nouveau/src/nouveau_api.erl:106-114 | src/nouveau/src/nouveau_api.erl:127-137 | src/nouveau/src/nouveau_api.erl:149-157 | src/nouveau/src/nouveau_api.erl:177-187 | src/nouveau/src/nouveau_api.erl:295-303 \u2014 all 6 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":"src/nouveau/src/nouveau_api.erl"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f2ce12c59e6b4260546eac9d35cd09963ce61d98265e5f87f1628c49518c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/mango/src/mango_idx_view.erl:466-475 | src/mango/src/mango_idx_view.erl:481-490 \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":"src/mango/src/mango_idx_view.erl"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28df7e5be8b0617b71298e0565f566a7a76c16e5d1a0ef5641ba6f32e71882d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/couch/src/couch_passwords.erl:113-121 | src/couch/src/couch_passwords.erl:123-131 \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":"src/couch/src/couch_passwords.erl"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"93de17b607379d99befce057746b231fed5930c6021fb636559a19c229b8d5d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/fabric/src/fabric_db_doc_count.erl:25-33 | src/fabric/src/fabric_db_uuids.erl:25-33 | src/fabric/src/fabric_design_doc_count.erl:25-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_db_doc_count.erl"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"35af5e5a5a4586f0c01540fd7db6ca0e4d16e049adf74b4b1cf01e9058b50e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/mem3/src/mem3_reshard.erl:542-550 | src/mem3/src/mem3_reshard.erl:554-562 | src/mem3/src/mem3_reshard.erl:566-574 \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":"src/mem3/src/mem3_reshard.erl"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bf0fce3c8e7ba8b5cded22f264a4587b1ec93cb76a80c7f94d7bc388458772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/dreyfus/src/dreyfus_util.erl:421-428 | src/nouveau/src/nouveau_util.erl:246-253 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_util.erl\u0060 and \u0060src/nouveau/src/nouveau_util.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"335e0d0672cdea296c6eaa876f7c4d376d0ee5a2a09dffe09bc1ac582e72ab9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/mango/src/mango_idx_view.erl:440-447 | src/mango/src/mango_idx_view.erl:455-462 \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":"src/mango/src/mango_idx_view.erl"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c484cc5a660275e6a51e2133225963b01b50401b819d6348399de98f669ce357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/couch/src/couch_base32.erl:34-40 | src/couch/src/couch_base32.erl:47-53 | src/couch/src/couch_base32.erl:62-68 \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":"src/couch/src/couch_base32.erl"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"82455a035814c3e10fa39f1312bb1e18c31571eb5a036ec3c4ba8be1b01bdc5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/mango/src/mango_idx_nouveau.erl:41-47 | src/mango/src/mango_idx_text.erl:41-47 \u2014 before extracting anything, compare \u0060src/mango/src/mango_idx_nouveau.erl\u0060 and \u0060src/mango/src/mango_idx_text.erl\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 288 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_idx_nouveau.erl"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b00297e3a29ade4ada0d60e1d0f9bc37f75555e0c80ec02395f2335757136f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/fabric/src/fabric_view_changes.erl:187-192 | src/fabric/src/fabric_view_changes.erl:201-206 \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":"src/fabric/src/fabric_view_changes.erl"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"8111aa6a6c345a7826818a997d6332a1383950ef5c511d879c3560e809f29c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/chttpd/src/chttpd.erl:102-106 | src/couch/src/couch_httpd.erl:60-64 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd.erl\u0060 and \u0060src/couch/src/couch_httpd.erl\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 199 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98704b43a17deb8edc704c72d212e7da5c3cebe2e86fa0afedb371df8ee51cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/chttpd/src/chttpd_db.erl:2142-2148 | src/couch/src/couch_httpd_db.erl:1221-1227 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_db.erl\u0060 and \u0060src/couch/src/couch_httpd_db.erl\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2142}}}],"partialFingerprints":{"codehealthFindingId/v1":"39145faf2c76e0178284db22aef1ceb3ab24f0269fb859b84f80432baa05032c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/chttpd/src/chttpd_rewrite.erl:291-303 | src/couch/src/couch_httpd_rewrite.erl:287-299 \u2014 before extracting anything, compare \u0060src/chttpd/src/chttpd_rewrite.erl\u0060 and \u0060src/couch/src/couch_httpd_rewrite.erl\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_rewrite.erl"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf2c46e49352708d90c4ef1264a7ea2275fe3504acae39c6f9af8983cd20de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/couch_log/src/couch_log_trunc_io.erl:359-363 | src/couch_log/src/couch_log_trunc_io.erl:372-376 \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":"src/couch_log/src/couch_log_trunc_io.erl"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d3e64738b6778b3f6a80d630953050ab3ce230e9207d370bab4c7c4aebe55e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/couch_log/src/couch_log_util.erl:40-44 | src/mem3/src/mem3_util.erl:345-349 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_util.erl"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a019d1d200b9ab8c89bf5139a662ae8fa4084f0037d1d2033d6c3a61bff832c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/couch_scanner/src/couch_scanner_plugin_conflict_finder.erl:177-181 | src/couch_scanner/src/couch_scanner_plugin_ddoc_features.erl:224-228 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_plugin_conflict_finder.erl"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b5fae393f28cc052e6bb9c7a06aeeab0b49ce9ab888ea56a6508ce03b3a35c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/dreyfus/src/dreyfus_fabric_info.erl:56-61 | src/nouveau/src/nouveau_fabric_info.erl:74-79 \u2014 before extracting anything, compare \u0060src/dreyfus/src/dreyfus_fabric_info.erl\u0060 and \u0060src/nouveau/src/nouveau_fabric_info.erl\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_fabric_info.erl"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"65732b67c76b1822f04c556b558ab077a88c1052690e43f408f6767a630890ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/ets_lru/src/ets_lru.erl:174-183 | src/ets_lru/src/ets_lru.erl:191-200 \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":"src/ets_lru/src/ets_lru.erl"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9270c08295bfb9190f7cfe2446d91b686b7aa280bce85abf2f64f8da24d5c513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/ets_lru/src/ets_lru.erl:310-314 | src/ets_lru/src/ets_lru.erl:327-331 \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":"src/ets_lru/src/ets_lru.erl"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee697755203a6bcd2b5fcb9bed620360ae90bec3a0135e89e52b9c3f94c93b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/fabric/src/fabric_time_seq.erl:106-115 | src/fabric/src/fabric_time_seq.erl:182-191 \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":"src/fabric/src/fabric_time_seq.erl"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e7cf9db6706e00d241cf484ba2aad7efa736e50559e5c5bce1a26f81be4016"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/mango/src/mango_cursor.erl:440-444 | src/mango/src/mango_cursor_special.erl:44-48 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor.erl"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"99812b25e5aa5dc784751aa7ed51512e8935dbc8036a6cf6b204947219f60efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): src/couch_dist/certs/certs.exs:124-147 | src/couch_dist/certs/certs.exs:177-201 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_dist/certs/certs.exs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60137447396cf94bfb719a883565b2b382ca44d10b9e4ddf95be89024d0aa6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/couch_dist/certs/certs.exs:73-85 | src/couch_dist/certs/certs.exs:91-102 \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":"src/couch_dist/certs/certs.exs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e9794b7b07201da38f8f9dec0500d96ad19abeded04f6291455c6d432c8ef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): src/couch_pse_tests/src/cpse_test_read_write_docs.erl:42-84 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:86-105 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:107-129 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:131-172 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:174-213 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:215-234 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:236-260 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:262-282 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:284-306 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_read_write_docs.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d876ec0a3a839b78334a1916e295d13b1382f86c9bc25f006c0e8606d3ec8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/couch_pse_tests/src/cpse_test_fold_changes.erl:46-56 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:58-70 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:72-84 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:99-110 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:112-123 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_fold_changes.erl"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"925cd8aeb0849647d56429bc84b4aeed1b034b59d97071c83bde0c135cd41c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/couch_pse_tests/src/cpse_test_attachments.erl:27-73 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:42-84 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:131-172 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:174-213 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_attachments.erl"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"785bd3a717e212c9fbcbe06f1663f8d4df9f0c22c1bbc2325c735a802b14b5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/couch_pse_tests/src/cpse_test_fold_docs.erl:88-137 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:139-190 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:192-243 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:245-314 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_fold_docs.erl"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"400d54d491c168f2e25b445231f4e6abec3b5159502f0231db274abfc0ab44ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_compaction.erl:185-206 | src/couch_pse_tests/src/cpse_test_compaction.erl:226-248 \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":"src/couch_pse_tests/src/cpse_test_compaction.erl"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62d3b84f2de129237083253613f90840b0630dc4893316a9c8965b3e2fac836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_read_write_docs.erl:64-83 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:150-170 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:191-211 \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":"src/couch_pse_tests/src/cpse_test_read_write_docs.erl"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cde731a863fbb0be91958981393a99a3accd41e3ff0218cfa0d369342bfcaed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): src/couch_pse_tests/src/cpse_test_attachments.erl:46-61 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:65-80 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:152-167 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:193-208 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_attachments.erl"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3766feeb677776570949a4b0ffefd2a22c9913fd5a7b9135dd412829f66a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_compaction.erl:170-182 | src/couch_pse_tests/src/cpse_test_compaction.erl:211-223 | src/couch_pse_tests/src/cpse_test_compaction.erl:257-269 \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":"src/couch_pse_tests/src/cpse_test_compaction.erl"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba50824ffb27fd42dd35897cc4123002677e22b0d8e110738ca32e3078a9cf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_purge_docs.erl:36-48 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:97-108 | src/couch_pse_tests/src/cpse_test_purge_seqs.erl:35-46 \u2014 before extracting anything, compare \u0060src/couch_pse_tests/src/cpse_test_purge_docs.erl\u0060 and \u0060src/couch_pse_tests/src/cpse_test_purge_seqs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"683dc7146ee03a67fda07bd48029af61ca6fa8eb82837755e7ef8303142528ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_purge_docs.erl:72-84 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:405-417 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:427-439 \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":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8653428328353f6aae1400eda7a93dacb4ad8941eb1708abeb8a5039357a34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:110-122 | src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:140-151 \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":"src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf4094442aa90099b8dbc2624351bdc2631a7d22277709a3f5eb650375c8120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:122-134 | src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:154-166 \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":"src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bc345228fe07244fb011fb99be98d672079572e3236aed1faaa97e22250f34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_purge_docs.erl:90-101 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:120-131 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:335-346 \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":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"313708ad4441bea6758677b371d5de234a1687241abab8e3b317eab08f254559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_copy_purge_infos.erl:59-70 | src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:40-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_copy_purge_infos.erl"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c855fcd5168edbc9562c7715d3ee1da900c41d56d722d8598c6c6e3005757a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:51-62 | src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:82-93 \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":"src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f187b5e03d5529db0233a5ef00925e52c071099d2077fc80e9e42c319fa5983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): src/couch_pse_tests/src/cpse_test_purge_docs.erl:89-99 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:119-129 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:153-163 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:334-344 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2c68445560ade85802d3b5dbde16660b6ab5f55aa5d90c7181bd83896259ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_purge_replication.erl:151-161 | src/couch_pse_tests/src/cpse_test_purge_replication.erl:164-174 \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":"src/couch_pse_tests/src/cpse_test_purge_replication.erl"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ba0f5e693e549d010351b9e4d1d4b663588715c11118dd2d47235471ee64c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): src/couch_pse_tests/src/cpse_test_purge_docs.erl:92-101 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:122-131 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:187-196 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:337-346 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9394617e95c94b9422b291e72d4e2ac69c16eb95d5548b4beda90fd50b947c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_purge_docs.erl:32-41 | src/couch_pse_tests/src/cpse_test_purge_seqs.erl:31-40 | src/couch_pse_tests/src/cpse_test_purge_seqs.erl:71-79 \u2014 before extracting anything, compare \u0060src/couch_pse_tests/src/cpse_test_purge_docs.erl\u0060 and \u0060src/couch_pse_tests/src/cpse_test_purge_seqs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"517daf4901195cb5947196e4365c6d6c388ffae80e9e5d7b729c47a42cf8c68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_purge_docs.erl:105-114 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:139-148 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:201-210 \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":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a855ba6a720ccfe48385f052520d269a138416c797df975b0f22dd3ec4a2507f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_compaction.erl:40-49 | src/couch_pse_tests/src/cpse_test_compaction.erl:53-62 \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":"src/couch_pse_tests/src/cpse_test_compaction.erl"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48ea8401b74ec1a9ba33cd30e23081ca256bcb5f74b886b51cc4401d1be00ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 8): src/couch_pse_tests/src/cpse_test_read_write_docs.erl:94-101 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:118-125 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:139-147 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:182-188 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:222-229 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:246-253 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:270-277 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:292-299 \u2014 all 8 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":"src/couch_pse_tests/src/cpse_test_read_write_docs.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"012d6f749831b4097990fc174dc49e7fc09e0ee3814fe5322530c42a4427ba89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_attachments.erl:28-36 | src/couch_pse_tests/src/cpse_test_attachments.erl:81-89 \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":"src/couch_pse_tests/src/cpse_test_attachments.erl"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e0358d4508f86d18ac1d90c06e762bddf4c0e85f8c89c5a7af67b46fc63721"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_purge_docs.erl:127-144 | src/couch_pse_tests/src/cpse_test_purge_seqs.erl:75-90 \u2014 before extracting anything, compare \u0060src/couch_pse_tests/src/cpse_test_purge_docs.erl\u0060 and \u0060src/couch_pse_tests/src/cpse_test_purge_seqs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0f473fb92ba0ac0a260ed5dfeb207f5390a447c536ddd54ae4ec913aca68e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_fold_changes.erl:38-44 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:90-97 \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":"src/couch_pse_tests/src/cpse_test_fold_changes.erl"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4df74f7a482efcbcfdb638d06f7dca91fe706bbea08bbf0afaf85a28f133273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_fold_docs.erl:140-147 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:193-200 \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":"src/couch_pse_tests/src/cpse_test_fold_docs.erl"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3e78140df47d41612427b20793b815460c26be883adbdca09f339409c2c203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_purge_docs.erl:286-293 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:303-310 \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":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a19730edcd3cb12d7133ab57ba7e3838f109334adeae1039981d821d436e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): src/couch_pse_tests/src/cpse_test_purge_docs.erl:42-49 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:103-109 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:198-205 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:231-238 | src/couch_pse_tests/src/cpse_test_purge_seqs.erl:41-47 | src/couch_pse_tests/src/cpse_test_purge_seqs.erl:55-61 \u2014 before extracting anything, compare \u0060src/couch_pse_tests/src/cpse_test_purge_docs.erl\u0060 and \u0060src/couch_pse_tests/src/cpse_test_purge_seqs.erl\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9104012fa8e2f83c2337c935676315a9cfcdb1af32a409405b22a6ba7cae80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/couch_pse_tests/src/cpse_test_purge_docs.erl:88-94 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:118-124 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:152-158 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:333-339 | src/couch_pse_tests/src/cpse_test_purge_docs.erl:363-369 \u2014 all 5 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":"src/couch_pse_tests/src/cpse_test_purge_docs.erl"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"986327bda7d0705e2968d03dabfbdab93b08f95c05cd4155be13ab04a7217430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:129-135 | src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:146-152 | src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:160-166 \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":"src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf2f6cb8b65fb4137a8ee4ac169a7d53ff9ba0c0ddfc6935a7bf2e4d616c4be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_fold_changes.erl:63-69 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:77-83 \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":"src/couch_pse_tests/src/cpse_test_fold_changes.erl"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"97743725671ac6657cea9d12d28d9892a0ab41576c6edc7a41dbb02380001de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 9): src/couch_pse_tests/src/cpse_test_read_write_docs.erl:54-60 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:96-102 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:120-126 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:142-148 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:184-189 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:224-230 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:248-254 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:272-278 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:294-300 \u2014 all 9 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":"src/couch_pse_tests/src/cpse_test_read_write_docs.erl"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf177e1688eced6992f570274606b7ce9dba09ed2cfe61ed5b1ebdab43722d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): src/couch_pse_tests/src/cpse_test_fold_changes.erl:50-55 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:64-69 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:78-83 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:104-109 | src/couch_pse_tests/src/cpse_test_fold_changes.erl:117-122 \u2014 all 5 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":"src/couch_pse_tests/src/cpse_test_fold_changes.erl"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f097a9d209b4b9b1e08e0167050018daf98ba801ea8cc1b536ab05681bac3163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/couch_pse_tests/src/cpse_test_fold_docs.erl:115-120 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:164-169 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:217-222 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:276-281 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_fold_docs.erl"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ca8d107fe7ff764535a034630bb4cf21da83b6c3dfd02990bfedbf082b97c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_compaction.erl:274-279 | src/couch_pse_tests/src/cpse_test_copy_purge_infos.erl:58-63 | src/couch_pse_tests/src/cpse_test_fold_purge_infos.erl:39-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_compaction.erl"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ba0566059438025d3906710bd5c9d4a0d717c422f147e07692bcf32382ba77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_fold_docs.erl:115-120 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:128-133 | src/couch_pse_tests/src/cpse_test_fold_docs.erl:276-281 \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":"src/couch_pse_tests/src/cpse_test_fold_docs.erl"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e635122f0cb8246f9b07e10a29e24b61e3856616e349b1402ed9f63654b12bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_read_write_docs.erl:87-92 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:132-137 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:175-180 \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":"src/couch_pse_tests/src/cpse_test_read_write_docs.erl"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7a953a3f3b7a3d9a08a9c2ed8feb325d14b7abff87df6a0031963f70a9cad3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/couch_pse_tests/src/cpse_test_purge_replication.erl:127-133 | src/couch_pse_tests/src/cpse_test_purge_replication.erl:154-160 | src/couch_pse_tests/src/cpse_test_purge_replication.erl:167-173 \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":"src/couch_pse_tests/src/cpse_test_purge_replication.erl"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc679d53fbbd53958f98cd225cc8c4adc77052bb07268513ad2d722b62f2a3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/couch_pse_tests/src/cpse_test_read_write_docs.erl:108-113 | src/couch_pse_tests/src/cpse_test_read_write_docs.erl:237-242 \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":"src/couch_pse_tests/src/cpse_test_read_write_docs.erl"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"970495b3a617419c970c7945af539e8c4142a57e03b7f451b42d948c06bbe321"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: couch_quickjs_scanner_plugin (LCOM4 4): couch_quickjs_scanner_plugin\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_quickjs/src/couch_quickjs_scanner_plugin.erl"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a1162214fb0ecda57b00f568fd0d5b86e7a1ccb1890a0700bab8894323b0c7"}},{"ruleId":"D12","level":"warning","message":{"text":"No dependency lockfile committed (mix.exs): mix.exs declares 3 dependencies but no lockfile (mix.lock or rebar.lock) is committed beside it, so \u0060mix deps.get\u0060 resolves versions afresh on every machine and every CI run \u2014 two builds of this commit are not guaranteed to be the same build. Commit the lockfile."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"55bae6ecc0977395d1553eab61fe8f91aed6912fdd2192e9b1805773c69deb3e"}},{"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":"40542f1a62f32f2c412c9187b92825387d28557256ab6b94ec6b023db31a5371"},"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"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/chttpd/src/chttpd.erl: src/chttpd/src/chttpd.erl changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in chttpd.error_info at line 1021. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:29:44 -05:00\u0027 --until=\u00272026-11-10 01:29:44 -05:00\u0027 --full-history --no-merges -- src/chttpd/src/chttpd.erl\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"8062ac50fc6274e1c3b5755853dd52d3406c5302aa225068d220cea0eb4a59d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/chttpd/src/chttpd_auth_request.erl: src/chttpd/src/chttpd_auth_request.erl changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in chttpd_auth_request.authorize_request_int at line 32. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:29:44 -05:00\u0027 --until=\u00272026-11-10 01:29:44 -05:00\u0027 --full-history --no-merges -- src/chttpd/src/chttpd_auth_request.erl\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_auth_request.erl"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c368b02164eba756639e47ba4e4110aaf6869cb1da1ff2ec2928a5dac9f2608"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/fabric/src/fabric_doc_update.erl: src/fabric/src/fabric_doc_update.erl changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in fabric_doc_update.handle_message at line 86. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 01:29:44 -05:00\u0027 --until=\u00272026-11-10 01:29:44 -05:00\u0027 --full-history --no-merges -- src/fabric/src/fabric_doc_update.erl\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_update.erl"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d589185d360aba8c820e74ba2905da8a3d15f6ac60fc9e1b9d9b8435d0e11591"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 56 significant file(s) lose their only recent owner: src/couch/src/couch_httpd_db.erl, src/mem3/src/mem3_rep.erl, src/fabric/src/fabric_view_changes.erl, src/couch_mrview/src/couch_mrview_util.erl, src/couch/src/couch_btree.erl, src/couch/src/couch_bt_engine.erl, src/couch/src/couch_server.erl, src/couch/src/couch_db_engine.erl (\u002B48 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3c7e94be809b054eeb6de9d1e9be6a3b460a749240dd5bf7b646c0fd5bfa9eb5"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 15 significant file(s) lose their only recent owner: extra/nouveau/src/main/java/org/apache/couchdb/nouveau/lucene/LuceneIndex.java, src/couch_replicator/src/couch_replicator_auth_ibm.erl, extra/nouveau/src/main/java/org/apache/couchdb/nouveau/core/IndexManager.java, src/nouveau/src/nouveau_api.erl, src/jwtf/src/jwtf.erl, src/nouveau/src/nouveau_fabric_search.erl, extra/nouveau/src/main/java/org/apache/couchdb/nouveau/core/Index.java, src/couch/src/couch_secrets.erl (\u002B7 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3bfce4dfb8f9b47f6706d1943a22c6aa6c915214726ba6c2661cd919782e901c"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 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 (74 single-owned of 309 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 309 of the 553 production source files in this repository met that bar). They are anonymized user #3 (2 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: src/mango/src/mango_cursor_special.erl, src/mango/src/mango_idx_special.erl, src/couch_pse_tests/src/cpse_test_get_set_props.erl."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO we can make real ddocs up there. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/view_server/query_server_spec.rb"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8aa2e2f01c210bdacaeee5f8c6b84933ef675369a459ae21477ef6f6a13afad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: do we need to bring this in? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/all_docs_test.exs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffe6bea5ada237da72bd4f653420a471fd0753d01a02106548f2dce8fa3b885"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: enable chunked encoding \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/basics_test.exs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcf8934e295859c2b103077e328e40be54b83b30d07a0e80ea66510161a52fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make protocol check use defined protocol value \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/basics_test.exs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78b60fa87c9e19ab09a33798e438f29fa9039b55f8db1aa7d1c86cdb75195b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/basics_test.exs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed711161e40d83398bb8466b56a5f543f649274fc8a3e83a32901287cee2a70"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/mango/07_text_custom_field_list_test.exs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a89cac0f65b64c09ff454060a9aa57a2e654812779d8d0909a35fbcd8d55dd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/mango/07_text_custom_field_list_test.exs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56d8c442b5869187996babd9be2f5f8bc48c0cc88532c17d1c2db4b5b7178ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/mango/07_text_custom_field_list_test.exs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"991d96706e842b11eaca4fc376d74a6de0eb59f96633ef0e821c480c5a6512b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/mango/07_text_custom_field_list_test.exs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d131ae70236a902e975c7c31cc555ea167d2c319199a3467015af4befb7935"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: retry_part \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/changes_async_test.exs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bdb70674ed9e72658b7b1e1987f4ae0c8388d638a1eca1393207589a272a2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: switch this to _local when that\u0027s landed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/config_test.exs"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e2ead8ee9fd7c349df0d39cfe81607b67542e5483412ba59e3d8fe2fbf8085"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: port sever_port tests from config.js \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/config_test.exs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce83c943c36b36a753ab8d147fe40462e27546ef70845b3483627d3d68ddee9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Parameterize these \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/replication_test.exs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62994cb401e9c488fa4e6a4408eaa2a38dc86ae122933a67eddcdcf5e8d11b2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: In JS we re-fetch _changes with since_seq, is that \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/replication_test.exs"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f8cf156332ec61366473e6e5d61c08524e6d992090b5c9a000f71e9685849dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: port the two \u0022bugged\u0022 tests from rewrite.js \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/rewrite_test.exs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4138d0de93b2a8a09fe20e557b63cc05ca12791367a1ff73e84d879f25aea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this function is not defined in the Python version of this module? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/support/friend_docs.ex"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc93493907baa17b1d41d1ba8c85b42b2ac7eeab9a38dbcd86d039a5d792ca9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this function is not defined in the Python version of this module? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/support/limit_docs.ex"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c72d317dcd23781b43940a47b946627478e428e73f50b4588b7eb1f7b3a95d4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: make this use batches if necessary \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/support/mango_database.ex"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3266a5eb82ca0b14bc959312c033d488bdfbfa82fd58618d46214b351967bb8"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # Hack to prevent auto-indexer from foiling update=False test \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/test/mango/13_stable_update_test.exs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4f01f33c5e9558c578ccbad78f3d2468b3771d8e0c4a0344f8d5d31e6854c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO we would need to access config file here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/elixir/lib/step/config.ex"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cfd88f6999ee1037e089dd3103a0888c7239cc0b146f8830bc5dc2a9ac3b5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO Leverage os_mon to discover available memory in the system \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rexi/src/rexi_buffer.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9855eb91f028d9c2d8e703a9fd6ef8caaa49a58a656f7c75b641206d807b552f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Compatibility clause. This is left to handle mixed cluster \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rexi/src/rexi_server.erl"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fd508dbd18a7df27b8c29941c9da4a53505e286ecc529012d71fd761e8585c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Compatibility clause rexi_server. This was used by \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/rexi/src/rexi_sup.erl"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a663d4e4ea6e21df96a873a5f98bea9a7875d06b790df35a90c9c401997e9d18"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: % Hack around rpc:multicall/4 so that we can \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_sync_event.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"daeeec176926e0c126ea9e414d9ff833b1c64674ed3bdcb309654f764a6472c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: respect R query parameter (same as json indexes) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_nouveau.erl"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"359e8944b1ae610f5af72f23863e1047c7bf2477d39db29a27f52c609c11955e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: respect R query parameter (same as json indexes) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_text.erl"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0025c6442f4144d49c53070dd01f1d12fd27ba5d8ae11cf1620134c2f5a7b78f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO remove selector. It supports older nodes during version upgrades. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_view.erl"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea40e9c6b7c0ab2858403a42e535cd9e06501cf5e87d5c5abc384b05dff44c6b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO remove this in a couple of couchdb versions. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_view.erl"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8234d74c37b8467da9e44c5368c3c10eb9af899db701aebc02cedac0a0b950"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO during upgrade, some nodes will not be processing \u0060fields\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_cursor_view.erl"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45513674ad545595bf16494aa19dec03753547c3a9c34c8745fccae71aeaac2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: add docs vs quorum docs \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_execution_stats.erl"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6d7bddfb58ee56f5c6f8ea448b5018f29f854c76905b96a40f2f1395d292fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO kill off active jobs for this DB as well \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ken/src/ken_server.erl"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d1cd1de1c26890e50a87fbd2d6c77cced6983964f439755e29b60f792a3287"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Add tests: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/test/eunit/fabric_rpc_purge_tests.erl"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"badc812e7c8ead760ec81d07e22bdcd534232697415eaf16b0aa0528b71f0b94"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: % Hack to reuse fabric_ring:is_progress_possible/1 \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_db_meta.erl"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5549accf5115b370f47fe5ed3f18d4d283c00fc204aebf9c11aef025749345a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO actually perform the validation.  This requires some hackery, we need \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_update.erl"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"2466aad108651a5b989fc5cb718adb574b75c38244cdbef0b2daa016d4b54805"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: errors need to be handled here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_changes.erl"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e7ea921c126ec3e73cbcfd79f5416c8e57096580976ba4402a6429c95f3f48"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO relies on internal structure of fabric_dict as keylist \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_changes.erl"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c908577701eac71e1df688102b156382506519a121fd75c0b579c917b191185c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO we don\u0027t currently attempt to replace a shard with split \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_changes.erl"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8940a34841a3b3884cdae38026cbf27ee0d53c85c91096ccd0ba5f4bfe2030"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: need to be more smart here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/docs/ext/linter.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10a6847c6b3bdf606253f870e5e791e13e58e6e7affd9156e177e3e217b16db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: A less verbose, more elegant and automatic restart strategy for \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_api_wrap.erl"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f2604651c6372e71369b34e7cd5c554c490d3cc0972405e353b523f75d08e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: we might be under an SSL socket server only, or both under \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_ids.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78d924f11705330cadc93cfc7049ebc88774c05c0d3524e1f83a6c7c8964f44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Remove the \u00600\u0060 special case in a future release (4.x or 5.x) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler_job.erl"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ad9af2ce030bf24cd2032ffd898dc8c9f3e3911a596d330043dcd489f9cf0e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: deprecate (use same history format, simplify code) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_scheduler_job.erl"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"a519217be65e3bcf7aaa04c68bf59b27163c93d009377dc079f6e71c6aa4f05d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % NV: TODO: this function is not used outside api wrap module \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_utils.erl"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb2982017ebdac0a50de770ad1875e0c5f43d32271d2153baf8198994a9f42a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % NV: TODO: proxy some functions which used to be here, later remove \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_utils.erl"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebcb580459881bf7ad04de3c63db70a6d0dc7a2a8c9f1f1f484d9e2971a717c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: make sure this is still true: single node, ignore \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_peruser/src/couch_peruser.erl"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a6cc8a915e7ea2e56e765f0fcef4901ed97bf99c960bb6ade497cc380dac74"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: find out what type Server is \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_peruser/src/couch_peruser.erl"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e266b384ed2dff6c331e24300e660020de4409af69b8e5d013dc1b4cfaa766"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: find out what type Server is \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_peruser/src/couch_peruser.erl"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"0852d472c893b1aba2c1414fad5962de46a3446cb39f0d57961937109009fa13"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Compatibility clause. Remove after upgrading to next minor release \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview.erl"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a5c3ba298f89bc22e7763e06700beb35ff0dd0b41cd500968b343f396ff0f8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: This is a terrible hack for now. We\u0027ll probably have \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview.erl"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8db54836c35f6f7242b6969db556ceef97b8d31f960347507a0397d817afb9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: proper calculation of etag \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_http.erl"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"554fec3ed6aa9acfe17c2ce26c3c447cdb5aceaf3c5d92f461e068b21fd5c80a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % todo set location field \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_show.erl"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"094f8a781c3301bb875ba0d54387ffa1332eb4f1e8c598cfad3036fedaa17ab5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % todo set location field \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"923ab70856de67409dace834b79347861488ccf30dbd166ad6d53a0c4420cea6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % todo move to couch_util \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_show.erl"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"828254636411176909e15951d09476ea744da8ebeaa76195cddb41afbbe8da7f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % todo move to couch_util \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c0a16141ec050ba6203e834967b8148e13119cae0be86ca884d53d747eb156"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: %% FIXME after we upgrade couch_epi \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/test/eunit/couch_flags_tests.erl"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6bbbdcfe7cd78470ac256321ec1c3626fe3fe731c577d485b18813bdd71933"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: %% FIXME: server restart won\u0027t work from test side \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/test/eunit/couchdb_update_conflicts_tests.erl"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b657e99eba31a37f41d328c11c9feffd252ae658ba065a03b5e68507679db6c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: %% FIXME we need to grab monitor earlier \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/test/eunit/couchdb_views_tests.erl"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b26268ca9c5641e6d97b96a8eb6e2b533de689f9ccc4347fbc12e8fe7ba7d8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: This is a terrible hack to get around the issues \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine.erl"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b238b30185110c11744da2dc9a54df4c696295fbae31eaf17527d58641db76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO document the \u0022next\u0022 feature in Futon \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_auth.erl"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ddc83845bcef8e4157c953f60e146cdaeba499f6bcc28712770411ffadfaad"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: %% FIXME: How to remove the knowledge about this message? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_multipart.erl"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa44e4a23c3c8c92f003af621fcbe27cd40305562ce1790b1cefef8338d8110"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: merge code with rewrite. But we need to make sure we are \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_vhost.erl"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"750c5013fbb1ef9a4493b63fa05bb5fa7069dba48a3525ded5fc3604daface61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: switch to xxhash64 which is exactly 64 bits and avoids dealing with sha-1 issues \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_hyper.erl"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b2cced53e4d3fe0068bfd5dc9af383508c3f1416a16e96a344f5e8eb323c17"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: markh? (jan) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_native_process.erl"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"472e61a86623f43dabd7b95f70b1d5e38079fefbc4b488dfaea247de17d240bb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: markh? (jan) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_native_process.erl"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ec1da67a443b71824b705f9f55f2ea2875e51edfa48069228699d90ae6acc6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO allow customization of precision in the ddoc. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_query_servers.erl"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82fa991dda94221eeee4b3b2c8b98c9689a7e0027da2598ab498236cf9933a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO improve logging and metrics collection for client disconnects \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"13110cd6cd6a5326423fb58905251f5a95acfe24492876e34d23885ad079d338"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: %% TODO: Square against multi origin Security Considerations and the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_cors.erl"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2ca9750a760f4cfa842d6ade7822ad3bce1076e657075e03cb796cedf28733"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: shell out to get correct repo, commit, branch info? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build-aux/logfile-uploader.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddd1f581575e1fd0e18609b282d7922473c5c57a17119accc7fdf9177dec744"}},{"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":"ad7b07191a43fce2dccfd9f5676c1b50fb03c87518a46a202392390ea461416a"},"properties":{"commitSha":"e768eb2d504824fa209cc19330850dd2244e541b"}},{"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":"d2d0b7348be525df3a15b20eb6c8574662e669a9788a464d37d47f86ffb7ee80"},"properties":{"commitSha":"694dadd51433f21b7ddedf4b19198f46d5616864"}},{"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":"e05ec08c32f4ae1cde4192b3b5bde3dd6f493eed9207cb5659574a4d0dd9294c"},"properties":{"commitSha":"0a821e3ee8f838c398bf25aac958b3bc7b6a7a6c"}},{"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":"e24e452289983d915496cb67d6ad8fe38f6bc8af6354935345ec75a81499da4a"},"properties":{"commitSha":"0a821e3ee8f838c398bf25aac958b3bc7b6a7a6c"}},{"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":"ca5c2f1ca14878f833de2f2f8cb589d9ceb47dca0f91fd5745420ec70bbb63d3"},"properties":{"commitSha":"0a821e3ee8f838c398bf25aac958b3bc7b6a7a6c"}},{"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":"ba9e947174b2ee06524e0ed888c876ee1ff1eb851d99d043a6324daa2be60795"},"properties":{"commitSha":"342e6125b4f204804689abf6108c7afb592ce80d"}},{"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":"d0a44bb77bab9c60e55024da59fae54a0db9cf48ffaa1b0ac96b7b7b9a235b50"},"properties":{"commitSha":"342e6125b4f204804689abf6108c7afb592ce80d"}},{"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":"663f2d939d14d8f4eba3854f1c44fbb26b68a49535210b3b4be6519ebfaec443"},"properties":{"commitSha":"342e6125b4f204804689abf6108c7afb592ce80d"}},{"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":"5cf69f0edf45cb7d438dc38aebc358e2763d77776956facc994be486ffe4489f"},"properties":{"commitSha":"342e6125b4f204804689abf6108c7afb592ce80d"}},{"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":"7e812676f1aac664ed54e8977de3536945010de5b98319ad44ff264584d27675"},"properties":{"commitSha":"ee310c714e70e41d2f64af8a453922aaee0245dc"}},{"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":"fee9627f6b718e08ad3168028c5c16900ce9a8498f56437c63b957fd961b20fd"},"properties":{"commitSha":"ee310c714e70e41d2f64af8a453922aaee0245dc"}},{"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":"ab719a3ec12f3f3cab7836102df98f80c9cba1ccefa94cd3885a679bf14a5bd1"},"properties":{"commitSha":"ee310c714e70e41d2f64af8a453922aaee0245dc"}},{"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":"d8fc47dc081190b4cfcf319ba00708554ba307f51e035f1df10be102d928d653"},"properties":{"commitSha":"ee310c714e70e41d2f64af8a453922aaee0245dc"}},{"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":"88d7fde0722125e483d989fa09eba1070a4511b5d21b933d48d37f5b6747c9bb"},"properties":{"commitSha":"90954a7c4ed3b2bc6eac5480afd23ee03fe0f825"}},{"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":"5f1a2432f003541b01c06ebaf7cee82a38c4eb432d63ebc8d0ed3d20330f95bc"},"properties":{"commitSha":"90954a7c4ed3b2bc6eac5480afd23ee03fe0f825"}},{"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":"ccd575e4d2c8c50eb4557b90b8588b320cb379c861c0f621033c1a156757b388"},"properties":{"commitSha":"90954a7c4ed3b2bc6eac5480afd23ee03fe0f825"}},{"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":"8b76a2f5809fdf6d635f6a1834c67b03af2d7a71f95a33c406f9e08296e289f5"},"properties":{"commitSha":"90954a7c4ed3b2bc6eac5480afd23ee03fe0f825"}},{"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":"743dc84bf80acdd6f5bdbef67877b7be5a6fc03fb132421ebd078a74ab40fca9"},"properties":{"commitSha":"6f31ffd97c443e3d7712eaaa7b06353600f4eb95"}},{"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":"5a13df3a854221d7eed45f0dcd3fb8ec6e7df0c6c3bcbf321cff2d54e99d4380"},"properties":{"commitSha":"6f31ffd97c443e3d7712eaaa7b06353600f4eb95"}},{"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":"4c492e1c06aaea688b3db698eb983e3d38549b46fcfd14f99d4c3ec5b76a7e69"},"properties":{"commitSha":"310ae02d60908fd174119d96bee7e93ed58b159a"}},{"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":"e2f264296225b451b3a0e68de08df27747477c83e50fa44b41b7d8adb100fd64"},"properties":{"commitSha":"7d8de6be03221ea25df84aa656635006e9978ad6"}},{"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":"a00c51bfdfff8cd1d3df0e1ef3744e33b63d9f89993883f5c2348d3a8d79281b"},"properties":{"commitSha":"d513c57619251d4b7b0023a7f2b86b69b4a11300"}},{"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":"fe13cd6398552db473c2abef135a22621e9c80c5691fb12349f6e1b23d823ef1"},"properties":{"commitSha":"d513c57619251d4b7b0023a7f2b86b69b4a11300"}},{"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":"6b690fffdb2304074538211dc5b58b7266f9b149c2f9c46f9d05c87ba6285c14"},"properties":{"commitSha":"84226656ab3fad6f95029aad993be9f5ec4f1794"}},{"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":"af15421192fbf29db145e3d4f78f8c89ba3ca89a763e5e9ae9632b93a5574cd0"},"properties":{"commitSha":"d39118f3e665dae7146aec8e2d4b967508a6fdf4"}},{"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":"912b0ed7665749ecdb527c3cccf1411e6d83304b39d3bd3420c55d4b6ab33542"},"properties":{"commitSha":"a6763c7326de7eb22d201f7cbeaf6cbc6883f9af"}},{"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":"a2edf4cfa48c7ce0770ccf4cff0c523a9a78b8d781e349a463e4b983eeb392d2"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"d6152238972e16623f284935d0dde5f3df6a2401873297d92548753da70aa280"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"f6a04b38d90fbb24ddcb5a2d4b703e43bd7b8db12f28469511d6da88ca18d11e"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"42121ecf8f650d5bb9da16b2fc096b2874e4d1c44fa918af612f6e4b2bcf15f6"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"028dbccb4bc66d9cc83796525b331fabbf2998ba603a0027430f66d9b74c6b95"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"81b56a9f7a3ef7bac7d1aaad44aad2e3e07bc66cc58f7b23eca77e729e934619"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"1dbb303fa49575d7101be9e2e1755748eff4c72375777d387ade8e94c264b1f9"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"aef4128dddaebc3d3f3af1d999dd281df31e6a0540566e058e8b416013de4cf8"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"dcbfa2c2d85981c59fa5d7f3956f3d3625e1ad0543562e78916c4f2b6092f3ea"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"6323594125b8e170d23979dad9ecf20aef7b7cd4d8ae27bc513ef3bf80feb5aa"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"68eb34107055de3084e9133c40db4d1f89e3877c94025e3c500f53cd53b268e8"},"properties":{"commitSha":"05659effc7c6f080dd90e908ea693928f4f6722b"}},{"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":"1c1c1064faa4c8106dd234d0b4c72772cb81b9086f68e7fe48fc92c4cfbb0f83"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"88c8c90b9de8dd3bc8f4d4c944244dcb9c9108303b8ece78437c3d6de7b88d51"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"3721c09aacac1473473bcdc574a450af2de5b9e9024c6df7e4a694e689324ecc"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"b83399bca77a4f8f6208f1268768ba4a88b515bdaf996479fb53010623b2c54a"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"c61c92d0d50a1369decc8270d7c1719dd2f6a792cc9e7e2bfb0d04807cbb07f8"},"properties":{"commitSha":"dd45360f9aa07d110aaa9428a730a0e5d3236843"}},{"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":"b35ba1ef8e5eb79cfb4f739c14ed609105ef46c87caf35d4ea5339d89d72519c"},"taxa":[{"id":"CWE-95","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"845abccc4539ec9a9839ce342c09bc5001f329618fedf9870b87531dabde551a"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"904b8068d74a8e0d00bfeba664a5a461f476f4d19fd9644439cd1b046b60f43f"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7f08337bbd3bb7dfa628102b83844fecf314e4f7785c126dda7245f8cb982973"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2d86a73c1128a1b6c00b5c72feb1ab71e9f75ba5033b4e5b33e452a901fd0516"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"59a7bbf315399501c40223b332f1914d5b1d0fc801c44b42bbc5251746986e51"},"taxa":[{"id":"CWE-415","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"13943de6aa0af675b783f6065d7613863cdfdc10c49e659ccc13593403f817e5"},"taxa":[{"id":"CWE-415","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a507c05b18cc7b50273ee8a8d8a47ac57aa73a39ac44e4ade316310fbf965bb5"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"b7b007016a127dce5c66977b6aab5410f7caa6586678ef0ebed0f67cecb9e4fc"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"fde8db8cb59171e03a54205467abb58c6b7c5b9ebc0255a2e5728a5f85e28a2d"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ebca4e54424408c281617910575f46be85524a7a2e7a4587b109f764cd1983ad"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3a2d09907e4e122aa034ee2c73bac48f0c1bfed2db871ea3741831077fc12d0b"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"916065bc62351551e576ab8dd3bed660a04f58c393a4365755414cc8cf9d6706"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ceb1e18e53674b823cf33fedd88fe57fbb960dd4e068f88ec125f810f786ebbf"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a7cd268a68c617eaa88ea91d966d23fa5e52f272fc67126c816449701c136fde"},"taxa":[{"id":"CWE-939","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":"a4866f572674c47a4b4956506ae3a2958aa12c64c450d26463ffd782b67fff88"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"755f532871418baeb8572b1f4eff140a90bf7613b0a99056ac4a72bcea89675b"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","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":"e3fc04b76e996d4c719134ce89d27051f87cf4f193eaa8077798e800f5210cdf"},"properties":{"dependency":{"package":"requests","version":"2.32.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2275"],"reachability":{"kind":"test-or-tooling","file":"src/mango/test/13-users-db-find-test.py","line":14}}}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f11c98eb9bbcb211856a7cd27f133706133f3bbda5724c248223d0762abac96b"},"taxa":[{"id":"CWE-527","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-538","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/weatherreport/src/weatherreport_getopt.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7959f843a190c56317924a9a966ee27d1f5d669027b70f7365f7b774673347"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_debug.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3843834c8a4cd3ba4284b745ab23e9cbc41b6a0e0c03e70e5f50ac4bf30e80f7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_doc_open.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5395c39bd969e05b8921aeeea71e24b48208a329864de055b639cf52dbbf09"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_index/src/couch_index.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b7ce897a0646e5f05c3bdeb51ffad266bdf9a9123b01f7e122b29f0842d074"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 36 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/couch_pse_tests/src/cpse_util.erl, src/couch/src/couch_httpd_vhost.erl, src/dreyfus/src/clouseau_rpc.erl, src/couch_pse_tests/src/cpse_test_fold_docs.erl, build-aux/show-test-results.py, src/couch_replicator/src/couch_replicator_connect.erl, src/couch_pse_tests/src/cpse_test_read_write_docs.erl, src/couch_pse_tests/src/cpse_test_compaction.erl (and 28 more) (40 orphaned of 335 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 335 of the 553 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_util.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"981318b7ab34b29acb6b239163a53f6ba41ef2bc48e142acb7740656b91ab068"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_vhost.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"180621d145724c4c02329b1fe56c63a804a541089ecee9d3343b5f1c48816484"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/clouseau_rpc.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ab4fb23a9291d543bb736e3e7606f0d6a50bc45d985eb0b3ab8568e7ffb0c4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_fold_docs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad22f49f819ef6a375e65a69b200fa5e80399a33517b3ed2aa0c2953cc49a99d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build-aux/show-test-results.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed4fbf0c3e1d437e126512d1eac9d7205236de5192d4b7e7f67873dfb86231a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_connect.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58796d7f9e52d1aaf78ab89408337efbc778fcbab9556a7abdd1b200f3d40c2c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_read_write_docs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e96cac833fe8e738ab41b082f95cbf9c4c9a2eaa061bb9172adb87d15dbd7b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_compaction.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30819965b22aa60d501f9fe4ee8b13e44a82c4a0430a60e24837a2789953f731"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_flags_config.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6df895a046acc8e736d8828af0a6e0283413091c9352e780b3786afe67421c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ddoc_cache/src/ddoc_cache_entry.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c722e2977bf8993eeecb6b5215306e8ad45cb21910016fb5d1b3ee80bc254f4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/weatherreport/src/weatherreport_node.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1222021bc4fd74b8481ce6b1635189e5c40863ea5ad880a9e13dbfeb12a54b49"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_plugin_conflict_finder.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1fcef00d88e61d6f8e43623b555677ceed3360d86189b2d24d063f2e2a6b33"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_httpc_pool.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fee2dfa0cd6b39e24cd6266748430a24de2c17ca84a325e97714be569d15a79"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_view.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a094a69998d1affff8c7638606afff294a5d44b705e80f2ea0e9361c56ae223e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".credo.exs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea901913355b7d74eab699065cbe445379e60546f68e16e10edfcdd85635fa2a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_replication.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5299390095530f9e3c7724fe2b306589747f97427b655d16b6a751edbbf7af1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_dist/certs/certs.exs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e0ab45abc55298a32a4915b97b781749fec4166ae3e5ecbc844a024245c23f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_fold_changes.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8b7bf9ba8e757380dfd12c6c2433a765f7e53e614bdc1b65c1e16e24cc5794"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"dev/pbkdf2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"799b642b3e089ea740d5080c57c120c54daba80853d2b95c2861d1125e5cb911"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_index/src/couch_index_debug.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"871e41b195dc9795fb420722d5dd14bc10ca43c07c57b86a5b7af41c50d9a7cf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_sup.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df6438e1d2192bade103cf2847e3b016c73fdebcd799205d7ce44d1e6f3d77e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/include/couch_db.hrl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c3256e2ac1ce3c7b9e5949e2b12d32af6d952d0a65bd48ce84289fb5a07c45"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_partition.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c35c0c469cbf7ae162f0130c708d2ff9dad494e30250e6aca46167a1ad6394"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_flags.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ebce1cc541fdaad40bfaa49edbd4a28e7e8bd15a56d1c8befe8918c5ad1e4b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/weatherreport/src/weatherreport_check.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e217a83824f9c4ce85c3b1339c82be3e93d67c6df6dea7230ba37282ce36d90f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_index/src/couch_index_compactor.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"927071f692afdfea94e0091eb633918f803f1a5da9d0aa6a82882be615deefd2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build-aux/logfile-uploader.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa0e206e7334aa1acffb71517cc927f360f960eb075595f7206ec02435f1697"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_seqs.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded6f392e166e53caa49b95c8aa52910ee3f12b10caae3d8ada243046fa3f02f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/custodian/src/custodian_db_checker.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9db417975efb3d820a8e52d64f4cac70cf1fd7137b1438193773c3935fa9af"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_attachments.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97522c6fd7fcc2f715db6a1184e2eb4ee9ffb19ecbda5b70c19af8c76a97cac6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_purge_bad_checkpoints.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1cb5cbb18ae35767ab952876d8f08832a3cf76d29880514ea49da8489c9f5f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_ref_counting.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f444b590b0c070a695343e889518de3c26765a940c1ac308520a682f78636e9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_xframe_options.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e875adc64fb165eb4c6d403574969ce8b449f518887ca06f7ada875e2b6c5e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_gather.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc4d14b8f1d39ad35f5c4f0206724fe22a48a6fa8a76f4a4f5ff08671130572"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_sync_nodes.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"16dcbb0d989702fc8024d2220b1167f3157123b655e16501c5a489b8ef23846c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_pse_tests/src/cpse_test_open_close_delete.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0096569198a92bf8fb83e46721d6c37c03b3de62b2dbc415f52895c58a64452f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: fabric_view_map.erl \u2194 fabric_view_reduce.erl: \u0060src/fabric/src/fabric_view_map.erl\u0060 and \u0060src/fabric/src/fabric_view_reduce.erl\u0060 change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060eb89864d\u0060 Speed up views with ICU sort keys; \u006082321a57\u0060 Improve fabric streams cleanup on error and timeouts; \u0060fe0c8936\u0060 Improve worker cleanup on early coordinator exit \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_map.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02c41ceae87673981c9041bafb7790c65eae2b10d111841b90c6588e33bcbb35"}},{"ruleId":"ED1","level":"warning","message":{"text":"Handler temporal coupling: couch_httpd_vhost clause \u0060handle_config_change/5#413\u0060: \u0060couch_httpd_vhost\u0060 clause \u0060handle_config_change/5#413\u0060 makes a synchronous \u0060gen_server\u0060/\u0060gen_statem:call\u0060 round-trip to a peer process while handling a message \u2014 the process is blocked (holding its mailbox) until a peer replies or the sleep elapses. That couples this handler in real time to another process being up and fast, and a mutual call can DEADLOCK. To decouple, react by casting a follow-up message (fire-and-forget), or resolve the needed state locally."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_httpd_vhost.erl"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be07b3a49d1e99a2f00a24e6dc7bb194d7a6f5e92e1056e1aad190d59c6bea5"}},{"ruleId":"ED1","level":"warning","message":{"text":"Handler temporal coupling: couch_log_sup clause \u0060handle_config_change/5#57\u0060: \u0060couch_log_sup\u0060 clause \u0060handle_config_change/5#57\u0060 makes a synchronous \u0060gen_server\u0060/\u0060gen_statem:call\u0060 round-trip to a peer process while handling a message \u2014 the process is blocked (holding its mailbox) until a peer replies or the sleep elapses. That couples this handler in real time to another process being up and fast, and a mutual call can DEADLOCK. To decouple, react by casting a follow-up message (fire-and-forget), or resolve the needed state locally."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_sup.erl"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac661ee787de754f7618875546b029a90367282a69d718876f6abf8450cfe33e"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: src/couch_scanner/README.md links to \u0060src/couch_scanner_ddoc_features.erl\u0060, but \u0060src/couch_scanner/src/couch_scanner_ddoc_features.erl\u0060 does not exist. Checked without a model against the repository: its files and folders, the scripts and dependencies of every package.json, the projects, namespaces, package references and target frameworks of the .NET build, the SDK and Node pins, and the identifiers of every file that is not a document; the documents\u0027 own text never counts. A footprint generated at build time, read only by a platform, or living outside this repository is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/README.md"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7855e4d6d2152a07c7229b57f272179df7dd4f13c6f28284cfae90f586fa515e"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 2/5 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060src/docs\u0060, \u0060src/weatherreport\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add dialyzer or elvis \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.post(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build-aux/logfile-uploader.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f8255b105b0ff508a1ccfc0fb9a46198b880747d3a4846203243ede9a426a5"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.put(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build-aux/logfile-uploader.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43eb0031e12f55d15df77f689b461f0387d031e84f8fcd69b64337f8ed67ffd"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 14 plain JS \u2014 the untyped files are share/server/60/rewrite_fun.js, share/server/60/rewrite_fun_ast_bypass.js, share/server/dispatch-quickjs.js, share/server/dreyfus.js, share/server/filter.js, share/server/loop.js (\u002B8 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (84 matched lines \u00D7 2 locations): share/server/dispatch-quickjs.js:14 \u00B7 share/server/loop.js:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 565 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/dispatch-quickjs.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"28df6542255e3a2853ef3e0545bbdb0de0745138f7ca889edf7fc44e644d0077"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): share/server/60/rewrite_fun.js:19 \u00B7 share/server/60/rewrite_fun_ast_bypass.js:25 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/60/rewrite_fun.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38aa2a045a18d66ade8bf23f7dea1f65eac575768a678ea285aa99b095a5116"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3 locations): share/server/dreyfus.js:43 \u00B7 share/server/nouveau.js:89 \u00B7 share/server/views.js:108 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/dreyfus.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"483254de627eeeb679b9647fce9834f932f72b7bb156f9521fd8cc9b9d398047"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): share/server/dreyfus.js:13 \u00B7 share/server/nouveau.js:13 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/dreyfus.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4fd056d232c732a179087774e52deeee153fc1049b0016ec3e8dd0b481780b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runShow (cyclomatic 16, cognitive 19): runShow has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/render.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"857b864c184a77da61f8dd35e076b9c4f257a84e7876e7995af307b47ea80b5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fitnessAndQualityParsed (cyclomatic 15, cognitive 23): fitnessAndQualityParsed has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/mimeparse.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f344c44690ca00ee0884af088e82ce87b34ed73f1a9ee9021c10516cca283a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveModule (cyclomatic 11, cognitive 13): resolveModule has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/util.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b74f59823268bda29e6bcf8e8a1c1b9cc531aa78bea3c9bf1d9f80a767aedc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(Method == \u0027PUT\u0027) or (Method == \u0027DELETE\u0027)\u0060 appears character-identically in 3 files \u2014 src/chttpd/src/chttpd_db.erl, src/couch/src/couch_httpd_db.erl, src/couch/src/couch_httpd_misc_handlers.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d881c413f33873ed8bc64ec8540a2f8a373ad043f5b2507aaf85edfb3f8996"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Method =:= \u0027GET\u0027 orelse Method =:= \u0027OPTIONS\u0027\u0060 appears character-identically in 2 files \u2014 src/chttpd/src/chttpd_show.erl, src/couch_mrview/src/couch_mrview_show.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_show.erl"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b519265e56539d98af5de6c34616795cff5cc4ab3389ca33c0d02ae1852a666"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_value(keyfile, ServerOpts0) == undefined orelse couch_util\u0060 appears character-identically in 2 files \u2014 src/chttpd/src/chttpd.erl, src/couch/src/couch_httpd.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd.erl"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"3737cac8a7c4f6c2118886a9ae780a1e5e572dd76d347b37e0482c431206b3c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(ExplicitRev) or is_list(ExplicitRev)\u0060 appears character-identically in 2 files \u2014 src/chttpd/src/chttpd_db.erl, src/couch/src/couch_httpd_db.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e14381c60b982c287ab1115f60c1ec6eb3bbafd67799bdacfe166970263c2e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(PrevDbName) andalso DbName =/= PrevDbName\u0060 appears character-identically in 2 files \u2014 src/couch_scanner/src/couch_scanner_plugin_conflict_finder.erl, src/couch_scanner/src/couch_scanner_plugin_ddoc_features.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_plugin_conflict_finder.erl"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"537ba72c0aa948925e26fe4eb8429a9fc7e50652b06ffe014a36ef2d55f36407"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(From) andalso is_integer(To) andalso To \u003C From\u0060 appears character-identically in 2 files \u2014 src/chttpd/src/chttpd_db.erl, src/couch/src/couch_httpd_db.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d86519cadbdba77b2c908e219943147300f183804efffc67f7adb9ca363f2f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(Ranges) andalso length(Ranges) \u003C 10\u0060 appears character-identically in 2 files \u2014 src/chttpd/src/chttpd_db.erl, src/couch/src/couch_httpd_db.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_db.erl"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bb4c15e51a288db9d102c09b2adb8c7436ec4c183c736a2c475dff37425f08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060decl.type == \u0022FunctionDeclaration\u0022 \u0026\u0026 decl.id == null\u0060 appears character-identically in 2 files \u2014 share/server/60/rewrite_fun.js, share/server/60/rewrite_fun_ast_bypass.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/60/rewrite_fun.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d427d332eae786e701803034617eeb9a8458205cd18c1f7fbac3243069314d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060idx \u003E= 0 \u0026\u0026 decl.type !== \u0022FunctionDeclaration\u0022\u0060 appears character-identically in 2 files \u2014 share/server/60/rewrite_fun.js, share/server/60/rewrite_fun_ast_bypass.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share/server/60/rewrite_fun.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7ffaf7d59b4c59c08760d299a23be16c7b94aeb1f35264d779d08a223a2ef7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/smoosh/src/smoosh_persist.erl"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"25955d3b9dfa740329781214ed5f3e45a639d4d679bf97ab1185a006f8f12cbc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/nouveau/src/nouveau_util.erl"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"65114030240cfe65db8d6e48cacaac37ec7906ef5c68336e904ac06cf32b66ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_httpd.erl"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"576f31613feb7ade65e4b5ecdd509952bb4db49552ab07ccbab3c471229e2bfc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_rep.erl"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c7567d73f660c30804be438e6e61d2fa5d79ef96ea9746d15e3c1c0aaef876"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mem3/src/mem3_shards.erl"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"aefa740beaaa26343cf82380db50ec2a7ac0803abc07582123458b7dd175463a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_httpd.erl"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb643797bf581c56582bf7808ddaac26bd81a7de5adc9385d18fb119a4f13b2a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_native_proc.erl"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de78ff7746a44b63bdc8669bcd96a773d798a92b5f27319356587e6233f429a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d14662c6c8ecda65be502d43e9029726aebb74f556dc730665a7b0d57c72ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"823e31c54690fdb8f4dc6e7f68eb89bf618cfeff02726b6316c1dec0748d2517"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9b4dd14ef62917358bd150e1d2545f4e9e24e7a232e78dae98bbc9e04cd6ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector.erl"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c6461e8a222feaa28e9b384ef405c51af84c3f979803704c7821e3b6144278"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/mango/src/mango_selector_text.erl"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e20e0c7c8c36bdcf4774ec4711ed94683bed545d8bb1b126c36f1891c746bd3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ken/src/ken_server.erl"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4c5d63bde3e74befb955407eea92d266527e591445b158d98e82e43eff0710"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ken/src/ken_server.erl"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae063c6e6bbf7e2e70db0a1bdb902bbcdcf0096ec30c93f86b59fcfdf3fa986"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/ken/src/ken_server.erl"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a48ee015df6c15cce517e10a82ceb0145d7574f214ab95d0f90725436fd8a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric.erl"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2988f4d16eed6da634fc9f9c521e36a3d32ccab0db19463a8d6836386eb3863"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_bench.erl"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"14060f04bc19a0bd60ef3acb3ef64d94a56398832ed3da7ffc9e876b70ca519b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_rpc.erl"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eee22dfa15b130880360468fa6f2d09c2f91a5b11fa1b8c42132368725ecbf6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_rpc.erl"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"293234b2f26e81c7468c32922d692d02e26bf54c775c846e8b45f48912e4de35"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_all_docs.erl"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbb9073b98a64dcaf27240f12be1c79a6e97f8d24430e90492ce033cc5cca2d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_changes.erl"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e91ca877d7e816b3177ca16da289668386daf736bac5d85693d652c5083c31"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dreyfus/src/dreyfus_util.erl"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ac5d97875a8c860f06cbbd0f93d3a3f90b2b23a017723df6486f917f7a1ce0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_util.erl"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"205fd6427a8ccbcb67cdba8aa905b490519bb137be18a68d2c5c6f90491f6d75"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_util.erl"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fef92784538767c46aebb1af462d717b0d660268634ca1b4a3fcc10d28a1ee1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _Tag:_Err\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_util.erl"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7404151774bbe1031a8b42a77ffadd2f322b9eb841ac6d8409d6d6b99092610"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch error:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_scanner/src/couch_scanner_util.erl"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dba60a352ca7f95c1c245fd69aec6e6ab52f5c29d6f2a46616bc4a251544f12"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth_ibm.erl"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc63d06e0ef724c53a6d53d16031841f555cd537de2664473dc9039d0b13970"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth_ibm.erl"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df6a8c5d1b61406627cc24af10b4c66b709925cbd524ba5064720f28a957a2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_replicator/src/couch_replicator_auth_ibm.erl"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ff7bbe25b6205e917a997700f38c6e4cb8a13dfc5bb72650f1fa25f4beeb96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_index.erl"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b29d37f8218b57b68e8bbdbefd164e20c77ba05685b83047359e13268635d1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_mrview/src/couch_mrview_util.erl"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd80298b127b963fd9e98c66bcf7513b101619a54a99686be4b6bd3ac5065bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_config.erl"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3351761c1ad485172b3761cc7bc20739c89c3496f2e33c7f21aad00bd77e4da6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_writer.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ebc3ddf938beef75e4b1e9d49a8126bc52309fd039d9d0ffb6381e17e545a2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_log/src/couch_log_writer_syslog.erl"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36987b86a104e09c3d563691386010274f7259c993c3b54691b96f0131c3080"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_index/src/couch_index_cleanup.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e0d301b3dd3ff7c01c8ebfac91d9c80778177c011b7bf8c33b942bb940f4b5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_epi/src/couch_epi_functions_gen.erl"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fb88f14aafd3582d221aab010002ba7332cd8bb47165ab06854c42f564a0b4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_Error\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_auth_cache.erl"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff4aa1312d55c9ff2d285724e62ed01c50fa93f504f9624edbb1d3f2409dd4e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_bt_engine_header.erl"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acd2f6fb210cab6a6f78929c4ab12db6fe0220cc02b68c419e2b5a1d7499305"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_flags_config.erl"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6213ddd3662e88eaf1affff4b8152515ad304b06f38c8bad95d1f9c4f40f2d14"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_gun.erl"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"088375ee746cd819bd9543b68a5dd1ccf8b13f6d73b69b96020831294242c3bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_proc_manager.erl"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68ba94eb92e719407848fdbdca49d28643a249921b968c7b3b66af404f93630"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_proc_manager.erl"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ccb31eb79dcdbe00314715376be4668a80d42f072fc22cc91fb0f4f3d460d8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_proc_manager.erl"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d965fa6799025fc19e15e566bd7b60862049b2f04569f3b368f769c19abf66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_query_servers.erl"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d16397eb717b24278fab01b6de02c90e7562399a9f8c5a756b6d962bbaca02f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_query_servers.erl"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3156561074cfa0fce4d66c2deb9e9754c1957725ed32948f35123d0ab83cca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_server.erl"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"99abfc0691cdeed4476853fa310d8ccdc735c6bc0984703a4264cea7691a8c7b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _T:_R\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_server.erl"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1ff423e0fa8b063adda5be60465b72519aa3068377ba3b28fc64a0121ec06d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_util.erl"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e643ac5e2a43249fa525cc4c18e6c153c5635c7a7acd2c30076395422b3cf0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_util.erl"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c06dc419dc4e0e1ba3d54aa6ac6f17749a80d63a861f6d45676411f82a9ec96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_work_queue.erl"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1163d5746fd2435b65b98244eae87af27cca8f5e4f191f5334fb6e8feae04566"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_work_queue.erl"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b107ea7fbdb86771eb6daeb863cd3845fc375c528ca4bae3a03e413f2181fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_work_queue.erl"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca14a49c350f1bf8ed69216814821b91619263db1ef21252a7ef076efa2311b5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch _:_\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chttpd/src/chttpd_node.erl"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aaadc6291403fd97e023a137f3c963bd8df239df588131ab7f966ac93ba1fb9"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_disk_monitor:set_database_dir_percent_used/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_disk_monitor.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"768f07bc4c56104d5b84fdd91a6c3975b315f4c0137094b0974cdc51f080e02c"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_disk_monitor:set_view_index_dir_percent_used/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_disk_monitor.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8247cc74215692810a3385a68e383104db5ccc816cc6a636d75c3a8d74d5d790"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_ejson_compare:less_nif/2\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_ejson_compare.erl"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa72ee1490b97fade20c4b271d13ccd33aa28f6505a21b87c7de31e8e25ccb96"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_ejson_compare:less_erl/2\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_ejson_compare.erl"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95428a9d8163428955d42d08e36f5c414dd47a2cd37eccaa51981a6d4b8df19"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_ejson_compare:compare_strings_nif/2\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_ejson_compare.erl"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3ceb045d046e6fadf40bc1967057367de60f1a80ad2d88b46f34bb762fb657"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_ejson_compare:get_sort_key_nif/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_ejson_compare.erl"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4621145f12b8b1beba7e84e9973235cf6a6e3f2fd7b4a53e343a2a5bb9afb4cd"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_flags_config:parse_flags_term/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch/src/couch_flags_config.erl"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b69bb9d340ba8d3b2cd044c92f57364e3416dae82dcdfb2b3b97dc3add18354"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_dist:no_tls/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_dist/src/couch_dist.erl"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"86516685c7f71e512972e2cd78239d74bb50598571ab2b80f7694c5520cfc75f"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_dist:get_init_args/0\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_dist/src/couch_dist.erl"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c83baedfd0e19af390d3db75313ef633a766a626c1d877f7651e42758c203c"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060couch_epi_sup:plugin_childspecs/3\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/couch_epi/src/couch_epi_sup.erl"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8b206a664558388843820a83fe929fd8a0d01eab5526ad286685cbbfabfb0b"}},{"ruleId":"X31","level":"note","message":{"text":"Test-only surface in a production module: \u0060fabric_view_changes:decode_seq/1\u0060 is exported unconditionally, and the comment directly above the \u0060-export\u0060 on this line says the exports below it are for testing. Erlang has no visibility below \u0060-export\u0060, so this is part of the module\u0027s public contract: it cannot be changed without a compatibility argument. This arm read the comment, not the call graph: if the comment is right and only tests call it, wrapping the attribute in \u0060-ifdef(TEST). \u2026 -endif.\u0060 keeps the test\u0027s access and removes it from the shipped module. If production code calls it, the comment is stale and wrapping the export would break the build \u2014 delete the comment and document the function as part of the module\u0027s API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/fabric/src/fabric_view_changes.erl"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff99fd921f1a9bfe54215ea93f22773a55ecc1d17bf6711a1a39c28f56ef57c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn\u0060 at line 386 is handed a message assembled at the call \u2014 a string concatenated with a value, or \u0060String.format\u0060 \u2014 through SLF4J or log4j 2, so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the level is filtered out. Pass a constant pattern and the values beside it instead: \u0060log.warn(\u0022Order {} moved to {}\u0022, orderId, status)\u0060, which keeps the pattern and its arguments apart on the event for a structured encoder (logstash-logback-encoder, log4j 2\u0027s JsonTemplateLayout, OpenTelemetry), or \u0060log.atInfo().addKeyValue(\u0022order_id\u0022, orderId).log(\u0022order moved\u0022)\u0060 with SLF4J 2\u0027s fluent API. An exception goes last, as the throwable argument, not into the text."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"extra/nouveau/src/main/java/org/apache/couchdb/nouveau/core/IndexManager.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa836bf9cc9b5be25d4662b15c20f506f0cccfa59842db219f468a734465ad4"}},{"ruleId":"X5","level":"note","message":{"text":"Java packages are not null-marked everywhere: 0/8 of this repository\u0027s Java package directories are under a non-null default: a \u0060package-info.java\u0060 declaring \u0060@NullMarked\u0060 (JSpecify) or \u0060@NonNullApi\u0060, \u0060@ParametersAreNonnullByDefault\u0060, \u0060@NonNullByDefault\u0060, \u0060@DefaultQualifier(NonNull.class)\u0060; a \u0060module-info.java\u0060 declaring \u0060@NullMarked\u0060; every type in it \u0060@NullMarked\u0060; or a build that runs NullAway with the package in \u0060AnnotatedPackages\u0060, or the Checker Framework\u0027s \u0060NullnessChecker\u0060. Elsewhere every reference admits null and no checker warns on the dereference that throws a \u0060NullPointerException\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"419201f6fc7ba243aef2cfb154378641588a8190e6269cea04a7b48c3d343bd5"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-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-415","guid":"5d94f4b3-d3aa-0c5c-a4f9-897bc66edcd7","name":"CWE-415","shortDescription":{"text":"CWE-415"},"helpUri":"https://cwe.mitre.org/data/definitions/415.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-527","guid":"79b27cde-9d04-1a54-b64b-d5bb9b4a8ee7","name":"CWE-527","shortDescription":{"text":"CWE-527"},"helpUri":"https://cwe.mitre.org/data/definitions/527.html"},{"id":"CWE-538","guid":"3baa1f05-df1b-ae58-9ee0-1d790ff4a989","name":"Insertion of Sensitive Information into Externally-Accessible File or Directory","shortDescription":{"text":"Insertion of Sensitive Information into Externally-Accessible File or Directory"},"helpUri":"https://cwe.mitre.org/data/definitions/538.html"},{"id":"CWE-611","guid":"1afbae66-ea29-2d59-aaa2-134e3ae2e85a","name":"Improper Restriction of XML External Entity Reference","shortDescription":{"text":"Improper Restriction of XML External Entity Reference"},"helpUri":"https://cwe.mitre.org/data/definitions/611.html"},{"id":"CWE-676","guid":"550e6fab-2881-3252-8a05-c688a6b19c14","name":"Use of Potentially Dangerous Function","shortDescription":{"text":"Use of Potentially Dangerous Function"},"helpUri":"https://cwe.mitre.org/data/definitions/676.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"},{"id":"CWE-95","guid":"400bba4e-483c-5c50-a695-114fa9168003","name":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/95.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":63,"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."]}]}