arthurmor4is/Duplicate Logic Detector

Automatically detect duplicate logic in Python code.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github-tokenGitHub token for API accessyes${{ github.token }}
pr-numberPull request numberno${{ github.event.number }}
repositoryRepository name (owner/repo)no${{ github.repository }}
base-refBase reference for comparisonno${{ github.base_ref }}
head-refHead reference for comparisonno${{ github.head_ref }}
post-commentWhether to post findings as PR commentnotrue
fail-on-duplicatesWhether to fail the action if high-confidence duplicates are foundnofalse
similarity-methodSimilarity method to use for duplicate detection (jaccard_tokens, sequence_matcher, levenshtein_norm)nojaccard_tokens
global-thresholdGlobal similarity threshold (0.0-1.0). Functions with similarity above this are considered duplicatesno0.7
folder-thresholdsPer-folder thresholds as JSON (e.g., {"src/shared": 0.1, "src/tests": 0.9}). Overrides global threshold for specific foldersno{}
namedescription
duplicates-foundWhether any duplicates were found
match-countNumber of duplicate matches found
report-pathPath to the generated report file