2017 © Pedro Peláez
 

library git-hooks

php git commit hooks

image

fp-coding-standards/git-hooks

php git commit hooks

  • Monday, May 9, 2016
  • by bupt1987
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Git Hooks

Total Downloads, (*1)

依赖

composer require fp-coding-standards/fpcs

功能简述

1、在提交代码(git commit)到git库时,本钩子被触发。
2、调用phpcbf和phpcs,来做代码检查并尝试自动修复代码样式。
3、将修复后的代码提交到git库中。, (*2)

安装步骤

1、安装依赖PHP_CodeSniffer,定义代码样式,本例中使用FunPlus-Coding-Standards
2、安装钩子 vendor/bin/git-hooks-install, (*3)

参考

1. git钩子

参考 Git Hook 或自行Google, (*4)

2.代码检查

本钩子使用PHP_CodeSniffer做代码检查,需要提前配置好PHP_CodeSniffer和PHP_CodeSniffer所需的rule set。, (*5)

The Versions

09/05 2016

dev-master

9999999-dev

php git commit hooks

  Sources   Download

MIT

The Requires

 

by Junjie.Ning

git git hooks

21/04 2016

v1.0.0

1.0.0.0

php git commit hooks

  Sources   Download

MIT

The Requires

 

by Junjie.Ning

git git hooks