8000 GitHub - m1r0/wp-pre-commit-hook: Pre-commit hook for WordPress projects
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

m1r0/wp-pre-commit-hook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

wp-pre-commit-hook

Pre-commit hook for WordPress projects.

This package will install PHPCS with the WordPress Coding Standard definitions together with a git pre-commit hook script that will run PHP linting and the PHPCS whenever you do a commit to your project.

If your project has a phpcs.ruleset.xml or phpcs.xml.dist file available, the pre-commit hook will use this file as a ruleset definition. Otherwise the “WordPress” ruleset will be used.

Installation

composer require bjornjohansen/wp-pre-commit-hook --dev

Or manually add "bjornjohansen/wp-pre-commit-hook": "*" to the require-dev section in your composer.json

Then do a composer update

About

Pre-commit hook for WordPress projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 71.5%
  • Shell 28.5%
0