Skip to content

Instantly share code, notes, and snippets.

@klatys
klatys / pre-commit-check.sh
Created November 21, 2016 13:05
pre-comit-check (by @mzstic)
#!/bin/bash
# Installation
# ------------
# Use following command
# cp pre-commit.sh .git/hooks/pre-commit
# It is done automatically after composer install / update
PHPCS_BIN=vendor/bin/phpcs
TMP_STAGING=".tmp_staging"
# comma-separated list of file patterns being ignored