Sign inSign up

rvannauker/phpcs

By rvannauker

•Updated over 9 years ago

PHP_CodeSniffer detects violations for a defined set of coding standards

Image
1

1.2K

rvannauker/phpcs repository overview

⁠PHP_CodeSniffer Docker Container.

Docker Pulls Docker Stars GitHub issues license

Docker container to install and run phpcs

⁠Installation / Usage
  1. Install the rvannauker/phpcs container:
docker pull rvannauker/phpcs
  1. Run phpcs through the phpcs container:
sudo docker run --rm --volume $(pwd):/workspace --name="phpcs" "rvannauker/phpcs" --config-set colors=1 --standard="PSR2" -v {destination}
⁠Download the source:

To run, test and develop the PHP_CodeSniffer Dockerfile itself, you must use the source directly:

  1. Download the source:
git clone https://github.com/RichVRed/docker-phpcs.git
  1. Build the container:
sudo docker build --force-rm --tag "rvannauker/phpcs" --file phpcs.dockerfile .
  1. Test running the container:
 $ docker run rvannauker/phpcs --help

Tag summary

Content type

Image

Digest

Size

26.1 MB

Last updated

over 9 years ago

docker pull rvannauker/phpcs