https://github.com/zgldh/phpcs-base-ruleset
A PHP CodeSniffer basic ruleset for my projects
https://github.com/zgldh/phpcs-base-ruleset
Last synced: about 1 month ago
JSON representation
A PHP CodeSniffer basic ruleset for my projects
- Host: GitHub
- URL: https://github.com/zgldh/phpcs-base-ruleset
- Owner: zgldh
- License: mit
- Created: 2018-12-29T06:55:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-30T20:06:37.000Z (over 7 years ago)
- Last Synced: 2025-01-25T19:30:33.561Z (over 1 year ago)
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpcs-base-ruleset
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.