phpcs.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?xml version="1.0"?>
  2. <!--suppress XmlUnboundNsPrefix -->
  3. <ruleset name="PHP-SDK">
  4. <description>Coding standard ruleset based on the PSR-2 coding standard.</description>
  5. <rule ref="PSR2"/>
  6. <rule ref="Generic.Files.LineLength.TooLong">
  7. <severity>0</severity>
  8. </rule>
  9. <rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
  10. <severity>0</severity>
  11. </rule>
  12. <rule ref="PSR2.Methods.MethodDeclaration.Underscore">
  13. <severity>0</severity>
  14. </rule>
  15. <rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
  16. <severity>0</severity>
  17. </rule>
  18. <rule ref="Squiz.Scope.MethodScope.Missing">
  19. <severity>0</severity>
  20. </rule>
  21. <rule ref="PSR2.ControlStructures.SwitchDeclaration.TerminatingComment">
  22. <severity>0</severity>
  23. </rule>
  24. <rule ref="PEAR.Functions.ValidDefaultValue.NotAtEnd">
  25. <severity>0</severity>
  26. </rule>
  27. <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
  28. <severity>0</severity>
  29. </rule>
  30. <rule ref="PSR2.Classes.PropertyDeclaration.ScopeMissing">
  31. <severity>0</severity>
  32. </rule>
  33. <!-- These can be fixed automatically by phpcbf -->
  34. <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine">
  35. <severity>0</severity>
  36. </rule>
  37. <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine">
  38. <severity>0</severity>
  39. </rule>
  40. <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen">
  41. <severity>0</severity>
  42. </rule>
  43. <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose">
  44. <severity>0</severity>
  45. </rule>
  46. <rule ref="Generic.ControlStructures.InlineControlStructure.NotAllowed">
  47. <severity>0</severity>
  48. </rule>
  49. <rule ref="Squiz.ControlStructures.ControlSignature.SpaceBeforeSemicolon">
  50. <severity>0</severity>
  51. </rule>
  52. <rule ref="PSR2.Files.EndFileNewline.NoneFound">
  53. <severity>0</severity>
  54. </rule>
  55. <rule ref="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody">
  56. <severity>0</severity>
  57. </rule>
  58. <rule ref="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed">
  59. <severity>0</severity>
  60. </rule>
  61. <rule ref="PSR2.Methods.FunctionCallSignature.CloseBracketLine">
  62. <severity>0</severity>
  63. </rule>
  64. <rule ref="PSR2.Methods.FunctionCallSignature.Indent">
  65. <severity>0</severity>
  66. </rule>
  67. <rule ref="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed">
  68. <severity>0</severity>
  69. </rule>
  70. <rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace">
  71. <severity>0</severity>
  72. </rule>
  73. <rule ref="PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace">
  74. <severity>0</severity>
  75. </rule>
  76. <rule ref="PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket">
  77. <severity>0</severity>
  78. </rule>
  79. <rule ref="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace">
  80. <severity>0</severity>
  81. </rule>
  82. <rule ref="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace">
  83. <severity>0</severity>
  84. </rule>
  85. <rule ref="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace">
  86. <severity>0</severity>
  87. </rule>
  88. <rule ref="Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma">
  89. <severity>0</severity>
  90. </rule>
  91. <rule ref="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore">
  92. <severity>0</severity>
  93. </rule>
  94. <rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
  95. <severity>0</severity>
  96. </rule>
  97. <rule ref="PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket">
  98. <severity>0</severity>
  99. </rule>
  100. <rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis">
  101. <severity>0</severity>
  102. </rule>
  103. <rule ref="PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonCASE">
  104. <severity>0</severity>
  105. </rule>
  106. <rule ref="PSR2.Methods.FunctionCallSignature.MultipleArguments">
  107. <severity>0</severity>
  108. </rule>
  109. <rule ref="PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket">
  110. <severity>0</severity>
  111. </rule>
  112. <rule ref="Generic.WhiteSpace.ScopeIndent.Incorrect">
  113. <severity>0</severity>
  114. </rule>
  115. <rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword">
  116. <severity>0</severity>
  117. </rule>
  118. <rule ref="PSR2.Classes.ClassDeclaration.OpenBraceNewLine">
  119. <severity>0</severity>
  120. </rule>
  121. <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction">
  122. <severity>0</severity>
  123. </rule>
  124. <rule ref="Generic.Formatting.DisallowMultipleStatements.SameLine">
  125. <severity>0</severity>
  126. </rule>
  127. <rule ref="PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE">
  128. <severity>0</severity>
  129. </rule>
  130. <rule ref="PSR2.Files.EndFileNewline.TooMany">
  131. <severity>0</severity>
  132. </rule>
  133. <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace">
  134. <severity>0</severity>
  135. </rule>
  136. <rule ref="PSR2.Methods.MethodDeclaration.StaticBeforeVisibility">
  137. <severity>0</severity>
  138. </rule>
  139. <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine">
  140. <severity>0</severity>
  141. </rule>
  142. </ruleset>