https://github.com/j3-tech/phpcpd-action
Run PHP Copy-Paste Detector in Github actions
https://github.com/j3-tech/phpcpd-action
Last synced: 1 day ago
JSON representation
Run PHP Copy-Paste Detector in Github actions
- Host: GitHub
- URL: https://github.com/j3-tech/phpcpd-action
- Owner: J3-Tech
- License: mit
- Created: 2023-03-30T10:21:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-30T11:05:50.000Z (over 3 years ago)
- Last Synced: 2025-03-21T05:33:06.501Z (over 1 year ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPCpd-Action
Run PHP Copy-Paste Detector in Github actions
# Run [PHP copy-paste detector](https://github.com/sebastianbergmann/phpcpd) in Github Actions
Usage
-----
```yaml
name: CI
on: [push]
jobs:
phpcpd:
runs-on: ubuntu-latest
name: PHP CPD
steps:
- uses: actions/checkout@v2
- id: PHP-CPD
uses: J3-Tech/PHPCpd-Action@v0.0.2
with:
path: .
exclude: vendor
```
Inputs
------
The following configuration options are available:
+ `path` - A php source code filename or directory. Can be a comma-separated string
+ `exclude` - comma-separated string of patterns that are used to ignore directories.
+ `minLines` - Minimum number of identical lines
+ `minTokens` - Minimum number of identical tokens