No AI summary available for this article.
Why It Matters
treepeat is a tool that finds similarities in your codebase.
Provenance
Discovered via Hacker News and published by GitHub.
Key Claims
Original description
treepeat is a tool that finds similarities in your codebase. Find duplicate code blocks meaningful to the language (classes/functions), not just lines. Find near-duplicates: ignore whitespace, strings, high level AST nodes such as function and names. Find structurally similar code: anonymize identifiers, constants, etc. Pull requests welcome: This is very much an proof of concept - I'm happy with it, but I haven't supported very many languages at present. Languages supported: astro, bash, css, go, html, javascript, lua, markdown (plus codeblocks), python, sql, typescript, java, kotlin, ru...
Discovered via Hacker News
Community-ranked links and discussion from the HN front page.
Publisher: github.com
ID: 49804359 · Indexed 1 day ago