Public | Automated Build

Last pushed: a year ago
Short Description
Codesniffer docker container
Full Description

This is a PHPCS docker image, based on work by Dylan Lindgren

Docker Pull Command

Comments (1)
10 months ago

Thanks for sharing the image. Due to the lack of documentation here are some usage examples for getting up and running fast:

Run phpcs:

docker run -it --rm -v "$PWD":/data/www alairock/docker-php-codesniffer your/src/dir

Run phpcbf is a bit more tricky. cbf tries to autofix the files using patch which does not seem to be installed in this image (bug?). To run cbf, you first have to install patch:

docker run -it --rm --entrypoint="bash" --v "$PWD":/data/www \
    alairock/docker-php-codesniffer -c "apt-get install patch && phpcbf your/src/dir"