aboutsummaryrefslogtreecommitdiffstats
path: root/build/code_sniffer
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-30 00:49:01 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-10-30 00:49:01 +0100
commit63ce04d5653208a8c01f772d6fb7b0e795bd0b06 (patch)
tree076fd58c8e483a871550a35b1b00ea664f8c7f69 /build/code_sniffer
parent94334992ecb85274995229145d9108384f142dad (diff)
downloadforums-63ce04d5653208a8c01f772d6fb7b0e795bd0b06.tar
forums-63ce04d5653208a8c01f772d6fb7b0e795bd0b06.tar.gz
forums-63ce04d5653208a8c01f772d6fb7b0e795bd0b06.tar.bz2
forums-63ce04d5653208a8c01f772d6fb7b0e795bd0b06.tar.xz
forums-63ce04d5653208a8c01f772d6fb7b0e795bd0b06.zip
[task/code-sniffer] Add Generic.Functions.CallTimePassByReference
PHPBB3-11980
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 669393f844..247313441d 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -17,6 +17,9 @@
<!-- There MUST not be more than one statement per line. -->
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
+ <!-- Call-time pass-by-reference MUST not be used. -->
+ <rule ref="Generic.Functions.CallTimePassByReference.NotAllowed" />
+
<!-- Class constants MUST be declared in all upper case with underscore separators. -->
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />