amarie88/robo-drupal-coding

Drupal coding commands for Robo Task Runner.

Installs: 5 885

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:robo-tasks

1.0.6 2023-11-14 23:31 UTC

This package is auto-updated.

Last update: 2024-04-15 00:20:24 UTC


README

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