Skip to content

Git pre commit hook for checking modified files with Drupal Code Sniffer.

Notifications You must be signed in to change notification settings

klaasvw/drupalcs-precommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

drupalcs-precommit

Git pre commit hook for checking modified files with Drupal Code Sniffer.

Requirements

Installation

  • Download or clone this repository to any location.
  • Make a symbolic link from the git repistory's hook directory to drupalcs.sh, named pre-commit: ln -s /path/to/drupalcs.sh .git/hooks/pre-commit

Usage

  • Commit your changes.
  • The drupalcs.sh file will be executed and checks all modified files.
  • Your commit will abort when drupalcs found errors and show the output.
  • If you want to skip the checks use the --no-verify option.

About

Git pre commit hook for checking modified files with Drupal Code Sniffer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages