talentrydev / phpcs

Docker image containing squizlabss/PHP_CodeSniffer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Dockerfile 100.0%