Skip to content

Oefenweb/cakephp-xss-codesniffer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oefenweb Code Sniffer for CakePHP 2 (XSS)

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;

About

Modified version of the CakePHP Code Sniffer (XSS)

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors