-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ashoka de Wit
committed
Mar 14, 2017
1 parent
60c85be
commit bdc4bb4
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Introduction | ||
|
||
This is the MediaCT coding standard for Magento 1 projects. It is a mix of the | ||
default MediaCT coding standard and the Magento marketplace standard. | ||
|
||
Some tests have been removed from both of the standards to create a workable | ||
and fast standard. | ||
|
||
# Installation | ||
|
||
Use composer to require the standard in a project. | ||
|
||
```shell | ||
$ composer require --dev mediact/coding-standard-magento1 | ||
``` | ||
|
||
To let PHPCS know that this standard should be used add a phpcs.xml file in the | ||
root of the project. | ||
|
||
```xml | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<rule ref="./vendor/mediact/coding-standard-magento1/src/MediactMagento1"/> | ||
</ruleset> | ||
``` | ||
|
||
# Integration with PHPStorm | ||
|
||
When the phpcs.xml file exists it will be automatically configured by | ||
`media/coding-standard-phpstorm`. This is triggered by the composer command. | ||
|
||
```shell | ||
$ composer install | ||
``` | ||
|
||
# Contribution guidelines | ||
|
||
Contributions are welcome. Please create pull requests which add or remove | ||
tests. |