diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-10-30 11:40:34 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-10-30 11:40:34 +0100 |
commit | 6ac46ad46976c07ff054b313f2e2ee4dee9e0172 (patch) | |
tree | d789bbfcb31f57c9c922d2339e0543b975d3335f /build | |
parent | 49269fbdf4410fcbcfc27ff80f5e417a90912390 (diff) | |
download | forums-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.xml | 3 |
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. --> |