DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:coding_style

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
devel:coding_style [2019-01-06 10:21]
LarsDW223 [Coding Style]: added remark about PSR2
devel:coding_style [2019-01-07 20:30] (current)
phy25 [Checking for Coding Style Violations] Add 3.x standards path
Line 73: Line 73:
 Link the DokuWiki coding standard to the CodeSniffer directory.  You may need to adjust the paths depending upon your operating system. Link the DokuWiki coding standard to the CodeSniffer directory.  You may need to adjust the paths depending upon your operating system.
  
 +    # PHP_CodeSniffer Version 2.x
     ln -s /path/to/dokuwiki/_cs/DokuWiki /usr/share/pear/PHP/CodeSniffer/Standards/DokuWiki     ln -s /path/to/dokuwiki/_cs/DokuWiki /usr/share/pear/PHP/CodeSniffer/Standards/DokuWiki
 +    
 +    # PHP_CodeSniffer Version 3.x
 +    ln -s /path/to/dokuwiki/_cs/DokuWiki /usr/share/pear/PHP/CodeSniffer/src/Standards/DokuWiki
  
 Set DokuWiki to be the default standard. Set DokuWiki to be the default standard.
devel/coding_style.txt ยท Last modified: 2019-01-07 20:30 by phy25