Skip to content

Commit 4dbb72d

Browse files
committed
Last details
1 parent bce83ba commit 4dbb72d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

config.dist

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# path to binaries
1+
# Path to binaries.
22
PHPCS_BIN=/usr/local/bin/phpcs
33
PHPMD_BIN=/usr/local/bin/phpmd
44

5-
# the coding standard, you can also specify a path to your own standard here
5+
# The coding standard, you can also specify a path to your own standard here.
66
# e. g. /path/to/my/standard/dir/
77
PHPCS_CODING_STANDARD=PSR2
88

9-
# comma-separated list of file patterns being ignored
9+
# Comma-separated list of file patterns being ignored.
1010
PHPCS_IGNORE=
1111

12-
# comma-seperated list of sniffs from the standard that should be used
13-
# use `phpcs --standard=PSR1 -e` to list sniffs for your standard
12+
# Comma-seperated list of sniffs from the standard that should be used.
13+
# Use `phpcs --standard=PSR1 -e` to list sniffs for your standard.
1414
PHPCS_SNIFFS=Generic.Files.ByteOrderMark,Generic.PHP.DisallowShortOpenTag
1515

16-
# egrep compatible pattern of files to be checked
16+
# Egrep compatible pattern of files to be checked.
1717
PHPCS_FILE_PATTERN="\.(php)$"
1818

19-
# ignore warnings
19+
# Ignore warnings.
2020
PHPCS_IGNORE_WARNINGS=1
2121

22-
# encoding
22+
# Encoding.
2323
PHPCS_ENCODING=utf-8
2424

25-
# PHP Mess Detector output mode
25+
# PHP Mess Detector output mode (default: text).
2626
PHPMD_OUTPUT_MODE=text
2727

28-
# PHP Mess Detector patterns
28+
# PHP Mess Detector patterns (defaults: cleancode).
2929
PHPMD_PATTERNS=cleancode,codesize,controversial,design,naming,unusedcode

pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fi
108108
if [ "$PHPMD_PATTERNS" != "" ]; then
109109
PHPMD_PATTERNS_LIST="$PHPMD_PATTERNS"
110110
else
111-
PHPMD_PATTERNS_LIST="cleancode,codesize,controversial,design,naming,unusedcode"
111+
PHPMD_PATTERNS_LIST="cleancode"
112112
fi
113113

114114

@@ -162,4 +162,5 @@ fi
162162

163163
tput setaf 7;
164164

165+
echo ""
165166
exit 0;

0 commit comments

Comments
 (0)