2013-10-27 17:50:58 +01:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<ruleset name="phpBB PHP Legacy Standard">
|
|
|
|
|
|
|
|
<description>phpBB legacy coding standard for PHP files</description>
|
|
|
|
|
|
|
|
<rule ref="./ruleset-minimum.xml" />
|
|
|
|
|
2013-10-29 23:55:39 +01:00
|
|
|
<!-- "for (; bar; )" should be "while (bar)" instead -->
|
|
|
|
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
|
|
|
|
|
2013-10-30 00:12:47 +01:00
|
|
|
<!-- A method MUST not only call its parent -->
|
|
|
|
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
|
|
|
|
|
2013-10-27 17:50:58 +01:00
|
|
|
<!-- The body of each structure MUST be enclosed by braces. -->
|
|
|
|
<rule ref="Generic.ControlStructures.InlineControlStructure" />
|
2013-10-29 01:36:37 +01:00
|
|
|
|
2013-10-30 00:44:24 +01:00
|
|
|
<!-- There MUST not be more than one statement per line. -->
|
|
|
|
<rule ref="Generic.Formatting.DisallowMultipleStatements" />
|
|
|
|
|
2013-10-30 00:49:01 +01:00
|
|
|
<!-- Call-time pass-by-reference MUST not be used. -->
|
|
|
|
<rule ref="Generic.Functions.CallTimePassByReference.NotAllowed" />
|
|
|
|
|
2013-10-27 17:50:58 +01:00
|
|
|
<!-- Class constants MUST be declared in all upper case with underscore separators. -->
|
|
|
|
<rule ref="Generic.NamingConventions.UpperCaseConstantName" />
|
|
|
|
|
|
|
|
<!-- Only <?php, no short tags. -->
|
|
|
|
<rule ref="Generic.PHP.DisallowShortOpenTag.EchoFound" />
|
|
|
|
|
|
|
|
<!-- Method arguments with default values MUST go at the end of the argument list. -->
|
|
|
|
<rule ref="PEAR.Functions.ValidDefaultValue" />
|
|
|
|
|
2013-10-29 21:27:07 +01:00
|
|
|
<!-- In the argument list, there MUST NOT be a space before each comma,
|
|
|
|
and there MUST be one space after each comma. -->
|
|
|
|
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing">
|
|
|
|
<properties>
|
|
|
|
<property name="equalsSpacing" value="1"/>
|
|
|
|
</properties>
|
|
|
|
</rule>
|
|
|
|
<rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterHint" />
|
|
|
|
|
2013-10-27 17:50:58 +01:00
|
|
|
<!-- The ?> closing tag MUST be omitted from files containing only PHP. -->
|
|
|
|
<rule ref="Zend.Files.ClosingTag" />
|
|
|
|
|
|
|
|
</ruleset>
|