aboutsummaryrefslogtreecommitdiffstats
path: root/build/code_sniffer
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-30 00:12:47 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-10-30 00:12:47 +0100
commit27a180f5d2d4c4d36fe5ab5f632b4df87240b075 (patch)
treefe79b54b5eed3627c02c3da735e57d73e332aa1b /build/code_sniffer
parent721e6524253a0993eb81820556f4ac042131320e (diff)
downloadforums-27a180f5d2d4c4d36fe5ab5f632b4df87240b075.tar
forums-27a180f5d2d4c4d36fe5ab5f632b4df87240b075.tar.gz
forums-27a180f5d2d4c4d36fe5ab5f632b4df87240b075.tar.bz2
forums-27a180f5d2d4c4d36fe5ab5f632b4df87240b075.tar.xz
forums-27a180f5d2d4c4d36fe5ab5f632b4df87240b075.zip
[task/code-sniffer] Add Generic.CodeAnalysis.UselessOverridingMethod
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 422b04e9ae..e8d7c79e84 100644
--- a/build/code_sniffer/ruleset-php-legacy.xml
+++ b/build/code_sniffer/ruleset-php-legacy.xml
@@ -8,6 +8,9 @@
<!-- "for (; bar; )" should be "while (bar)" instead -->
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
+ <!-- A method MUST not only call its parent -->
+ <rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
+
<!-- The body of each structure MUST be enclosed by braces. -->
<rule ref="Generic.ControlStructures.InlineControlStructure" />