|
1 |
| -# MO4 CodeSniffer ruleset <a href="https://travis-ci.org/mayflower/mo4-coding-standard/"><img src="https://secure.travis-ci.org/mayflower/mo4-coding-standard.png?branch=master"></a> |
| 1 | +# MO4 CodeSniffer ruleset |
| 2 | + |
| 3 | +Provides a PHP CodeSniffer ruleset for the MO4 coding standard |
2 | 4 |
|
3 |
| -Provides a CodeSniffer ruleset |
| 5 | +[](https://travis-ci.org/mayflower/mo4-coding-standard) |
4 | 6 |
|
5 |
| -* MO4 standard |
| 7 | +[](https://packagist.org/packages/mayflower/mo4-coding-standard) |
| 8 | +[](https://packagist.org/packages/mayflower/mo4-coding-standard) |
| 9 | +[](https://packagist.org/packages/mayflower/mo4-coding-standard) |
| 10 | +[](https://packagist.org/packages/mayflower/mo4-coding-standard) |
| 11 | +[](https://packagist.org/packages/mayflower/mo4-coding-standard) |
6 | 12 |
|
7 |
| -Requires |
| 13 | + |
| 14 | +## Requires |
8 | 15 |
|
9 | 16 | * [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)
|
10 | 17 | * [Symfony Coding Standard](https://github.com/djoos/Symfony-coding-standard)
|
@@ -69,23 +76,15 @@ Possible values for order:
|
69 | 76 |
|
70 | 77 | Using [Composer](https://getcomposer.org/) is the preferred way.
|
71 | 78 |
|
72 |
| -1. Add the MO4 repository |
73 |
| - |
74 |
| - composer config repositories.mo4 vcs https://github.com/mayflower/mo4-coding-standard.git |
75 |
| - |
76 |
| - If composer complains about a missing composer.json, just create an empty one |
77 |
| - |
78 |
| - echo '{}' > composer.json |
79 |
| - |
80 |
| -2. Add the MO4 coding standard to `composer.json` |
| 79 | +1. Add the MO4 coding standard to `composer.json` |
81 | 80 |
|
82 | 81 | composer require --dev mayflower/mo4-coding-standard:dev-master
|
83 | 82 |
|
84 |
| -3. Profit |
| 83 | +2. Profit |
85 | 84 |
|
86 | 85 | ./vendor/bin/phpcs --standard=MO4 path/to/my/file.php
|
87 | 86 |
|
88 |
| -4. Optionally, you might set MO4 as default coding standard |
| 87 | +3. Optionally, you might set MO4 as default coding standard |
89 | 88 |
|
90 | 89 | ./vendor/bin/phpcs --config-set default_standard MO4
|
91 | 90 |
|
|
0 commit comments