phpcs.xml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0"?>
  2. <ruleset name="PHP_CodeSniffer">
  3. <description>The coding standard for laravel package</description>
  4. <file>src</file>
  5. <exclude-pattern>*.json</exclude-pattern>
  6. <exclude-pattern>*.xml</exclude-pattern>
  7. <arg name="colors"/>
  8. <arg value="p"/>
  9. <rule ref="PSR2">
  10. <exclude name="Generic.Files.LineLength"/>
  11. </rule>
  12. <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace" />
  13. <rule ref="Generic.Commenting.DocComment.MissingShort" />
  14. <rule ref="Generic.Commenting.DocComment.SpacingBeforeTags" />
  15. <rule ref="Generic.Commenting.DocComment.SpacingBeforeTags" />
  16. <rule ref="MySource.Commenting.FunctionComment.InvalidReturn" />
  17. <!-- <rule ref="MySource.Commenting.FunctionComment.MissingParamComment" />-->
  18. <rule ref="MySource.Commenting.FunctionComment.TypeHintMissing" />
  19. <rule ref="Generic.Arrays.DisallowLongArraySyntax" />
  20. <rule ref="Generic.Classes.DuplicateClassName" />
  21. <rule ref="Generic.CodeAnalysis.EmptyStatement" />
  22. <rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall" />
  23. <rule ref="Generic.CodeAnalysis.JumbledIncrementer" />
  24. <rule ref="Generic.CodeAnalysis.UnconditionalIfStatement" />
  25. <rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier" />
  26. <rule ref="Generic.CodeAnalysis.UnusedFunctionParameter" />
  27. <rule ref="Generic.CodeAnalysis.UselessOverridingMethod" />
  28. <rule ref="Generic.Commenting.Fixme" />
  29. <rule ref="Generic.Commenting.Todo" />
  30. <rule ref="Generic.ControlStructures.InlineControlStructure" />
  31. </ruleset>