Skip to content

Drupal coding command for Robo Task Runner.

License

Notifications You must be signed in to change notification settings

amarie88/robo-drupal-coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robo Drupal Coding

Extension to apply Drupal Coding Standards with commands Robo.

Intended to be used in a CI/CD context.

Table of contents

Installation

Add "amarie88/robo-drupal-coding": "~1.0" to your composer.json:

{
    "require-dev": {
        "amarie88/robo-drupal-coding": "~1.0"
    }
}

and execute composer update.

OR

composer require --dev amarie88/robo-drupal-coding:~1.0

Configuration

robo-drupal-coding.yml

Usage

  • Check Drupal coding standards and best practices:
vendor/bin/robo drupal-coding:phpcs
  • Only Drupal coding standards:
vendor/bin/robo drupal-coding:phpcs Drupal
  • Only best practices:
vendor/bin/robo drupal-coding:phpcs DrupalPractice
  • Check Drupal code with drupal-check:
vendor/bin/robo drupal-coding:check