Skip to content

Commit 771b165

Browse files
authored
Update README.md
1 parent 65e8db5 commit 771b165

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
11
# docker-phpcs-drupal
2+
3+
## How to use
4+
Go to needed module or file
5+
```
6+
cd /path/to/check
7+
```
8+
By default we call phpcs from container
9+
```
10+
docker run --rm -v $(pwd):/work docker-phpcs-drupal ./
11+
```
12+
13+
To call phpcbf you need rewrite entrypoint directive
14+
```
15+
docker run --rm -v $(pwd):/work --entrypoint=phpcbf docker-phpcs-drupal --standard=Drupal ./
16+
```

0 commit comments

Comments
 (0)