Skip to content

skilld-labs/docker-phpcs-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-phpcs-drupal

https://hub.docker.com/r/skilldlabs/docker-phpcs-drupal/

How to use

Go to needed directory with code

cd /path/to/check

By default we call phpcs from container

docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal

To call phpcbf you need to override default command

docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal phpcbf --standard=Drupal .

To call DrupalSecure check (https://www.drupal.org/sandbox/coltrane/1921926)

docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal phpcs --standard=DrupalSecure .

Shortening of container name

docker tag skilldlabs/docker-phpcs-drupal phpcs

then you can use docker run --rm -v $(pwd):/work phpcs