Name: magento-coding-standard
Owner: AOE
Description: Magento PHP_CodeSniffer Coding Standard
Created: 2015-01-15 11:55:22.0
Updated: 2017-01-30 12:15:08.0
Pushed: 2016-07-29 09:10:42.0
Size: 77
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a Fork of https://github.com/magento-ecg/coding-standard
ECG Magento Code Sniffer Coding Standard is a set of rules and sniffs for PHP_CodeSniffer tool.
It allows automatically check your code against some of the common Magento and PHP coding issues, like:
and many others.
Before starting using our coding standard install PHP_CodeSniffer.
Clone or download this repo somewhere on your computer or install it with Composer.
To do so, add the dependency to your composer.json
file and run the php composer.phar install
command:
equire": {
"aoepeople/magento-coding-standard": "dev-master"
Run CodeSniffer:
s --standard=/path/to/Ecg/standard /path/to/code
PHP 5.4 and up.
Checkout the php-5.3-compatible
branch to get the PHP 5.3 version.
Please feel free to contribute new sniffs or any fixes or improvements for the existing ones.