Skip to content

Commit

Permalink
Make it a two step process
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Feb 10, 2019
1 parent e869249 commit 3e6fae1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ Automatically check for Envato [WordPress plugin](https://help.author.envato.com

## Setup

Add these coding stanandards as a [Composer development dependency](https://packagist.org/packages/wpsh/wpcs-for-envato) to your project:
1. Add these coding stanandards as a [Composer development dependency](https://packagist.org/packages/wpsh/wpcs-for-envato) to your project:

```bash
composer require --dev wpsh/wpcs-for-envato
```
```bash
composer require --dev wpsh/wpcs-for-envato
```

Define a script in `composer.json` to run the checks:
2. Define a script in `composer.json` to run the checks:

```json
{
"scripts": {
"cs": "vendor/bin/phpcs --standard=WPCSForEnvato --extensions=php",
"csfix": "vendor/bin/phpcbf --standard=WPCSForEnvato --extensions=php"
```json
{
"scripts": {
"cs": "vendor/bin/phpcs --standard=WPCSForEnvato --extensions=php",
"csfix": "vendor/bin/phpcbf --standard=WPCSForEnvato --extensions=php"
}
}
}
```
```

Use `composer cs` to run the coding standard checks and `composer csfix` to automatically fix some of the coding standard violations.
Use `composer cs` to run the coding standard checks and `composer csfix` to automatically fix some of the coding standard violations.


## Configuration
Expand Down

0 comments on commit 3e6fae1

Please sign in to comment.