Repository navigation
Commit f5fabfb
committed
refactor(dedup): reduce code duplication from 97 to 10 groups
Eliminated 89 duplicate groups (-2807 lines) across 4 parallel fixer batches:
- Centralized VulnerabilityFinding construction and inline blocks
- Extracted shared test helpers (create_test_finding, create_test_config, fixtures)
- Consolidated internal duplicates in llm.rs, llm_metrics.rs, tickets/, indexer.rs, agent/executor.rs, root_cause_dedup.rs, phase/helpers.rs
- Removed production<->test mirror groups where safe
CI gate: fmt clean, clippy clean, 2395 tests pass.
Final state: 10 groups / 631 lines (0.6%) — meets ≤10 target.1 parent 6b7fa1b commit f5fabfb
58 files changed
Lines changed: 1259 additions & 1540 deletions
File tree
- src
- agent
- phase
- scanner
- semgrep
- tickets
- tests
- integration
- unit
- phase
- semgrep
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
188 | 210 | | |
189 | 211 | | |
190 | 212 | | |
| |||
271 | 293 | | |
272 | 294 | | |
273 | 295 | | |
274 | | - | |
| 296 | + | |
275 | 297 | | |
276 | 298 | | |
277 | 299 | | |
278 | 300 | | |
279 | 301 | | |
280 | 302 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 303 | + | |
286 | 304 | | |
287 | 305 | | |
288 | 306 | | |
| |||
560 | 578 | | |
561 | 579 | | |
562 | 580 | | |
563 | | - | |
| 581 | + | |
564 | 582 | | |
565 | 583 | | |
566 | 584 | | |
567 | 585 | | |
568 | 586 | | |
569 | 587 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
| 588 | + | |
575 | 589 | | |
576 | 590 | | |
577 | 591 | | |
| |||
0 commit comments