Skip to content

Commit

Permalink
Fixes #4 how to add custom standard
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Jun 13, 2020
1 parent 0d95f0d commit a4f76c9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ the root of your project.

## Usage


### Basic
```bash
$ docker run --rm -v $(pwd):/data cytopia/phpcs .

Expand All @@ -114,6 +114,21 @@ PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
```

### Custom standard
Custom standards must be mounted inside the container to `/usr/bin/CodeSniffer.conf `
```bash
# Via command line
$ docker run --rm -v $(pwd):/data -v CodeSniffer.conf:/usr/bin/CodeSniffer.conf cytopia/phpcs .
```
```yaml
# Docker compose
phpcs:
image: cytopia/phpcs
volumes:
- .:/data
- CodeSniffer.conf:/usr/bin/CodeSniffer.conf
```
## Related [#awesome-ci](https://github.com/topics/awesome-ci) projects
Expand Down

0 comments on commit a4f76c9

Please sign in to comment.