To lint a single file:
docker run -it --rm -v $PWD:/tmp oberd/phpcs /tmp/MyFile.php
Remember that if you are running docker on a VM you will need to make sure the PHP target files are shared to the VM.
You can use this fork of Sublime PHPCS to get it going.
Content type
Image
Digest
Size
146.3 MB
Last updated
over 10 years ago
docker pull oberd/phpcs