CakePHP Code Sniffer
PHP
Switch branches/tags
Pull request Compare This branch is 53 commits ahead of predominant:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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