junggikim/cpd-diff
Fail only on code duplication introduced by a pull request
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| engine | Detection engine, jscpd or pmd | yes | — |
| language | Engine language identifier | yes | — |
| base | Base commit; defaults to the pull request base SHA | no | — |
| head | Head commit | — | HEAD |
| mode | changed-files or changed-lines | — | changed-files |
| minimum-tokens | Minimum duplicated token count | — | 100 |
| minimum-lines | Minimum duplicated line count for jscpd | — | 5 |
| timeout-milliseconds | Engine process timeout | — | 120000 |
| include | Newline-delimited include globs | no | — |
| exclude | Newline-delimited exclude globs | no | — |
| extension | Newline-delimited file extensions | no | — |
| warn-only | Report violations without failing | — | false |
Outputs
| name | description |
|---|---|
| violation-count | Number of new duplication violations |
| json-path | Absolute path to the JSON report |
| sarif-path | Absolute path to the SARIF report |