Skip to content

Instantly share code, notes, and snippets.

@manojLondhe
Created January 15, 2015 09:27
Show Gist options
  • Save manojLondhe/f6c892c873bde2fbb5f1 to your computer and use it in GitHub Desktop.
Save manojLondhe/f6c892c873bde2fbb5f1 to your computer and use it in GitHub Desktop.
GIT - pre receive hook config file for PHPCS check
#title :config
#description :Config for phpcs parameters to work with pre-commit.sh
#usage :add the file on the same location where pre-commit.sh exists. ie. under .git/hooks
#==================================================================================================
# path to phpcs "binary"
PHPCS_BIN=/usr/bin/phpcs
# the coding standard, you can also specify a path to your own standard here
PHPCS_CODING_STANDARD=Joomla
# comma-separated list of file patterns being ignored
# This is configured for JOOMLA to skip php files from tmpl & templates folders & install script files
PHPCS_IGNORE="tmpl/*,templates/*,administrator/templates/*,script.php,script.*.php,install.php,install.*.php"
# ignore warnings
PHPCS_IGNORE_WARNINGS=0
# encoding
PHPCS_ENCODING=utf-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment