Skip to content

A set of PHPCS rules used by made.com when hacking Magento

Notifications You must be signed in to change notification settings

gruenspar/phpcs-magento-rules

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Made.com PHPCS Magento Rules

A set of PHPCS rules used by made.com when hacking Magento.

Pre-Requisites

Installation

Short Version

Clone this repository into your PHPCS Standards directory, using the directory name of Made

Long Version

You need to know the directory of your PHPCS install, you can do this by opening a command prompt and typing in the following:

pear list-files PHP_CodeSniffer

You should see a load of lines looking like this:

php    /usr/share/php/PHP/CodeSniffer/Reporting.php
php    /usr/share/php/PHP/CodeSniffer/Sniff.php
php    /usr/share/php/PHP/CodeSniffer/Tokens.php

So the PHPCS directory in this case is /usr/share/php/PHP/CodeSniffer/, which means we need to clone this repository into the Standards/Made subdirectory like so:

git clone https://github.com/madedotcom/phpcs-magento-rules /usr/share/php/PHP/CodeSniffer/Standards/Made

You can check the standard got installed by running phpcs -i which should show you something like this:

The installed coding standards are MySource, Squiz, Zend, PHPCS, Made and PEAR

About

A set of PHPCS rules used by made.com when hacking Magento

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%