diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-10-30 00:12:47 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-10-30 00:12:47 +0100 |
commit | 27a180f5d2d4c4d36fe5ab5f632b4df87240b075 (patch) | |
tree | fe79b54b5eed3627c02c3da735e57d73e332aa1b /build | |
parent | 721e6524253a0993eb81820556f4ac042131320e (diff) | |
download | forums-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')
-rw-r--r-- | build/code_sniffer/ruleset-php-legacy.xml | 3 |
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" /> |