phpcpd1
Phpcpd command line interface
Usage
phpcpd [options]
<directory>
Overview
Copy and paste detector (CPD) for PHP code. This tool provides details about duplicated lines inside a PHP project.
Options for selecting files:
--suffix<suffix> Include files with names ending in <suffix> in the analysis-
(default: .php; can be given multiple times)
-
--exclude <path> -
Exclude files with <path> in their path from the analysis (can be given multiple times)
Options for analysing files:
-
--fuzzy -
Fuzz variable names
-
--min-lines <N> -
Minimum number of identical lines (default: 5)
-
--min-tokens <N> -
Minimum number of identical tokens (default: 70)
Options for report generation:
-
--log-pmd <file> -
Write log in PMD-CPD XML format to <file>
Releases
5 releases since Debian 8 (Jessie); the text changed 4 times.
--ansi until Debian 10 (Buster);
--help until Debian 10 (Buster);
--names until Debian 10 (Buster);
--names-exclude until Debian 10 (Buster);
--no-ansi until Debian 10 (Buster);
--no-interaction until Debian 10 (Buster);
--progress until Debian 10 (Buster);
--quiet until Debian 10 (Buster);
--regexps-exclude until Debian 10 (Buster);
--version until Debian 10 (Buster);
-V until Debian 10 (Buster);
-h until Debian 10 (Buster);
-n until Debian 10 (Buster);
-q until Debian 10 (Buster).