phpcs.xml.dist 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version="1.0"?>
  2. <ruleset>
  3. <arg name="basepath" value="."/>
  4. <arg name="extensions" value="php"/>
  5. <arg name="parallel" value="80"/>
  6. <arg name="cache" value=".phpcs-cache"/>
  7. <arg name="colors"/>
  8. <!-- Ignore warnings, show progress of the run and show sniff names -->
  9. <arg value="nps"/>
  10. <file>src</file>
  11. <file>tests</file>
  12. <rule ref="Doctrine">
  13. <exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
  14. <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint"/>
  15. <exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint"/>
  16. <exclude name="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly.ReferencedGeneralException"/>
  17. </rule>
  18. <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming">
  19. <exclude-pattern>tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php</exclude-pattern>
  20. </rule>
  21. <rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming">
  22. <exclude-pattern>src/Doctrine/Instantiator/Exception/UnexpectedValueException.php</exclude-pattern>
  23. <exclude-pattern>src/Doctrine/Instantiator/Exception/InvalidArgumentException.php</exclude-pattern>
  24. </rule>
  25. <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming">
  26. <exclude-pattern>src/Doctrine/Instantiator/Exception/ExceptionInterface.php</exclude-pattern>
  27. <exclude-pattern>src/Doctrine/Instantiator/InstantiatorInterface.php</exclude-pattern>
  28. </rule>
  29. </ruleset>