aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-30 11:40:34 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-10-30 11:40:34 +0100
commit6ac46ad46976c07ff054b313f2e2ee4dee9e0172 (patch)
treed789bbfcb31f57c9c922d2339e0543b975d3335f /build
parent49269fbdf4410fcbcfc27ff80f5e417a90912390 (diff)
downloadforums-6ac46ad46976c07ff054b313f2e2ee4dee9e0172.tar
forums-6ac46ad46976c07ff054b313f2e2ee4dee9e0172.tar.gz
forums-6ac46ad46976c07ff054b313f2e2ee4dee9e0172.tar.bz2
forums-6ac46ad46976c07ff054b313f2e2ee4dee9e0172.tar.xz
forums-6ac46ad46976c07ff054b313f2e2ee4dee9e0172.zip
[task/code-sniffer] Add PSR1.Files.SideEffects.FoundWithSymbols
PHPBB3-11980
Diffstat (limited to 'build')
-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 9e01d0c7b9..5e3c26a616 100644
--- a/build/code_sniffer/ruleset-php-strict.xml
+++ b/build/code_sniffer/ruleset-php-strict.xml
@@ -40,6 +40,9 @@
<!-- A file MUST not contain more than one class/interface -->
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses" />
+ <!-- Files containing classes MUST not have any side-effects -->
+ <rule ref="PSR1.Files.SideEffects.FoundWithSymbols" />
+
<!-- When present, all use declarations MUST go after the namespace declaration.
There MUST be one use keyword per declaration.
There MUST be one blank line after the use block. -->