Skip to content

Docker image containing squizlabss/PHP_CodeSniffer

License

MIT, BSD-3-Clause licenses found

Licenses found

MIT
LICENSE
BSD-3-Clause
php_cs_licence
Notifications You must be signed in to change notification settings

talentrydev/phpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP Code Sniffer docker image

Docker image containing squizlabss/PHP_CodeSniffer

Usage

Scan all php files in current directory (using PSR2 standard and ignoring vendor dependencies)

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

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

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

About

Docker image containing squizlabss/PHP_CodeSniffer

Resources

License

MIT, BSD-3-Clause licenses found

Licenses found

MIT
LICENSE
BSD-3-Clause
php_cs_licence

Stars

Watchers

Forks

Packages

No packages published