library coding-standards
Coding standard definition files used by outer/edge.
outeredge/coding-standards
Coding standard definition files used by outer/edge.
- Friday, August 4, 2017
- by outeredge
- Repository
- 1 Watchers
- 0 Stars
- 457 Installations
- 16 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 2 % Grown
outer/edge Coding Standards
This repository contains the coding standards used by outer/edge with rules for:, (*1)
Install
composer require --dev outeredge/dev-dependencies
, (*2)
Then you can add the outer/edge coding standard to your phpcs.xml, i.e. for Magento 2:, (*3)
<?xml version="1.0"?>
<ruleset>
...
<rule ref="vendor/outeredge/dev-dependencies/phpcs-magento.xml" />
<file>app/code/...</file>
<file>app/design/frontend/...</file>
...
</ruleset>
</xml>
Running PHPCS tests
$ phpcs
, (*4)
Running PHPCS code fixer
$ phpcbf
, (*5)