wikidi/codesniffer

v2.0.4 2015-11-12 10:52 UTC

README

Our custom PHP codesniffer rules

Examples

Using custom our short custom report:

vendor/bin/phpcs --standard=standard/Wikidi/ruleset.xml --extensions=php \
--encoding=utf-8 -n tests/Wikidi/ok/ --report=reports/wikidi/Summary.php --colors

Default ussage

vendor/bin/phpcs --standard=standard/Wikidi/ruleset.xml --extensions=php \
--encoding=utf-8 -n src --colors

Testing code

Run commands

Checking if everything is wrong :-)

vendor/bin/phpcs --standard=standard/Wikidi/ruleset.xml \
--extensions=php --encoding=utf-8 -n tests/Wikidi/errors

Checking if everything is OK

vendor/bin/phpcs --standard=standard/Wikidi/ruleset.xml \
--extensions=php --encoding=utf-8 -n tests/Wikidi/ok