dry-refactoring Guided workflow to eliminate copy-paste duplication in source code. Use after running jscpd to detect clones. Prerequisites First, run jscpd to identify duplications: In codebases that mix related formats (e.g. JavaScript and TypeScript), add so clones spanning both are detected too: On larger codebases, add to get a refactoring-hotspot overview alongside the clone list — top files and folders with a column showing how much of each file is duplicated: The default scan reports only exact copies, and those are the ones to refactor first: an exact clone is almost always a real co…