drucheck

Drupal check - this is a docker container that helps you quickly check the code for compliance with Drupal standards

MIT License

Stars
1
Committers
2

drucheck

Drupal check - this is a docker container that helps you quickly check the code for compliance with Drupal standards

Build

Build from Dockerfile:

$ docker build -t neomen/drucheck:latest .

Verify build:

$ sudo docker run --rm -it neomen/drucheck:latest --version

Usage

  1. Install the neomen/drucheck:latest container (optional - this step is performed by Docker automatically when running the container):

    $ docker pull neomen/drucheck:latest
    
  2. Define an bash alias that runs this container whenever drucheck is invoked on the command line:

    $ echo "alias drucheck='docker run --rm -it -v \$(pwd):/downloads/drupal/web/modules/custom/workspace neomen/drucheck:latest'" >> ~/.bashrc
    $ source ~/.bashrc
    
  3. Run drucheck as always:

    $ drucheck --version
    
  4. In the folder with the Drupal module, run:

    $ drucheck
    
  5. or directly through docker:

    $ docker run --rm -it -v $(pwd):/downloads/drupal/web/modules/custom/workspace neomen/drucheck:latest