Skip to content

Ready-to-go scan of a Drupal codebase for coding standards and best practices.

Notifications You must be signed in to change notification settings

lpeabody/phpcs-drupal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHPCS Drupal Coding Standards Docker Image

This image can be used to run Drupal coding standards sniffs against a codebase. It is ideally used with a phpcs.xml.dist file, but you may optionally pass arguments and options through the traditional docker run ... method.

Using phpcs.xml.dist

Assuming you have a phpcs.xml.dist or phpcs.xml file in your project root, you can run the following from your project root to execute a scan:

docker run --rm -v $PWD:/app ghcr.io/lpeabody/phpcs-drupal:8.3.17

Using phpcs

By default, when running the image it will just execute phpcs. You can optionally override this by passing your own phpcs command with additional arguments if needed:

docker run --rm -v $PWD:/app ghcr.io/lpeabody/phpcs-drupal:8.3.17 \
    phpcs \
        web/modules/custom \
        web/themes/custom

Versioning

This image's tags are tightly coupled with the version of drupal/coder included in the image (e.g. if the version of )

Image Version Coder Version
ghcr.io/lpeabody/phpcs-drupal:main 8.3.17
ghcr.io/lpeabody/phpcs-drupal:8.3.15 8.3.15
ghcr.io/lpeabody/phpcs-drupal:8.3.16 8.3.16
ghcr.io/lpeabody/phpcs-drupal:8.3.17 8.3.17

About

Ready-to-go scan of a Drupal codebase for coding standards and best practices.

Resources

Stars

Watchers

Forks

Packages