File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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```
You can’t perform that action at this time.
0 commit comments