Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 833 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 833 Bytes

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!