Skip to content
CakePHP Code Sniffer
PHP
Pull request Compare This branch is 335 commits behind master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Sniffs
tests
.gitignore
README.mdown
build.xml
ruleset.xml

README.mdown

CakePHP Code Sniffer

This code works with phpcs and checks code against the coding standards used in CakePHP.

Installation

Its generally recommended to install these code sniffs with the PEAR installer:

pear channel-discover pear.cakephp.org
pear install cakephp/CakePHP_CodeSniffer

Usage

After installation you can check code compliance to the standard using phpcs:

phpcs --standard=CakePHP /path/to/code

Releasing CakePHP Code Sniffer

  • Update version number in build.xml
  • Add changelog entry.
  • Commit changes.
  • Create git tag.
  • Run phing release
Something went wrong with that request. Please try again.