PHP_CodeSniffer_Standard_NRT3

raw

phork0.xml

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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Netresearch">
  <description>The coding standard for Netresearch projects.</description>
 
  <!-- Include the whole PEAR standard -->
  <rule ref="PEAR">
    <exclude name="PEAR.Files.IncludingFile" />
    <exclude name="PEAR.NamingConventions.ValidClassName" />
    <exclude name="PEAR.NamingConventions.ValidFunctionName" />
    <exclude name="PEAR.NamingConventions.ValidVariableName" />
  </rule>
 
  <rule ref="Generic.Commenting.Fixme" />
  <rule ref="Generic.Commenting.Todo" />
 
  <rule ref="Generic.Files.ByteOrderMark" />
  <rule ref="Generic.Files.EndFileNewline" />
  <rule ref="Generic.Files.OneClassPerFile" />
  <rule ref="Generic.Files.OneInterfacePerFile" />
 
  <rule ref="Generic.Formatting.SpaceAfterCast" />
  <rule ref="Generic.Functions.CallTimePassByReference" />
  <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
 
  <rule ref="Generic.Metrics.CyclomaticComplexity" />
  <rule ref="Generic.Metrics.NestingLevel" />
 
  <rule ref="Generic.NamingConventions.CamelCapsFunctionName" />
  <rule ref="Generic.NamingConventions.ConstructorName" />
  <rule ref="Generic.NamingConventions.UpperCaseConstantName" />
 
  <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
  <rule ref="Generic.PHP.ClosingPHPTag" />
  <rule ref="Generic.PHP.DeprecatedFunctions" />
  <rule ref="Generic.PHP.ForbiddenFunctions" />
  <rule ref="Generic.PHP.LowerCaseConstant" />
  <rule ref="Generic.PHP.LowerCaseKeyword" />
  <rule ref="Generic.PHP.NoSilencedErrors" />
 
  <rule ref="Generic.Strings.UnnecessaryStringConcat" />
 
  <rule ref="Generic.WhiteSpace.DisallowTabIndent" />
 
  <rule ref="Generic.PHP.ClosingPHPTag.NotFound">
    <exclude-pattern>*/tests/*</exclude-pattern>
  </rule>
 
  <rule ref="PEAR.Commenting.FileComment">
    <exclude-pattern>*/tests/*</exclude-pattern>
  </rule>
  <rule ref="PEAR.Commenting.ClassComment">
    <exclude-pattern>*/tests/*</exclude-pattern>
  </rule>
  <rule ref="PEAR.Commenting.FunctionComment">
    <exclude-pattern>*/tests/*</exclude-pattern>
  </rule>
</ruleset>
Christian Weiske Christian Weiske
owner

History