aboutsummaryrefslogtreecommitdiffstats
path: root/build/code_sniffer/ruleset-php-strict.xml
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-06-16 22:55:42 +0200
committerTristan Darricau <github@nicofuma.fr>2014-06-22 23:52:16 +0200
commitfa5afb60aa1879311a5f909b680af7da26647c6b (patch)
tree3e83730d3a7ef789a39cb236b9eea3d810f8f277 /build/code_sniffer/ruleset-php-strict.xml
parente46ef86104d457e0c98b7b1376d9cfbf5f1a8c1b (diff)
downloadforums-fa5afb60aa1879311a5f909b680af7da26647c6b.tar
forums-fa5afb60aa1879311a5f909b680af7da26647c6b.tar.gz
forums-fa5afb60aa1879311a5f909b680af7da26647c6b.tar.bz2
forums-fa5afb60aa1879311a5f909b680af7da26647c6b.tar.xz
forums-fa5afb60aa1879311a5f909b680af7da26647c6b.zip
[ticket/12726] Ensure PHP files do not contain any unused use statements
PHPBB3-12726
Diffstat (limited to 'build/code_sniffer/ruleset-php-strict.xml')
-rw-r--r--build/code_sniffer/ruleset-php-strict.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/code_sniffer/ruleset-php-strict.xml b/build/code_sniffer/ruleset-php-strict.xml
index 59db73dec4..9e2f0664d8 100644
--- a/build/code_sniffer/ruleset-php-strict.xml
+++ b/build/code_sniffer/ruleset-php-strict.xml
@@ -42,4 +42,7 @@
<!-- There MUST be one blank line after the namespace declaration -->
<rule ref="PSR2.Namespaces.NamespaceDeclaration" />
+ <!-- There MUST NOT be unused use statements. -->
+ <rule ref="./phpbb/Sniffs/Namespaces/UnusedUseSniff.php" />
+
</ruleset>