oefenweb / cakephp-codesniffer
Oefenweb Code Sniffer for CakePHP 2
Installs: 27 401
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 2
Requires
- php: >=5.4
- cakephp/cakephp-codesniffer: ^3.0.0
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 CakePHPOefenweb && cd $_ && composer require oefenweb/cakephp-codesniffer=^2.0.0;
vendor/bin/phpcs \ --config-set installed_paths "${PWD}/vendor/cakephp/cakephp-codesniffer,${PWD}/vendor/oefenweb/cakephp-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=CakePHPOefenweb ~/foo/bar/index.php;