Skip to content

homebase/git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Provide 2 git commit hooks for PHP project

1. Relaxed one
2. Homebase (strict one) (based on phpcs)


= GIT HOOK INSTALL:

  RUN ./setup-git-hook script




== HOMEBASE GIT HOOK 
// STILL IN PROGRESS 

HOMEBASE FRAMEWORK (phpcs based) git commit hook


1. install PHP_CodeSniffer
   yum install php-pear-PHP-CodeSniffer
   (or pear install PHP_CodeSniffer)

2. install standard:
   sudo cp -r Homebase /usr/share/pear/PHP/CodeSniffer/Standards/


  Optional: make homebase default
   sudo phpcs --config-set default_standard Homebase

3. install to git
   cd $root_of_homebase/.git/hooks
   ln -s ../../git-hooks/pre-commit

Inspiration
   http://tydeas.tumblr.com/post/29226598941/git-pre-commit-php-psr-standard
   http://github.com/klaussilveira/phpcs-psr

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published