定制 judapriest/drupal-quality-checker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

judapriest/drupal-quality-checker

Composer 安装命令:

composer create-project judapriest/drupal-quality-checker

包简介

This a fork from vijaycs85/drupal-quality-checker, it's very specific for Ecedi starter kit & distribution. Setups code quality checking tools for Drupal project.

README 文档

README

Overview

Provides set of libraries to easily setup code quality checks based on GrumPHP for Drupal module/theme/profile.

Note: This library is aimed to help ecedi starterkit and distribution.

Install

  1. Add judapriest/drupal-quality-checker to composer.json: composer require --dev judapriest/drupal-quality-checker
  2. Replace grumphp.yml in your project's root directory (not Drupal root directory) with vendor/judapriest/drupal-quality-checker/grumphp.yml.dist

That's it. Now, all tasks (listed below) run on every git commit.

Note: As part of install, GrumPHP adds pre-commit hook to repository. Existing pre-commit might get destroyed when install/uninstall.

Features

  1. PHPCS with Drupal standard.
  2. PHPLint
  3. YAML Lint
  4. Composer
  5. JSONLint
  6. PHP Copy/Paste Detector (CPD)
  7. Composer Normalizer

Long list of additional checks/validators available here.

How to use

Pre-configured

When installed (see #install), it's configure to run on every git commit. It will only analyse files you are commiting.

Stand alone run

You can also use bin/grumphp run from the root directory to analyse all existing file (minus the exclude or ignore files define in the grumphp.yml file).

Sample

Pass

drupal-quality-checker-pass

Fail

drupal-quality-checker-fail

Demo

Implemented in Modal Configuration module.

Uninstall

  1. You can remove the package with composer remove judapriest/drupal-quality-checker --update-with-dependencies.
  2. Remove the grumphp.yml in project's root directory if it's there.
  3. Modify the .git/hooks/pre-commit and .git/hooks/commit-msg if necessary

统计信息

  • 总下载量: 1.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 38
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固