Pre-commit hook for Drupal projects.
Written in PHP because i love PHP.
Inspired by drupal-pre-commit project.
In order to commit your changes, your code must pass the three filters:
-
Syntax checking using PHP Linter
You can alter file extensions to check by changing
$phpLintExtensions
variable. -
Coding standards checking using PHP Code Sniffer
You need to have 'phpcs' installed on your machine. You can alter file extensions to check by changing
$phpSnifferExtensions
variable. -
Blacklisted functions checking/validation
You can alter blacklisted functions by changing
$checks
variable.