aboutsummaryrefslogtreecommitdiffstats
path: root/build/code_sniffer
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-02-10 15:01:50 +0100
committerAndreas Fischer <bantu@phpbb.com>2014-02-10 15:01:50 +0100
commit1e86f7113339c6b032a4500ce65cf959db97645a (patch)
tree775322a07c29eb068b7de47d63b9f54d50144c84 /build/code_sniffer
parent02674de89367895642b57450b5444ab23488ab9b (diff)
downloadforums-1e86f7113339c6b032a4500ce65cf959db97645a.tar
forums-1e86f7113339c6b032a4500ce65cf959db97645a.tar.gz
forums-1e86f7113339c6b032a4500ce65cf959db97645a.tar.bz2
forums-1e86f7113339c6b032a4500ce65cf959db97645a.tar.xz
forums-1e86f7113339c6b032a4500ce65cf959db97645a.zip
[ticket/12180] Add "Each file MUST end with exactly one newline character" rule
PHPBB3-12180
Diffstat (limited to 'build/code_sniffer')
-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">