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.
- Host: GitHub
- URL: https://github.com/amarie88/robo-drupal-coding
- Owner: amarie88
- License: mit
- Created: 2021-04-06T10:32:56.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-11-14T23:34:01.000Z (about 2 years ago)
- Last Synced: 2025-04-26T01:26:08.726Z (9 months ago)
- Topics: best-practices, drupal, php, robo
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-drupal - amarie88/robo-drupal-coding: Drupal coding command for Robo Task Runner.
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
```