oefenweb / cakephp-xss-codesniffer
Oefenweb Code Sniffer for CakePHP XSS
Installs: 9 619
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.16
- wp-coding-standards/wpcs: ~0.9
This package is auto-updated.
Last update: 2024-10-23 12:51:14 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 CakePHPXSSOefenweb && cd $_ && composer require oefenweb/cakephp-xss-codesniffer=^2.0.0;
vendor/bin/phpcs \ --config-set installed_paths "${PWD}/vendor/wp-coding-standards/wpcs,${PWD}/vendor/oefenweb/cakephp-xss-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=CakePHPXSSOefenweb --extensions=ctp app/View/Pages;