Forrest logo
back to context overview

phpmd

List of commands for phpmd:

  • phpmd:help phpmd: Display a list of available rulesets and formats.
    $ phpmd
    try on your machine
    explain this command
  • phpmd:tldr:0302d phpmd: Include only the specified extensions in analysis.
    $ phpmd ${filename_or_directory} ${xml|text|html} ${rulesets} --suffixes ${extensions}
    try on your machine
    explain this command
  • phpmd:tldr:033b7 phpmd: Exclude the specified comma-separated directories.
    $ phpmd ${filename_or_directory} ${xml|text|html} ${rulesets} --exclude ${directory_patterns}
    try on your machine
    explain this command
  • phpmd:tldr:1e85e phpmd: Specify the minimum priority threshold for rules.
    $ phpmd ${filename_or_directory} ${xml|text|html} ${rulesets} --minimumpriority ${priority}
    try on your machine
    explain this command
  • phpmd:tldr:23f4e phpmd: Ignore the use of warning-suppressive PHPDoc comments.
    $ phpmd ${filename_or_directory} ${xml|text|html} ${rulesets} --strict
    try on your machine
    explain this command
  • phpmd:tldr:6c1fb phpmd: Scan a file or directory for problems using comma-separated rulesets.
    $ phpmd ${filename_or_directory} ${xml|text|html} ${rulesets}
    try on your machine
    explain this command
  • phpmd:tldr:f767d phpmd: Output the results to a file instead of `stdout`.
    $ phpmd ${filename_or_directory} ${xml|text|html} ${rulesets} --reportfile ${path-to-report_file}
    try on your machine
    explain this command
back to context overview