phpmd
PHP mess detector: check for common potential problems. More information: https://github.com/phpmd/phpmd#command-line-options.
- Display a list of available rulesets and formats:
phpmd
- Scan a file or directory for problems using comma-separated rulesets:
phpmd
- Specify the minimum priority threshold for rules:
phpmd --minimumpriority
- Include only the specified extensions in analysis:
phpmd --suffixes
- Exclude the specified comma-separated directories:
phpmd --exclude
- Output the results to a file instead of
stdout:
phpmd --reportfile
- Ignore the use of warning-suppressive PHPDoc comments:
phpmd --strict
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
