devel/superdiff - The NetBSD Packages Collection

Find duplicate code blocks in a file

Are you working to eliminate similar/duplicate code from your files?

Do you have a suspicion that chunks of code are copy-pasted, but are slightly
different s.t. normal diff methods don't work?

Are you tired of visually going through and inspecting your code for repeating
chunks?

If so, this might be the tool for you!

Features
- Finds duplicate code slices
- Finds similar-enough code slices
- JSON reporting for jq integeration
- Fast enough (00:03:39 for a 17k LOC with block size 10 and Levenshtein
  threshold 10)
- Can check for duplicate code across multiple files
- Vim integration!

Limitations
- Not instantaneous for large files
- Single-threaded

Build dependencies

lang/rust pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

(none)

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64superdiff-2.2.0.tgz
NetBSD 10.0aarch64superdiff-2.2.0.tgz
NetBSD 10.0aarch64superdiff-2.2.0.tgz
NetBSD 10.0earmv7hfsuperdiff-2.2.0.tgz
NetBSD 10.0earmv7hfsuperdiff-2.2.0.tgz
NetBSD 10.0earmv7hfsuperdiff-2.2.0.tgz
NetBSD 10.0i386superdiff-2.2.0.tgz
NetBSD 10.0i386superdiff-2.2.0.tgz
NetBSD 10.0powerpcsuperdiff-2.2.0.tgz
NetBSD 10.0x86_64superdiff-2.2.0.tgz
NetBSD 10.0_BETAx86_64superdiff-2.2.0.tgz
NetBSD 8.0powerpcsuperdiff-2.2.0.tgz
NetBSD 8.0powerpcsuperdiff-2.2.0.tgz
NetBSD 8.0powerpcsuperdiff-2.2.0.tgz
NetBSD 9.0aarch64superdiff-2.2.0.tgz
NetBSD 9.0aarch64superdiff-2.2.0.tgz
NetBSD 9.0aarch64superdiff-2.2.0.tgz
NetBSD 9.0earmv7hfsuperdiff-2.2.0.tgz
NetBSD 9.0earmv7hfsuperdiff-2.2.0.tgz
NetBSD 9.0earmv7hfsuperdiff-2.2.0.tgz
NetBSD 9.0i386superdiff-2.2.0.tgz
NetBSD 9.0i386superdiff-2.2.0.tgz
NetBSD 9.0powerpcsuperdiff-2.2.0.tgz
NetBSD 9.0powerpcsuperdiff-2.2.0.tgz
NetBSD 9.0powerpcsuperdiff-2.2.0.tgz
NetBSD 9.0sparc64superdiff-2.2.0.tgz
NetBSD 9.0x86_64superdiff-2.2.0.tgz
NetBSD 9.0x86_64superdiff-2.2.0.tgz
NetBSD 9.3x86_64superdiff-2.2.0.tgz
NetBSD 9.3x86_64superdiff-2.2.0.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.