Skip to content

fredericomartini-docker-libraries/phpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

docker-phpcs

Run PHP Mess Detector (phpcs) in Docker container

Build

Build from Dockerfile:

docker build -t fredericomartini/phpcs .

Verify build:

docker run --rm -it fredericomartini/phpcs --version

Usage

  1. Install the fredericomartini/phpcs container (optional - this step is performed by Docker automatically when running the container):
$ docker pull fredericomartini/phpcs
  1. Define an bash alias that runs this container whenever phpcs is invoked on the command line:
$ echo "alias phpcs='docker run --rm -it -v \$(pwd):/app fredericomartini/phpcs'" >> ~/.bashrc
$ source ~/.bashrc
  1. Run phpcs as always:
$ phpcs --version

About

Docker image for PHP Code Sniffer - https://github.com/squizlabs/PHP_CodeSniffer/wiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published