oefenweb / wordpress-codesniffer
Oefenweb Code Sniffer for Wordpress
v1.0.1
2016-08-15 11:34 UTC
Requires
- php: >=5.4.16
- wp-coding-standards/wpcs: ~0.9
This package is auto-updated.
Last update: 2024-12-15 22:19:22 UTC
README
This code works with phpcs and checks code against the coding standards used at Oefenweb.
Installation
It's generally recommended to install these code sniffs with composer
:
mkdir WordpressOefenweb && cd $_ && composer require oefenweb/wordpress-codesniffer=dev-master;
vendor/bin/phpcs \ --config-set installed_paths "${PWD}/vendor/wp-coding-standards/wpcs,${PWD}/vendor/oefenweb/wordpress-codesniffer" \ ;
This lets phpcs
know where to find your new sniffs. Ensure that you do not overwrite any existing installed_paths
value.
Usage
vendor/bin/phpcs --standard=WordpressOefenweb ~/foo/bar/wp-load.php;