dokuwiki/_cs
Tim Ruffing 96e99986cc make PHP_CodeSniffer rules compatible with v2 2015-04-04 23:44:32 +02:00
..
DokuWiki make PHP_CodeSniffer rules compatible with v2 2015-04-04 23:44:32 +02:00
README PHP CodeSniffer Coding standard setup 2009-10-18 19:20:36 +02:00

README

This directory contains the Coding Standard tests to be used with PHP
CodeSniffer on DokuWiki's code.

1. Install PHP CodeSniffer:

  #> pear install PHP_CodeSniffer

2. Link the Coding Standard to the CodeSniffer directory:

  #> ln -s /path/to/dokuwiki/_cs/DokuWiki /usr/share/pear/PHP/CodeSniffer/Standards/DokuWiki

3. Set DokuWiki to be the default standard:

  #> phpcs --config-set default_standard DokuWiki



The coding standard is work in progress.