{"$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":"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":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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":"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":"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"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":"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":"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":"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":"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":"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":"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":"regex_automata::util::determinize::next (cyclomatic 49): regex_automata::util::determinize::next has cyclomatic complexity 49 (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":"regex-automata/src/util/determinize/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26ce62e5e41712533374d08a0982f883d286d150445bd0cd6794d0c6aad266e"}},{"ruleId":"D1","level":"warning","message":{"text":"Writer::visit_pre (cyclomatic 39): Writer::visit_pre has cyclomatic complexity 39 (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":"regex-syntax/src/hir/print.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6229364e4847611205be915322ffa05d8afca3abd630b449a0e6f86778bc71b"}},{"ruleId":"D1","level":"warning","message":{"text":"LookMatcher::matches_set_inline (cyclomatic 37): LookMatcher::matches_set_inline 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/look.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"016b230df1c983cf38d4206be6f257f84d8852ebb6cd67cc3ca3b89e501a17aa"}},{"ruleId":"D1","level":"warning","message":{"text":"Special::validate (cyclomatic 32): Special::validate has cyclomatic complexity 32 (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":"regex-automata/src/dfa/special.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef09cc7f8deddd342179caa28ebbc85a99b46bb95b1da6f6d6a03610e6cc35a0"}},{"ruleId":"D1","level":"warning","message":{"text":"Look::is_match (cyclomatic 32): Look::is_match has cyclomatic complexity 32 (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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfb5713b12912eb6e257c8a5b5e9430fce2494124dfcdd5206e5176fecc20b9"}},{"ruleId":"D1","level":"warning","message":{"text":"Seq::optimize_by_preference (cyclomatic 27): Seq::optimize_by_preference has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"199556bd49d0bc7ec19d40169b97071ba81be5235dc58ff12d780ac8d3e9d7d0"}},{"ruleId":"D1","level":"warning","message":{"text":"Minimizer::run (cyclomatic 26): Minimizer::run has cyclomatic complexity 26 (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":"regex-automata/src/dfa/minimize.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7066c84b0c3667d33d7f50da3e9e5b0cb24ef082333e04e1669367a66004c64f"}},{"ruleId":"D1","level":"warning","message":{"text":"Transitions::try_state (cyclomatic 26): Transitions::try_state has cyclomatic complexity 26 (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":"regex-automata/src/dfa/sparse.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cae14dcdaf11a30f1d2641f6380e1bb2cbbc0847b1a9b927b72f3ffd62e480"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::util::determinize::set_lookbehind_from_start (cyclomatic 26): regex_automata::util::determinize::set_lookbehind_from_start has cyclomatic complexity 26 (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":"regex-automata/src/util/determinize/mod.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e06a7be659bb37c1d6e46fab2e832b89799d2b176293ef87b4792d5faa2d5f"}},{"ruleId":"D1","level":"warning","message":{"text":"Split::new (cyclomatic 25): Split::new has cyclomatic complexity 25 (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":"regex-automata/src/nfa/thompson/range_trie.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a250bb59d87201b8700dd3fabf8c97949b55cdb5d4131c087f40f3083d7404"}},{"ruleId":"D1","level":"warning","message":{"text":"ParserI::parse_escape (cyclomatic 25): ParserI::parse_escape 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":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":1479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7d4e297508f33218f075cdfd36cf96001b8c9f2406a9d0248a23e1eb8cd456"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::dfa::search::find_fwd_imp (cyclomatic 24): regex_automata::dfa::search::find_fwd_imp 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa931c43f0279fa180a5b418003005d05eb72148e22f01ed6f589da154d966f8"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::hybrid::search::find_fwd_imp (cyclomatic 24): regex_automata::hybrid::search::find_fwd_imp 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":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d86c7d71f0c2e9eac9eb72259db07e7f44c19f2bb051064b0da652b7d42938"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder::build (cyclomatic 23): Builder::build has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/builder.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc3d256dffe28ace4a4e165110dfc5bbf8d94cfea2d82822a74545c03b68505"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser::parse_escape (cyclomatic 23): Parser::parse_escape has cyclomatic complexity 23 (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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d9300124eb770fc1b58a3b284685df472716140aadba27f5b044b7544d4e68"}},{"ruleId":"D1","level":"warning","message":{"text":"InternalBuilder::build (cyclomatic 22): InternalBuilder::build has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74e0debe12fdb279a339bb8e07e6926ff6c138a3167d81622c48bbb69320bbf"}},{"ruleId":"D1","level":"warning","message":{"text":"TranslatorI::hir_assertion (cyclomatic 20): TranslatorI::hir_assertion has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7085699e57c56bd92acd667724cb891cd7d005bac7a2ebaa4d69d8711aa339"}},{"ruleId":"D1","level":"warning","message":{"text":"DFA::search_imp (cyclomatic 19): DFA::search_imp has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":2045}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb62e240441285413bd41ad8e0749d644bb02ee8ceb1fd17415214cb78a3657"}},{"ruleId":"D1","level":"warning","message":{"text":"PikeVM::search_imp (cyclomatic 19): PikeVM::search_imp has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"780c2a98c932ae81ceffad63a7d7b2f2b011e7f271dbc93864a3c1340f54f25f"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser::parse_class (cyclomatic 19): Parser::parse_class has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/parse.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c373cd13f0fc755e35e3a0b0f438a3a2987fb21f7ada25daca91acb654d7d97"}},{"ruleId":"D1","level":"warning","message":{"text":"TranslatorI::visit_post (cyclomatic 19): TranslatorI::visit_post 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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fe9b54adb55a4f421284c1a77d4a169f65d799f207d4f2dcbfe2772296d7a3"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedBacktracker::step (cyclomatic 18): BoundedBacktracker::step 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":"regex-automata/src/nfa/thompson/backtrack.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"816da7bb1b8709a330243eec07034fc7bd197581d0c6730d90ce2b66663004f2"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::dfa::search::find_rev_imp (cyclomatic 18): regex_automata::dfa::search::find_rev_imp 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c3fe213a95d91d1a6474cde0dc8809fd54b74a34b626a3159777a6434fee61"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::hybrid::search::find_rev_imp (cyclomatic 18): regex_automata::hybrid::search::find_rev_imp 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":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3504354ea13b17b0ce4a3d08e75ab6c3ae59e295ebec556772bb9d20ddf58fc"}},{"ruleId":"D1","level":"warning","message":{"text":"DatTest::parse (cyclomatic 18): DatTest::parse 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":"regex-cli/cmd/generate/fowler.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f3108a33652769f058c0beb3c2eafe9be3cf718e618b338e3b67974ca6a85f"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::dfa::search::find_overlapping_fwd_imp (cyclomatic 17): regex_automata::dfa::search::find_overlapping_fwd_imp 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e93b5d07f9692402688bd7057a58b7ce1daadd600b421de4c520d93853323"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::dfa::search::find_overlapping_rev (cyclomatic 17): regex_automata::dfa::search::find_overlapping_rev 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"143957e62a1878a31806ab75896be7439d93ae80bff86b94ac7b70f11834dfa3"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::hybrid::search::find_overlapping_fwd_imp (cyclomatic 16): regex_automata::hybrid::search::find_overlapping_fwd_imp has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3c2f09fd6ff0b1d65a914b2af74694a004904a009c11aa71b9eff095d7c5e9"}},{"ruleId":"D1","level":"warning","message":{"text":"regex_automata::hybrid::search::find_overlapping_rev (cyclomatic 16): regex_automata::hybrid::search::find_overlapping_rev has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d08b2eb8eab4b8d5928c7ec2ddb05daf3ed6c0372dbe74d912a88c462dab5b8"}},{"ruleId":"D1","level":"warning","message":{"text":"ParserI::parse_counted_repetition (cyclomatic 16): ParserI::parse_counted_repetition has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0868a4c335891219bd9ffdc75737ce43200d6acea8e2f849386d4749bc179d1d"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::hybrid::search::find_fwd_imp (cognitive 76): regex_automata::hybrid::search::find_fwd_imp has cognitive complexity 76 (threshold 15). Drivers by points: if/else 20 (63 pts), match/switch 2 (8 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 51). 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":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58e05cba3d6dfdb434dd1abecfa77dc90bb354de09a0bdd05426901bddd060d"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::dfa::search::find_fwd_imp (cognitive 70): regex_automata::dfa::search::find_fwd_imp has cognitive complexity 70 (threshold 15). Drivers by points: if/else 19 (58 pts), match/switch 2 (8 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 46). 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b12e0a075989ec8390b396a109abcda249ffe00758431dcfa01fa97efa058c5"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::util::determinize::next (cognitive 68): regex_automata::util::determinize::next has cognitive complexity 68 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 19, loops 2 (4 pts), match/switch 2 (4 pts) (nesting depth added 24). 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":"regex-automata/src/util/determinize/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"318e73882e4c91926e7c2bac1d4d3b7bd8d32eb835ca983ca6af67633896c9d8"}},{"ruleId":"D2","level":"warning","message":{"text":"Minimizer::run (cognitive 55): Minimizer::run has cognitive complexity 55 (threshold 15). Drivers by points: if/else 15 (36 pts), loops 10 (15 pts), match/switch 1 (4 pts) (nesting depth added 29). 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":"regex-automata/src/dfa/minimize.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5bda17e5dcd7badf036f525ff4ee8d582e25e3c4547bb5ea1a1894c19fe3fc"}},{"ruleId":"D2","level":"warning","message":{"text":"LookMatcher::matches_set_inline (cognitive 54): LookMatcher::matches_set_inline has cognitive complexity 54 (threshold 15). Drivers by points: if/else 36 (54 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":"regex-automata/src/util/look.rs"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cb9849f205cbbd30b1fd733920566ac1c7e086bf974ac25f1ab96ba0219d26"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::util::determinize::set_lookbehind_from_start (cognitive 45): regex_automata::util::determinize::set_lookbehind_from_start has cognitive complexity 45 (threshold 15). Drivers by points: if/else 21 (42 pts), boolean chains 2, match/switch 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/determinize/mod.rs"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b92bbe2a4d73b72bd745ea3adf236d2c6587a863724fba3609cea46e76886ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Seq::optimize_by_preference (cognitive 44): Seq::optimize_by_preference has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (37 pts), boolean chains 4, match/switch 2, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e768ee1c234d2705677c23ce5701f147e1e4222d18fb57f863d1e8bc6852e1"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::hybrid::search::find_rev_imp (cognitive 43): regex_automata::hybrid::search::find_rev_imp has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (38 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 24). 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":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"088a5691870f78346972af33541a5a717d232f8d5b1216928b0fcf7773e5f9b6"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::dfa::search::find_overlapping_fwd_imp (cognitive 42): regex_automata::dfa::search::find_overlapping_fwd_imp has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (35 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 25). 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfe58291d5463f0cac3045843e38fe4b88c995fc3918af1806009d015e07eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::hybrid::search::find_overlapping_fwd_imp (cognitive 41): regex_automata::hybrid::search::find_overlapping_fwd_imp has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (34 pts), match/switch 2 (6 pts), loops 1 (nesting depth added 25). 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":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b33492c01ecfd11fdd772d7488d092dd202be6af973ca8d1b14f5281bf508d"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::dfa::search::find_rev_imp (cognitive 40): regex_automata::dfa::search::find_rev_imp has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (36 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 22). 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f042c5e9d4037d4566550e0ffd0607b78263a8871a4c993a7653c3e7a59d40c1"}},{"ruleId":"D2","level":"warning","message":{"text":"RangeTrie::insert (cognitive 37): RangeTrie::insert has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (23 pts), match/switch 2 (7 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 24). 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":"regex-automata/src/nfa/thompson/range_trie.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa087aa555ac2f6d275d395e3ba23d00093090641ea19c4be46d6caf7efc235"}},{"ruleId":"D2","level":"warning","message":{"text":"Utf8Sequences::next (cognitive 37): Utf8Sequences::next has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (27 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/utf8.rs"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8589d5177ff02a0ff1617f8345404449e166c91c6fa3bdf0d81bed11fcd9f3"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalBuilder::build (cognitive 35): InternalBuilder::build has cognitive complexity 35 (threshold 15). Drivers by points: loops 7 (18 pts), if/else 7 (14 pts), match/switch 1 (3 pts) (nesting depth added 20). 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":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe5c967f8e7e636da57926e324541cc00890c33ceb9e1782f9d8a02118dd366"}},{"ruleId":"D2","level":"warning","message":{"text":"Writer::visit_pre (cognitive 35): Writer::visit_pre has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 4 (10 pts), match/switch 3 (5 pts) (nesting depth added 17). 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":"regex-syntax/src/hir/print.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0051d18f3671c67bbbfea072545a5dbf1cd7e20ab48ec7485b53625536ff8a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"TranslatorI::hir_assertion (cognitive 33): TranslatorI::hir_assertion has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (32 pts), match/switch 1 (nesting depth added 12). 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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"de568ac80f06b68b128ca707df68ea88291b1c30c096ad2f3b1614675504f23c"}},{"ruleId":"D2","level":"warning","message":{"text":"PikeVM::search_imp (cognitive 32): PikeVM::search_imp has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 6, match/switch 2 (5 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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee73af0c9a8eb63622ebe69e89ff6ff500d2063ce7d11c0fcdf6ccc6ed23ad8f"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_cli::cmd::find::capture::run_counts (cognitive 32): regex_cli::cmd::find::capture::run_counts has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 6 (13 pts), match/switch 1 (3 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"60480cb2bce6e66f59ac2d5b7f5bb26fc045c5999e08dd81de7ee2160c438e8b"}},{"ruleId":"D2","level":"warning","message":{"text":"Special::validate (cognitive 31): Special::validate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19, boolean chains 12. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/special.rs"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"db67f06a8076f601406aefebf7980ca9d3d4b856eb285e50e951c7989494df84"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::dfa::search::find_overlapping_rev (cognitive 31): regex_automata::dfa::search::find_overlapping_rev has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 1, match/switch 1 (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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f34ef8961daf23611f6323e1a51aca4549561bc66ebfaf0dd544177da3fdd4"}},{"ruleId":"D2","level":"warning","message":{"text":"Hir::concat (cognitive 31): Hir::concat has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (21 pts), match/switch 2 (6 pts), loops 2 (4 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":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd09d83fdabe37f41c3b7404977734a6729f08cba5abe280e207b4199d5520d"}},{"ruleId":"D2","level":"warning","message":{"text":"Transitions::try_state (cognitive 29): Transitions::try_state has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 7, loops 3 (4 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, 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":"regex-automata/src/dfa/sparse.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a216fb30844ddc26bffde3f8c3c25a89ccc12386943bec8c898f61bd7e073f"}},{"ruleId":"D2","level":"warning","message":{"text":"DFA::fmt (cognitive 27): DFA::fmt has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4 (7 pts), match/switch 1 (3 pts) (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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fae35ad77a1fe761e279ea3595af293a288f6ecb251379c90d5c9cba3ce4567"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::hybrid::search::find_overlapping_rev (cognitive 27): regex_automata::hybrid::search::find_overlapping_rev has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (25 pts), loops 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54fd32f69695da8fd0dcbc2c509a86160fd159030847d7d3cee2a4171ce6fc5"}},{"ruleId":"D2","level":"warning","message":{"text":"Properties::union (cognitive 27): Properties::union has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 2, 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":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b46ac9c8c2b5282cca26b26da8b54db3fd2d45a55634d96ca64f58051c3bcfb"}},{"ruleId":"D2","level":"warning","message":{"text":"DFA::search_imp (cognitive 26): DFA::search_imp has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 4, loops 4, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":2045}}}],"partialFingerprints":{"codehealthFindingId/v1":"5843d9c7c8ed96bb6c53c66387913b1dad354cecf04c38bf3215cdbfcbdcba1b"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedBacktracker::step (cognitive 26): BoundedBacktracker::step has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/backtrack.rs"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa80ed5a28535b974ad736789d5c3eaa407ddeaeec54678472f092675315192e"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse_class (cognitive 26): Parser::parse_class has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2, match/switch 1 (2 pts), boolean chains 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"e216f21dffe5e7ba81ab83b20bcb9d361d322a37e55e7e38af4427a97d09f5c3"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder::build (cognitive 25): Builder::build has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 4 (6 pts), match/switch 2 (5 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":"regex-automata/src/nfa/thompson/builder.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a92e742ffb61154c4713c577be6eb7891a24336cabf45b0f8f2f46d910e675"}},{"ruleId":"D2","level":"warning","message":{"text":"Split::new (cognitive 25): Split::new has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, boolean chains 12. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/range_trie.rs"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb47d9c60bb388cac6dfd7920238df17e0145ab195d46667555c62faa201d72"}},{"ruleId":"D2","level":"warning","message":{"text":"DatTest::parse (cognitive 25): DatTest::parse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, match/switch 2 (5 pts), loops 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":"regex-cli/cmd/generate/fowler.rs"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3021efff9c04a1becf25a5dd6d1560e03be2c0ca63af77ba0a8a5e0184fb6dc"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_cli::args::configure (cognitive 24): regex_cli::args::configure has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (9 pts), match/switch 4 (9 pts), loops 3 (6 pts) (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":"regex-cli/args/mod.rs"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b033d1d8b2af73c9959b3be3962a45d98fc1cf569be090bdbba7ff5f002dde7"}},{"ruleId":"D2","level":"warning","message":{"text":"ParserI::parse_counted_repetition (cognitive 24): ParserI::parse_counted_repetition has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"db67e9225619c3dec469cef5cd75dfc6fe9400881f97cad637dd13c981d0b9c5"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_cli::cmd::find::capture::run_search (cognitive 23): regex_cli::cmd::find::capture::run_search has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (8 pts), match/switch 1 (4 pts) (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":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f456cbbf31f0bd6c13e0e291ab4079ca10329a15714b3583c6d592d23c1a2ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"TranslatorI::hir_dot (cognitive 23): TranslatorI::hir_dot has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3b7c236ab2db1b2d5731f225dd1c079764e692530ecbaa671c796d0a55d6c3"}},{"ruleId":"D2","level":"warning","message":{"text":"DFA::fmt (cognitive 21): DFA::fmt has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 3 (nesting depth added 7). Of this number, 11 points are the body\u0027s own statements and 10 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b97bdf0fec8b1708a4999c87883ff194164b3fb3ec500453f0cbff56500aab4"}},{"ruleId":"D2","level":"warning","message":{"text":"Compiler::c_at_least (cognitive 21): Compiler::c_at_least has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (21 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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8702c675c2ccedc58702272084b8b7c6faddd5ccaa1b8e9927fc13d8133c34"}},{"ruleId":"D2","level":"warning","message":{"text":"Look::is_match (cognitive 21): Look::is_match has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 20, match/switch 1. 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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ab329c93090b4c44f3d71aa03dd2c6bd31d2e23226d60c7e995fb52f0fe10c"}},{"ruleId":"D2","level":"warning","message":{"text":"Compiler::c_unicode_class (cognitive 20): Compiler::c_unicode_class has cognitive complexity 20 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 5 (6 pts) (nesting depth added 10). 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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc898ce392514e78eeb4d324c4d4912858601879e5de45b75ac8a522932489d"}},{"ruleId":"D2","level":"warning","message":{"text":"Properties::concat (cognitive 20): Properties::concat has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (8 pts), match/switch 2 (6 pts), boolean chains 3, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":2571}}}],"partialFingerprints":{"codehealthFindingId/v1":"73682b348b7074f7ce3a9e07cdcd06d815a3b202b42789e6549d1dbc4113b71e"}},{"ruleId":"D2","level":"warning","message":{"text":"PikeVM::which_overlapping_imp (cognitive 19): PikeVM::which_overlapping_imp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 4, loops 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0d44dd6db26a94891dcbdd6d5609164c8fcc5531a93b411e2e64575e88b198"}},{"ruleId":"D2","level":"warning","message":{"text":"PikeVM::search (cognitive 19): PikeVM::search has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/pikevm.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c03ab598a3d4b91b52e17aa744af9fd3d8b3bf319342776e155ea4ce57ee25"}},{"ruleId":"D2","level":"warning","message":{"text":"IntervalSet::difference (cognitive 19): IntervalSet::difference has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 3 (4 pts), match/switch 1 (3 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":"regex-syntax/src/hir/interval.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b9d5e6696b903eece64e46b0b4b0da1a0893619096efb44e2bde70b761e3e4"}},{"ruleId":"D2","level":"warning","message":{"text":"TranslatorI::visit_post (cognitive 19): TranslatorI::visit_post has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (6 pts), loops 2 (4 pts) (nesting depth added 9). 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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"638122cd741db0047f6d60b480b0ed57fc5a910d9555be377c1a85cdca90257e"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::meta::stopat::dfa_try_search_half_fwd (cognitive 18): regex_automata::meta::stopat::dfa_try_search_half_fwd has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/stopat.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a32fa39eaf0ce50789f50dd22243ded869fe2608445b9139361a394ae6db65e"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::util::determinize::epsilon_closure (cognitive 18): regex_automata::util::determinize::epsilon_closure has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 2 (7 pts), loops 2 (3 pts) (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":"regex-automata/src/util/determinize/mod.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d7bab39f173462eb758eb3994ac158f50a6a4baa3c281fa6e4231d26c43628"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassSet::drop (cognitive 18): ClassSet::drop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 4 (8 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/mod.rs"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f526c2a7a28286dc2b7e5d274ea5fce336f668294cb524709071abfb23f39e"}},{"ruleId":"D2","level":"warning","message":{"text":"Extractor::extract_repetition (cognitive 18): Extractor::extract_repetition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 pts), boolean chains 1, match/switch 1 (nesting depth added 9). 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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"398cbe00220d0806ee9cbdc390a51fbec11f70c995962cbabd0aa97a2fff98ce"}},{"ruleId":"D2","level":"warning","message":{"text":"DFA::from_dense (cognitive 17): DFA::from_dense has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 3 (5 pts), match/switch 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":"regex-automata/src/dfa/sparse.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8dd08a887153dc30176ba67e11b53c3d565d7a8c2d46401a64a6d4c4d351c21"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteralTrie::compile (cognitive 17): LiteralTrie::compile has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/literal_trie.rs"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dadbb53a950812894d915441629d3692b49a713d5ea38221bb6951ae3050231"}},{"ruleId":"D2","level":"warning","message":{"text":"PikeVM::epsilon_closure_explore (cognitive 17): PikeVM::epsilon_closure_explore has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 2 (5 pts), loops 2 (4 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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12c320ab98de3ae2429f446b7c2ce67670ba72b09475a92c9a6f98122a18774"}},{"ruleId":"D2","level":"warning","message":{"text":"regex_automata::meta::reverse_suffix::strip_literal_suffix_at (cognitive 17): regex_automata::meta::reverse_suffix::strip_literal_suffix_at has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/reverse_suffix.rs"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedfdcfa497dbad2ebc7539fac61380bf15875d6fd8741c3741fa01f97036c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"PikeVM::epsilon_closure_explore (cognitive 17): PikeVM::epsilon_closure_explore has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), match/switch 3 (8 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/pikevm.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f58d4074ebda6837ad5d1e9c48473d4d9f8d7f39265148bfaf97447fddc98cd"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassQuery::canonicalize (cognitive 17): ClassQuery::canonicalize 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":"regex-syntax/src/unicode.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f2d59e37662983ae5f5b9acc79bef2d403659c0f533405107b78df57a5b025"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionTable::validate (cognitive 16): TransitionTable::validate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3620}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54a94474a6029723b23df5313385b29b6939b835cf7b42ed1a01c3589a76983"}},{"ruleId":"D2","level":"warning","message":{"text":"Runner::add_start_group (cognitive 16): Runner::add_start_group has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/determinize.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f324ddd360001301812577077a695632e42c6e00a6093fb7e7a741fa8bb57e"}},{"ruleId":"D2","level":"warning","message":{"text":"StateSet::subtract (cognitive 16): StateSet::subtract has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 4 (8 pts), if/else 4 (5 pts), loops 2, boolean chains 1 (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":"regex-automata/src/dfa/minimize.rs"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8dab710aeb8fef18a0bc2340602a4bcccbcbce28ce33641aab242bc231269b"}},{"ruleId":"D2","level":"warning","message":{"text":"Lazy::try_clear_cache (cognitive 16): Lazy::try_clear_cache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (16 pts) (nesting depth added 9). 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":"regex-automata/src/hybrid/dfa.rs"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f8735dd81f0b3709485c9cbb2a2b381e8e9f8281a52b52cfa4cad40e7bc6bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser::parse_counted_repetition (cognitive 16): Parser::parse_counted_repetition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, match/switch 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/parse.rs"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c53599b33284cbc7a1765db7b96884b9843645418d0a4ff7bbf30c2ca1efa86"}},{"ruleId":"D2","level":"warning","message":{"text":"TranslatorI::visit_class_set_item_post (cognitive 16): TranslatorI::visit_class_set_item_post has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). 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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"6967c75ca76e3334751f2727fdcc5fb2ceb29d552967f251c8f2c71af24f22d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dfa/dense.rs: FileTooLong \u2014 1665 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 1165 over it, 3.33\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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c795dcfd5d4a472bde50fd4fafbb3080cf74f3c35b94985394305c43b4384ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ast/parse.rs: FileTooLong \u2014 1312 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 812 over it, 2.62\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":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93ed16bfddeebcca389aa6a5055c23145de72c2563532de6268f576df9712c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: meta/strategy.rs: FileTooLong \u2014 1195 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 695 over it, 2.39\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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"813bac3ee43961bd4c8265ac7428bafae25e2a499a3bd7f8a0fe604a0ea76414"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hir/mod.rs: FileTooLong \u2014 1159 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 659 over it, 2.32\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":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"408ad51b3a96b32de16109f4ca0f651ed0572ee565b20e987bf94fc50f52d260"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dfa/sparse.rs: FileTooLong \u2014 1068 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 568 over it, 2.14\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":"regex-automata/src/dfa/sparse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"087b528aab554c7c8839b1044a23b8dcce97daa23835daad511264f927e03c3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hybrid/dfa.rs: FileTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 488 over it, 1.98\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":"regex-automata/src/hybrid/dfa.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c3d3f007bad9f34c2b98acd9ff6f8d4cac2e8aec467c1083a48e0cfb4e7ed4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ParserI: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\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":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fc71528c645c8f03661d3b09cde508ddb03ce208645ff11fb7f7993fc8f6e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dfa/onepass.rs: FileTooLong \u2014 906 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 406 over it, 1.81\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":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba06feca580a6c6139437ff7546b892a4423908e0168aa58e077b82a24f56a5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ast/mod.rs: FileTooLong \u2014 872 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 372 over it, 1.74\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":"regex-syntax/src/ast/mod.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74ea0837ed1cece7cb77f2f2a552c28a586f2206380d67bd7a0695e1a512be6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hir/translate.rs: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 75% of them inside a single declaration: TranslatorI (3 blocks, 324-1214). The bar is 500 significant lines; this is 298 over it, 1.60\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d5f37a688db62c2e1d313141d658578881395139a8f14fb407b76745a41a71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: meta/wrappers.rs: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 264 over it, 1.53\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":"regex-automata/src/meta/wrappers.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73e937ee5a39a20300302eb731b64e951ea3d8070521343f1f8af5f200c486e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hir/parse.rs: FileTooLong \u2014 764 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 264 over it, 1.53\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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d1b5d3fac4d2053e0e9a3d13e7cf9413706d7ac6d6a9daee87a9361258a969"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TranslatorI: ClassTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 26 methods, 3 blocks, lines 324-1214. The bar is 400 significant lines; this is 195 over it, 1.49\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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"539cff12c00bafeb124cb1458376cbb9fdf6bd7f79cd56c232357312a838823e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DFA: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5c192d134517fe2e53a6c1040599aea52fb825e222ed225858cfc072fe3c92"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Parser: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d208e0ec8dd44bc21beb3e18bc0730d614ad440d598478dfeaf70bbe9149b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thompson/pikevm.rs: FileTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 167 over it, 1.33\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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf16fa05db8fd8219afc8c36749076d9d761137d8ae21d0c33d938239dc57ea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Compiler: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"c610eb52fbeb63388e8d69fc545d43231127943b18e2508bc8d8c2bdc845f731"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.usage: MethodTooLong \u2014 usage runs 133 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/args/meta.rs"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34d198a2bd7ee2b68a3323a07ad03966a778f3fe396b54c8936b890b89dd789"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thompson/compiler.rs: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 140 over it, 1.28\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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02039a79447a662bc620e88713bd658a78479651a186065a1d05fb70db99ab92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: meta/regex.rs: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 139 over it, 1.28\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":"regex-automata/src/meta/regex.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d5334b4eda6725ed10999c3f6f2129f1686a2449253bfcd8f1f10ff2ac01f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: serialize/dfa.rs: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 123 over it, 1.25\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":"regex-cli/cmd/generate/serialize/dfa.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c5c319632e925cb290e6ca617a8b863e4a2e9ae4129fcac243542acbb7aa32"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DFA: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"483a7120efb0eec979387860d94055dc1cf6849faea19bfdbb44eb2b70e6292b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\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":"regex-automata/src/meta/regex.rs"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"462f13925c5e4423dfa7cafd9f44cc6cff1389ff2d78eb37041c6482fdf0e0f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: hir/literal.rs: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 116 over it, 1.23\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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac89a08f786259d0c67fa345df6e1a60e4580b0c7d2ddb2b37612c18436241a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Builder.build: MethodTooLong \u2014 build runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/builder.rs"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68fa1add0508dc08fe569824b8f8f0118e1e8391ee191c086064d660f696bae"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: regex_automata::util::determinize::next: FunctionTooLong \u2014 regex_automata::util::determinize::next runs 122 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/determinize/mod.rs"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7482180e9142c58d4cc96a90f6ced85b2abd8c2c41b61f82f7bba45737ed0c13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/look.rs: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 94 over it, 1.19\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":"regex-automata/src/util/look.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2817d7b318434979750f485cf53470284fc873c2fb35de41a00fb96ea2c922a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/string.rs: FileTooLong \u2014 594 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 94 over it, 1.19\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":"regex-lite/src/string.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb7726460e3e34dd51fa9ab7a7d23bf358ab1c09df1cee0c01d2c6e89dc4e27"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: regex_automata::util::wire: TooManyFunctions \u2014 35 free functions. The bar is 30 free functions; this is 5 over it, 1.17\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":"regex-automata/src/util/wire.rs"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a684515114ff2a653f18c873c9165be77fa4a5d307de9b1a2f3eabd96376590"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.usage: MethodTooLong \u2014 usage runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/args/hybrid.rs"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c7eda035690e7add3d6658ae7800f62b9a5a928d393269ca4ff79a085194b6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.usage: MethodTooLong \u2014 usage runs 113 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/args/syntax.rs"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd09c6f9b4cb43c8378394763a765414ba11e91e149587ccffa99bedfbb567f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Seq: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bbd9fd4ba1505d2a7953c74eb76e279e85f08ff5527783e4a7f01e3f43653f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Config.usage: MethodTooLong \u2014 usage runs 110 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/args/dfa.rs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d80741c7856719ba752ecbe8d97939c48bb1006f36a38cb6197075186c1967e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Transitions.try_state: MethodTooLong \u2014 try_state runs 105 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/sparse.rs"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"d381636cf141fd7df5d9f08029433f1a405a506d92fc7b9a90537a5e637f0f4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Regex: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"regex-automata/src/meta/regex.rs"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c15eef0622f08a6139b576eb5d5b2301af1da3c5a3d997524fe5a357cfd4fb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (20 members, 22 shared lines): regex-cli/cmd/find/capture/dfa.rs:8-84 | regex-cli/cmd/find/capture/mod.rs:152-230 | regex-cli/cmd/find/capture/nfa.rs:8-84 | regex-cli/cmd/find/capture/nfa.rs:86-162 | regex-cli/cmd/find/half/dfa.rs:8-110 | regex-cli/cmd/find/half/dfa.rs:112-212 | regex-cli/cmd/find/half/dfa.rs:214-314 | regex-cli/cmd/find/half/mod.rs:108-176 | regex-cli/cmd/find/match/dfa.rs:8-87 | regex-cli/cmd/find/match/dfa.rs:89-165 | regex-cli/cmd/find/match/dfa.rs:167-244 | regex-cli/cmd/find/match/dfa.rs:246-319 | regex-cli/cmd/find/match/mod.rs:107-175 | regex-cli/cmd/find/match/nfa.rs:8-81 | regex-cli/cmd/find/match/nfa.rs:83-156 | regex-cli/cmd/find/which/dfa.rs:8-76 | regex-cli/cmd/find/which/dfa.rs:78-144 | regex-cli/cmd/find/which/dfa.rs:146-212 | regex-cli/cmd/find/which/mod.rs:132-202 | regex-cli/cmd/find/which/nfa.rs:8-77 \u2014 These 20 members are variants of one another: a block of 22 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/dfa.rs"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec974472cf30b54548a9246fb1a7a7f91fd8f5eef968d87c4c0bcb5391815591"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 35 shared lines): regex-cli/cmd/debug/dfa.rs:36-94 | regex-cli/cmd/debug/dfa.rs:96-167 | regex-cli/cmd/debug/dfa.rs:195-251 | regex-cli/cmd/debug/dfa.rs:253-326 | regex-cli/cmd/debug/mod.rs:131-187 | regex-cli/cmd/debug/mod.rs:189-244 \u2014 These 6 members are variants of one another: a block of 35 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them 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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b43c0d5f2d7f087f3b74ade56306f9a5a232dcb6f57e243248194efa1c1f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): regex-automata/src/dfa/dense.rs:3990-4089 | regex-automata/src/dfa/sparse.rs:1876-1969 \u2014 These two members are variants of one another: 48 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3990}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa834143e13128920d34cf4d69735e606d90ebbbe107c7fe6b04d25e027872a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): regex-automata/src/hybrid/search.rs:478-570 | regex-automata/src/hybrid/search.rs:578-670 \u2014 These two members are variants of one another: 32 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":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"108f0579d64077f0aba8656a93e1dc38ac8856949ea3826b475cd358443519f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (28 shared lines): regex-automata/src/nfa/thompson/compiler.rs:1255-1323 | regex-lite/src/nfa.rs:448-503 \u2014 These two members are variants of one another: 28 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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"899a9f9c2f59e3ef570c792c9c7e8b441b59ba2fa6fd99c0e98e24a205c59e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): regex-lite/src/string.rs:891-940 | src/regex/string.rs:961-1010 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"regex-lite/src/string.rs"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d7a143b5e4673ee01dcd3b6fde565bae08744c624dc012e1ee00eeafd2a401"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): regex-automata/src/dfa/search.rs:589-610 | regex-automata/src/meta/stopat.rs:148-174 \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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca016efad33d7c6fcab132b677193d19877bf9406c363583cb28ed92279cbb3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): regex-automata/src/dfa/search.rs:618-637 | regex-automata/src/meta/limited.rs:191-215 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4510b22e69ce9cd11e71c6ad73e90bdc4c3125af03e7805e997470a767261d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): regex-automata/src/dfa/automaton.rs:2174-2199 | regex-automata/src/hybrid/dfa.rs:4268-4293 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82a43d326ac50f513d36ca263ebd206aa5c8445ddb1b74010d491d4e15596ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): regex-cli/cmd/find/capture/mod.rs:53-150 | regex-cli/cmd/find/capture/mod.rs:232-331 | regex-cli/cmd/find/half/mod.rs:52-106 | regex-cli/cmd/find/match/mod.rs:51-105 | regex-cli/cmd/find/match/mod.rs:177-240 | regex-cli/cmd/find/which/mod.rs:65-130 \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":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cf5cf7380718b046d2ea5d2070cf24c8b91c137c94afd74be4875d3c27955a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): regex-automata/src/util/captures.rs:1223-1246 | regex-lite/src/string.rs:1935-1991 | src/regex/bytes.rs:1984-2043 | src/regex/string.rs:1991-2048 \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":"regex-automata/src/util/captures.rs"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f8390f9ce3e51c1cba64b54fc7c69ca67fddef7cdf83e89e1cb7168b611047"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): regex-cli/cmd/generate/serialize/dfa.rs:440-533 | regex-cli/cmd/generate/serialize/dfa.rs:535-619 | regex-cli/cmd/generate/serialize/dfa.rs:621-729 | regex-cli/cmd/generate/serialize/dfa.rs:731-827 \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":"regex-cli/cmd/generate/serialize/dfa.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"95368468d9c576f508196896c7c41d2012306f138a8bd14d7bf85c50387d7ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): regex-syntax/src/hir/translate.rs:334-365 | regex-syntax/src/hir/translate.rs:476-492 | regex-syntax/src/hir/translate.rs:591-600 | regex-syntax/src/hir/translate.rs:605-614 \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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c05ea07f11d51ff52d9b3fc857b33432f6caff29367ecaef060c0e4a9485d51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): regex-lite/src/hir/mod.rs:770-808 | regex-syntax/src/hir/mod.rs:1914-1952 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"662d2eda1569797eae9220a53ea1a0f3fb01bf1f2f07b896547911664f56b21a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): regex-automata/src/meta/limited.rs:49-122 | regex-automata/src/meta/limited.rs:130-182 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"regex-automata/src/meta/limited.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e08915b66547cf012ba1b1b56f3573fe7dca739b329fed13c53252ef91f36dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): regex-automata/src/dfa/dense.rs:4099-4144 | regex-automata/src/dfa/sparse.rs:1976-2019 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4099}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fee1a3a2512f2b922c71bf17e011a50e62e2503d8e20fc8e3f049fef0aa1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): regex-automata/src/dfa/dense.rs:2410-2447 | regex-automata/src/dfa/sparse.rs:1039-1072 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":2410}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d4a3ee9d4f2fa497bf835968382824fcdfd73c417d336b2a7a9ea0d5c1c9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): regex-automata/src/dfa/regex.rs:477-534 | regex-automata/src/hybrid/regex.rs:446-505 \u2014 These two members are one piece of code written twice and then edited apart: 58 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":"regex-automata/src/dfa/regex.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1fff1141548e4f847eb1da965024dac1593d2808c7c6e728d126a7e2bdbc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): regex-automata/src/meta/strategy.rs:1475-1512 | regex-automata/src/meta/strategy.rs:1878-1911 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b0e3d59bf0ad50fe29d0958d27080c8cc2ac03ef51654513459ba139d685b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): regex-cli/cmd/debug/mod.rs:46-85 | regex-cli/cmd/debug/mod.rs:87-129 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"regex-cli/cmd/debug/mod.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c719984febf9a306bbc91bdcb286c7bd7fea3fffa5a7ad4ec452ad9ca3a78db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): regex-automata/src/dfa/minimize.rs:386-418 | regex-automata/src/dfa/minimize.rs:420-462 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"regex-automata/src/dfa/minimize.rs"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a2cd50c1bca94b89962dc4885fee9b0d71b854ec5bbb5dfe70a70c75b5e6dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): regex-automata/src/dfa/dense.rs:2456-2480 | regex-automata/src/dfa/sparse.rs:789-805 \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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":2456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c249682c5e07ffb72fe8d1593f78f6b5c28517baced85df80987afea1beef4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): regex-syntax/src/ast/visitor.rs:209-254 | regex-syntax/src/hir/visitor.rs:113-157 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"regex-syntax/src/ast/visitor.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e431a0d53ce5f5a5bedd36982608358dd6f5685eec3f89ed98e775e50b29c52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): regex-automata/src/meta/strategy.rs:1353-1392 | regex-automata/src/meta/strategy.rs:1399-1446 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1a795402b719db4357b57be732c4eeb1adea5ad15261690e512024e82665af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 45\u002B corresponding lines): regex-cli/cmd/generate/serialize/dfa.rs:49-93 | regex-cli/cmd/generate/serialize/dfa.rs:95-141 | regex-cli/cmd/generate/serialize/dfa.rs:161-205 | regex-cli/cmd/generate/serialize/dfa.rs:207-253 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 45 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/generate/serialize/dfa.rs"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dff73fefb31c39b09cb913f28616aa8b38a3a473607a84e904bc07c45bb1b79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): regex-automata/src/dfa/onepass.rs:1698-1718 | regex-automata/src/nfa/thompson/pikevm.rs:819-835 \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":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2b80c1c315dbdde7ac228cd149fa61c17cddf7b972afcdbdf000e5f5913418"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): regex-automata/src/dfa/sparse.rs:1513-1532 | regex-automata/src/dfa/sparse.rs:1733-1760 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"regex-automata/src/dfa/sparse.rs"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5ffb1552b21617559c917ae633d0f431ca93fec20543817ea13a884e9df9c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 26\u002B corresponding lines): regex-automata/src/hybrid/search.rs:705-732 | regex-automata/src/hybrid/search.rs:741-766 | regex-automata/src/meta/limited.rs:225-251 | regex-automata/src/meta/stopat.rs:184-212 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 26 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"34db6f6f157c185d90f8a9f59b00a9339d863c4e84962b9498426fa9289bae81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): regex-automata/src/dfa/onepass.rs:1978-2005 | regex-automata/src/nfa/thompson/backtrack.rs:1298-1324 | regex-automata/src/nfa/thompson/pikevm.rs:1096-1132 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 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":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d1e444dee2e1e86de20806a645c34710c62a42e4602182429e9f40a58c38e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): regex-automata/src/nfa/thompson/compiler.rs:1109-1131 | regex-lite/src/nfa.rs:605-628 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"22253608e45e3894223228ef234236e1edadaf8af0c8d7bb049a02dc27241478"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 27\u002B corresponding lines): regex-cli/cmd/find/half/mod.rs:188-215 | regex-cli/cmd/find/half/mod.rs:225-251 | regex-cli/cmd/find/half/mod.rs:264-294 | regex-cli/cmd/find/half/mod.rs:306-335 | regex-cli/cmd/find/match/mod.rs:252-279 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 27 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"606e93b9ee3ea1971702fc9363afb9789c147f981d8c1048b7542240dcc13448"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): regex-automata/src/util/escape.rs:52-83 | regex-syntax/src/debug.rs:37-68 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"regex-automata/src/util/escape.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3864c1cd8b076c0215593be09fdd29db6ae5e5826665afb49008eb7e50b95363"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): regex-automata/src/dfa/dense.rs:3578-3605 | regex-automata/src/dfa/dense.rs:4499-4535 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3578}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e48590147c294902603b7689d4f11639810d530100ac7aad452a715a274169"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): regex-automata/src/dfa/dense.rs:4227-4258 | regex-automata/src/dfa/sparse.rs:2094-2128 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4227}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec7665b685a177b519d0596a1bfdad4fbb22cbe8d7dae041776a0e1be53ace8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): regex-cli/args/api.rs:30-55 | regex-cli/args/api.rs:70-89 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"regex-cli/args/api.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3b3d049314653d442a7a5f5b44ea05779d666677213d8201f3d54e62e3a019"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): regex-automata/src/dfa/dense.rs:4944-4968 | regex-automata/src/dfa/onepass.rs:2469-2496 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4944}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e58bd36059206e60fd8170147015354e665ddbc5bfcaaacc1932f047f7ae09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): regex-syntax/src/hir/literal.rs:959-984 | regex-syntax/src/hir/literal.rs:1098-1134 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"120ef7334a901da0954432aaac076b01b93d23cd3e526619a9e25d311402093b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): regex-syntax/src/unicode.rs:532-563 | regex-syntax/src/unicode.rs:589-620 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"regex-syntax/src/unicode.rs"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcdd1b30d3d6a1f656ebc1ba382aa9a6672ef392ff102dcb4af765c0c26fbcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): regex-lite/src/hir/parse.rs:671-691 | regex-syntax/src/ast/parse.rs:1843-1867 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"770cbaeebf89afcc744cb0fa466d6e8e73375b322ec62d3ec53377456e9389df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): regex-automata/src/meta/strategy.rs:713-737 | regex-automata/src/meta/strategy.rs:744-769 | regex-automata/src/meta/strategy.rs:772-800 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0388bc5bb2ff83467d647fd40769c464b79e3e1da99b74fb0a117eb03606010"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): regex-syntax/src/hir/literal.rs:1629-1653 | regex-syntax/src/hir/literal.rs:1682-1707 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":1629}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c7424c55a53a97ba5f16e151e083d76ff0fc3cff9e4accc807fbdd50c1ec9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): regex-automata/src/nfa/thompson/compiler.rs:1190-1241 | regex-lite/src/nfa.rs:386-434 \u2014 These two members are one piece of code written twice and then edited apart: 49 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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2391293432e4ac75220b5de7c8e11024e85ccfd29afb523ffc2b43aea229e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): regex-lite/src/hir/parse.rs:309-331 | regex-syntax/src/ast/parse.rs:600-622 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"82da003f3291851b8b0d7550bf88f8580442c14d057a82d368a05116e964cbfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): regex-automata/src/dfa/dense.rs:4330-4350 | regex-automata/src/dfa/sparse.rs:2196-2221 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4330}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d763e88a921b9a6483101014bb3ed196375dc5a1e647787957fc5808734e220"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): regex-automata/src/util/prefilter/mod.rs:659-689 | regex-automata/src/util/prefilter/mod.rs:696-726 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"regex-automata/src/util/prefilter/mod.rs"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7f505e45e7fce9b916f521fb6cdbb814dbd83c858ca3d3c0279d9b51c2930d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): regex-lite/src/hir/mod.rs:476-500 | regex-syntax/src/hir/interval.rs:370-395 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e4109a5f4207046a92c8af340a10e7dd15b104ef587b99ec21c6e4658f1051"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): regex-syntax/src/unicode.rs:406-425 | regex-syntax/src/unicode.rs:430-449 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"regex-syntax/src/unicode.rs"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"941ced2924a58a05f64cbacd27da98cfb057fbaaf81d2f3e51ca922bbea2a66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): regex-automata/src/dfa/dense.rs:1043-1066 | regex-automata/src/hybrid/dfa.rs:3896-3922 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1d3c346534ed0f661a8572834be98b42e6e544228a0a8bc157ceeb3ee5c7ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): regex-automata/src/dfa/dense.rs:4286-4307 | regex-automata/src/dfa/sparse.rs:2158-2184 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4286}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dcf800d4ced28f9531c2091a563609b92050cb512bd2ff05c3cda79dff6d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): regex-automata/src/meta/strategy.rs:573-598 | regex-automata/src/meta/strategy.rs:618-639 | regex-automata/src/meta/strategy.rs:641-662 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"893835e77397c90c2126712126caa8200014240658c240bf82eebc4b5094280a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): regex-cli/cmd/generate/serialize/dfa.rs:412-422 | regex-cli/cmd/generate/serialize/dfa.rs:428-438 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"regex-cli/cmd/generate/serialize/dfa.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c1dd4bfd822069578548cdfca58c5bf7a5af65292d7913b50a11000faaa711"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): regex-cli/args/mod.rs:162-180 | regex-cli/args/mod.rs:192-213 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"regex-cli/args/mod.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7a2fd26172703ba6fbce6b92e304d0733a37ef70823c4fc52eb0c79584f554"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): regex-syntax/src/ast/visitor.rs:288-310 | regex-syntax/src/hir/visitor.rs:179-201 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"regex-syntax/src/ast/visitor.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a986324db9f121075f90cf502c897e59aead64787bceea097212f1dd75e925"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): regex-syntax/src/hir/translate.rs:734-759 | regex-syntax/src/hir/translate.rs:765-790 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee57965a494c208bf0a8186dd6b2c18133bd75ec89c62411beb5376f44d4510"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): regex-automata/src/dfa/search.rs:18-42 | regex-automata/src/hybrid/search.rs:17-47 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"446a19058a0703a4ad497dd8e82c10acc4ee89f179bd6fe6502f5edc8e217f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): regex-automata/src/util/escape.rs:22-41 | regex-syntax/src/debug.rs:6-25 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"regex-automata/src/util/escape.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"701f91d94c70acbe36e18369d643cb216d91040e555b9df5752b940f83becd5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): regex-automata/src/nfa/thompson/compiler.rs:1169-1176 | regex-lite/src/nfa.rs:365-372 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"06265af4a6eddb695403e3d1fe8db1774d320311f88e81427f42f53d0b5bfbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): regex-automata/src/util/prefilter/memchr.rs:76-93 | regex-automata/src/util/prefilter/memchr.rs:141-159 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"regex-automata/src/util/prefilter/memchr.rs"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e59f9adebc3bf361ae4323586bdf016dbeb889408cf0db879c243324bded9de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): regex-automata/src/util/iter.rs:400-414 | regex-automata/src/util/iter.rs:428-442 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"regex-automata/src/util/iter.rs"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd6c7daffd287a65a13448c0b55c5e86a2cb4cb672a8b32d72535be5c940f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): regex-automata/src/nfa/thompson/pikevm.rs:1475-1490 | regex-automata/src/nfa/thompson/pikevm.rs:1503-1528 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"e405006a4c98616f05797e5ab23da45cbca764f322767a8f9105d52080034e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): regex-automata/src/dfa/automaton.rs:1300-1325 | regex-automata/src/dfa/automaton.rs:1489-1500 | regex-automata/src/hybrid/dfa.rs:593-618 | regex-automata/src/hybrid/dfa.rs:794-805 | regex-automata/src/nfa/thompson/backtrack.rs:1336-1348 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 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 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"33be1e7cc2b40feb936665f3620eb2bafdd7673120e7fba46482dd32daa1d92b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): regex-automata/src/hybrid/error.rs:163-201 | regex-automata/src/util/search.rs:1905-1936 \u2014 These two members are one piece of code written twice and then edited apart: 32 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":"regex-automata/src/hybrid/error.rs"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"705258d4260d53d690edff930d1fca69183c96b60a54a0083a824cb38c034ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): regex-lite/src/hir/mod.rs:371-384 | regex-syntax/src/hir/mod.rs:756-769 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdabc30785ac7010b24f741d9c1ece679bf46c069cf5cb0501cc6b4a1b21cf36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): regex-syntax/src/unicode.rs:734-749 | regex-syntax/src/unicode.rs:759-774 | regex-syntax/src/unicode.rs:785-804 | regex-syntax/src/unicode.rs:813-828 | regex-syntax/src/unicode.rs:837-852 | regex-syntax/src/unicode.rs:861-876 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/unicode.rs"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"50064b7cb1e09122ee1bd94e4ac842f82584aee7212daf3aa1052b163e466013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): src/builders.rs:70-85 | src/builders.rs:87-102 | src/builders.rs:104-119 | src/builders.rs:121-136 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/builders.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ea844e9b54055c01e6f8bf962176d4b756184ca1394f96ebead4b5995bafd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): regex-automata/src/meta/strategy.rs:1449-1467 | regex-automata/src/meta/strategy.rs:1813-1828 | regex-automata/src/meta/strategy.rs:1835-1851 | regex-automata/src/meta/strategy.rs:1854-1870 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d0cd676a2de701c1766d75a5ba3debcf1e52a7866934995b84af6381b66282"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): regex-syntax/src/hir/mod.rs:2940-2954 | regex-syntax/src/hir/mod.rs:2959-2973 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":2940}}}],"partialFingerprints":{"codehealthFindingId/v1":"291d555c704ee3b08fb3ec64e03830030dec8db5bc96a96301ab5f547fda775f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): regex-automata/src/meta/strategy.rs:957-978 | regex-automata/src/meta/strategy.rs:1277-1293 | regex-automata/src/meta/strategy.rs:1301-1321 | regex-automata/src/meta/strategy.rs:1727-1743 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e130b5e24efc17865be0f41959fa75dfac02520ca51827a42d727ff9fca793"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): regex-syntax/src/ast/mod.rs:587-602 | regex-syntax/src/ast/parse.rs:2337-2358 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"regex-syntax/src/ast/mod.rs"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"5036bb4a17afe81f2c76b4f4002f42167d23e123979f58ff1948e033ea4fa829"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): regex-syntax/src/hir/mod.rs:2397-2430 | regex-syntax/src/hir/mod.rs:2433-2449 | regex-syntax/src/hir/mod.rs:2452-2468 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":2397}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8399409e77a17a80f0f75c0eec37b21309550ad2ef35af8add6cf31163860d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): regex-automata/src/dfa/automaton.rs:1586-1600 | regex-automata/src/dfa/automaton.rs:1723-1737 | regex-automata/src/hybrid/dfa.rs:901-915 | regex-automata/src/hybrid/dfa.rs:1045-1059 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b49ec7925ef5975389a13e65e772a9aabe54b38ba572f2de80513c4a0e7cb4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): regex-lite/src/string.rs:1105-1121 | regex-lite/src/string.rs:1255-1270 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"regex-lite/src/string.rs"},"region":{"startLine":1105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5c9ce0d054e5671955995d44e19cd194a7849929fbccdc055590331c8a1c65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): regex-syntax/src/ast/parse.rs:2363-2378 | regex-syntax/src/ast/parse.rs:2383-2399 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":2363}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a6c1b6031f70720b6c16dde04ba5da0d11efa13de453703fe54f92cc05c1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): regex-automata/src/util/prefilter/aho_corasick.rs:87-100 | regex-automata/src/util/prefilter/aho_corasick.rs:102-116 | regex-automata/src/util/prefilter/teddy.rs:103-120 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 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":"regex-automata/src/util/prefilter/aho_corasick.rs"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3609fe7aebc403fb6b422a4e0191a2f3f6257344d1a8c9832209deb450b32852"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): regex-automata/src/dfa/regex.rs:732-747 | regex-automata/src/hybrid/regex.rs:791-805 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"regex-automata/src/dfa/regex.rs"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6657ce9208f1b27183317adad9f21a92808137421b987aff143a07d65b5c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): regex-automata/src/nfa/thompson/compiler.rs:1335-1344 | regex-lite/src/nfa.rs:515-524 \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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb7826d870cdcf2ab265d3a71252df308745f747be164a0db7464ed65e022d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): regex-automata/src/dfa/search.rs:324-339 | regex-automata/src/hybrid/search.rs:454-469 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1681f1868914d11af6e50632db521bb803c639364e81a1c77efd80bbc128fda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/regex/bytes.rs:1210-1220 | src/regex/string.rs:1197-1207 \u2014 These two members are one piece of code written twice and then edited apart: 11 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/regex/bytes.rs"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf4bd8c9af1ab8807d74f911ee4e49c6351d66990119b207fe7fff2422b2bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): regex-automata/src/nfa/thompson/pikevm.rs:1619-1637 | regex-lite/src/pikevm.rs:315-329 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"e198508165facc20434b5df6fdbb4c201b466d9a0fc8eecd53cc50d143089674"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): regex-automata/src/nfa/thompson/map.rs:143-151 | regex-automata/src/nfa/thompson/map.rs:254-265 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"regex-automata/src/nfa/thompson/map.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"15699e4c4587b2328dc41a008910f919813c7ff0b8ed1bbb7bfd018a7fd1d2ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): regex-automata/src/util/captures.rs:940-948 | regex-automata/src/util/captures.rs:996-1004 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"regex-automata/src/util/captures.rs"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"123672ce86bcac6568d8546f201ce3d0fdd99e3d52a8c47087ca8d2196b20b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): regex-syntax/src/hir/literal.rs:500-512 | regex-syntax/src/hir/literal.rs:516-528 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"3321bffb7fcaa72a826a8cb47211c89be2da70516835b2fb3f7d46f38ec7d6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): regex-automata/src/dfa/automaton.rs:1812-1826 | regex-automata/src/hybrid/dfa.rs:1133-1147 \u2014 These two members are one piece of code written twice and then edited apart: 15 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":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3d29ad49c16cd351f74747335f26500df44ab2042e7529c05f6e188bdf3b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): regex-automata/src/nfa/thompson/builder.rs:149-168 | regex-automata/src/nfa/thompson/nfa.rs:1672-1688 \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":"regex-automata/src/nfa/thompson/builder.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d149016dbb291383e7fb2bc56c809244030333eb3ebaf0e5fdc03ba236ee64fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): regex-automata/src/util/captures.rs:771-784 | regex-automata/src/util/captures.rs:879-892 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"regex-automata/src/util/captures.rs"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdf114b6824f5b225825a1ade13434a7a0e256baf3e2a06b4b1d3cc8158962b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): regex-cli/cmd/find/capture/mod.rs:21-51 | regex-cli/cmd/find/match/mod.rs:18-49 | regex-cli/cmd/find/which/mod.rs:17-63 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 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":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c008525e0a9c43c2b77c992790c3be7afd7f854f3741e7b094cfeb8c8f57936"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/regexset/bytes.rs:355-371 | src/regexset/string.rs:351-367 \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/regexset/bytes.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a135985bf8d5543da564b7ee45867beaf973e744b5af4ae726ab93931630bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): regex-automata/src/meta/regex.rs:2242-2255 | regex-automata/src/nfa/thompson/backtrack.rs:1621-1636 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"regex-automata/src/meta/regex.rs"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e707b860efadaa57e603c1dff31a43e58ec00afc104736458019acc120fab2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): regex-automata/src/meta/regex.rs:2355-2373 | regex-lite/src/string.rs:2305-2323 \u2014 These two members are one piece of code written twice and then edited apart: 19 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":"regex-automata/src/meta/regex.rs"},"region":{"startLine":2355}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf796428697dd6fcc3cfd9fb309ea3d4864d2effdc8bbaeae8a436526b75499"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): regex-automata/src/util/sparse_set.rs:172-192 | regex-lite/src/pikevm.rs:858-877 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"regex-automata/src/util/sparse_set.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b06a1ad7e883949668c42705b19ce1fa4d72668c170e36e0995d54f5f7a3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): regex-automata/src/meta/strategy.rs:1020-1034 | regex-automata/src/meta/strategy.rs:1041-1061 | regex-automata/src/meta/strategy.rs:1064-1076 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9eb936b093d99b23bec6dc361ce7125d982dae0d79fa68aca53db45a2f440d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): regex-automata/src/dfa/automaton.rs:284-298 | regex-automata/src/hybrid/dfa.rs:1597-1612 | regex-automata/src/hybrid/dfa.rs:1634-1646 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b6e52ff0b7539eece7ecda09b2a60d9c4eb9dbddc022f1801bc2d6e5cb2f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/regex/bytes.rs:1293-1297 | src/regex/string.rs:1288-1292 \u2014 These two members are one piece of code written twice and then edited apart: 5 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/regex/bytes.rs"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a087aa31e9cdf40413195ca60bf046de401babe79608c98dea2f7cbc6a8b1a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): regex-automata/src/hybrid/dfa.rs:1220-1229 | regex-automata/src/hybrid/dfa.rs:1510-1519 \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":"regex-automata/src/hybrid/dfa.rs"},"region":{"startLine":1220}}}],"partialFingerprints":{"codehealthFindingId/v1":"f640a15495763bc7d78aa517c1ecbbca50a95172a5ce60ead57d19be06ba738d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): regex-automata/src/nfa/thompson/map.rs:128-140 | regex-automata/src/nfa/thompson/map.rs:242-251 \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":"regex-automata/src/nfa/thompson/map.rs"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"456910d8450b1894ee29daee17226baad103286de9d25f48d080139d711ff93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): regex-automata/src/util/prefilter/memchr.rs:36-49 | regex-automata/src/util/prefilter/memchr.rs:101-114 | regex-automata/src/util/prefilter/memchr.rs:167-180 | regex-automata/src/util/prefilter/memmem.rs:40-53 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/prefilter/memchr.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a58042294d288921543aaa195cbbffda4bf751ff45ecf12153e076aa930caf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): regex-automata/src/dfa/dense.rs:2150-2162 | regex-automata/src/dfa/sparse.rs:838-848 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":2150}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4c1897a3057d65f70fb146b2f792d8fdbd3ef951617c523e306317678f7c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): regex-automata/src/meta/strategy.rs:427-436 | regex-automata/src/meta/strategy.rs:1935-1944 \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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61ccccfdd08fdbb96b5ce1c7b1f6ddb16cc2e7fcf68f7bb1156b65c293de2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 14\u002B corresponding lines): regex-automata/src/meta/wrappers.rs:649-662 | regex-automata/src/meta/wrappers.rs:669-684 | regex-automata/src/meta/wrappers.rs:691-704 | regex-automata/src/meta/wrappers.rs:712-727 | regex-automata/src/meta/wrappers.rs:735-749 | regex-automata/src/meta/wrappers.rs:1139-1154 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 14 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/wrappers.rs"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"571c3024705f0c4ca34354d5d3021011fccc19006e06aa91d6fa239c7f82d30d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): regex-syntax/src/hir/translate.rs:1060-1067 | regex-syntax/src/hir/translate.rs:1072-1079 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f5c20983a7deeaaa5368569da56c80d315a828173f73dab0dd11c54214f8f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): regex-automata/src/util/pool.rs:926-933 | regex-lite/src/pool.rs:56-63 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"regex-automata/src/util/pool.rs"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c128c4f5b9c9ee436ef926af9f4c408f8215d685a8de6c3376d711c935cbea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): regex-automata/src/meta/wrappers.rs:951-963 | regex-automata/src/meta/wrappers.rs:987-999 | regex-automata/src/meta/wrappers.rs:1027-1042 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"regex-automata/src/meta/wrappers.rs"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d4dfdca073c0cc98a80c81d0220c41e146f93d10a36ca2e2cc358074c6a3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): regex-automata/src/dfa/dense.rs:4148-4156 | regex-automata/src/dfa/sparse.rs:2023-2031 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b084854388af49a70e4894691fd05dcf400c3e6109b13940427b47c583215f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): regex-automata/src/util/look.rs:1218-1229 | regex-automata/src/util/look.rs:1249-1260 \u2014 These two members are one piece of code written twice and then edited apart: 12 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":"regex-automata/src/util/look.rs"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c525fb4064fbbfc21bb1bfce458c9a72d17d9d784e4db4ba83fb132d507e90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): regex-automata/src/dfa/dense.rs:4204-4214 | regex-automata/src/dfa/sparse.rs:2072-2082 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4204}}}],"partialFingerprints":{"codehealthFindingId/v1":"f975ff72128ce6bc8150d57f52d73245f3caf33f1b82b9cd2c133e7b5c4b075e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): regex-automata/src/meta/regex.rs:531-541 | regex-automata/src/meta/regex.rs:920-948 | regex-automata/src/meta/regex.rs:978-989 | regex-automata/src/meta/regex.rs:1135-1146 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/regex.rs"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1457d04050a8aba7bce69cb95edef08ed6e352f85df737c2f86daf9329ac9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): regex-automata/src/nfa/thompson/builder.rs:1114-1121 | regex-lite/src/nfa.rs:643-650 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"regex-automata/src/nfa/thompson/builder.rs"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd70cbede1473d073566f03a9e45ad4272924b44330ce146fc65e424e3977424"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/regex/bytes.rs:1173-1176 | src/regex/string.rs:1158-1163 \u2014 These two members are one piece of code written twice and then edited apart: 4 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/regex/bytes.rs"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"798d2abf34e93cbdf25658228ef1970315e7ce4966240692d3a7b4de7894a463"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): regex-automata/src/dfa/dense.rs:1167-1180 | regex-automata/src/hybrid/dfa.rs:4024-4037 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e0d058d69b3a2f87d37f2c98174e988af08e7acd8f8aa41a35973f71cbf68a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): regex-automata/src/dfa/dense.rs:4190-4200 | regex-automata/src/dfa/sparse.rs:2058-2068 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17c1d8d6e6c580468b4431cee42114e23ed23b27ce659e22f583783dd4f42de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): regex-automata/src/nfa/thompson/pikevm.rs:1848-1863 | regex-automata/src/nfa/thompson/backtrack.rs:1583-1592 \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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d60e183931621d914ca48b26f8ec5c40835d676f8f7e23ef28e2b535174f68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): regex-syntax/src/hir/interval.rs:522-526 | regex-syntax/src/hir/interval.rs:529-534 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"regex-syntax/src/hir/interval.rs"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1562409780731589b984b17f6d47fff08f3823e26943b4ec3a25e7285353be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): regex-automata/src/dfa/dense.rs:1582-1593 | regex-automata/src/dfa/dense.rs:1601-1612 | regex-automata/src/dfa/sparse.rs:427-436 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1b743f014f7e6d2d20141d2ebfe898e80a990ca79e72a9675063f682c74d0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): regex-syntax/src/ast/visitor.rs:443-450 | regex-syntax/src/hir/visitor.rs:207-214 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"regex-syntax/src/ast/visitor.rs"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aea302b225dae0831c68b8fedf0056ef0ebefd320ec4654fa7df6a2d0bff1e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): regex-automata/src/util/prefilter/byteset.rs:46-53 | regex-automata/src/util/prefilter/memchr.rs:51-58 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"regex-automata/src/util/prefilter/byteset.rs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6d4c86f6158c4f01a8d33551d3ff3e2a42d152c68e4c4947befa6f141bd4d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): regex-cli/cmd/debug/dfa.rs:10-34 | regex-cli/cmd/generate/serialize/dfa.rs:31-47 \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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6837f14eceb760e086fd78a3fdae6556d19c424e162976cb35ee8377cc2b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): regex-cli/cmd/debug/dfa.rs:169-193 | regex-cli/cmd/generate/serialize/dfa.rs:143-159 \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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"825696ce2ef2de66a1993689172619512948d107efad01cf1ae7a32a7aaf8e0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): regex-lite/src/hir/mod.rs:11-21 | regex-syntax/src/lib.rs:213-221 \u2014 These two members are one piece of code written twice and then edited apart: 9 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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2cecefd1cc8bc130b0c4ebc9ebdc4c9580c77796e05183874c9f4551a6e236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): regex-automata/src/dfa/search.rs:200-209 | regex-automata/src/hybrid/search.rs:306-315 \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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abb970c18bfe2639a2109adc25a7ae1dc21223e99d220bc5579f2356b1cd7aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): regex-lite/src/hir/parse.rs:300-305 | regex-syntax/src/ast/parse.rs:591-596 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c043d896f6d93cbe33c2a6175aa6381dba2c5d094de28569f56d3cfa78ab74f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): regex-automata/src/nfa/thompson/backtrack.rs:302-305 | regex-automata/src/nfa/thompson/pikevm.rs:279-282 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"regex-automata/src/nfa/thompson/backtrack.rs"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"207d2cf89bc0910d59aad60a4a3b5b6059eb9fc091ae160ff2af4e0e3e21248e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): regex-automata/src/util/sparse_set.rs:220-223 | regex-lite/src/pikevm.rs:898-901 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"regex-automata/src/util/sparse_set.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"393bd2ea798529a2f774e932ac4349a87716d1ac47f250827c390a7c2abe3a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): regex-lite/src/string.rs:2614-2620 | src/regex/bytes.rs:2684-2690 | src/regex/string.rs:2668-2674 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"regex-lite/src/string.rs"},"region":{"startLine":2614}}}],"partialFingerprints":{"codehealthFindingId/v1":"131ecf095aedd1868a4ad37a0a200c677125e35c41afdb6446082d629a8e7f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): regex-automata/src/dfa/regex.rs:579-582 | regex-automata/src/hybrid/regex.rs:550-553 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"regex-automata/src/dfa/regex.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bfb6de1ce9c8acf75bc0627503324393fd990413d45c19a86d0c7ead85751f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): regex-automata/src/hybrid/regex.rs:579-582 | regex-automata/src/meta/regex.rs:2178-2181 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"regex-automata/src/hybrid/regex.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac017c1464f082ebfba6365cc9e999c100e181910b7581071ba3b349e70f128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): regex-automata/src/dfa/onepass.rs:1894-1898 | regex-automata/src/nfa/thompson/backtrack.rs:1214-1219 \u2014 These two members are one piece of code written twice and then edited apart: 5 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":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":1894}}}],"partialFingerprints":{"codehealthFindingId/v1":"56999ce00428151640faae20c0726e17359621296522b2da33eee45213e4d606"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): regex-automata/src/util/prefilter/aho_corasick.rs:118-127 | regex-automata/src/util/prefilter/teddy.rs:134-163 \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":"regex-automata/src/util/prefilter/aho_corasick.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ebf47e5bf24f593fe3a20f0f63576b31594833a79b570680c88ad6ad7ab754"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): regex-lite/src/hir/parse.rs:1377-1379 | regex-syntax/src/ast/parse.rs:103-105 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffaad8c0a660d9bd18eb3b99615ea2b605302f21d28107104c66ed0ecf94d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201346 lines \u00D7 2): regex-cli/cmd/find/capture/mod.rs:105-150 | regex-cli/cmd/find/capture/mod.rs:288-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/mod.rs:105\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fd51ba6d7ab55b3a044257dc7c797571ac2cf68befef3609ada754e6621089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201345 lines \u00D7 2): regex-automata/src/dfa/regex.rs:480-523 | regex-automata/src/hybrid/regex.rs:449-493 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/regex.rs:480\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/regex.rs"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d18db16575066fbb28ea4a2b742f4a55fbcc787c59899604fbb104cfb83fa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): regex-lite/src/string.rs:901-940 | src/regex/string.rs:971-1010 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/string.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b143c2f363362559b8394a84fc4a940aff0b52ae5c9041970b1cc15c1308f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): regex-syntax/src/ast/visitor.rs:217-254 | regex-syntax/src/hir/visitor.rs:120-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/ast/visitor.rs:217\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/visitor.rs"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b4220b56b99729e99d33d7e7f558ab1f38c95b898d2b6974b83151cf8c7f882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 2): regex-automata/src/dfa/dense.rs:4104-4137 | regex-automata/src/dfa/sparse.rs:1981-2012 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/dense.rs:4104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4104}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3472106100f358163dcdded52967f424500ce9dcd72fc8027baee7da23eac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): regex-automata/src/dfa/automaton.rs:2123-2155 | regex-automata/src/hybrid/error.rs:169-201 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/automaton.rs:2123\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":2123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e588b19e5c609af0c8887877749741d4fb44cf07287be2b37da13c33d5dbe4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): regex-automata/src/util/interpolate.rs:102-134 | regex-lite/src/interpolate.rs:75-107 \u2014 before extracting anything, compare \u0060regex-automata/src/util/interpolate.rs\u0060 and \u0060regex-lite/src/interpolate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/util/interpolate.rs:102\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/interpolate.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ece9fa46473975b5b3a87823cb7af0a14f01aac46e009f185371093b03553c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): regex-automata/src/dfa/dense.rs:4019-4049 | regex-automata/src/dfa/sparse.rs:1905-1935 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/dense.rs:4019\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4019}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b11b4d3fe7112448847d7e3810fe5acb693396b090b0343c8ab7e1eab304870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): regex-automata/src/util/interpolate.rs:261-290 | regex-lite/src/interpolate.rs:214-243 \u2014 before extracting anything, compare \u0060regex-automata/src/util/interpolate.rs\u0060 and \u0060regex-lite/src/interpolate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/interpolate.rs"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ebc425c5b7b7c1d9f69a0eea4496bd536ff380d64f7d8568934608c18e2eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): regex-automata/src/dfa/dense.rs:4228-4256 | regex-automata/src/dfa/sparse.rs:2095-2123 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4228}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e6eee8d770f77cdb9a1b513fd64b514e31b91c45088914f9c63ba7c609116e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): regex-automata/src/util/escape.rs:57-83 | regex-syntax/src/debug.rs:42-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/util/escape.rs:57\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/escape.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"97fd4583eec4358e4fdad1029f97bbcdce329411effb6bde5cc0d337ddeaf43a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): regex-cli/cmd/find/half/dfa.rs:66-91 | regex-cli/cmd/find/half/dfa.rs:168-193 | regex-cli/cmd/find/half/dfa.rs:270-295 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/dfa.rs:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/dfa.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edffb900c97c612739102bbd5425d556bdff3103ff33198f2375fae070b607b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): regex-automata/src/util/utf8.rs:17-41 | regex-lite/src/utf8.rs:4-28 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/utf8.rs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2a453a7906187cfea0c9da0b25dd0012b81c8d1bfe5bb0601c45b3850fd226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): regex-cli/cmd/find/capture/dfa.rs:61-84 | regex-cli/cmd/find/capture/nfa.rs:61-84 | regex-cli/cmd/find/capture/nfa.rs:139-162 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/capture/dfa.rs\u0060 and \u0060regex-cli/cmd/find/capture/nfa.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/dfa.rs:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/dfa.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68c7e4d68f6de9dcd55b9888f9d98c80c9982094d69defea5a7c674adf302f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): regex-automata/src/util/interpolate.rs:296-319 | regex-lite/src/interpolate.rs:249-272 \u2014 before extracting anything, compare \u0060regex-automata/src/util/interpolate.rs\u0060 and \u0060regex-lite/src/interpolate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/interpolate.rs"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"40deee85298f67fdde53eb5deabd73ef0be813f43779e50c25c162b45cb1da13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): regex-cli/cmd/find/which/dfa.rs:31-53 | regex-cli/cmd/find/which/dfa.rs:101-123 | regex-cli/cmd/find/which/dfa.rs:169-191 | regex-cli/cmd/find/which/nfa.rs:31-53 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/which/dfa.rs\u0060 and \u0060regex-cli/cmd/find/which/nfa.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 96 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":"regex-cli/cmd/find/which/dfa.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14de3923af3040140cf05f3d6552cc7bb2a77f7b8f15b21c85bfbbfe182d6a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): regex-cli/cmd/debug/dfa.rs:145-167 | regex-cli/cmd/debug/dfa.rs:304-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/debug/dfa.rs:145\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b8102f7e8c18bdfa03e622fd28bade0ab7f48ea518dc4fbf89b0e389e827c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): regex-automata/src/dfa/search.rs:479-500 | regex-automata/src/hybrid/search.rs:600-621 \u2014 \u0060regex-automata/src/dfa/search.rs\u0060 and \u0060regex-automata/src/hybrid/search.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:479\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2ebc84bddb7e7db066f595b6ac1a162a6d025e9478c66672c75635aee336d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): regex-automata/src/util/look.rs:183-204 | regex-syntax/src/hir/mod.rs:1734-1755 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/look.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c4cfdc56a84f7bb8174e103e3db69e0aff890c443dcb2a807f96fdaab82a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): regex-automata/src/util/look.rs:145-165 | regex-syntax/src/hir/mod.rs:1696-1716 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/look.rs"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d77206859efd44e1466bc8d3a60855844f5263144a4ca1dd328bc871c612f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): regex-automata/src/util/look.rs:215-235 | regex-syntax/src/hir/mod.rs:1766-1786 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/look.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"575128f44bec8ae204025b713cd74a43d66e28dd2be5f35db126d8bff37f90a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): regex-cli/cmd/find/capture/mod.rs:173-192 | regex-cli/cmd/find/half/mod.rs:129-148 | regex-cli/cmd/find/match/mod.rs:128-147 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/mod.rs:173\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c91828cc8f776c6a3aab475767dc3da4ea47bc0205ce2ac90c77de3f21bc38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): regex-cli/cmd/find/half/dfa.rs:32-51 | regex-cli/cmd/find/half/dfa.rs:136-155 | regex-cli/cmd/find/half/dfa.rs:238-257 \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":"regex-cli/cmd/find/half/dfa.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7f5e5d46f5954a5068adde5c18f2365b64da0e1d1f8a372735e02124eb7fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201320 lines \u00D7 2): regex-automata/src/meta/strategy.rs:1366-1376 | regex-automata/src/meta/strategy.rs:1414-1433 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/strategy.rs:1366\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3471d780b2ef6dc6f3ee0cc3c04ad12fe9c141a72d179a17dea7cdd097d6c365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): regex-cli/cmd/find/match/dfa.rs:295-314 | regex-cli/cmd/find/match/nfa.rs:57-76 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/match/dfa.rs\u0060 and \u0060regex-cli/cmd/find/match/nfa.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/match/dfa.rs:295\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/dfa.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e7887124de34370a8b113eb116c109bb34b962f867fef8bf01a5edd3e183e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): regex-lite/src/hir/mod.rs:477-496 | regex-syntax/src/hir/interval.rs:371-390 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/hir/mod.rs:477\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/mod.rs"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f007cf85e62a7311438a4b15fe627a63e02798445d53fd06194a5b9787a833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 8): regex-cli/cmd/debug/dfa.rs:51-67 | regex-cli/cmd/debug/dfa.rs:113-129 | regex-cli/cmd/debug/dfa.rs:210-226 | regex-cli/cmd/debug/dfa.rs:271-287 | regex-cli/cmd/generate/serialize/dfa.rs:64-82 | regex-cli/cmd/generate/serialize/dfa.rs:110-128 | regex-cli/cmd/generate/serialize/dfa.rs:176-194 | regex-cli/cmd/generate/serialize/dfa.rs:222-240 \u2014 there are 8 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 8 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060p\u0060 to \u0060\u0026mut lexopt::Parser\u0060 in one and \u0060\u0026mut Parser\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac16bbd3c72dd488cb484998ec9b9953854f6539eff75420f1e8eccb131aa1ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): regex-automata/src/dfa/automaton.rs:1303-1321 | regex-automata/src/hybrid/dfa.rs:596-614 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/automaton.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/automaton.rs:1303\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"31beefc0dc7c29b33dfe582db26ae7bd2c80286e454351bf061948d0f661303f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): regex-automata/src/dfa/automaton.rs:2181-2199 | regex-automata/src/hybrid/dfa.rs:4275-4293 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/automaton.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":2181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d66806246263b3c060fc82813ce9317bd063cad60b095deb7906982e82a11fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): regex-automata/src/dfa/dense.rs:4287-4305 | regex-automata/src/dfa/sparse.rs:2159-2177 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4287}}}],"partialFingerprints":{"codehealthFindingId/v1":"913980a0a02f1e8e4c38e510821f0ef6ade6dab447283b4f188c3f772aa20a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): regex-cli/cmd/find/match/dfa.rs:142-160 | regex-cli/cmd/find/match/dfa.rs:221-239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/match/dfa.rs:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/dfa.rs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ac9681745787caa34c1be0d764e470b80f6978c57ca51c327c111b693f939d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): regex-syntax/src/ast/visitor.rs:292-310 | regex-syntax/src/hir/visitor.rs:183-201 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/ast/visitor.rs:292\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/visitor.rs"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"231b0b7312ba74d2b2a6041ea748893dbead10c0efc320853254992667503df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): regex-cli/cmd/find/capture/mod.rs:73-91 | regex-cli/cmd/find/capture/mod.rs:252-270 | regex-cli/cmd/find/half/mod.rs:72-90 | regex-cli/cmd/find/match/mod.rs:71-89 | regex-cli/cmd/find/match/mod.rs:201-219 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060regex-cli/cmd/find/capture/mod.rs:274\u0060 calls \u0060get\u0060, \u0060to_str\u0060 and \u0060regex-cli/cmd/find/capture/mod.rs:95\u0060 does not \u2014 after which the two agree again for 4 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":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db2d26c12496d93ba7856221a8b1b6424c3843c89862d71589d6dc87b0b1788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): regex-lite/src/string.rs:1974-1991 | src/regex/string.rs:2031-2048 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/string.rs:1974\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/string.rs"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"721760e68fe6ab44cc262efcedf0d7ae09129bea786a96c2151498f4d4ef20ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): regex-syntax/src/ast/parse.rs:1055-1072 | regex-syntax/src/ast/parse.rs:1108-1124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/ast/parse.rs:1055\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"9057c2a54638f1a97a2cd25fd4635e79817429795565c65df822109ba0d8304d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 9): regex-cli/cmd/find/capture/dfa.rs:31-47 | regex-cli/cmd/find/capture/nfa.rs:31-47 | regex-cli/cmd/find/capture/nfa.rs:109-125 | regex-cli/cmd/find/match/dfa.rs:31-47 | regex-cli/cmd/find/match/dfa.rs:112-128 | regex-cli/cmd/find/match/dfa.rs:190-206 | regex-cli/cmd/find/match/dfa.rs:269-285 | regex-cli/cmd/find/match/nfa.rs:31-47 | regex-cli/cmd/find/match/nfa.rs:106-122 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/capture/dfa.rs\u0060 and \u0060regex-cli/cmd/find/capture/nfa.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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":"regex-cli/cmd/find/capture/dfa.rs"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d854c6257235df08d339b4066107bf3c77c9136b9cc2f4042af1a6bd926fa9c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): regex-cli/cmd/find/capture/mod.rs:169-186 | regex-cli/cmd/find/half/mod.rs:125-142 | regex-cli/cmd/find/match/mod.rs:124-141 | regex-cli/cmd/find/which/mod.rs:149-166 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"873b86c8e8e37d8b65f24377b67bc53c372c777973327812cd72f4cd5c726222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-automata/src/dfa/search.rs:590-606 | regex-automata/src/meta/stopat.rs:151-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:590\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060regex-automata/src/meta/stopat.rs:170\u0060 calls \u0060is_quit_state\u0060 and \u0060regex-automata/src/dfa/search.rs:607\u0060 does not \u2014 after which the two agree again for 4 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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"744a3e84773a1d9190e71ab8935b6c3afd33e3fb4a3c53193d0a02aa6cd51f82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-cli/cmd/find/match/dfa.rs:9-25 | regex-cli/cmd/find/which/dfa.rs:9-25 \u2014 \u0060regex-cli/cmd/find/match/dfa.rs\u0060 and \u0060regex-cli/cmd/find/which/dfa.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/dfa.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"25132f5be7dd7c2581a6f71ab0aa7987f057accbbfba1448ef18d51fea41bc17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-cli/cmd/find/match/dfa.rs:90-106 | regex-cli/cmd/find/which/dfa.rs:79-95 \u2014 \u0060regex-cli/cmd/find/match/dfa.rs\u0060 and \u0060regex-cli/cmd/find/which/dfa.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/dfa.rs"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f43e976ed3b681b01ab11e34b747d3cd00c14f241797a8441950a5b30871a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-cli/cmd/find/match/dfa.rs:168-184 | regex-cli/cmd/find/which/dfa.rs:147-163 \u2014 \u0060regex-cli/cmd/find/match/dfa.rs\u0060 and \u0060regex-cli/cmd/find/which/dfa.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 103 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/dfa.rs"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97a7bbc0ecc8510fe153765b338699214fa8cac336cc97922fe3fadbe36ea67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-cli/cmd/find/match/mod.rs:52-68 | regex-cli/cmd/find/which/mod.rs:66-82 \u2014 \u0060regex-cli/cmd/find/match/mod.rs\u0060 and \u0060regex-cli/cmd/find/which/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 132 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/mod.rs"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7475eaf97d53882997551de027db6e441968b2654efc090b5e16155bcff55fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-cli/cmd/find/match/mod.rs:108-124 | regex-cli/cmd/find/which/mod.rs:133-149 \u2014 \u0060regex-cli/cmd/find/match/mod.rs\u0060 and \u0060regex-cli/cmd/find/which/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 132 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/mod.rs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"909919980dfb9311ed4b7234fc41e79a31b2cb40957972fa1725a089155b71b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-cli/cmd/find/match/nfa.rs:84-100 | regex-cli/cmd/find/which/nfa.rs:9-25 \u2014 \u0060regex-cli/cmd/find/match/nfa.rs\u0060 and \u0060regex-cli/cmd/find/which/nfa.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 69 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/nfa.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ccf89bd42915dcd2d19b9a808dbdae35a9d1837d0366494651dfcd205e8ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): regex-lite/src/hir/mod.rs:792-808 | regex-syntax/src/hir/mod.rs:1936-1952 \u2014 before extracting anything, compare \u0060regex-lite/src/hir/mod.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/hir/mod.rs:792\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/mod.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe549bc9517a2b9097a7b9175c28288e528953a36078b798bd652fb53ef3a5ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): regex-cli/cmd/find/which/dfa.rs:36-51 | regex-cli/cmd/find/which/dfa.rs:106-121 | regex-cli/cmd/find/which/dfa.rs:174-189 | regex-cli/cmd/find/which/mod.rs:158-173 | regex-cli/cmd/find/which/nfa.rs:36-51 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/which/dfa.rs\u0060 and \u0060regex-cli/cmd/find/which/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/which/dfa.rs:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/which/dfa.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"194ef2bce1ac9867b6e7ca4fdace625853d0e2f250aba17d902ad08a01b4bdc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): regex-cli/cmd/find/capture/mod.rs:69-85 | regex-cli/cmd/find/half/mod.rs:68-84 | regex-cli/cmd/find/match/mod.rs:67-83 | regex-cli/cmd/find/which/mod.rs:81-97 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"df91c94a34e425783d93e5ed2f7205eadf88c797d49a1df0e86ebdd98b9471ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): regex-cli/cmd/find/half/dfa.rs:95-110 | regex-cli/cmd/find/half/dfa.rs:197-212 | regex-cli/cmd/find/half/dfa.rs:299-314 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/dfa.rs:95\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/dfa.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbcd62eca2c073c07bbf2f9eadd3612c9d0042578596017ef1c3b571b64bf5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): regex-cli/cmd/find/half/mod.rs:200-215 | regex-cli/cmd/find/half/mod.rs:279-294 | regex-cli/cmd/find/match/mod.rs:264-279 \u2014 \u0060regex-cli/cmd/find/half/mod.rs\u0060 and \u0060regex-cli/cmd/find/match/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 215 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:200\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee608c1003f96d4dd2eaabef6a17bc593f03767a21470090eacedd54b7e90776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): regex-automata/src/dfa/dense.rs:668-683 | regex-automata/src/hybrid/dfa.rs:3370-3385 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 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. 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"0add0f12b63add8c1a3e36770d4fa9eaf36220bd898b9cfd83d4771a0c3f6b46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): regex-automata/src/hybrid/search.rs:539-554 | regex-automata/src/hybrid/search.rs:635-650 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:539\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"276db664a540875ce1cfd30f9a39b32e85971b92a1d65d2c20fc706efda87887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1267-1281 | regex-lite/src/nfa.rs:459-474 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/compiler.rs:1267\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"db81d92b7e3c76df84e41784fc7509712516df9b32018a58e2b4ce8720b74e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): regex-automata/src/util/escape.rs:26-41 | regex-syntax/src/debug.rs:10-25 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/escape.rs"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c02231fd8ebb965e15eb0b7dd8261c198472701137b6c7ee438f112b618e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 13): regex-cli/cmd/find/capture/dfa.rs:30-44 | regex-cli/cmd/find/capture/nfa.rs:30-44 | regex-cli/cmd/find/capture/nfa.rs:108-122 | regex-cli/cmd/find/match/dfa.rs:30-44 | regex-cli/cmd/find/match/dfa.rs:111-125 | regex-cli/cmd/find/match/dfa.rs:189-203 | regex-cli/cmd/find/match/dfa.rs:268-282 | regex-cli/cmd/find/match/nfa.rs:30-44 | regex-cli/cmd/find/match/nfa.rs:105-119 | regex-cli/cmd/find/which/dfa.rs:30-44 | regex-cli/cmd/find/which/dfa.rs:100-114 | regex-cli/cmd/find/which/dfa.rs:168-182 | regex-cli/cmd/find/which/nfa.rs:30-44 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/capture/dfa.rs\u0060 and \u0060regex-cli/cmd/find/capture/nfa.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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":"regex-cli/cmd/find/capture/dfa.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb2e2f75223d7e986c8615c360bba12cf7ac352b37e52f5b237bd8c50a00b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9): regex-cli/cmd/find/half/dfa.rs:93-107 | regex-cli/cmd/find/half/dfa.rs:195-209 | regex-cli/cmd/find/half/dfa.rs:297-311 | regex-cli/cmd/find/match/dfa.rs:71-85 | regex-cli/cmd/find/match/dfa.rs:149-163 | regex-cli/cmd/find/match/dfa.rs:228-242 | regex-cli/cmd/find/match/dfa.rs:303-317 | regex-cli/cmd/find/match/nfa.rs:65-79 | regex-cli/cmd/find/match/nfa.rs:140-154 \u2014 \u0060regex-cli/cmd/find/half/dfa.rs\u0060 and \u0060regex-cli/cmd/find/match/dfa.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/dfa.rs"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ba840c673f63ae673f6a68a4c1ebb295d09b9761cca08b0897124c109f9355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): regex-automata/src/dfa/dense.rs:4334-4348 | regex-automata/src/dfa/sparse.rs:2199-2213 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/dense.rs:4334\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4334}}}],"partialFingerprints":{"codehealthFindingId/v1":"184caaa8ec8c23bc142e3120eec839ce953d91c801c488c4fe713f857f77031c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 2): regex-automata/src/dfa/search.rs:63-77 | regex-automata/src/hybrid/search.rs:69-78 \u2014 \u0060regex-automata/src/dfa/search.rs\u0060 and \u0060regex-automata/src/hybrid/search.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:63\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61906782eb6b1aea4b43ae562c693e983cf58f1b2d16a435b088b695978c150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): regex-automata/src/hybrid/search.rs:279-293 | regex-automata/src/hybrid/search.rs:423-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:279\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"e531226bcdcee0bdb82b1870e269d3e8ea70b703dfecfd751f5ac3f1f12496a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): regex-automata/src/meta/limited.rs:72-86 | regex-automata/src/meta/limited.rs:153-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/limited.rs:72\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/limited.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f684e5eaf5158ed317b352352e1c922154644350f1de569c32c853e4ef8eeaa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): regex-cli/cmd/find/half/mod.rs:162-176 | regex-cli/cmd/find/match/mod.rs:161-175 \u2014 \u0060regex-cli/cmd/find/half/mod.rs\u0060 and \u0060regex-cli/cmd/find/match/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 215 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:162\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fbb99bf597c728066c7d394ff3c267e56a46c9f4de50a988cf83e68df033ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): regex-lite/src/hir/parse.rs:317-331 | regex-syntax/src/ast/parse.rs:608-622 \u2014 before extracting anything, compare \u0060regex-lite/src/hir/parse.rs\u0060 and \u0060regex-syntax/src/ast/parse.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/hir/parse.rs:317\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/parse.rs"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e9e36d6270e5c4a9ca03c68faf8e0c3b9102242d10c6ff7b151fb86f1027ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): regex-cli/cmd/debug/dfa.rs:55-68 | regex-cli/cmd/debug/dfa.rs:117-130 | regex-cli/cmd/debug/dfa.rs:214-227 | regex-cli/cmd/debug/dfa.rs:275-288 | regex-cli/cmd/debug/mod.rs:150-163 \u2014 before extracting anything, compare \u0060regex-cli/cmd/debug/dfa.rs\u0060 and \u0060regex-cli/cmd/debug/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac001f590d3c6ad22e40fc6fb92bc575d1b64ec1c31af87c65b906fd57494e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): regex-automata/src/util/interpolate.rs:119-132 | regex-automata/src/util/interpolate.rs:203-216 | regex-lite/src/interpolate.rs:92-105 \u2014 before extracting anything, compare \u0060regex-automata/src/util/interpolate.rs\u0060 and \u0060regex-lite/src/interpolate.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 101 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/util/interpolate.rs:119\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/interpolate.rs"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1e802a84460545a366b92957a6629f43f09e037d9cc7d0327da01208fe6eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): regex-automata/src/dfa/search.rs:619-632 | regex-automata/src/meta/limited.rs:194-207 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:619\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060regex-automata/src/meta/limited.rs:212\u0060 calls \u0060is_quit_state\u0060 and \u0060regex-automata/src/dfa/search.rs:635\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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"797f6ce7311e54b5d58b1d0e7e5afc02c0011eeb3a7bcc038da714cad5ef5ae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): regex-automata/src/util/prefilter/memchr.rs:77-90 | regex-automata/src/util/prefilter/memchr.rs:142-155 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/util/prefilter/memchr.rs:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/prefilter/memchr.rs"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"19588b74f7889a474b2a943b9c882a6fa893e27abffedbc88c58e84c0fd92918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): regex-cli/args/api.rs:42-55 | regex-cli/args/api.rs:76-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/args/api.rs:42\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/args/api.rs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"972b8155389c2d6fdc191db784994415777ec2e67de3e9757c36d13d347315b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): regex-cli/cmd/find/which/dfa.rs:131-144 | regex-cli/cmd/find/which/dfa.rs:199-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/which/dfa.rs:131\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/which/dfa.rs"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e104006651a7f992814bb360027b1bd022093948362d5d96aad78afbed8a9fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): regex-lite/src/hir/mod.rs:776-790 | regex-syntax/src/hir/mod.rs:1920-1934 \u2014 before extracting anything, compare \u0060regex-lite/src/hir/mod.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/hir/mod.rs:776\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/mod.rs"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d90f2c7c42bb614adabaeb2d67d7ad19f78dc5426de2eec6cf232d9ef586f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 16): regex-cli/cmd/find/capture/dfa.rs:30-42 | regex-cli/cmd/find/capture/nfa.rs:30-42 | regex-cli/cmd/find/capture/nfa.rs:108-120 | regex-cli/cmd/find/half/dfa.rs:33-45 | regex-cli/cmd/find/half/dfa.rs:137-149 | regex-cli/cmd/find/half/dfa.rs:239-251 | regex-cli/cmd/find/match/dfa.rs:30-42 | regex-cli/cmd/find/match/dfa.rs:111-123 | regex-cli/cmd/find/match/dfa.rs:189-201 | regex-cli/cmd/find/match/dfa.rs:268-280 | regex-cli/cmd/find/match/nfa.rs:30-42 | regex-cli/cmd/find/match/nfa.rs:105-117 | regex-cli/cmd/find/which/dfa.rs:30-42 | regex-cli/cmd/find/which/dfa.rs:100-112 | regex-cli/cmd/find/which/dfa.rs:168-180 | regex-cli/cmd/find/which/nfa.rs:30-42 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/capture/dfa.rs\u0060 and \u0060regex-cli/cmd/find/capture/nfa.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/dfa.rs:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/dfa.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc4d4f9b8a77ed193553dea0bdac278182e3e862f09c1533c66830bc24feab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): regex-lite/src/string.rs:1936-1948 | src/regex/bytes.rs:1985-1997 | src/regex/string.rs:1992-2004 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/bytes.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/string.rs:1936\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/string.rs"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dfb5dd3f1cdb21593f76fc0b94e8beebd31de215ea5bf5fc9c4568d8dbd7f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): regex-lite/src/string.rs:1951-1976 | src/regex/bytes.rs:2001-2026 | src/regex/string.rs:2008-2033 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/bytes.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/string.rs:1951\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/string.rs"},"region":{"startLine":1951}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ba9cb9e3a130bf826c7a534dbbae87cc5c7f3ae8731958b3639272f81c191d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): regex-automata/src/dfa/dense.rs:4403-4415 | regex-automata/src/dfa/dense.rs:4434-4446 \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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4403}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bf2151dca35e76263602e98ab7e0eeeebd744fbd1219c1ec4a684ce6257fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): regex-automata/src/dfa/search.rs:361-373 | regex-automata/src/hybrid/search.rs:492-504 \u2014 \u0060regex-automata/src/dfa/search.rs\u0060 and \u0060regex-automata/src/hybrid/search.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:361\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a784daaa4fd738f57a89582b4aeaa4fdd288b6aac9d2f65e04f0e67a7198d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): regex-syntax/src/hir/literal.rs:1632-1644 | regex-syntax/src/hir/literal.rs:1685-1697 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/hir/literal.rs:1632\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fed37e85bbbf7a9619c4f37e05de09dd796f76d3c62d18a582c7411d480c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 17): regex-cli/cmd/debug/dfa.rs:59-70 | regex-cli/cmd/debug/dfa.rs:121-132 | regex-cli/cmd/debug/dfa.rs:218-229 | regex-cli/cmd/debug/dfa.rs:279-290 | regex-cli/cmd/debug/mod.rs:154-165 | regex-cli/cmd/find/capture/dfa.rs:38-49 | regex-cli/cmd/find/capture/nfa.rs:38-49 | regex-cli/cmd/find/capture/nfa.rs:116-127 | regex-cli/cmd/find/half/dfa.rs:42-53 | regex-cli/cmd/find/half/dfa.rs:146-157 | regex-cli/cmd/find/half/dfa.rs:248-259 | regex-cli/cmd/find/match/dfa.rs:38-49 | regex-cli/cmd/find/match/dfa.rs:119-130 | regex-cli/cmd/find/match/dfa.rs:197-208 | regex-cli/cmd/find/match/dfa.rs:276-287 | regex-cli/cmd/find/match/nfa.rs:38-49 | regex-cli/cmd/find/match/nfa.rs:113-124 \u2014 before extracting anything, compare \u0060regex-cli/cmd/debug/dfa.rs\u0060 and \u0060regex-cli/cmd/debug/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/debug/dfa.rs:59\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"66110da6cc9b936f1d9908f178029b34d054e558a4dac22773a84d47a715e7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): regex-cli/cmd/debug/literal.rs:44-55 | regex-cli/cmd/debug/mod.rs:65-74 | regex-cli/cmd/debug/mod.rs:107-116 \u2014 there are 3 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 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/debug/literal.rs:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060regex-cli/cmd/debug/mod.rs:117\u0060 calls \u0060timeitr\u0060, \u0060hirs\u0060, \u0060add\u0060 and \u0060regex-cli/cmd/debug/mod.rs:75\u0060 does not \u2014 after which the two agree again for 3 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":"regex-cli/cmd/debug/literal.rs"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf6366310b46cdf6f80f451b0e6454ab2e979e7c028c6af336d1537666e4461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): regex-automata/src/dfa/dense.rs:3268-3279 | regex-automata/src/dfa/sparse.rs:1215-1226 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3268}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7d435cc12dc65e26d740b85454a8396860e2c3817ea55f97a7a999c5411f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): regex-automata/src/dfa/dense.rs:3434-3445 | regex-automata/src/dfa/dense.rs:4067-4078 \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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3434}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d51af4e263794ff95342ace4ecb2f1427b82c50f24ed2e4e7a3df8de432cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): regex-automata/src/dfa/search.rs:170-181 | regex-automata/src/meta/stopat.rs:70-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d757a7daaa4dbea94c0ac678543fca51e7cd5a2b115e62caf030a0bb9a3b073e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): regex-automata/src/meta/limited.rs:111-122 | regex-automata/src/meta/limited.rs:171-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/limited.rs:111\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/limited.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"1258034482f52e1e796fdbe33f6c72d14aa6f15fa329b51dc253deed6111c835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1120-1131 | regex-lite/src/nfa.rs:617-628 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/compiler.rs:1120\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e832539e03090888263cbf1bfc5545fd9cdca28cf430d08164977f898f2649a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): regex-cli/cmd/find/half/mod.rs:240-251 | regex-cli/cmd/find/half/mod.rs:324-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:240\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"73673b429835790ee9f9cddbeefcd9e822ece9af418536bade7e164c3080432c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): regex-cli/cmd/debug/dfa.rs:84-94 | regex-cli/cmd/debug/dfa.rs:241-251 | regex-cli/cmd/debug/mod.rs:177-187 \u2014 before extracting anything, compare \u0060regex-cli/cmd/debug/dfa.rs\u0060 and \u0060regex-cli/cmd/debug/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/debug/dfa.rs:84\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-cli/cmd/debug/dfa.rs:82\u0060 calls \u0060add\u0060, \u0060has_empty\u0060, \u0060is_utf8\u0060 and \u0060regex-cli/cmd/debug/mod.rs:176\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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce0f80908f1baaec7b24a8ffb534988959f8e7ae905d310797bfae30997c7b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-automata/src/dfa/dense.rs:1050-1060 | regex-automata/src/hybrid/dfa.rs:3900-3910 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 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. 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":1050}}}],"partialFingerprints":{"codehealthFindingId/v1":"bba5749424adbf1b8e451871cb34dad591a80eab6c8ea1886a4315cd10b5fb85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-automata/src/hybrid/search.rs:722-732 | regex-automata/src/meta/stopat.rs:202-212 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:722\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache\u0060 to \u0060\u0026mut Cache\u0060 in one and \u0060\u0026mut crate::hybrid::dfa::Cache\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c03f627c8fc8e32ebe7e5df81a75b11d246b536b7aec0aad9a7c903b46fb71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-automata/src/nfa/thompson/builder.rs:511-521 | regex-automata/src/nfa/thompson/builder.rs:528-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/builder.rs:511\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/builder.rs"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc957f89d25bee1835356a50433313ba608e600a89369b8a1c0ed2aba6bcd92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): regex-automata/src/nfa/thompson/pikevm.rs:1240-1250 | regex-automata/src/nfa/thompson/pikevm.rs:1415-1423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/pikevm.rs:1240\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ad3cadf4482881e7194632d9d69cbf69d290c4a7469619573cd7ee3b6f0328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-automata/src/nfa/thompson/pikevm.rs:1570-1580 | regex-automata/src/nfa/thompson/pikevm.rs:1582-1592 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bbf5cd36d51091016596d76bd1ccadc8ac0db90d3fe372f6489895a6bedc94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-cli/cmd/debug/mod.rs:75-85 | regex-cli/cmd/debug/mod.rs:119-129 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/debug/mod.rs:75\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-cli/cmd/debug/mod.rs:116\u0060 calls \u0060add\u0060, \u0060timeitr\u0060, \u0060hirs\u0060 and \u0060regex-cli/cmd/debug/mod.rs:73\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":"regex-cli/cmd/debug/mod.rs"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c89a651a6d101365e9ff6bd701b1606fa349c7b25b7a4d04b8250115ea189d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-syntax/src/hir/literal.rs:502-512 | regex-syntax/src/hir/literal.rs:518-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/hir/literal.rs:502\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cls\u0060 to \u0060\u0026hir::ClassUnicode\u0060 in one and \u0060\u0026hir::ClassBytes\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55a191919add5f0b0daec3a935347c2fb64d2d403255fb5d7b2fe1932b0886a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-syntax/src/hir/literal.rs:971-981 | regex-syntax/src/hir/literal.rs:1122-1132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/hir/literal.rs:971\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d0367b324c04e346f9fed6270e88cf9f0a920615a1bcf089726b7c6e2a5221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): regex-cli/cmd/find/capture/mod.rs:188-198 | regex-cli/cmd/find/half/mod.rs:144-154 | regex-cli/cmd/find/match/mod.rs:143-153 | regex-cli/cmd/find/which/mod.rs:172-182 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/mod.rs:188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10ef5a99a7d449b4358f537c8580efa6a6de1cba3e4d93abee20ce6548d6f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): regex-cli/cmd/find/half/mod.rs:238-245 | regex-cli/cmd/find/half/mod.rs:322-329 | regex-cli/cmd/find/match/mod.rs:302-311 \u2014 \u0060regex-cli/cmd/find/half/mod.rs\u0060 and \u0060regex-cli/cmd/find/match/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 215 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"747476c6b50d0a22f8c5d5a801199901e892ccc10124e8093db1103eae6d82cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/dfa/search.rs:355-364 | regex-automata/src/dfa/search.rs:473-482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:355\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc75b58b4d57fc7fdef7a922bf38d9145acdef568242cbb72f9e2fbc03dd46e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/dfa/search.rs:465-474 | regex-automata/src/hybrid/search.rs:586-595 \u2014 \u0060regex-automata/src/dfa/search.rs\u0060 and \u0060regex-automata/src/hybrid/search.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:465\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fa8d0da80e39aaa7306d5fb9782a53f305cbf0a6e23e7219237026ab8dbefd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/hybrid/search.rs:486-495 | regex-automata/src/hybrid/search.rs:594-603 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:486\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"0908adb7af504319e25389fc7acedfcaaee65161c999d578bc4f2262b5fcebea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/hybrid/search.rs:757-766 | regex-automata/src/meta/limited.rs:242-251 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:757\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"461060f2ad5830087b6b40491ce86cce0531a99052cc886ac0c5bfee439a0864"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1110-1117 | regex-lite/src/nfa.rs:606-615 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ad303ec91c3cf4d509bda38ad0baa85b7efd4d2fc8e6dba3088e0f6a20c353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/util/determinize/mod.rs:634-643 | regex-automata/src/util/determinize/mod.rs:652-661 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/util/determinize/mod.rs:634\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/determinize/mod.rs"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"d146cb3ed08582883e063f28ec772102a3fd59811dece56d5e23ba605722fb7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/util/look.rs:526-535 | regex-syntax/src/hir/mod.rs:2925-2934 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/look.rs"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f63f686d78fcfa474caa7998a6c5a58761bf4306912b3a271d203904b6eefbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-syntax/src/hir/literal.rs:465-474 | regex-syntax/src/hir/literal.rs: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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8fde88d0ffedebfa0297161bb9b76da7585cf5bc735eef275980791bd34b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-syntax/src/hir/mod.rs:448-457 | regex-syntax/src/hir/mod.rs:463-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/hir/mod.rs:448\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0326d38557789164215e4a02969d96c7761db3b46715431714abe4ad961edbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): regex-cli/cmd/find/capture/mod.rs:426-434 | regex-cli/cmd/find/half/mod.rs:237-245 | regex-cli/cmd/find/half/mod.rs:321-329 | regex-cli/cmd/find/match/mod.rs:301-309 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/mod.rs:426\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64f8ab3ac0147004e5c29e01bba994ea93279f08c724329d9bdf8717171ef44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): regex-cli/cmd/generate/serialize/dfa.rs:441-449 | regex-cli/cmd/generate/serialize/dfa.rs:536-544 | regex-cli/cmd/generate/serialize/dfa.rs:622-630 | regex-cli/cmd/generate/serialize/dfa.rs:732-740 \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":"regex-cli/cmd/generate/serialize/dfa.rs"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"31085f4beb89d93e7d4a8da07bda868be2fc8868508b3b24c1849fde00b42d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): regex-lite/src/string.rs:917-925 | src/regex/bytes.rs:1004-1012 | src/regex/string.rs:987-995 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/bytes.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/string.rs:917\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/string.rs"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c87bba982d1289fd095b7dbea3bd7f293e646dad1118dda04907a9091c995f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/dfa/dense.rs:3991-3999 | regex-automata/src/dfa/sparse.rs:1877-1885 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3991}}}],"partialFingerprints":{"codehealthFindingId/v1":"70667383322276878b1c16f53151abd8e654a06940449f66f45f7b8059da89c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/dfa/search.rs:384-392 | regex-automata/src/hybrid/search.rs:518-526 \u2014 \u0060regex-automata/src/dfa/search.rs\u0060 and \u0060regex-automata/src/hybrid/search.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:384\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a0c0983770bfa4536b4412024559d6221332fd91443ae5ffe6b8af0aebf6d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/hybrid/search.rs:225-233 | regex-automata/src/hybrid/search.rs:407-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f48a2b64b52881cdbd8c3cc4f41cb5342dfdbd207f550d0dce909d7f8ecc723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/hybrid/search.rs:711-720 | regex-automata/src/meta/stopat.rs:191-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:711\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache\u0060 to \u0060\u0026mut Cache\u0060 in one and \u0060\u0026mut crate::hybrid::dfa::Cache\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"782328914fa9f7cda35f0d7a8f7d9292ef9a07ef2c425cf36fbc14612f7c671b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/meta/prefix.rs:159-167 | regex-automata/src/meta/prefix.rs:169-177 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/prefix.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f1173d7617c3afa176ae355001f108b53607e6f62bbd4946e1568e572fcbb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/meta/strategy.rs:1476-1484 | regex-automata/src/meta/strategy.rs:1879-1887 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a9b6199ef29758ee191f01a6cd851b33ddc56dec165f76bb0bc2758c99afc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201328 lines \u00D7 2): regex-automata/src/meta/wrappers.rs:845-868 | regex-automata/src/meta/wrappers.rs:1243-1270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/wrappers.rs:845\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/wrappers.rs"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"e931e04e3d41ea18d080af2b87f5626734dd31ef16030e973973c5890f4e8916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1233-1241 | regex-lite/src/nfa.rs:426-434 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/compiler.rs:1233\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66398707d0830141ed24fb3b1dc41e99f17e2f233280f5f225e74d5df3661a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/regexset/bytes.rs:363-371 | src/regexset/string.rs:359-367 \u2014 before extracting anything, compare \u0060src/regexset/bytes.rs\u0060 and \u0060src/regexset/string.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060haystack\u0060 to \u0060\u0026[u8]\u0060 in one and \u0060\u0026str\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/regexset/bytes.rs"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"6faafac92f0d9ff08305143302a785e0dfa2e48c51389aede33208cf8d2e0b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): regex-automata/src/util/captures.rs:1224-1234 | regex-lite/src/string.rs:1962-1972 | src/regex/bytes.rs:2012-2022 | src/regex/string.rs:2019-2029 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/bytes.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 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":"regex-automata/src/util/captures.rs"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"346f6ab12eb79af09e6a11e43d07c290f6c8a883700bfcef668b689387c9e499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): regex-cli/cmd/find/half/mod.rs:99-106 | regex-cli/cmd/find/match/mod.rs:98-105 | regex-cli/cmd/find/match/mod.rs:233-240 \u2014 \u0060regex-cli/cmd/find/half/mod.rs\u0060 and \u0060regex-cli/cmd/find/match/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 215 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d218809162621039f5c3f3d2aa6b13ead49ba2c656b9bfe0ae354f53af4af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/dfa/dense.rs:2415-2423 | regex-automata/src/dfa/sparse.rs:1042-1050 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-automata/src/dfa/dense.rs:2413\u0060 calls \u0060skip_initial_padding\u0060 and \u0060regex-automata/src/dfa/sparse.rs:1040\u0060 does not \u2014 after which the two agree again for 3 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":2415}}}],"partialFingerprints":{"codehealthFindingId/v1":"6581bf0fa33713dd197391f81df60fed96b654e8554dc076cec0ba746e814ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): regex-automata/src/dfa/dense.rs:2463-2474 | regex-automata/src/dfa/sparse.rs:790-801 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7987263af2cfd2c6e8973c35b7713ba370e48b62fe62b3c74d8d296ca73bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-automata/src/dfa/dense.rs:4010-4017 | regex-automata/src/dfa/sparse.rs:1896-1903 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/dense.rs:4010\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":4010}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f54500f0e46ddf264d1c8273318e781f56170371abff75f796f5048415da78f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): regex-automata/src/hybrid/search.rs:748-755 | regex-automata/src/meta/limited.rs:232-240 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:748\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e369d2167289bb88cd420a3dd678b66f483c073af8a081feab2ff36d8629e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1295-1301 | regex-lite/src/nfa.rs:481-488 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/compiler.rs:1295\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b69200840252f681fd5d84f13b647f3912413d484c472ecce3144c7ddc3ecbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-cli/args/mod.rs:167-174 | regex-cli/args/mod.rs:197-204 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060regex-cli/args/mod.rs:206\u0060 calls \u0060Ok\u0060 and \u0060regex-cli/args/mod.rs:175\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":"regex-cli/args/mod.rs"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95f32fad4a879e98ce5c59b8f3799e04bf0bf7392a5bd2251cd878049ce6226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-lite/src/hir/parse.rs:544-551 | regex-syntax/src/ast/parse.rs:1621-1628 \u2014 before extracting anything, compare \u0060regex-lite/src/hir/parse.rs\u0060 and \u0060regex-syntax/src/ast/parse.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/hir/parse.rs:544\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/parse.rs"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f82e5f759b1890f2f9ce1b8ddee492503b68887c6b0666eb6c7ed069682943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): regex-syntax/src/ast/parse.rs:2197-2204 | regex-syntax/src/ast/parse.rs:2206-2213 | regex-syntax/src/ast/parse.rs:2214-2219 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/ast/parse.rs:2197\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-syntax/src/ast/parse.rs:2197\u0060 calls \u0060to_string\u0060 and \u0060regex-syntax/src/ast/parse.rs:2214\u0060 does not \u2014 after which the two agree again for 4 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":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":2197}}}],"partialFingerprints":{"codehealthFindingId/v1":"751f9bc32f582f2923fb8dab27aae0e1a91d5995291392913d5a884bee4059bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-syntax/src/hir/mod.rs:2401-2425 | regex-syntax/src/hir/mod.rs:2579-2586 \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":"regex-syntax/src/hir/mod.rs"},"region":{"startLine":2401}}}],"partialFingerprints":{"codehealthFindingId/v1":"f510f355002fc4bfb14fa1ee6fc2e6f7615a23915f9e81fe30b8a9e0df4d04dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-syntax/src/hir/translate.rs:337-344 | regex-syntax/src/hir/translate.rs:479-486 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"79123ed9a90eb35f11b328198a79f2e374ba19d68d99019ed299a2a27dc91c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-syntax/src/hir/translate.rs:593-600 | regex-syntax/src/hir/translate.rs:607-614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/hir/translate.rs:593\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d953b8b7c480b26d6066d71253fd644f600219adf2c289c6bdfa0c6c2c087b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): regex-syntax/src/hir/translate.rs:337-343 | regex-syntax/src/hir/translate.rs:479-485 | regex-syntax/src/hir/translate.rs:592-598 | regex-syntax/src/hir/translate.rs:606-612 \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":"regex-syntax/src/hir/translate.rs"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"def6b55515b35be6273cb8d6ea2a0b17181a716c8b8f928046feaadbd248d576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): regex-automata/src/dfa/dense.rs:3268-3274 | regex-automata/src/dfa/sparse.rs:1215-1221 | regex-automata/src/hybrid/dfa.rs:1560-1566 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/dense.rs:3268\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3268}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c7f5809030f51e7901d82c1d37ad47b5f3ad9bf04dc6d1e58165c71db8bf52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): regex-syntax/src/unicode.rs:814-820 | regex-syntax/src/unicode.rs:838-844 | regex-syntax/src/unicode.rs:862-868 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/unicode.rs:814\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/unicode.rs"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb42991da1105579516457df06fd62904868646025684b33b685fc55a2bdba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/dfa/automaton.rs:1589-1595 | regex-automata/src/hybrid/dfa.rs:904-910 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/automaton.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/automaton.rs:1589\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b7299d30f45030efb15d867bd0e2974e53e4ce3b0bd749191c4fe0dc1d27cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/dfa/automaton.rs:1726-1732 | regex-automata/src/hybrid/dfa.rs:1048-1054 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/automaton.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/automaton.rs:1726\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4f13887bdccef6e6cd9d14c01a2962b2ad1f42cf277f84cc1eac17f16d0bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/dfa/search.rs:227-233 | regex-automata/src/hybrid/search.rs:334-340 \u2014 \u0060regex-automata/src/dfa/search.rs\u0060 and \u0060regex-automata/src/hybrid/search.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 76 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/search.rs:227\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/search.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2f0dd9f8650704934c51b58f3ac5f8e823abfd7d40d8f8d9ae21c4e051f314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1307-1312 | regex-lite/src/nfa.rs:490-496 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/compiler.rs:1307\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59e07124b93c3e788f2cda2152e4044a259103558206cac5f0799205d7d6fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1338-1344 | regex-lite/src/nfa.rs:518-524 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/compiler.rs:1338\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54dee541543e39b61eac7f03a40c43dabd919b261a41503f406b393e814c3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-automata/src/util/captures.rs:941-948 | regex-automata/src/util/captures.rs:997-1004 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/captures.rs"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca1d2fcfe5ceda3644863361367710567a44ce97c6ee9e5a872d055d99033ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-cli/cmd/find/half/mod.rs:189-195 | regex-cli/cmd/find/match/mod.rs:253-259 \u2014 \u0060regex-cli/cmd/find/half/mod.rs\u0060 and \u0060regex-cli/cmd/find/match/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 215 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c204c7ff9e71e14eb1fde7defbea626461c375381dc51aad4cff8555f378f486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-cli/cmd/find/half/mod.rs:226-232 | regex-cli/cmd/find/match/mod.rs:290-296 \u2014 \u0060regex-cli/cmd/find/half/mod.rs\u0060 and \u0060regex-cli/cmd/find/match/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 215 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:226\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa3c68895e0af3310339fb0d6cc8a948d3ed8946f0f4cbf56a5b97ffd2090ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-syntax/src/ast/parse.rs:2049-2055 | regex-syntax/src/ast/parse.rs:2064-2070 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/ast/parse.rs:2049\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d94370a0380d3d5ff0e1db237611f3c8544599c1a4915467224f7e61c3c20f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-syntax/src/unicode.rs:735-741 | regex-syntax/src/unicode.rs:760-766 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/unicode.rs:735\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/unicode.rs"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1b70867b31df850754583534dcebedcdab90e4539669db46b5153044f49752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): regex-cli/cmd/debug/dfa.rs:64-70 | regex-cli/cmd/debug/dfa.rs:126-132 | regex-cli/cmd/debug/dfa.rs:223-229 | regex-cli/cmd/debug/dfa.rs:284-290 | regex-cli/cmd/debug/mod.rs:159-165 | regex-cli/cmd/debug/mod.rs:211-216 | regex-cli/cmd/find/capture/dfa.rs:43-49 | regex-cli/cmd/find/capture/nfa.rs:43-49 | regex-cli/cmd/find/capture/nfa.rs:121-127 | regex-cli/cmd/find/half/dfa.rs:47-53 | regex-cli/cmd/find/half/dfa.rs:151-157 | regex-cli/cmd/find/half/dfa.rs:253-259 | regex-cli/cmd/find/match/dfa.rs:43-49 | regex-cli/cmd/find/match/dfa.rs:124-130 | regex-cli/cmd/find/match/dfa.rs:202-208 | regex-cli/cmd/find/match/dfa.rs:281-287 | regex-cli/cmd/find/match/nfa.rs:43-49 | regex-cli/cmd/find/match/nfa.rs:118-124 \u2014 before extracting anything, compare \u0060regex-cli/cmd/debug/dfa.rs\u0060 and \u0060regex-cli/cmd/debug/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/debug/dfa.rs:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de77a579d5ed56a4b4cd931853ba1178a659cafa76fbc5b16f98d2bf8c064ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-automata/src/dfa/search.rs:271-276 | regex-automata/src/dfa/search.rs:286-291 \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":"regex-automata/src/dfa/search.rs"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a2b17237c77c49aad0a4ad75e3c6ddbee46bde99cf7c7dbc14f260affe454d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-automata/src/hybrid/search.rs:512-517 | regex-automata/src/hybrid/search.rs:624-629 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/hybrid/search.rs:512\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/hybrid/search.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c86805fb667bf29374ed8bac77538bc2bf9acc8de8e79dbcec5446550154696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-automata/src/meta/limited.rs:139-144 | regex-automata/src/meta/stopat.rs:109-114 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/limited.rs:139\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/limited.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7781d408b4d1faa077438248eccde4c9b68246b248a9f26e26341cd88cc28c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): regex-automata/src/util/utf8.rs:57-70 | regex-syntax/src/debug.rs:94-107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/debug.rs:94\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/utf8.rs"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae4b491ea2ef587470aa0d73c3281c073a32e69f0589697e3901ceb81910932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-cli/cmd/find/capture/mod.rs:95-100 | regex-cli/cmd/find/capture/mod.rs:278-283 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-cli/cmd/find/capture/mod.rs:274\u0060 calls \u0060get\u0060, \u0060to_str\u0060 and \u0060regex-cli/cmd/find/capture/mod.rs:91\u0060 does not \u2014 after which the two agree again for 4 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":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"146d4dce89cc470a9be93346071a7aea5408d17f1ed9e710fb5aa3165b7dd13e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-lite/src/hir/mod.rs:377-384 | regex-syntax/src/hir/mod.rs:762-769 \u2014 before extracting anything, compare \u0060regex-lite/src/hir/mod.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-lite/src/hir/mod.rs:377\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/hir/mod.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3019913d57277a34bf9b41cf58f5ecccfff918a8c7031686865120182496dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-syntax/src/ast/parse.rs:1769-1774 | regex-syntax/src/ast/parse.rs:1821-1826 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/ast/parse.rs:1769\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/ast/parse.rs"},"region":{"startLine":1769}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89ebad4a2c89b275a67b567685c4fd872891551f006b458d1241b00f17e9f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/regex/bytes.rs:990-995 | src/regex/bytes.rs:1010-1015 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/regex/bytes.rs:990\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/regex/bytes.rs"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf63136620be14b3578e3ff7f2864355ce98e51b74f17abc1990e256f4cf65c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 26): regex-cli/cmd/debug/dfa.rs:71-73 | regex-cli/cmd/debug/dfa.rs:133-136 | regex-cli/cmd/debug/dfa.rs:230-232 | regex-cli/cmd/debug/dfa.rs:291-294 | regex-cli/cmd/debug/mod.rs:166-168 | regex-cli/cmd/debug/mod.rs:217-219 | regex-cli/cmd/find/capture/dfa.rs:50-52 | regex-cli/cmd/find/capture/mod.rs:199-203 | regex-cli/cmd/find/capture/nfa.rs:50-52 | regex-cli/cmd/find/capture/nfa.rs:128-130 | regex-cli/cmd/find/half/dfa.rs:54-56 | regex-cli/cmd/find/half/dfa.rs:158-160 | regex-cli/cmd/find/half/dfa.rs:260-262 | regex-cli/cmd/find/half/mod.rs:155-159 | regex-cli/cmd/find/match/dfa.rs:50-52 | regex-cli/cmd/find/match/dfa.rs:131-133 | regex-cli/cmd/find/match/dfa.rs:209-211 | regex-cli/cmd/find/match/dfa.rs:288-290 | regex-cli/cmd/find/match/mod.rs:154-158 | regex-cli/cmd/find/match/nfa.rs:50-52 | regex-cli/cmd/find/match/nfa.rs:125-127 | regex-cli/cmd/find/which/dfa.rs:54-56 | regex-cli/cmd/find/which/dfa.rs:124-126 | regex-cli/cmd/find/which/dfa.rs:192-194 | regex-cli/cmd/find/which/mod.rs:183-187 | regex-cli/cmd/find/which/nfa.rs:54-56 \u2014 before extracting anything, compare \u0060regex-cli/cmd/debug/dfa.rs\u0060 and \u0060regex-cli/cmd/debug/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/mod.rs:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-cli/cmd/find/capture/mod.rs:199\u0060 calls \u0060add\u0060 and \u0060regex-cli/cmd/debug/dfa.rs:71\u0060 does not \u2014 after which the two agree again for 3 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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e5fc276f7e106b688c865016937a4f90d9088bf5e5db93eb4a6f09c6fd0e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): regex-cli/cmd/find/half/mod.rs:189-194 | regex-cli/cmd/find/half/mod.rs:265-269 | regex-cli/cmd/find/match/mod.rs:253-258 \u2014 \u0060regex-cli/cmd/find/half/mod.rs\u0060 and \u0060regex-cli/cmd/find/match/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 17 separate duplicated blocks between them, totalling at least 215 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/half/mod.rs:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/half/mod.rs"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9fe0bd90e698abb2a1d23ca022b221dd4125a77aa0898a2c2eea908115c6d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): regex-cli/cmd/find/match/dfa.rs:295-299 | regex-cli/cmd/find/match/nfa.rs:57-61 | regex-cli/cmd/find/match/nfa.rs:132-136 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/match/dfa.rs\u0060 and \u0060regex-cli/cmd/find/match/nfa.rs\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 128 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/match/dfa.rs:295\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/match/dfa.rs"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2adda350f679f1c9c444f4a81be2c13e1508ce132dab420e214ead44411b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/dfa/automaton.rs:1492-1496 | regex-automata/src/hybrid/dfa.rs:797-801 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/automaton.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/automaton.rs:1492\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a183650a2bd966e7570a90a8a9618a46291c817d7e5b6890be3b0696e0884d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/dfa/minimize.rs:389-393 | regex-automata/src/dfa/minimize.rs:424-428 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/minimize.rs:389\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-automata/src/dfa/minimize.rs:423\u0060 calls \u0060iter\u0060, \u0060add\u0060 and \u0060regex-automata/src/dfa/minimize.rs:388\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":"regex-automata/src/dfa/minimize.rs"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab841ffb4d1c68758009cb04788b1c820305eb25158b86bcd99e419f43f53a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/dfa/onepass.rs:1709-1713 | regex-automata/src/nfa/thompson/pikevm.rs:826-830 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/dfa/onepass.rs:1709\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdc5c9547abf10d9df8f750faf781877f94cb83143fd201ae37bbad200cd70b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/util/look.rs:1083-1087 | regex-automata/src/util/look.rs:1254-1258 \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":"regex-automata/src/util/look.rs"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27b9bdd70571c72b68498bf495d23db7db07777f093044186eae3163ea7c942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-cli/cmd/debug/dfa.rs:139-143 | regex-cli/cmd/debug/dfa.rs:297-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1276cf778d2acd320af0db57e971a064276a04f94681e02b87bcdd48d399eef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-cli/cmd/generate/serialize/dfa.rs:415-422 | regex-cli/cmd/generate/serialize/dfa.rs:431-438 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/generate/serialize/dfa.rs:415\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/generate/serialize/dfa.rs"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb670f43de7bd00f8d123097ad0f46335483cf39473612334ba1e32d2de91742"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-automata/src/dfa/dense.rs:197-204 | regex-automata/src/hybrid/dfa.rs:3091-3098 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 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. 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27d8c15080cb3a93af504b27be7d4308fdb5d88207a818e4dd2073c17d78463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): regex-automata/src/dfa/dense.rs:1142-1148 | regex-automata/src/dfa/onepass.rs:343-349 | regex-automata/src/hybrid/dfa.rs:3999-4005 | regex-automata/src/nfa/thompson/backtrack.rs:264-270 | regex-automata/src/nfa/thompson/pikevm.rs:247-253 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/hybrid/dfa.rs\u0060 as WHOLE FILES: this scan already matched 5 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. 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4c63fb1ab7ef077deb99a2de1d5588b2553a956764b8e2760dc267f51a4727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/dfa/dense.rs:3282-3288 | regex-automata/src/dfa/sparse.rs:1229-1235 \u2014 before extracting anything, compare \u0060regex-automata/src/dfa/dense.rs\u0060 and \u0060regex-automata/src/dfa/sparse.rs\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 192 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3282}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c79215e2af13f6be1bf2f22e15939a400cfad72040c115a3599d0c3f12c3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/nfa/thompson/pikevm.rs:1900-1906 | regex-lite/src/pikevm.rs:563-569 \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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ea81a7353ebcd5a1afba3c442990e1d368c98175f5e4744fe6fa2821e19395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-automata/src/nfa/thompson/pikevm.rs:2011-2018 | regex-lite/src/pikevm.rs:621-628 \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":"regex-automata/src/nfa/thompson/pikevm.rs"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"331c23425d71f6a9db9fd0df35d9961182178be6c94337d8419fa2937b219a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-automata/src/util/look.rs:320-325 | regex-syntax/src/hir/mod.rs:2741-2746 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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":"regex-automata/src/util/look.rs"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14f09bc20332db3c0fad0c70c39c92c1ff220bdb14735cd559fa240451dcfa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-automata/src/util/look.rs:354-361 | regex-syntax/src/hir/mod.rs:2775-2782 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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":"regex-automata/src/util/look.rs"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fa3af12787150e9cadbb053ad4b3c6c3d25f022ac0616d7a7f6eb4178c48cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-automata/src/util/look.rs:366-373 | regex-syntax/src/hir/mod.rs:2787-2794 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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":"regex-automata/src/util/look.rs"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"00909ebbccdda046be48c1670e6145e41656a4736bf0bedbd63ee49580bf1aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/util/look.rs:470-476 | regex-syntax/src/hir/mod.rs:2891-2897 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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":"regex-automata/src/util/look.rs"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e62d3c4375cbf7e0ecc082ddf66a3dd2a336276151ba0d345588c942d44841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): regex-automata/src/util/look.rs:502-510 | regex-syntax/src/hir/mod.rs:2901-2909 \u2014 before extracting anything, compare \u0060regex-automata/src/util/look.rs\u0060 and \u0060regex-syntax/src/hir/mod.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 112 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":"regex-automata/src/util/look.rs"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bebd0f143cbeb6ddaf1c78772c1691537c7a5c28f5cee621b26772e05d4484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): regex-automata/src/util/pool.rs:848-853 | regex-automata/src/util/pool.rs:1012-1017 | regex-lite/src/pool.rs:113-118 \u2014 there are 3 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 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/pool.rs"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ea8ed220aa924fd2192c91dcfbdad42988d40cc7e37c5ab5fcabba03c5d2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/util/sparse_set.rs:117-121 | regex-lite/src/pikevm.rs:811-815 \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":"regex-automata/src/util/sparse_set.rs"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f6b88ec5eb4e0792682bf3f9e544c65e76be4e7d2faa0fd1979b6a5580a8e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-lite/src/hir/mod.rs:45-51 | regex-syntax/src/lib.rs:262-268 \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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9399cc611725aabdf5a6cf983fd56d95ab0fc536495abb036ddd23dc095efc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): regex-lite/src/hir/mod.rs:71-96 | regex-syntax/src/lib.rs:305-333 \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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14d4521744a431980d59191a59aea489025eb2b2f2117c0f07c63cd5d2dbf54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): regex-lite/src/hir/mod.rs:503-513 | regex-syntax/src/hir/interval.rs:398-408 \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":"regex-lite/src/hir/mod.rs"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"702e7332448a5c8d2b89a08d5b2daa4bdc6b51982e5fbd4e8f0505c064052683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-lite/src/hir/parse.rs:1385-1391 | regex-syntax/src/ast/parse.rs:111-117 \u2014 before extracting anything, compare \u0060regex-lite/src/hir/parse.rs\u0060 and \u0060regex-syntax/src/ast/parse.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef07273d74c81fa177fc5fae185ff0259f79116ee9c6133ad333b9b37fe6ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-lite/src/string.rs:1576-1582 | src/regex/string.rs:1619-1625 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060f\u0060 to \u0060\u0026mut std::fmt::Formatter\u0060 in one and \u0060\u0026mut core::fmt::Formatter\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-lite/src/string.rs"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"155e30299fabffe8fd05006d79a7a24d6a29a7f5f5a2b6f570e637c892b368c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-lite/src/string.rs:2013-2017 | src/regex/string.rs:2070-2074 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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":"regex-lite/src/string.rs"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edc0f448797bde2c1eef5bf98397d01e83d9ab8c99f942b13824c3dfa785644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-lite/src/string.rs:2039-2043 | src/regex/string.rs:2096-2100 \u2014 before extracting anything, compare \u0060regex-lite/src/string.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 134 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":"regex-lite/src/string.rs"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc7f76f5618b9b7e6e957b65f042b6ce75241f4de6232fd5003fed57e4c7d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/regex/bytes.rs:1103-1107 | src/regex/string.rs:1086-1090 \u2014 before extracting anything, compare \u0060src/regex/bytes.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 107 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/regex/bytes.rs:1103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060haystack\u0060 to \u0060\u0026[u8]\u0060 in one and \u0060\u0026str\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/regex/bytes.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e96bf6bcbaaa73a24bfbeb9fddb593a24f73bcac2c11c3adcd9f32b1d5cea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/regex/bytes.rs:1715-1719 | src/regex/string.rs:1721-1725 \u2014 before extracting anything, compare \u0060src/regex/bytes.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 107 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/regex/bytes.rs"},"region":{"startLine":1715}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c7a907da7f32380b0e8a115a7a7aa258c3e0a4e51b5aafcdd47051f0d8e24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/regex/bytes.rs:1771-1775 | src/regex/string.rs:1778-1782 \u2014 before extracting anything, compare \u0060src/regex/bytes.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 107 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/regex/bytes.rs"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"5262877c1f7ad18b063607a689ba62ee4097308a28b700f8de35c854295e0601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/regex/bytes.rs:2246-2250 | src/regex/string.rs:2251-2255 \u2014 before extracting anything, compare \u0060src/regex/bytes.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 107 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/regex/bytes.rs"},"region":{"startLine":2246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c600c45263918ff9befed61c20a9a9eca76a6439357a100ec8c31a2f29cb24de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/regex/bytes.rs:2290-2297 | src/regex/string.rs:2295-2302 \u2014 before extracting anything, compare \u0060src/regex/bytes.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 107 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/regex/bytes.rs"},"region":{"startLine":2290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef7cf56df84643372c876cf4561ed92e7d8f9c901848ddf496c528803b3b45e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/regex/bytes.rs:2443-2447 | src/regex/string.rs:2448-2452 \u2014 before extracting anything, compare \u0060src/regex/bytes.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 107 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/regex/bytes.rs"},"region":{"startLine":2443}}}],"partialFingerprints":{"codehealthFindingId/v1":"0910d99900566cd89a4187e1e79137cc01e6b6c65a2ffbe81d17accf813680f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/regexset/bytes.rs:329-334 | src/regexset/string.rs:325-330 \u2014 before extracting anything, compare \u0060src/regexset/bytes.rs\u0060 and \u0060src/regexset/string.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060haystack\u0060 to \u0060\u0026[u8]\u0060 in one and \u0060\u0026str\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/regexset/bytes.rs"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a2eaaebdc4af15a2b925dacebc9a6cf2092d37c09b42861c2acaa52c32bc24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/regexset/bytes.rs:664-671 | src/regexset/string.rs:660-667 \u2014 before extracting anything, compare \u0060src/regexset/bytes.rs\u0060 and \u0060src/regexset/string.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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/regexset/bytes.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"48290186ae15057700ddec4c5c9840a96140d1971cb9dca3d1f48cc279efba00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/regexset/bytes.rs:679-686 | src/regexset/string.rs:675-682 \u2014 before extracting anything, compare \u0060src/regexset/bytes.rs\u0060 and \u0060src/regexset/string.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 31 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/regexset/bytes.rs"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"514e50dcf117c8161a0cf51cd67c5c565f3c12dbbc93c5ab13e377014d112ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/meta/regex.rs:1455-1459 | regex-automata/src/nfa/thompson/pikevm.rs:1025-1029 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/regex.rs:1455\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/regex.rs"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"055eb4d3fcfe07d7bd4505b1b64862920be5a1107118e68ee32d1f3e411d02df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/nfa/thompson/backtrack.rs:1058-1062 | regex-automata/src/nfa/thompson/pikevm.rs:893-897 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/backtrack.rs:1058\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/backtrack.rs"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"0602a1f53374f533a45379325e7773495b9282f9fa5986e39dba01b218ea4a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-automata/src/nfa/thompson/backtrack.rs:1109-1113 | regex-automata/src/nfa/thompson/pikevm.rs:936-940 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/backtrack.rs:1109\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/backtrack.rs"},"region":{"startLine":1109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9c1be3455e0124eec8cebb76e80679b2abd047ef078789251c2b7a63c3d881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-lite/src/hir/parse.rs:245-254 | regex-syntax/src/ast/parse.rs:513-522 \u2014 before extracting anything, compare \u0060regex-lite/src/hir/parse.rs\u0060 and \u0060regex-syntax/src/ast/parse.rs\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57f8f513ee9fb5973324d80eb74826304909d3fc2e4f5c1ee1708aa1db19d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/regex/bytes.rs:1857-1871 | src/regex/string.rs:1864-1878 \u2014 before extracting anything, compare \u0060src/regex/bytes.rs\u0060 and \u0060src/regex/string.rs\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 107 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/regex/bytes.rs"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"3085c169df41a4b45d346f74270ba2623856d60adb6142d91420ad172251aff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): regex-automata/src/meta/strategy.rs:1139-1166 | regex-automata/src/meta/strategy.rs:1541-1570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/strategy.rs:1139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1139}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb03ff17a9dba669f3ef1bbfab099ff18e4087341bcc41bd1140d8c6a3ac3a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 6): regex-cli/cmd/find/capture/mod.rs:54-70 | regex-cli/cmd/find/capture/mod.rs:233-249 | regex-cli/cmd/find/half/mod.rs:53-69 | regex-cli/cmd/find/match/mod.rs:52-68 | regex-cli/cmd/find/match/mod.rs:178-198 | regex-cli/cmd/find/which/mod.rs:66-82 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1baa3c831f3d38664c63006b3147a8cfd22fad19aec91afaf4cb475ddbe397"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): regex-cli/cmd/find/half/dfa.rs:113-131 | regex-cli/cmd/find/half/dfa.rs:215-233 \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":"regex-cli/cmd/find/half/dfa.rs"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b496c6f0ea990ba383ee39a93ec3c9d4ec73fe7d246b5df0ae725d706b43b2bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): regex-cli/cmd/debug/dfa.rs:37-52 | regex-cli/cmd/debug/dfa.rs:97-114 | regex-cli/cmd/debug/dfa.rs:196-211 | regex-cli/cmd/debug/dfa.rs:254-272 | regex-cli/cmd/debug/mod.rs:132-147 | regex-cli/cmd/debug/mod.rs:190-205 \u2014 before extracting anything, compare \u0060regex-cli/cmd/debug/dfa.rs\u0060 and \u0060regex-cli/cmd/debug/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060regex-cli/cmd/debug/dfa.rs:54\u0060 calls \u0060default\u0060 and \u0060regex-cli/cmd/debug/mod.rs:207\u0060 does not \u2014 after which the two agree again for 3 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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"290960a51c750c9b45d4ddb1a5c3468b6b79693e5b4d8932037fc7c1f7f809ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): regex-cli/cmd/find/half/dfa.rs:11-27 | regex-cli/cmd/find/half/dfa.rs:115-131 | regex-cli/cmd/find/half/dfa.rs:217-233 \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":"regex-cli/cmd/find/half/dfa.rs"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e65fe74c823d4ba6355e083f6ed56b6c433e19fe94a6445662b54c2b743e717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 20): regex-cli/cmd/find/capture/dfa.rs:9-27 | regex-cli/cmd/find/capture/mod.rs:153-171 | regex-cli/cmd/find/capture/nfa.rs:9-27 | regex-cli/cmd/find/capture/nfa.rs:87-105 | regex-cli/cmd/find/half/dfa.rs:11-29 | regex-cli/cmd/find/half/dfa.rs:115-133 | regex-cli/cmd/find/half/dfa.rs:217-235 | regex-cli/cmd/find/half/mod.rs:109-127 | regex-cli/cmd/find/match/dfa.rs:9-27 | regex-cli/cmd/find/match/dfa.rs:90-108 | regex-cli/cmd/find/match/dfa.rs:168-186 | regex-cli/cmd/find/match/dfa.rs:247-265 | regex-cli/cmd/find/match/mod.rs:108-126 | regex-cli/cmd/find/match/nfa.rs:9-27 | regex-cli/cmd/find/match/nfa.rs:84-102 | regex-cli/cmd/find/which/dfa.rs:9-27 | regex-cli/cmd/find/which/dfa.rs:79-97 | regex-cli/cmd/find/which/dfa.rs:147-165 | regex-cli/cmd/find/which/mod.rs:133-151 | regex-cli/cmd/find/which/nfa.rs:9-27 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/capture/dfa.rs\u0060 and \u0060regex-cli/cmd/find/capture/nfa.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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":"regex-cli/cmd/find/capture/dfa.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4279869f9b1c1876b4b8b190d346b04710a02f948b3e855e4e77b21ab69344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): regex-cli/cmd/debug/mod.rs:47-62 | regex-cli/cmd/debug/mod.rs:88-104 \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":"regex-cli/cmd/debug/mod.rs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c8b15ff6cce3cb177c9a4113437c0324a6bf4479ce4bc0a7d11da6c81f8216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): regex-automata/src/util/prefilter/mod.rs:665-677 | regex-automata/src/util/prefilter/mod.rs:702-714 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/util/prefilter/mod.rs:665\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/util/prefilter/mod.rs"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b079bff8668da08f30b48a5213c96cff9a6638ac80aaa54f80a80236181572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/meta/strategy.rs:1490-1502 | regex-automata/src/meta/strategy.rs:1893-1902 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/strategy.rs:1490\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c28011a4a00486a35294156d80132ab39928b1071c5b09f1920819b62efa639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): regex-automata/src/meta/strategy.rs:1170-1182 | regex-automata/src/meta/strategy.rs:1574-1586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/strategy.rs:1170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bb8147ea8614baa2eb565f739b9547192fd00e823b2841a780208f71a673a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): regex-automata/src/meta/strategy.rs:1456-1467 | regex-automata/src/meta/strategy.rs:1861-1870 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/meta/strategy.rs:1456\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1607a16964fa1c8cc86d41c289de3e98fb78b7b99470d432e8c760f06229ef9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): regex-cli/cmd/debug/dfa.rs:84-93 | regex-cli/cmd/debug/dfa.rs:157-166 | regex-cli/cmd/debug/dfa.rs:241-250 | regex-cli/cmd/debug/dfa.rs:316-325 | regex-cli/cmd/debug/mod.rs:177-186 | regex-cli/cmd/debug/mod.rs:234-243 \u2014 before extracting anything, compare \u0060regex-cli/cmd/debug/dfa.rs\u0060 and \u0060regex-cli/cmd/debug/mod.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060regex-cli/cmd/debug/dfa.rs:82\u0060 calls \u0060add\u0060, \u0060has_empty\u0060, \u0060is_utf8\u0060 and \u0060regex-cli/cmd/debug/mod.rs:176\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":"regex-cli/cmd/debug/dfa.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7e42db602223fa4d09cde3e71d1aaa372205f1c2485dafc473acb1f02b22cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): regex-automata/src/dfa/dense.rs:3580-3587 | regex-automata/src/dfa/dense.rs:4501-4508 \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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3580}}}],"partialFingerprints":{"codehealthFindingId/v1":"346735d27640403d0886b3de9e96a52e365079994173d2972bd0c42524e0132d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): regex-cli/cmd/find/capture/mod.rs:427-433 | regex-cli/cmd/find/half/mod.rs:238-244 | regex-cli/cmd/find/half/mod.rs:322-328 | regex-cli/cmd/find/match/mod.rs:302-308 | regex-cli/cmd/find/which/mod.rs:222-228 \u2014 \u0060regex-cli/cmd/find/capture/mod.rs\u0060 and \u0060regex-cli/cmd/find/half/mod.rs\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/mod.rs:427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/mod.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b7a2e07865ddc018d7bdb0298bb302a3e961bcf3f9c65d00ecd59cbf8670ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-syntax/src/unicode.rs:408-413 | regex-syntax/src/unicode.rs:432-437 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/unicode.rs:408\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/unicode.rs"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eeb814cb26c4a0e03f04f48b4a0faeaf03db5a0b274c54914b72a484dc826cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-syntax/src/hir/print.rs:135-140 | regex-syntax/src/hir/print.rs:156-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/hir/print.rs:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/hir/print.rs"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fd2e520c13aafcdc576195c5decb3d876d52f654d68c856890e165a3807edf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): regex-syntax/src/unicode.rs:701-706 | regex-syntax/src/unicode.rs:736-741 | regex-syntax/src/unicode.rs:761-766 | regex-syntax/src/unicode.rs:787-792 | regex-syntax/src/unicode.rs:815-820 | regex-syntax/src/unicode.rs:839-844 | regex-syntax/src/unicode.rs:863-868 \u2014 all 7 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-syntax/src/unicode.rs:701\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-syntax/src/unicode.rs"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe52045f401a6332fbf4b3d7d880c5e248227c646acee50f79fd5da0ca0e373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): regex-cli/cmd/find/which/dfa.rs:59-63 | regex-cli/cmd/find/which/nfa.rs:59-63 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/which/dfa.rs\u0060 and \u0060regex-cli/cmd/find/which/nfa.rs\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 96 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/which/dfa.rs:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/which/dfa.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"336339dd8132b437d8e4de8bbd0e0e728a46cb2883c8b515f0e48dd60dbf0da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): regex-cli/cmd/find/capture/dfa.rs:55-59 | regex-cli/cmd/find/capture/nfa.rs:55-59 | regex-cli/cmd/find/capture/nfa.rs:133-137 \u2014 before extracting anything, compare \u0060regex-cli/cmd/find/capture/dfa.rs\u0060 and \u0060regex-cli/cmd/find/capture/nfa.rs\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 117 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-cli/cmd/find/capture/dfa.rs:55\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/cmd/find/capture/dfa.rs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d38e9e1f0939724209113ccdcb3bf041a8c33c6f322f82286767a90b1d5dba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): regex-automata/src/nfa/thompson/compiler.rs:1170-1176 | regex-lite/src/nfa.rs:366-372 \u2014 before extracting anything, compare \u0060regex-automata/src/nfa/thompson/compiler.rs\u0060 and \u0060regex-lite/src/nfa.rs\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 76 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9efe646d73d70baf3dcf1594851ea56387b6eeb01ebc962ac799aebf87f6547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): regex-automata/src/nfa/thompson/range_trie.rs:806-811 | regex-automata/src/nfa/thompson/range_trie.rs:812-817 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060regex-automata/src/nfa/thompson/range_trie.rs:806\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-automata/src/nfa/thompson/range_trie.rs"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"467307f859c0331a7137cb9ee3ac407de133e57df59f39995d73c556a49ee01a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs:9-39 | fuzz/fuzz_targets/fuzz_regex_automata_deserialize_sparse_dfa.rs:9-39 \u2014 These two members are one piece of code written twice and then edited apart: 31 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":"fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3053ebfee2d6f38ef5badae06b3273b4186add8d2eb436a1c0e5f3d756ac75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): fuzz/fuzz_targets/fuzz_regex_lite_match.rs:21-47 | fuzz/fuzz_targets/fuzz_regex_match.rs:22-51 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"fuzz/fuzz_targets/fuzz_regex_lite_match.rs"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f30819b1c298a143749bfe5acb16ef18a5b9847b3e1a8d7433dc7598f6d20d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs:10-19 | fuzz/fuzz_targets/fuzz_regex_automata_deserialize_sparse_dfa.rs:10-19 \u2014 before extracting anything, compare \u0060fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs\u0060 and \u0060fuzz/fuzz_targets/fuzz_regex_automata_deserialize_sparse_dfa.rs\u0060 as WHOLE FILES: 86% 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":"fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"607a2bc6eab89130ff8a96da037a761e993ed12454e5a64c3a43c694d976721b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs:25-35 | fuzz/fuzz_targets/fuzz_regex_automata_deserialize_sparse_dfa.rs:25-35 \u2014 before extracting anything, compare \u0060fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs\u0060 and \u0060fuzz/fuzz_targets/fuzz_regex_automata_deserialize_sparse_dfa.rs\u0060 as WHOLE FILES: 86% 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":"fuzz/fuzz_targets/fuzz_regex_automata_deserialize_dense_dfa.rs"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e809dc00bafd4499ee07c742556541d5d15c36069f462ca334e853ae64d20f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): fuzz/fuzz_targets/ast_fuzz_match.rs:16-21 | fuzz/fuzz_targets/ast_fuzz_match_bytes.rs:16-21 \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":"fuzz/fuzz_targets/ast_fuzz_match.rs"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2188044515f6917231dc1e75edbd9016525654dbd804c78aff267e4d8da221"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: regex-lite: regex-lite: abstractness 0.05, instability 0.00, distance 0.95 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a49ee14c373da1dad714e2bfb731d5c1057e5387d80649b99c98eb021eb72bbe"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: regex-syntax: regex-syntax: abstractness 0.05, instability 0.00, distance 0.95 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"efbe58c71297aa6a06a09c783c1c2fed253a40c2c4f73f0696b5a403b46bc30a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Config (LCOM4 5): Config\u0027s methods fall into 5 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 5 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":"regex-automata/src/dfa/determinize.rs"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4ef86e7f8960a58cfed3063626a12948cad52a055b9a04094fbe739be2bed7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DFA (LCOM4 4): DFA\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":"regex-automata/src/hybrid/dfa.rs"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd78f82483a79536f856c15fb60435cc58247dffc9799b080cebff815165b9b5"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 9 significant file(s) lose their only recent owner: regex-automata/src/meta/strategy.rs, regex-automata/src/util/pool.rs, regex-automata/src/hybrid/search.rs, regex-automata/src/util/primitives.rs, regex-automata/src/dfa/search.rs, regex-automata/src/meta/reverse_inner.rs, regex-automata/src/meta/prefix.rs, regex-automata/src/meta/reverse_suffix.rs (\u002B1 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dbd22d9d897606e6d9a212b13ba40b33e3cbbbc87109d0f5b19e6a8a9642d34b"}},{"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 (11 single-owned of 133 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; 133 of the 167 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (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: regex-syntax/src/hir/interval.rs, regex-automata/src/meta/stopat.rs."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this method entirely on the next breaking semver 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/error.rs"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2442f26e7ae9abbe6619c6698e1bafe7f03ea8442cb34b9e188cc83b84ab8f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(burntsushi): Fix this so that it amortizes allocation. \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":"regex-syntax/src/hir/interval.rs"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc439bc5b8b7e2d05cc541161baf8a9b2f3187372ee9fe6fa9d5b87e87a46f61"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The suffixes for this don\u0027t look quite right to me. I think \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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d8ce2e8b61427c4e570294e05bc244916014f74a08d47a4a2c7c0338eabf28"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is a good candidate of a seq of literals that could be \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":"regex-syntax/src/hir/literal.rs"},"region":{"startLine":3174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eacae387cf506fc1d2ab4d6ef39616b996e444db69036fe2828c17750f9a0de"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use as_usize() once const functions in traits are stable. \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":"regex-lite/src/utf8.rs"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"baafd4eedf7e47e56cc820a83d56a098ea03d6de2f5d8c694a7f728dc8ea3740"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use as_usize() once const functions in traits are stable. \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":"regex-automata/src/util/primitives.rs"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c291ed1afc477863510246c312414bcd2d5f11b1709cdcb0a23850c226fe2d84"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use as_usize() once const functions in traits are stable. \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":"regex-automata/src/util/primitives.rs"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88fd464d2116c5796b7f2cc2b71ea0dcc2ac6cc52f77e8b5a8bf7bb97eea99a"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use as_usize() once const functions in traits are stable. \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":"regex-automata/src/util/utf8.rs"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ddfa967802d4c4cf0a37c6a6d73dec7067447009c3c440c9b95343dd4d1109"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use as_usize() once const functions in traits are stable. \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":"regex-automata/src/hybrid/id.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"260992441e647b78f0bdd0531dcf230584b8c56e6896b1521de3a973a7888486"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is... not technically correct, since someone could \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":"regex-cli/args/patterns.rs"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8953311a514a54183b57f6d0ee0e6d871375f377c8ca81352ac5ff986f91006c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: It seems like the calls to \u0027set_range\u0027 here 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":"regex-automata/src/util/look.rs"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d885262a82fb96a447ab54025595d6489d4459ac7140cc231075d1a1c8f8f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Is this correct for \\B? \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":"regex-automata/src/util/look.rs"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b3433ba765fca8dd54cd2a315e51ab84eb1557509ff58a872c512320716d84"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Now that we require 1.65\u002B, Mutex::new is available as \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":"regex-automata/src/util/pool.rs"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98ca9dfd1253fae9167435a38420bfab29e57ad72146ae0851956dd180aacbb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use as_u32() once const functions in traits are stable. \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":"regex-automata/src/util/primitives.rs"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f05f5d540036f63d432ef318e259e0203379c05f68fec5a7baea62eceb79185"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use as_u32() once const functions in traits are stable. \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":"regex-automata/src/hybrid/id.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d32bf1df9caa4af227968eb7cac01d37b1e13add26edce6eb8c9f96fd374922"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Use u64::from() once const functions in traits are stable. \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":"regex-automata/src/util/primitives.rs"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"1787899b71d2be302d04041fb7a0d4b1b6206da57c66f31618b5acc4f1062fde"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(1.59): use the \u0027TryFrom\u003Cchar\u003E for u8\u0027 impl. \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":"regex-automata/src/nfa/thompson/compiler.rs"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9d5e97ecd7d79d7c7dfb1fbf68159ca129369fcf727d2c608cbf32a308a539"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: The \u0060look_set_prefix_all\u0060 computation was not correct, and it \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":"regex-automata/src/nfa/thompson/nfa.rs"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dc3f8bbd8136cac8c4cb8dda1af2e937a1089f479c8f22b5a2eea2b48c6bb7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Technically, we don\u0027t quite yet KNOW that 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":"regex-automata/src/meta/strategy.rs"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60cf59d5b7586215fc7543646deac5740454300238bf9a3cc04e4c6ba286e33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should try to find a way to make this less subtle and error \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":"regex-automata/src/hybrid/dfa.rs"},"region":{"startLine":2144}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a5d4717928ab5347803393f09fef681ced06f753c3c708813c9477252bbae2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060regex-cli/Cargo.toml\u0060 makes this repository a deployable product (line 18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"regex-cli/Cargo.toml"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"311cb3b9e895e002453c213e5c1a022e4a3b49a005eff11d9ac941445cdec56c"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 6 project(s) overshoot their size bounds, lowering Project Cohesion to 4.5/10. The most over is \u0060regex-automata\u0060 (61335 LoC, 143 module-visible types across 7 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"703b990f6d9a60db46de372b4bc3713bc769740b61be7dfed2b23b523664ac12"},"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":"7850ea9e8179531389bfa2debfa5883eb354454d32b0dba110be899f88bd849d"},"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":"bc26593caf509b487cb3dff9d1a587737a02c72fc5e13e59c1a151f7d6412ad4"},"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":"dd65e2f04abdf477e5d882fff12a00d1ee228e0a527014aeb9b4139224ebe812"},"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":"6bc3b539f953f180f304780b633bbb65e6d2911ce57503f2f0e4a05dfd504060"},"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":"739aba50c2202d8610042c78e67dcc0b8bf8b843e2101ae1543a28454827d20e"},"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":"28fb95c74cf7e51a3f6e58d6d5d9aaba698bdc10ef21fbd45c72dc90736c26c6"},"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":"ab23c85e93624ae9562a005093ec7654ca2d931a76859bbd011f1fb02af874f0"},"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":"a5ff6c36cc77c52281fa395ac6b9e1e18754b22fb93caffb8d30a7715d1e22e8"},"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":"2af95c12f3c1ea89385cfc48dc29f37c45243f4f678813a45e56bcba7665cfc7"},"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":"1375048b9ca8ef192c23faf83af425d2e99a11eb2f6e7951f3d837d8c63c990e"},"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":"a4e4dc41b2951adb95b298fac0913d1ce8bd00a8de3d7fe2087e44d2e1798725"},"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":"dba947422e5342f3ec1c8c79cd0d382f193ca875a3cf3b831fb3cd646cf4c808"},"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":"3c70ed0f5a51be34c577483387b3783f573adcdf4137566e200501398c2966fd"},"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":"7205317fc4307744fd9abdaec5a93c99047e2b3dc6e771c88b80b57760d42c9f"},"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":"58b161aac0af099cd520dcb89b5554a18dcbf430974abadb67c782554fd54983"},"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":"5d7d8b785cee51e489fc881cfa78bee854f57d170aa92ac2a6bf9f51ce186a57"},"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":"bb9a094b3a6dcf79bef40214c20db1769167444168a400637c3a375cd84f0dca"},"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":"274e422a1f485c10326f671fc0462bb21696f0876cebd7c57789378a1e9137d3"},"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":"09e003c0577cf0fc2d68ae0a511568a9b6717dfd10dce4cadcb4c8df9aa76333"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 1 of 133 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (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; 133 of the 167 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: regex-capi/src/rure.rs. 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":"regex-capi/src/rure.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baaaf1122c166f5dbfe9c3840350dea4f4a5db5e91b691209272904fbe9deded"}},{"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":"61d9c64c1de88e7edb9c757178d6ec3103868cef4ae7e825aeeac5d15e61fb7d"}},{"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":"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 3/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, \u0060regex-lite\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 cargo-audit / cargo-deny (or clippy) (or \u0060semgrep --config=auto\u0060, which runs on any language) 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/ci.yml"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!self.quitset.is_empty() \u0026\u0026 self.quitset.contains(byte)\u0060 appears character-identically in 3 files \u2014 regex-automata/src/dfa/dense.rs, regex-automata/src/dfa/sparse.rs, regex-automata/src/hybrid/dfa.rs. 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":3272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbd51b09440c828c5670cab895e23d92afed87a0a26751af94f4af0b4a3537f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(\u00270\u0027 \u003C= c \u0026\u0026 c \u003C= \u00279\u0027) || (\u0027a\u0027 \u003C= c \u0026\u0026 c \u003C= \u0027f\u0027) || (\u0027A\u0027 \u003C= c \u0026\u0026 c \u003C= \u0027F\u0027)\u0060 appears character-identically in 2 files \u2014 regex-lite/src/hir/parse.rs, regex-syntax/src/ast/parse.rs. 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a0c5d36d246af4b760da8b9e13bbe310b274b3e066bce34b82f2e24d8dbe70"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060at \u003C haystack.len() \u0026\u0026 utf8::is_word_byte(haystack[at])\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-lite/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1d93c8673c009107103f6ccc2d5c0590e7d55639ac75c95c3b59e47795dbf1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060at \u003E 0 \u0026\u0026 utf8::is_word_byte(haystack[at - 1])\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-lite/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d6d5f95a1263db04b56cd6daf8653cedbde193f3770912139f7c916fe447b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c == \u0027_\u0027 || c == \u0027.\u0027 || c == \u0027[\u0027 || c == \u0027]\u0027 || c.is_alphanumeric()\u0060 appears character-identically in 2 files \u2014 regex-lite/src/hir/parse.rs, regex-syntax/src/ast/parse.rs. 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95696e9519bf900b8cf50b212b36b4eb4370c66d5a935f82663d301be2c5d9d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060patset.is_full() || input.get_earliest()\u0060 appears character-identically in 3 files \u2014 regex-automata/src/dfa/automaton.rs, regex-automata/src/hybrid/dfa.rs, regex-automata/src/nfa/thompson/pikevm.rs. 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":"regex-automata/src/dfa/automaton.rs"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fdc79c4f1cecc45b523eb193dea5bc3100835ed38598725adfdc0b3d890ca3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.bump_and_bump_space() \u0026\u0026 self.char() != \u0027}\u0027\u0060 appears character-identically in 2 files \u2014 regex-lite/src/hir/parse.rs, regex-syntax/src/ast/parse.rs. 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a67921cdcc9f3181bc3f86bbb1035153f01c1d43d0d934dd42871f12c5f37fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.bump_and_bump_space() \u0026\u0026 self.char() == \u0027?\u0027\u0060 appears character-identically in 2 files \u2014 regex-lite/src/hir/parse.rs, regex-syntax/src/ast/parse.rs. 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23d24d785d976d054c297fea2b2d3707f5dca493e5055cfd9c0dc163b3c5a9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.bump_if(\u0022?=\u0022) || self.bump_if(\u0022?!\u0022) || self.bump_if(\u0022?\u003C=\u0022) || self.bump_if(\u0022?\u003C!\u0022)\u0060 appears character-identically in 2 files \u2014 regex-lite/src/hir/parse.rs, regex-syntax/src/ast/parse.rs. 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58df0fdbe5076224088493ac469dfa5f523afb40fad57c870d3594050c3e5f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.char() != \u0027-\u0027 || self.peek_space() == Some(\u0027]\u0027) || self.peek_space() == Some(\u0027-\u0027)\u0060 appears character-identically in 2 files \u2014 regex-lite/src/hir/parse.rs, regex-syntax/src/ast/parse.rs. 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"377d15891f0232939b6cd9317f63fd8375721bcc99c06fe879d4cc8fcc517527"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.char() != \u0027:\u0027 \u0026\u0026 self.char() != \u0027)\u0027\u0060 appears character-identically in 2 files \u2014 regex-lite/src/hir/parse.rs, regex-syntax/src/ast/parse.rs. 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":"regex-lite/src/hir/parse.rs"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12e267d5eb1989a71975c7e59bf03b1a577753a7b991242a2fc7c1ecfd533c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains(Look::Start) || self.contains(Look::End)\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf0cecfc21ad2fe01b685bad758715ddcea2ad814b174217e486f91a18ed5e8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains(Look::StartCRLF) || self.contains(Look::EndCRLF)\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"e905b89b41d52fdf5652a630f65128db9f2f0fd337aae18daa185de5c464684a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains(Look::StartLF) || self.contains(Look::EndLF)\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc111b999bfac7735544bcd8fb6f54277ec32b03a75b2cbdf94400b5f9ad2619"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains(Look::StartLF) || self.contains(Look::EndLF) || self.contains(Look::StartCRLF) || self.contains(Look::EndCRLF)\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"536b42e040312dcdf78fce6695a481eb2f908109acaf97ff27e98f0a0b68b9b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains(Look::WordAscii) || self.contains(Look::WordAsciiNegate) || self.contains(Look::WordStartAscii) || self.contains(Look::WordEnd\u2026\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0d4ecea5deec97bf57629cbdf0def629ff10cab8a07cc80c404e0b190a8e73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains(Look::WordUnicode) || self.contains(Look::WordUnicodeNegate) || self.contains(Look::WordStartUnicode) || self.contains(Look::W\u2026\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cbf034bf558ed8a033e243f5e902c04c1d0e42286741380c4ec730aa79c582"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains_anchor_haystack() || self.contains_anchor_line()\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8adda8f9ae8da567746d2ebae72140cbc299b19c0d74bea8bb5cf19445c45a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.contains_word_unicode() || self.contains_word_ascii()\u0060 appears character-identically in 2 files \u2014 regex-automata/src/util/look.rs, regex-syntax/src/hir/mod.rs. 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":"regex-automata/src/util/look.rs"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6414832a0679abb9861b4fa376970255dc488fad29acc2d5a73276459b67d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.get_nfa().has_empty() \u0026\u0026 self.get_nfa().is_utf8()\u0060 appears character-identically in 4 files \u2014 regex-automata/src/dfa/onepass.rs, regex-automata/src/hybrid/dfa.rs, regex-automata/src/nfa/thompson/backtrack.rs, regex-automata/src/nfa/thompson/pikevm.rs. 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":"regex-automata/src/dfa/onepass.rs"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd00eb6921ed5c120c97e572b87519a1b0c86d676e2eb8ee72253f13c80f155"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.get_unicode_word_boundary() \u0026\u0026 !byte.is_ascii() \u0026\u0026 !yes\u0060 appears character-identically in 2 files \u2014 regex-automata/src/dfa/dense.rs, regex-automata/src/hybrid/dfa.rs. 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":"regex-automata/src/dfa/dense.rs"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"5782199b5e88b1955d8d4cd0d0fcf5422e28834e321056933a193b06f62ad0e9"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-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-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"}]}],"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":22,"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."]}]}