Sign inSign up

hourd/coding-standards

By hourd

•Updated over 10 years ago

This container to for running coding standard tests on applications. PHPMD PHPCS Semistandard

Image
0

388

hourd/coding-standards repository overview

⁠Coding Standards

⁠Docker

⁠Description

This container to for running coding standard tests on applications.

⁠Running

By default this will just give you a shell to do whatever you like in. For actual testing you will have to replace the brackets at the end of the command with the command and options you wish to use for testing.

docker run -it -v `pwd`:/var/www --rm --name coding-standards hourd/coding-standards <command to run to test code>

This will mount your current working directory inside the container,

Name the container "coding-standards" for easy docker management and removal (you can change this to any name you like)

Use the version of coding-standards in the drp docker registry

⁠Example

Example of running this on a laravel project from the directory of the project:

docker run -it -v `pwd`:/var/www --rm --name coding-standards hourd/coding-standards phpcs --standard=psr2 ./app -p --colors --ignore='*/*.blade.php
⁠Notes

Commands available are:

  • phpcs
  • phpcbf
  • phpmd

Tag summary

Content type

Image

Digest

Size

292.6 MB

Last updated

over 10 years ago

docker pull hourd/coding-standards