File: phpcs.xml

package info (click to toggle)
php-fdomdocument 1.6.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 440 kB
  • sloc: php: 1,370; xml: 118; makefile: 6
file content (40 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<ruleset name="Arne">
 <description>Arne Blankerts' coding standard</description>

 <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
 <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
 <rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
 <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
 <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
 <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>

 <rule ref="Generic.Commenting.Todo"/>

 <rule ref="Generic.ControlStructures.InlineControlStructure"/>

 <rule ref="Generic.Files.LineEndings">
  <properties>
   <property name="eolChar" value="\n"/>
  </properties>
 </rule>

 <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
 <rule ref="Generic.Formatting.NoSpaceAfterCast"/>

 <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
 <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
 <rule ref="PEAR.Functions.ValidDefaultValue"/>

 <rule ref="Generic.NamingConventions.ConstructorName"/>
 <!-- <rule ref="PEAR.NamingConventions.ValidClassName"/>-->

 <rule ref="Generic.PHP.DisallowShortOpenTag"/>
 <rule ref="Generic.PHP.NoSilencedErrors"/>

 <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>

 <!-- Namespace handling broken, so disabled -->
 <!--<rule ref="Generic.WhiteSpace.ScopeIndent"/>-->
 <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
</ruleset>