Linux command
phpmd 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Check for issues
phpmd [src/] text [cleancode,codesize]
Generate HTML report
phpmd [src/] html [rulesets] --reportfile [report.html]
Use ruleset file
phpmd [src/] text [phpmd.xml]
Exclude directory
phpmd [src/] text [rulesets] --exclude [vendor]
说明
phpmd is PHP Mess Detector. Finds potential problems in code. The tool detects code smells. Complexity and design issues.
参数
- --reportfile _FILE_
- Output file.
- --exclude _PATTERN_
- Exclude pattern.
- --help
- Display help.
FAQ
What is the phpmd command used for?
phpmd is PHP Mess Detector. Finds potential problems in code. The tool detects code smells. Complexity and design issues.
How do I run a basic phpmd example?
Run `phpmd [src/] text [cleancode,codesize]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --reportfile _FILE_ do in phpmd?
Output file.