wiesnerbernard/PolyDup Code Duplicate Detector

Detect duplicate code across multiple languages in your Pull Requests

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
thresholdMinimum code block size in tokens (default: 50)no50
similaritySimilarity threshold between 0.0 and 1.0 (default: 0.85)no0.85
fail-on-duplicatesFail the check if duplicates are found (default: true)notrue
formatOutput format: text or json (default: text)notext
base-refBase git reference for comparison (default: auto-detect from PR)no""
github-tokenGitHub token for commenting on PRs (default: github.token)no${{ github.token }}
comment-on-prPost results as PR comment (default: true)notrue
polydup-versionVersion of polydup to install (default: latest)nolatest
working-directoryWorking directory for scanning (default: .)no.
scan-modeScan mode: git-diff (changed files with cached hash lookup) or full (all files)nogit-diff
namedescription
duplicates-foundNumber of duplicate code blocks found
files-scannedNumber of files scanned
exit-codeExit code from polydup scan (0 = no duplicates, 1 = duplicates found, 2 = error)