phpmd

phpmd

TLDR

Display a list of available rulesets and formats

>_ phpmd
copy

Scan a file or directory for problems using comma-separated rulesets

>_ phpmd [path/to/file_or_directory] [xml|text|html] [rulesets]
copy

Specify the minimum priority threshold for rules

>_ phpmd [path/to/file_or_directory] [xml|text|html] [rulesets] --minimumpriority [priority]
copy

Include only the specified extensions in analysis

>_ phpmd [path/to/file_or_directory] [xml|text|html] [rulesets] --suffixes [extensions]
copy

Exclude the specified comma-separated directories

>_ phpmd [path/to/file_or_directory] [xml|text|html] [rulesets] --exclude [directory_patterns]
copy

Output the results to a file instead of stdout

>_ phpmd [path/to/file_or_directory] [xml|text|html] [rulesets] --reportfile [path/to/report_file]
copy

Ignore the use of warning-suppressive PHPDoc comments

>_ phpmd [path/to/file_or_directory] [xml|text|html] [rulesets] --strict
copy

Copied to clipboard
free 100$ digital ocean credit