-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithooks.config.template
32 lines (24 loc) · 1.03 KB
/
githooks.config.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
###################################################
# Pre-commit hook #
###################################################
CONF_pre_commit_active=true
####Code sniffer
CONF_pre_commit_cs_active=true
#Any extra argument to be passed to phpcs
#The result is expected to be a "full" report, if the arguments produce anything else, the result is unpredictable
CONF_pre_commit_cs_arguments="--standard=PSR2"
####Whitespacing
CONF_pre_commit_ws_active=true
####Check for debug code
CONF_pre_commit_debug_active=true
CONF_pre_commit_debug_regex="^\+.*(var_dump|die|print_r|exit|console\.log)"
####Check for internationalization code
CONF_pre_commit_internationalization_active=true
CONF_pre_commit_internationalization_regex="I18n::"
###################################################
# Commit message hook #
###################################################
CONF_commit_msg_active=true
#The regex to use on the commit message
CONF_commit_msg_regex='^[A-Z]{6,6}-[0-9][0-9]*.*'