./devel/superdiff, Find duplicate code blocks in a file

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.2.0, Package name: superdiff-2.2.0, Maintainer: pkgsrc-users

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


Master sites:

Filesize: 27.786 KB

Version history: (Expand)


CVS history: (Expand)


   2023-03-03 15:26:04 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/superdiff: update to 2.2.0

No ChageLog provided.
   2023-01-21 12:41:07 by pin | Files touched by this commit (3) | Package updated
Log message:
devel/superdiff: update to 2.1.2

 - cleanup: extract matches update into separate function
 - fix: merge groups if they match
 - feat: rm itertools from deps
 - feat: rm dash for files coming from stdin
   2023-01-02 14:43:29 by pin | Files touched by this commit (2) | Package updated
Log message:
devel/superdiff: update to 2.1.1

2.1.1
 - feat: rm dash for files coming from stdin

2.1.0
 - docs: change in-the-works and console output example
 - feat: add more info to json output
 - fix: line duplicate checking
 - feat: vim plugin skelly
 - feat: add local and non-local buffer superdiff querying
 - feat: add syn highlighting for matches
 - fix: global var spelling mistake
 - fix: add feedback when no matches are found
 - feat: increase verbosity of finding local matches
 - add vimdocs to plugin
 - fix: update readme verbosity disinformation
 - docs: update readme with vim integration
 - refactor: use exposed lib instead of module defs
 - feat: set default trait for ReportingMode
 - refactor: use From trait for certain type conversions
 - feat: fix lev early leave upper/lower bounds
 - feat: add fn to truncate paths
 - docs: add flamegraph observations
 - feat: optimize making char vec with preallocated mem
   2022-12-29 09:07:22 by pin | Files touched by this commit (5)
Log message:
devel/superdiff: import package

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