phpcs.xml.dist 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0"?>
  2. <ruleset>
  3. <arg name="basepath" value="."/>
  4. <arg name="extensions" value="php"/>
  5. <arg name="parallel" value="45"/>
  6. <arg name="cache" value=".phpcs-cache"/>
  7. <arg name="colors"/>
  8. <!-- Ignore warnings and show progress of the run -->
  9. <arg value="np"/>
  10. <file>.</file>
  11. <exclude-pattern>/vendor</exclude-pattern>
  12. <rule ref="Doctrine">
  13. <!-- Traversable type hints often end up as mixed[], so we skip them for now -->
  14. <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversablePropertyTypeHintSpecification"/>
  15. <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
  16. <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
  17. </rule>
  18. <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix">
  19. <exclude-pattern>FixtureGroupInterface.php</exclude-pattern>
  20. <exclude-pattern>ORMFixtureInterface.php</exclude-pattern>
  21. </rule>
  22. <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint">
  23. <exclude-pattern>Loader/SymfonyFixturesLoader.php</exclude-pattern>
  24. </rule>
  25. <rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
  26. <exclude-pattern>Tests/IntegrationTest.php</exclude-pattern>
  27. </rule>
  28. <rule ref="Squiz.Classes.ClassFileName.NoMatch">
  29. <exclude-pattern>Tests/IntegrationTest.php</exclude-pattern>
  30. </rule>
  31. </ruleset>