carcheky / grumphp-drupal-check
在GrumPHP任务中执行drupal检查。
1.0.0
2022-06-28 08:32 UTC
Requires
This package is auto-updated.
Last update: 2024-09-28 15:23:50 UTC
README
此仓库为GrumPHP添加了一个任务,用于启动drupal-check。在提交检查期间,通过静态分析检查Drupal代码中的弃用功能并发现错误。如果检测到弃用代码,则无法通过。
安装
使用composer安装它
# Usage
1) Add the extension in your grumphp.yml file:
```yaml
extensions:
- GrumphpDrupalCheck\ExtensionLoader
```
2) Add drupal check to the tasks:
```
tasks:
drupalcheck:
drupal_root: ~
exclude_dir: ~
```
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.
Optionally, configure exclude files and directories. Wildcards work. Separate multiple excluded directories with commas, no spaces. e.g.: */tests/codeception/acceptance/*.php
(thanks to https://github.com/district09/grumphp-drupal-check)