amarie88/robo-drupal-coding

Robo Task Runner 的 Drupal 编码命令。

1.0.6 2023-11-14 23:31 UTC

This package is auto-updated.

Last update: 2024-09-15 01:09:56 UTC


README

通过命令Robo扩展以应用 Drupal 编码标准。

旨在在 CI/CD 环境中使用。

目录

安装

"amarie88/robo-drupal-coding": "~1.0"添加到您的 composer.json 中

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

并执行 composer update

或者

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

配置

robo-drupal-coding.yml

使用

  • 检查 Drupal 编码标准和最佳实践
vendor/bin/robo drupal-coding:phpcs
  • 仅 Drupal 编码标准
vendor/bin/robo drupal-coding:phpcs Drupal
  • 仅最佳实践
vendor/bin/robo drupal-coding:phpcs DrupalPractice
  • 使用 drupal-check 检查 Drupal 代码
vendor/bin/robo drupal-coding:check