aboutsummaryrefslogtreecommitdiffstats
path: root/build/code_sniffer/ruleset-php-legacy.xml
blob: ed8c7e98a0bbd96cbfd358040980fa3146630181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<ruleset name="phpBB PHP Legacy Standard">

 <description>phpBB legacy coding standard for PHP files</description>

 <rule ref="./ruleset-minimum.xml" />

 <!-- The body of each structure MUST be enclosed by braces. -->
 <rule ref="Generic.ControlStructures.InlineControlStructure" />

 <!-- 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" />

 <!-- The ?> closing tag MUST be omitted from files containing only PHP. -->
 <rule ref="Zend.Files.ClosingTag" />

</ruleset>