Skip to content

Instantly share code, notes, and snippets.

@manojLondhe

manojLondhe/config

Created Jan 15, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.