Extract shared logic from run() and run_watch() #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium
crates/presentation/src/lib.rslines 64-92 (run()) and lines 346-373 (therun_onceclosure insiderun_watch()) are nearly identical: load config, build graph, create renderer, parse rules, executeGenerateDiagram, write output, report violations.This is copy-paste code. Extract a shared function.