Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 806 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 806 Bytes

Description

This repository adds a task for GrumPHP that launchs drupal-check. During a commit check Drupal code for deprecations and discover bugs via static analysis. If a deprecated code is detected, it won't pass.

Installation

Install it using composer:

composer require --dev metadrop/grumphp-drupal-check

Usage

  1. Add the extension in your grumphp.yml file:
extensions:
  - GrumphpDrupalCheck\ExtensionLoader
  1. Add drupal check to the tasks:
tasks:
  drupalcheck:
    drupal_root: ~

Optionally, configure the path to the Drupal root. This fallback option can be used if drupal-check could not identify Drupal root from the provided path(s). This is useful when testing a module as opposed to a Drupal installation.