PHP CodeSniffer container based on official PHP 7 container
10K+
PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
GitHub Project : squizlabs/PHP_CodeSniffer
docker run --rm oxeva/phpcs phpcs --help
The entrypoint has not been changed from the PHP official container, so you can run PHP interactively as you'll do usually..
Sample of project scanning :
docker run --rm -v $PWD:/project oxeva/phpcs phpcs --standard=PSR2 /project/
Fixing it :
docker run --rm -v $PWD:/project oxeva/phpcs phpcbf --standard=PSR2 /project/
Content type
Image
Digest
Size
31.2 MB
Last updated
over 7 years ago
docker pull oxeva/phpcs