Sign inSign up

hussainweb/drupal-code-quality

By hussainweb

•Updated about 9 years ago

Code Quality tools for Drupal based on Adam Culp's php-code-quality Docker image.

Image
0

10K+

hussainweb/drupal-code-quality repository overview

⁠drupal-code-quality

Drupal Code Quality⁠ is a Docker image designed to aid in static analysis for Drupal code bases. It is based off Adam Culp's PHP Code Quality⁠ Docker image. Therefore, all tools present in adamculp/php-code-quality are also present here. See README.md in that package⁠ for more details.

From a Drupal perspective, this Docker image adds:

⁠Usage

Run these commands in your repository's root directory. The commands below assume that the Drupal site lives under the docroot directory.

⁠Get to a shell

This is the simplest command to get into a shell with your code mounted under /app.

docker run -it --rm -v "$PWD":/app -w /app hussainweb/drupal-code-quality:latest bash
⁠Run phpcs with Drupal coder sniffs
docker run -it --rm -v "$PWD":/app -w /app hussainweb/drupal-code-quality:latest phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme  docroot/modules/custom/ docroot/themes/custom/

Refer to adamculp/php-code-quality's Usage⁠ for more details.

Tag summary

Content type

Image

Digest

Size

282.5 MB

Last updated

about 9 years ago

docker pull hussainweb/drupal-code-quality