samwilson / piwigo-coding-standards
Piwigo coding standards ruleset for phpcs.
0.1.1
2019-08-23 01:19 UTC
Requires
This package is auto-updated.
Last update: 2024-12-23 13:41:22 UTC
README
This is a PHP Code Sniffer (phpcs) ruleset for enforcing the coding standards of Piwigo.
- Author: Sam Wilson
- Homepage: https://github.com/samwilson/piwigo-coding-standards
- Packagist: https://packagist.org/packages/samwilson/piwigo-coding-standards
- License: GPL 3.0 or later, first published 2019
Installation
composer require --dev samwilson/piwigo-coding-standards
Usage
Create a .phpcs.xml
file such as the following:
<?xml version="1.0"?> <ruleset> <rule ref="vendor/samwilson/piwigo-coding-standards/Piwigo/ruleset.xml" /> <file>.</file> <exclude-pattern>./vendor</exclude-pattern> </ruleset>
Then run:
./vendor/bin/phpcs