zgldh/phpcs-base-ruleset

The PHP_CodeSniffer ruleset for my projects

v0.0.12 2018-12-30 20:05 UTC

This package is auto-updated.

Last update: 2024-11-29 05:44:52 UTC


README

A PHP CodeSniffer basic ruleset for my projects

Usage

  1. composer require zgldh/phpcs-base-ruleset
  2. cp vendor/zgldh/phpcs-base-ruleset/ruleset.template.xml ./ruleset.xml
  3. vendor/bin/phpcs --standard=ruleset.xml

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