Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CakePHP Code Sniffer
PHP

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Sniffs
.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.