zgldh/phpmd-base-ruleset

The PHPMD ruleset for my projects

v0.0.3 2019-01-04 05:40 UTC

This package is auto-updated.

Last update: 2024-11-04 18:09:09 UTC


README

PHPMD base ruleset

Usage

  1. composer require zgldh/phpmd-base-ruleset
  2. cp vendor/zgldh/phpmd-base-ruleset/ruleset.template.xml ./phpmd_ruleset.xml
  3. vendor/bin/phpmd ./ xml phpmd_ruleset.xml --suffixes php --reportfile phpmd_report.xml

You can integrate PHPMD into Jenkins or other CI/CD tools.