AOEpeople/magento-coding-standard

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

Homepage:

Size: 77

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ECG Magento Code Sniffer Coding Standard

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.

Installation & Usage

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

Requirements

PHP 5.4 and up.

Checkout the php-5.3-compatible branch to get the PHP 5.3 version.

Contribution

Please feel free to contribute new sniffs or any fixes or improvements for the existing ones.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.