Skip to content

mecmartini/drupal-pre-commit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Drupal pre-commit hook

Pre-Commit hook script for Drupal 8.x to check your Drupal coding standard and more with ESLint and PHPCS code sniffer. Auto-fix enabled!

Requirements

Usage

Go to your drupal subtheme folder (or create this one).

  • 1 - Move to your Drupal project git hook folder cd /path/to/your/project/.git/hooks
  • 2 - Download the pre-commit hook script curl -O https://github.com/raw/mecmartini/drupal-pre-commit-hook/master/pre-commit
  • 3 - Make sure script is executable chmod +x pre-commit
  • 4 - Edit the script with your favorite editor and setup the bin tools on the #Setup section222222222222
  • 5 - Ready to commit!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages