Skip to content

Commit 39bf93e

Browse files
author
Pavle Predic
committed
Fix readme
1 parent de256c9 commit 39bf93e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Docker image containing [squizlabss/PHP_CodeSniffer](https://github.com/squizlab
77
### Scan all php files in current directory (using PSR2 standard and ignoring vendor dependencies)
88

99
```
10-
docker run --rm -v $(pwd):/mnt/ --workdir=/mnt talentrydev/phpcs phpcs --standard=PSR2 --extensions=php --ignore=*/vendor/* .
10+
docker run --rm -v $(pwd):/mnt/ --workdir=/mnt talentrydev/phpcs phpcs --standard=PSR2 --extensions=php --ignore=*/vendor/* .
1111
```
1212

1313
### Scan only files staged by git (also using PSR2 standard)
1414

1515
```
16-
docker run --rm -v $(pwd):/mnt/ --workdir=/mnt talentrydev/phpcs phpcs --standard=PSR2 --extensions=php .
16+
docker run --rm -v $(pwd):/mnt/ --workdir=/mnt talentrydev/phpcs phpcs --standard=PSR2 --extensions=php --filter=GitStaged .
1717
```

0 commit comments

Comments
 (0)