An open API service indexing awesome lists of open source software.

https://github.com/amarie88/robo-drupal-coding

Drupal coding command for Robo Task Runner.
https://github.com/amarie88/robo-drupal-coding

best-practices drupal php robo

Last synced: about 15 hours ago
JSON representation

Drupal coding command for Robo Task Runner.

Awesome Lists containing this project

README

          

# Robo Drupal Coding

Extension to apply Drupal Coding Standards with commands [Robo](http://robo.li/).

Intended to be used in a CI/CD context.

## Table of contents

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)

## Installation

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

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

and execute `composer update`.

OR

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

## Configuration

```bash
robo-drupal-coding.yml
```

## Usage

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