splotches/php-composter-phpmd 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

splotches/php-composter-phpmd

Composer 安装命令:

composer require splotches/php-composter-phpmd

包简介

Automatically install a git pre-commit hook to check your PHP files upon each commit to make sure they follow the rules defined in phpmd.xml.

README 文档

README

standard-readme compliant

Automatically install a git pre-commit hook to check your PHP files upon each commit to make sure they follow the rules defined in phpmd.xml.

Table Of Contents

Installation

Add as a development requirement to your composer.json:

composer require --dev pascal-splotches/php-composter-phpmd

Usage

It automatically works whenever you execute a git commit.

Configuration

You need to add a configuration section to your phpmd.xml ruleset with the correct flags and paths:

<configuration>
    <!-- Required -->
    <source>
        <path>src</path>
        <!-- <path></path>... -->
    </source>
    
    <!-- Optional -->
    <exclude>
        <path>docs</path>
        <!-- <path></path>... -->
    </exclude>
    
    <!-- Required -->
    <output mode="text"/>
    
    <!-- Optional -->
    <minimum-priority value="5"/>
    <report file="report.txt"/>
    
    <!-- Optional -->
    <suffixes>
        <suffix>php</suffix>
        <!-- <suffix></suffix>... -->
    </suffixes>
    
    <!-- Optional -->
    <strict/>
</configuration>

Built With

Contributing

All feedback, bug reports and pull requests are welcomed.

Versioning

We use SemVer for versioning. For the versions available, see the releases on this repository.

Authors

License

This project is licensed under the GPL v3 License - see the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2018-09-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固