Skip to content

willhallonline/docker-phpcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker PHPCS

PHPCodeSniffer inside a container!

Supported tags and respective Dockerfile links

Docker Pulls MicroBadger Layers Docker Automated build Docker Build Status

What is PHPCS?

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.

This is a Dockerised Solution for running PHPCS.

Docker Commands

Pull

docker pull willhallonline/phpcs
docker pull willhallonline/phpcs:stretch

Run

PHPCS (PHP CodeSniffer)

docker run -it --rm -v $(pwd):/app willhallonline/phpcs phpcs [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:stretch phpcs [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9 phpcs [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9-stretch phpcs [YOUR-CODE]

PHPCBF (PHP CodeFixer)

docker run -it --rm -v $(pwd):/app willhallonline/phpcs phpcbf [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:alpine phpcbf [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9 phpcbf [YOUR-CODE]
docker run -it --rm -v $(pwd):/app willhallonline/phpcs:2.9-alpine phpcbf [YOUR-CODE]

Maintainer

About

Dockerised solution for running PHPCS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published