arthurmor4is/Duplicate Logic Detector
Automatically detect duplicate logic in Python code.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token for API access | yes | ${{ github.token }} |
| pr-number | Pull request number | no | ${{ github.event.number }} |
| repository | Repository name (owner/repo) | no | ${{ github.repository }} |
| base-ref | Base reference for comparison | no | ${{ github.base_ref }} |
| head-ref | Head reference for comparison | no | ${{ github.head_ref }} |
| post-comment | Whether to post findings as PR comment | no | true |
| fail-on-duplicates | Whether to fail the action if high-confidence duplicates are found | no | false |
| similarity-method | Similarity method to use for duplicate detection (jaccard_tokens, sequence_matcher, levenshtein_norm) | no | jaccard_tokens |
| global-threshold | Global similarity threshold (0.0-1.0). Functions with similarity above this are considered duplicates | no | 0.7 |
| folder-thresholds | Per-folder thresholds as JSON (e.g., {"src/shared": 0.1, "src/tests": 0.9}). Overrides global threshold for specific folders | no | {} |
Outputs
| name | description |
|---|---|
| duplicates-found | Whether any duplicates were found |
| match-count | Number of duplicate matches found |
| report-path | Path to the generated report file |