4
0

phpcs.xml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0"?>
  2. <ruleset name="PHP.Gt Standard" namespace="Gt\CS\Standard">
  3. <description>Created from PHP.Gt/Styleguide</description>
  4. <arg name="extensions" value="php" />
  5. <rule ref="Generic.Classes.DuplicateClassName" />
  6. <rule ref="Generic.Classes.OpeningBraceSameLine" />
  7. <rule ref="Generic.CodeAnalysis.EmptyPHPStatement" />
  8. <rule ref="Generic.CodeAnalysis.EmptyStatement" />
  9. <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" />
  10. <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
  11. <rule ref="Generic.CodeAnalysis.JumbledIncrementer" />
  12. <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
  13. <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier" />
  14. <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
  15. <rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
  16. <rule ref="Generic.ControlStructures.InlineControlStructure" />
  17. <rule ref="Generic.Files.ByteOrderMark" />
  18. <rule ref="Generic.Files.EndFileNewline" />
  19. <rule ref="Generic.Files.InlineHTML" />
  20. <rule ref="Generic.Files.LineEndings" />
  21. <rule ref="Generic.Files.LineLength" />
  22. <rule ref="Generic.Files.OneClassPerFile" />
  23. <rule ref="Generic.Files.OneInterfacePerFile" />
  24. <rule ref="Generic.Files.OneObjectStructurePerFile" />
  25. <rule ref="Generic.Files.OneTraitPerFile" />
  26. <rule ref="Generic.Formatting.DisallowMultipleStatements" />
  27. <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
  28. <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
  29. <rule ref="Generic.Metrics.CyclomaticComplexity" />
  30. <rule ref="Generic.Metrics.NestingLevel" />
  31. <rule ref="Generic.NamingConventions.CamelCapsFunctionName" />
  32. <rule ref="Generic.NamingConventions.ConstructorName" />
  33. <rule ref="Generic.NamingConventions.UpperCaseConstantName" />
  34. <rule ref="Generic.PHP.BacktickOperator" />
  35. <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
  36. <rule ref="Generic.PHP.DisallowAlternativePHPTags" />
  37. <rule ref="Generic.PHP.DisallowRequestSuperglobal" />
  38. <rule ref="Generic.PHP.DisallowShortOpenTag" />
  39. <rule ref="Generic.PHP.DiscourageGoto" />
  40. <rule ref="Generic.PHP.ForbiddenFunctions">
  41. <properties>
  42. <property name="forbiddenFunctions" type="array">
  43. <element key="die" value="null"/>
  44. <element key="exit" value="null"/>
  45. </property>
  46. </properties>
  47. </rule>
  48. <rule ref="Generic.PHP.LowerCaseConstant" />
  49. <rule ref="Generic.PHP.LowerCaseKeyword" />
  50. <rule ref="Generic.PHP.LowerCaseType" />
  51. <rule ref="Generic.PHP.NoSilencedErrors" />
  52. <rule ref="Generic.PHP.Syntax" />
  53. <rule ref="Generic.PHP.Syntax" />
  54. <rule ref="Generic.VersionControl.GitMergeConflict" />
  55. <rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing" />
  56. <rule ref="Generic.WhiteSpace.DisallowSpaceIndent" />
  57. <rule ref="Generic.WhiteSpace.IncrementDecrementSpacing" />
  58. <rule ref="Generic.WhiteSpace.LanguageConstructSpacing" />
  59. </ruleset>