phpcs.xml.dist 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ruleset name="pcsg-generated-ruleset">
  3. <description>Created with the PHP Coding Standard Generator. http://edorian.github.com/php-coding-standard-generator/
  4. </description>
  5. <rule ref="Generic.Classes.DuplicateClassName"/>
  6. <rule ref="Generic.CodeAnalysis.EmptyStatement"/>
  7. <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
  8. <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
  9. <rule ref="Generic.CodeAnalysis.JumbledIncrementer"/>
  10. <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
  11. <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/>
  12. <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
  13. <rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
  14. <rule ref="Generic.Commenting.Fixme"/>
  15. <rule ref="Generic.ControlStructures.InlineControlStructure"/>
  16. <rule ref="Generic.Files.ByteOrderMark"/>
  17. <rule ref="Generic.Files.LineEndings"/>
  18. <rule ref="Generic.Files.LineLength"/>
  19. <rule ref="Generic.Formatting.DisallowMultipleStatements"/>
  20. <rule ref="Generic.Formatting.SpaceAfterCast"/>
  21. <rule ref="Generic.Functions.CallTimePassByReference"/>
  22. <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
  23. <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
  24. <rule ref="Generic.Metrics.CyclomaticComplexity"/>
  25. <rule ref="Generic.Metrics.NestingLevel"/>
  26. <rule ref="Generic.NamingConventions.ConstructorName"/>
  27. <rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
  28. <rule ref="Generic.NamingConventions.CamelCapsFunctionName"/>
  29. <rule ref="Generic.PHP.DeprecatedFunctions"/>
  30. <rule ref="Generic.PHP.DisallowShortOpenTag"/>
  31. <rule ref="Generic.PHP.ForbiddenFunctions"/>
  32. <rule ref="Generic.PHP.NoSilencedErrors">
  33. <properties>
  34. <property name="error" value="false"/>
  35. </properties>
  36. </rule>
  37. <rule ref="Generic.PHP.UpperCaseConstant"/>
  38. <rule ref="Generic.Strings.UnnecessaryStringConcat"/>
  39. <rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
  40. <rule ref="Generic.WhiteSpace.ScopeIndent">
  41. <properties>
  42. <property name="indent" value="2"/>
  43. </properties>
  44. </rule>
  45. <rule ref="MySource.PHP.EvalObjectFactory"/>
  46. <rule ref="MySource.PHP.ReturnFunctionValue"/>
  47. <rule ref="MySource.PHP.AjaxNullComparison"/>
  48. <rule ref="PSR1.Classes.ClassDeclaration"/>
  49. <rule ref="PSR1.Files.SideEffects"/>
  50. <!--<rule ref="PSR2.Classes.ClassDeclaration"/>-->
  51. <rule ref="PSR2.Classes.PropertyDeclaration"/>
  52. <rule ref="PSR2.ControlStructures.ControlStructureSpacing"/>
  53. <rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
  54. <rule ref="PSR2.ControlStructures.SwitchDeclaration">
  55. <properties>
  56. <property name="indent" value="2"/>
  57. </properties>
  58. </rule>
  59. <rule ref="PSR2.Files.EndFileNewline"/>
  60. <rule ref="PSR2.Methods.MethodDeclaration"/>
  61. <rule ref="PSR2.Namespaces.NamespaceDeclaration"/>
  62. <rule ref="PSR2.Namespaces.UseDeclaration"/>
  63. <rule ref="Squiz.PHP.CommentedOutCode"/>
  64. <rule ref="Squiz.PHP.DisallowMultipleAssignments"/>
  65. <rule ref="Squiz.PHP.DisallowObEndFlush"/>
  66. <rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/>
  67. <rule ref="Squiz.PHP.DiscouragedFunctions"/>
  68. <rule ref="Squiz.PHP.Eval"/>
  69. <rule ref="Squiz.PHP.ForbiddenFunctions"/>
  70. <rule ref="Squiz.PHP.GlobalKeyword"/>
  71. <rule ref="Squiz.PHP.InnerFunctions"/>
  72. <rule ref="Squiz.PHP.LowercasePHPFunctions"/>
  73. <rule ref="Squiz.PHP.NonExecutableCode"/>
  74. <rule ref="Squiz.Scope.MemberVarScope"/>
  75. <rule ref="Squiz.Scope.MethodScope"/>
  76. <rule ref="Squiz.Scope.StaticThisUsage"/>
  77. <rule ref="Squiz.WhiteSpace.CastSpacing"/>
  78. <rule ref="Squiz.WhiteSpace.ControlStructureSpacing"/>
  79. <rule ref="Squiz.WhiteSpace.FunctionSpacing">
  80. <properties>
  81. <property name="spacing" value="1"/>
  82. </properties>
  83. </rule>
  84. <rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
  85. <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
  86. <rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
  87. <rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing"/>
  88. <rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
  89. <rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
  90. <rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
  91. <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
  92. <rule ref="Zend.Files.ClosingTag"/>
  93. </ruleset>