{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D23","name":"Boundary Type-Coupling","shortDescription":{"text":"Boundary Type-Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D23"},{"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":"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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","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-1357","CWE-494"],"owasp":"A03:2025"}},{"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":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"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":"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":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"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":"Query.prepare (cyclomatic 95): Query.prepare has cyclomatic complexity 95 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: lib/searchkick/query.rb holds 5 of the 11 methods over the threshold \u2014 including the worst \u2014 and 123 of the 165 points over it (75%), 4.9\u00D7 the next-largest file (lib/searchkick/index_options.rb at 25). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde87da0cf4ba58edc3c3053b95d3e5e62304d2527eb7e51173ca8f6e3545d2a"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexOptions.generate_mappings (cyclomatic 39): IndexOptions.generate_mappings has cyclomatic complexity 39 (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":"lib/searchkick/index_options.rb"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f25ddcd02a73dfa20cf6f976f4479618eab4a4133f7c273b0c8cc3bcc791a7"}},{"ruleId":"D1","level":"warning","message":{"text":"Query.where_filters (cyclomatic 37): Query.where_filters has cyclomatic complexity 37 (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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: lib/searchkick/query.rb holds 5 of the 11 methods over the threshold \u2014 including the worst \u2014 and 123 of the 165 points over it (75%), 4.9\u00D7 the next-largest file (lib/searchkick/index_options.rb at 25). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a445ee93a0834456a647617dda727f865183c4a4f7d994c8242569ecb24e53a4"}},{"ruleId":"D1","level":"warning","message":{"text":"Query.set_knn (cyclomatic 31): Query.set_knn has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: lib/searchkick/query.rb holds 5 of the 11 methods over the threshold \u2014 including the worst \u2014 and 123 of the 165 points over it (75%), 4.9\u00D7 the next-largest file (lib/searchkick/index_options.rb at 25). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddddcd7004159cfd41f7cb5fa7bd5a94e2e577673959c97a7bccc2d5a25dc3f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Index.full_reindex (cyclomatic 24): Index.full_reindex 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":"lib/searchkick/index.rb"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e828fed2361cc7b03720bfecaec4e509c858ae784a89609ab284eb01b18cfaf"}},{"ruleId":"D1","level":"warning","message":{"text":"Query.set_aggregations (cyclomatic 18): Query.set_aggregations has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: lib/searchkick/query.rb holds 5 of the 11 methods over the threshold \u2014 including the worst \u2014 and 123 of the 165 points over it (75%), 4.9\u00D7 the next-largest file (lib/searchkick/index_options.rb at 25). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"0481d7c8e44b7b6acfcb977060018dc05640a9de9172c7e5b470829a36e73a40"}},{"ruleId":"D1","level":"warning","message":{"text":"RecordData.search_data (cyclomatic 18): RecordData.search_data has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/record_data.rb"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc4f7bd60c65e919c2cc141b22e22ebf8a1034b213da7df28b2f37807af5512"}},{"ruleId":"D1","level":"warning","message":{"text":"Results.with_hit_and_missing_records (cyclomatic 18): Results.with_hit_and_missing_records has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/results.rb"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2303892fc55203726a2bcfb68769d5d98b503aa0573c0dcd9dd591f58e9032bd"}},{"ruleId":"D1","level":"warning","message":{"text":"Index.reindex (cyclomatic 17): Index.reindex has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index.rb"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb59623ed0a642fa84d4e73b6766de56ab190c532d9c4708a0010b8dcfe0947"}},{"ruleId":"D1","level":"warning","message":{"text":"Query.set_fields (cyclomatic 17): Query.set_fields has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: lib/searchkick/query.rb holds 5 of the 11 methods over the threshold \u2014 including the worst \u2014 and 123 of the 165 points over it (75%), 4.9\u00D7 the next-largest file (lib/searchkick/index_options.rb at 25). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"00eee1a346514baaa4af228569f894a8a21a2656bd57c431ed467df522d6c2f4"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexOptions.generate_settings (cyclomatic 16): IndexOptions.generate_settings has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index_options.rb"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5efe12e9df1a752d65fa64c6c856a431f7acc01bea2ad44fc732feda00c57c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.prepare (cognitive 180): Query.prepare has cognitive complexity 180 (threshold 15). Drivers by points: if/else 62 (125 pts), boolean chains 38, ternaries 6 (17 pts) (nesting depth added 74). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/searchkick/query.rb holds 6 of the 16 methods over the threshold \u2014 including the worst \u2014 and 242 of the 368 points over it (66%), 4.6\u00D7 the next-largest file (lib/searchkick/index_options.rb at 53). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d813d898c06b8f2759dbcd53a567f5a91e9c56b17ec51092fbab629a7c442a"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexOptions.generate_mappings (cognitive 56): IndexOptions.generate_mappings has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (36 pts), boolean chains 11, match/switch 3 (9 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index_options.rb"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"4126eabbb3405dfd7e5c230859a18085d8f303e8df2386ce270ca4eb66717a2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.where_filters (cognitive 48): Query.where_filters has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (33 pts), match/switch 3 (11 pts), boolean chains 4 (nesting depth added 21). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/searchkick/query.rb holds 6 of the 16 methods over the threshold \u2014 including the worst \u2014 and 242 of the 368 points over it (66%), 4.6\u00D7 the next-largest file (lib/searchkick/index_options.rb at 53). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":1106}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68bd1eb36fbc1851781b2054a0e0d26a2839605b6e0cdf20b0aa7e8f0ecf68d"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.set_knn (cognitive 44): Query.set_knn has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 9, ternaries 3 (9 pts), match/switch 2 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/searchkick/query.rb holds 6 of the 16 methods over the threshold \u2014 including the worst \u2014 and 242 of the 368 points over it (66%), 4.6\u00D7 the next-largest file (lib/searchkick/index_options.rb at 53). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a5b11b386598509b3fa6132ff700cc19d5d9d2e23c920d1aaf08f19632d3da"}},{"ruleId":"D2","level":"warning","message":{"text":"Index.full_reindex (cognitive 43): Index.full_reindex has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (38 pts), boolean chains 4, error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index.rb"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"534b7c7926ab5841d4e866aaf49013e3f11dcd92d6a957d1d33cbf73c1c6c2e7"}},{"ruleId":"D2","level":"warning","message":{"text":"Results.with_hit_and_missing_records (cognitive 30): Results.with_hit_and_missing_records has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 7, ternaries 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/results.rb"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a5361ce2b6cfe0e00b986a0c83fd4aea9f56cc668c048cce0b3811d6ad7aec"}},{"ruleId":"D2","level":"warning","message":{"text":"Index.reindex (cognitive 26): Index.reindex has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index.rb"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbe76477dfa3241b15cceb75595df9b33ff41fcff37e99665b9f427a035f701"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.set_aggregations (cognitive 23): Query.set_aggregations has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 6, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/searchkick/query.rb holds 6 of the 16 methods over the threshold \u2014 including the worst \u2014 and 242 of the 368 points over it (66%), 4.6\u00D7 the next-largest file (lib/searchkick/index_options.rb at 53). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"5284e7285975eb49bcdb09afa6665328ec6b74bb38bd14bd40a0e9744a993c1b"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordData.search_data (cognitive 23): RecordData.search_data has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/record_data.rb"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51173c7a9d98762d80a3da6c36f1142feb002ba1e9d7321d8163e9f0b127773"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordIndexer.reindex (cognitive 23): RecordIndexer.reindex has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 3 (8 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/record_indexer.rb"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"faec58532b27656cd36e0efa56c4befc462dace7bc8bc5f3f7269ef2730fb5b5"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexOptions.update_stemming (cognitive 21): IndexOptions.update_stemming has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 1 (2 pts) (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":"lib/searchkick/index_options.rb"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4733c0a77e5530e40e17710d6278ffef66619c89cbc4e6208c022cf665e1d4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.set_fields (cognitive 21): Query.set_fields has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 4 (7 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/searchkick/query.rb holds 6 of the 16 methods over the threshold \u2014 including the worst \u2014 and 242 of the 368 points over it (66%), 4.6\u00D7 the next-largest file (lib/searchkick/index_options.rb at 53). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"9151d8da3f1634fe7d837bc3c695d8e52eb25b82be66d8d0ce8ba9cd9448f797"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexOptions.generate_settings (cognitive 20): IndexOptions.generate_settings has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index_options.rb"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"080463bb0e5ec3f25989fc21b7a74d51adb2339a13aed86469b5444874a62652"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationIndexer.reindex (cognitive 18): RelationIndexer.reindex has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/relation_indexer.rb"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d786772a1b025c23b66d38322e8a3645161f1670ab518879345f7b5d73827964"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexOptions.add_search_synonyms (cognitive 16): IndexOptions.add_search_synonyms has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index_options.rb"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"09977750d81e5c3bbbadbf443b9bdad091effade010c29cea2ebebd26522524b"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.handle_error (cognitive 16): Query.handle_error has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5 (nesting depth added 2). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/searchkick/query.rb holds 6 of the 16 methods over the threshold \u2014 including the worst \u2014 and 242 of the 368 points over it (66%), 4.6\u00D7 the next-largest file (lib/searchkick/index_options.rb at 53). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"01748dfd9f18b192fbc09ee9cc52ab23fdfb9dbb8663a032ddc0651ceeae8b9a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Relation: TooManyMethods \u2014 119 methods. The bar is 30 methods; this is 89 over it, 3.97\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/relation.rb"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bd864dda35c884027fae730af20e04e0886e828a1fc6f787d2c6d0d76e9c73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: searchkick/query.rb: FileTooLong \u2014 1054 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 554 over it, 2.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e61ea3c898588df001ba9a7543e8972c5c37342e5bd78ef30d37b850be92c7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Index: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/index.rb"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"97be2abb34342a21f6302ec8eb0c81d193b921d54f4df7027c0cae1f0106661e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Query: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/query.rb"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ea8983fe6db7bc8881199a46cf3bee5e950e536c1990880e931f948cd6c485"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Results: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/results.rb"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c7abf243b598fbfcf5a2f54fcef9985e14ed004e401c2756d42e2c7f4e9d96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: searchkick/relation.rb: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 79 over it, 1.16\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick/relation.rb"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ae163f3d06e674237e63d9efe0ee94d94ab3d96ed950784fe838ac0cc08a5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Searchkick: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick.rb"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c994a6ba9b72e91e92530c66ac21e9b52f1c8831537b5863757140b46aa4fcbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/searchkick.rb:372-374 | lib/searchkick.rb:379-381 | lib/searchkick.rb:386-388 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: 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. 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. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/searchkick.rb"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9abf2ff8b68e0ed218b87ce54748bb053df7011d6f8b782287c10075b8a4950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/searchkick/query.rb:1362-1362 | lib/searchkick/results.rb:348-348 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"lib/searchkick/query.rb"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"6054fef10fbf4fc695a43855616fee96be4496d3a83762b5961bc01ea354944d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/hybrid.rb:20-36 | examples/semantic.rb:20-36 \u2014 before extracting anything, compare \u0060examples/hybrid.rb\u0060 and \u0060examples/semantic.rb\u0060 as WHOLE FILES: 93% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060examples/hybrid.rb:37\u0060 calls \u0060search\u0060 and \u0060examples/semantic.rb:39\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/hybrid.rb"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bdc0f474d2838657cf085b93bc06c92e77f6fa9b25554934b8698a53762749"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/hybrid.rb:7-14 | examples/semantic.rb:7-14 \u2014 before extracting anything, compare \u0060examples/hybrid.rb\u0060 and \u0060examples/semantic.rb\u0060 as WHOLE FILES: 93% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/hybrid.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f49db120d5ca9f4a32fc448885bebdf8f23174ad54a184b57300ad0f5ff64be"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Index (LCOM4 4): Index\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":"lib/searchkick/index.rb"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35183c6b9e571b94297c251fb94afe06979e8236466f7a1a599827acf8b68fe"}},{"ruleId":"D11","level":"error","message":{"text":"Test declared unreliable: test_multiple_models: This test is disabled or skipped with a reason naming unreliability \u2014 the repository\u0027s own words: \u0022flaky test\u0022. A test that is skipped for flakiness is neither passing nor protecting the code it covers; either stabilise it or delete it, but do not leave it disabled indefinitely. (Found by reading the repository\u0027s own test source \u2014 the suite itself was not re-run, since the reliability runner does not support this ecosystem.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/suggest_test.rb"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1d7da358ede1d58a070110655e8d7fbdcd142f736e58ec9f7e03cd9df54e19"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: sidekiq: \u0060sidekiq\u0060 is published on rubygems.org under LGPL-3.0, which this policy bans, and it is in the RUNTIME closure of this repository\u0027s Bundler manifests \u2014 so it is installed by everything that installs this repository, not just by its test harness. Replace it, or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f2ccf793e5d862f5ff908d78be7562fe47f34e2447b819062896349d638d0a11"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfce8c41fb529a7d5589305ce2d0707ffa2bf15fb5db80e8df440403e063831"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcc258aa641b37cbbb7fc381093faeb6110970f920a32378a854d04b463eff9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e291a7f0b428237344101b5240dc640dc73f60b40462b8426fdb0cd1b2b1ec67"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3d35575c0177b78846b1c5a81fd93890a6463585b37e95d5cabfb48de4dbd1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fbdb40bfc8029911377bd30f9898fc84221e17cf8f529563a1d7ad01dc85f68"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff675c3f91894b695d7a06eca3e8af3959a2064f43e51a607f03f29433a30b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"655c8b748630be016809ad60a46f876b3c68ff992231be7d234dd3c248b44a94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc7303062687dbf3a4842c82fec85c11090034c755c062cc3aa67b61290915f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff13f0228221359981fad3a310f134774ff273bcaa85f748e45297073fc0e76"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c71ed25999d83acdaa381feb135a2c7d4660546d1b3c7f22ec08974ef3745f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7b457790319d3c5ab6519c1f6fd2cce615dd6055d68b7c0f89f5c8fdc1be6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d8b0952bd5683e5119b95273bc53f1e19d98d5b6e238edd3c9bf5567675cf9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb38dc1d39f7d10e778c38ca1380e527facb5a849620244841ee9d1ca28372c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1bdbbf7d5780311ccfe926faa24d8d2f55c6a69741a907c8153494673dc3cc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO change \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/aggs_test.rb"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6b2c6ee692e428839ab9cadeb54d7e6f0210d727cced10dc3a3b698f9c3601"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO figure out which earlier test leaves records in index \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/callbacks_test.rb"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a745c13c7f428a5fe86118df95ee1e8c2bb372ab03efca7b2ccf3ca1bd584b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO move \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/index_test.rb"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d7c135e9aaf20415b5bb5afc199e2cb384433903eab91ccadf2b2be37c8e00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO move somewhere better \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/inheritance_test.rb"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d180998d9f986819b407f3c2115bc5dad6c9d1cbe1a0e4d9c2b034a6ce14fe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO raise error without to_a \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/parameters_test.rb"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86c64c36c23bf56b30f080f290ec57ee35297d6f56c97e8dca29d9b001b4639"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO raise error without to_a \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/parameters_test.rb"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6edbcb45220acecb32a9a76f333dc4b8f49b2ee1186e2c10d7d41d367811916"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO find a better place \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/partial_match_test.rb"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae18eb0b9af5e19b3d99799eaf2ec700db7a40c50cc71065fafbe8270e363879"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO add test for Mongoid \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/reindex_test.rb"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a9f66569a48ede033dd2edda261e833fb1e60c8ad16236011cdd0161ba87a28"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO call pluck or select on Active Record query \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/relation_test.rb"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"784c089201669a12309d88102cb51a8e40dc37c697db8306bba4f5eea0393cef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO uncomment in 7.0 \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/relation_test.rb"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d87b867263e805758952204ad22aa52496bb8c83d0859928fbabd84e43cc727"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO uncomment in 7.0 \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/relation_test.rb"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0357c01f26c86f9c6f581f0e89626e13e35ab442a0f18edf4f4fded8a6f9351b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO uncomment in 7.0 \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":"lib/searchkick/relation.rb"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d38f2c59d34c65286518cf65afb4d2822400cbbc3098cdc9695c5d32c3f4132"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO uncomment in 7.0 \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":"lib/searchkick/relation.rb"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6eb9641d08e3609af052b9314e9001bbb266254c9bf2e942572ee1b5a1d7a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO use a snowball stemmer on synonyms when creating the token filter \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":"lib/searchkick/index_options.rb"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa65878a3f5673be3605534c80614625c75718ed8e4989c377f1280d7068b13b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO confirm this is correct \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":"lib/searchkick/index_options.rb"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c5ae068b6071e6913064f293baf74aa0347c86f277c89027034b2b27bc01ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO when moving to reliable queuing, mark as complete \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":"lib/searchkick/process_queue_job.rb"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a8dd042ac775ed135847757c0f33c14c512112383874e9ae46ddc99f78668f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO handle other regexp options \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":"lib/searchkick/query.rb"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fc8056dfd53f6d2cfba56b219dbce21384be3d1ed84666ffbbd550c9de4877"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO handle other anchor characters, like ^, $, \\Z \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":"lib/searchkick/query.rb"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26a6af2cbd2106ab605fe5a11c849ee95fec4dd91959cba4b14d5861c48d8fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO add this for other values \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":"lib/searchkick/query.rb"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05cf85ccd8a68e1330906dd7e701380bcf8e4124c1f411a6b5b8b8aab650ec9"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hack to prevent generator field doesn\u0027t exist error \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":"lib/searchkick/record_data.rb"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83e30ec90c3aeb78102b2ea77ec6b4af8c75d18d3d743e1c143ff75de8ba859"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO use reliable queuing \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":"lib/searchkick/reindex_queue.rb"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e26ee16a8ba8715c7635a0e1086a0c3fffd2396ed22a61c26b73b1bd9172e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO freeze body object? \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":"lib/searchkick/relation.rb"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4103bd02a76bdd477fd2ee85a1a408efab2c044d255e8b2c4b58a8efa24b9ab6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO merge duplicate fields \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":"lib/searchkick/relation.rb"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"58177cdcb1b71b7ffb46936ba48cb782d04624b6e990c0a59aec9570b1e4be6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO set limit? \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":"lib/searchkick/relation.rb"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f047e8ab9d6e9648988e38fd50c60b7ef1093078974588a20755ada6232060"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO expire Redis key \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":"lib/searchkick/relation_indexer.rb"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"165f979c3c6fa57356174aa422b53b34c94542cff2100cc97e1a99823f604a90"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO Active Support notifications for this scroll call \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":"lib/searchkick/results.rb"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa862ea6c42673ffec162766f24235b34eaad8e3013a9c7f1e27362ee34f71f"}},{"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":"9603565aa6069e0abcf535dcde33980e7f55a15fa6af1c7abedeeffe7f52bf08"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"aa8d62658eb558d30f4f0cdf6997677d87de6b8626c1c50912eb0c263238f195"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"f97f4d523fb5c1dc4f6cc73718e04f2b1db4464045eff8a53a6c88ca84f36b63"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"b663c00eda1fa023ec7bda79134fbfae4cf54723e023dc0aade0e21bcc845580"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"5091145ece0de0110f2598a9878fad8beecd1990cfd4a55e8b6d5b47dd6e95a1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"55a8ed8960dce8f8d627b58bf38108fe39ba1b01d8d765974ff87e1ceca2808b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"c5f8efce9e6e05768d98e09566a5ece5c07695a0fd544ab58d1b4d0050fcbb2d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"6e1c04e14d6609e253a116878dbfd04792f6482d1f318402a2fcc1553fa21867"},"taxa":[{"id":"CWE-1265","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D36","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":"171a5915161e926e35d9f9302156f7a2c57d16c96d5bdd1af3f21e2d4308269b"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/match_test.rb"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8280c2f373af628508884578e31a1f5bae444459c2d510996d0bc2b473fe0be2"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/suggest_test.rb"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"665179df635c2065a9c50d4547a65ad33bb5664e647ec4c9d925e78a8c775a01"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add brakeman for Rails apps, otherwise \u0060semgrep --config=auto\u0060 or CodeQL\u0027s ruby pack as a CI step. What was searched, so you can tell an absence from a miss: the 1 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/build.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X5","level":"note","message":{"text":"Ruby\u0027s type checker does not check nil everywhere: This repository commits no Sorbet configuration (\u0060sorbet/config\u0060) and no \u0060Steepfile\u0060, so nothing type-checks its 27 Ruby product file(s): a nilable value reaches a method call silently and raises \u0060NoMethodError: undefined method \u2026 for nil\u0060 the first time it is nil. A \u0060# typed:\u0060 sigil does nothing without a \u0060sorbet/config\u0060 beside the code; a Steep run configured only on a command line is not something this check can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"32b27113b1bc22f400935e8620d19eae7fd3ef145cc36018609c445ea8cd4af1"}}],"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-1265","guid":"9bfc5711-f2f2-6252-bd2e-ff21a1e98a6c","name":"CWE-1265","shortDescription":{"text":"CWE-1265"},"helpUri":"https://cwe.mitre.org/data/definitions/1265.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-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-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"}]},{"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":"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":"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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"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":10,"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."]}]}