willhallonline/phpcs
Dockerised build of PHPCodesniffer
10K+
PHPCodeSniffer inside a container!
Dockerfile
linksphp-7.2
, alpine
, latest
Dockerfilephp-7.2-stretch
, stretch
Dockerfile2.9
, 2.9-alpine
Dockerfile2.9-stretch
Dockerfilephp-5.6
Dockerfilephp-5.6-stretch
DockerfilePHP_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.
This is a Dockerised Solution for running PHPCS.
docker pull willhallonline/phpcs
docker pull willhallonline/phpcs:stretch
PHPCS (PHP CodeSniffer)
docker run -it --rm -v $(pwd):/app willhallonline/phpcs phpcs [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:stretch phpcs [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9 phpcs [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9-stretch phpcs [YOUR-CODE]
PHPCBF (PHP CodeFixer)
docker run -it --rm -v $(pwd):/app willhallonline/phpcs phpcbf [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:alpine phpcbf [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9 phpcbf [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9-alpine phpcbf [YOUR-CODE]
docker pull willhallonline/phpcs