CodeSniffer standard for SuiteCRM Coding Style

Hi all,

I’ve created a code standard to use with PHP Code Sniffer, according to the info in the Coding Standars page of the SuiteCRM github wiki.

The code standard is available at this repository. Right now, this standard is just a ruleset.xml file. To use it, simply copy it to a folder in your system that PHP Code Sniffer has access to, and run:

php phpcs.phar --standard=/path/to/some/folder file_or_folder_to_check.php

It’s still in early development, but maybe it will be useful. Fell free to try, fork, change, whatever…


Awesome. Thanks for the contribution.