定制 digitronas/akeneo-coding-standard 二次开发

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

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

digitronas/akeneo-coding-standard

Composer 安装命令:

composer require digitronas/akeneo-coding-standard

包简介

Php standard automation.

README 文档

README

Combines EasyCodingStandard + GrumPHP + custom rules to provide static analysis to your project.

Install

composer require --dev digitronas/akeneo-coding-standard

Usage

Create grumphp.yml file in the root directory of your project and add:

parameters:
  tasks:
    ecs:
      config: 'vendor/digitronas/akeneo-coding-standard/ecs.yml'
      whitelist_patterns: ['.']

Notes:

  • the config property points to the ruleset of this package.
  • the whitelist_patterns is a list of directories that should be tested. Only .php files in those directories will be tested.

And that is it. GrumPHP won't allow to commit code that doesn't meet the standard.

Further reading

  • To bypass commit sniffing, see here.

  • To run grumphp manually, see here.

Contributing

To add or remove rules, first submit an issue to make sure your ideas aren't already in development and to make sure the project would approve your changes.

Clone this repository and run composer install. This will install ecs and grumphp. You might have to bypass grumphp, since it might not allow you to commit code if there are files that don't meet the standard.

Create a pull request to master branch. The changes will be merged after they pass code review.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固