aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-02-12 22:12:30 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-02-12 22:12:30 +0100
commit75fa467b7b71926728dd431865b8a2f7fe5d9724 (patch)
treeb01f50caed00a85f2c5280df2fc2d9154a059d9a /build
parent0888df9520065da1461bc4b7817d26d52e0f1e6c (diff)
parent1e86f7113339c6b032a4500ce65cf959db97645a (diff)
downloadforums-75fa467b7b71926728dd431865b8a2f7fe5d9724.tar
forums-75fa467b7b71926728dd431865b8a2f7fe5d9724.tar.gz
forums-75fa467b7b71926728dd431865b8a2f7fe5d9724.tar.bz2
forums-75fa467b7b71926728dd431865b8a2f7fe5d9724.tar.xz
forums-75fa467b7b71926728dd431865b8a2f7fe5d9724.zip
Merge remote-tracking branch 'bantu/ticket/12180' into develop
* bantu/ticket/12180: [ticket/12180] Add "Each file MUST end with exactly one newline character" rule
Diffstat (limited to 'build')
-rw-r--r--build/code_sniffer/ruleset-php-legacy.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml
index 247313441d..550c919b5d 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -29,6 +29,9 @@
<!-- Method arguments with default values MUST go at the end of the argument list. -->
<rule ref="PEAR.Functions.ValidDefaultValue" />
+ <!-- Each file MUST end with exactly one newline character -->
+ <rule ref="PSR2.Files.EndFileNewline" />
+
<!-- In the argument list, there MUST NOT be a space before each comma,
and there MUST be one space after each comma. -->
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">