Sign inSign up

oxeva/phpcs

By oxeva

Updated over 7 years ago

PHP CodeSniffer container based on official PHP 7 container

Image
0

10K+

oxeva/phpcs repository overview

PHP CodeSniffer container

Build Status

What is PHP CodeSniffer

PHP_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.

GitHub Project : squizlabs/PHP_CodeSniffer

Usage

docker run --rm oxeva/phpcs phpcs --help

The entrypoint has not been changed from the PHP official container, so you can run PHP interactively as you'll do usually..

Sample of project scanning :

docker run --rm -v $PWD:/project oxeva/phpcs phpcs --standard=PSR2 /project/

Fixing it :

docker run --rm -v $PWD:/project oxeva/phpcs phpcbf --standard=PSR2 /project/

Tag summary

Content type

Image

Digest

Size

31.2 MB

Last updated

over 7 years ago

docker pull oxeva/phpcs