<!-- Test if a short php code open tag is used (<? instead of <?php ). -->
<testname="noShortPhpCodeTag"/>
<!-- Test if a PHP closing file is present at the end of a file -->
<testname="noFileCloseTag"/>
<!-- Test if a file finish with some inner HTML (OK for some view but could provoque "header already sent" error) -->
<testname="noFileFinishHTML"level="ERROR"/>
<!-- **************** -->
<!-- Comments -->
<!-- **************** -->
<!-- Check if some C style comments are used (#) -->
<testname="noShellComments"/>
<!-- Tests that every function and class is immediately preceded by a docblock. A property "excludePrivateMembers" can be set if you want to disable docblocks for private member functions. -->
<!-- Check for silenced errors before function calls (@function) -->
<testname="checkSilencedError">
<exceptionvalue="rename"/><!-- Exceptions to this rule -->
<exceptionvalue="mkdir"/>
<exceptionvalue="chmod"/>
</test>
<!-- Check for encapsed variables inside a String ("$a") -->
<testname="encapsedVariablesInsideString">
</test>
<!-- Avoid passing parameters by reference -->
<testname="avoidPassingReferences">
</test>
<testname="showTODOs">
</test>
<!-- Use boolean operators (&&) instead of logical operators (AND) -->
<testname="useBooleanOperators">
</test>
<!-- Check empty block like if ($a) {} -->
<testname="checkEmptyBlock">
<!-- <exception value="catch"/> -->
</test>
<!-- Check empty statement ( ;; ) -->
<testname="checkEmptyStatement">
</test>
<!-- Check for the presence of heredoc -->
<testname="checkHeredoc">
</test>
<!-- Check for braces around code blocs (if, else, elseif, do, while, for, foreach) -->
<testname="needBraces">
</test>
<!-- Switch need a default value -->
<testname="switchNeedDefault">
</test>
<!-- Switch case should have a break -->
<!-- <test name="switchCaseNeedBreak">
</test> -->
<!-- Switch default value should be at the end -->
<testname="switchDefaultOrder">
</test>
<!--
Avoid using unary operators (++) inside a control statement
With the exception of for iterators, all variable incrementation or decrementation should occur in their own toplevel statement to increase readability.
-->
<testname="checkUnaryOperator">
<exceptionvalue="for"/>
</test>
<!--
With inner assignments it is difficult to see all places where a variable is set.
With the exception of for iterators, all assignments should occur in their own toplevel statement to increase readability.
-->
<testname="checkInnerAssignment">
<exceptionvalue="for"/>
</test>
<!-- Detect unused private functions (detecting unused public ones is more difficult) -->