What does it do?
treepeat scans a codebase and uses tree-sitter syntax tree analysis and locality-sensitive hashing to find similar or duplicate code blocks. Users can view the rule list and see which rules apply to each language. To inspect a similarity judgment, they can view the original code beside its normalized token representation. The original description lists multiple languages but says the project is still a proof of concept with limited language support.
Key features
- Searches for similar code using syntax trees and locality-sensitive hashing
- Shows the rule list and rules applied by language
- Shows original code and normalized tokens side by side
- Shows scan progress on the command line