DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Show HN: Code similarity detection using Tree-sitter

Quality: 7/10 Relevance: 9/10

Summary

Show HN: Code similarity detection using Tree-sitter introduces treepeat, a proof-of-concept tool that detects duplicate and related code blocks by deriving Tree-sitter AST representations and applying locality-sensitive hashing. It supports multiple languages, offers exact duplicates, near-duplicates, and structurally similar matches, and provides CLI options for customization and CI-friendly output. The repo invites contributions and includes installation and usage instructions.

🚀 Service construit par Johan Denoyer