Skip to content
check-square

GitHub Action

PHPCpdAction

v0.0.2 Latest version

PHPCpdAction

check-square

PHPCpdAction

Run your PHP Copy Paste Detector in your Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: PHPCpdAction

uses: J3-Tech/[email protected]

Learn more about this action in J3-Tech/PHPCpd-Action

Choose a version

PHPCpd-Action

Run PHP Copy-Paste Detector in Github actions

Run PHP copy-paste detector in Github Actions

Usage

name: CI

on: [push]

jobs:
  phpcpd:
    runs-on: ubuntu-latest
    name: PHP CPD
    steps:
    - uses: actions/checkout@v2
    - id: PHP-CPD
      uses: J3-Tech/[email protected]
      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