phpcs.xml.dist 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <!-- Disable the rules that will require PHP 7.4 -->
  19. <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
  20. <properties>
  21. <property name="enableNativeTypeHint" value="false"/>
  22. </properties>
  23. </rule>
  24. <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint">
  25. <exclude-pattern>*/src/*</exclude-pattern>
  26. </rule>
  27. <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint">
  28. <exclude-pattern>*/src/*</exclude-pattern>
  29. </rule>
  30. <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming">
  31. <exclude-pattern>tests/DoctrineTest/InstantiatorTestAsset/AbstractClassAsset.php</exclude-pattern>
  32. </rule>
  33. <rule ref="SlevomatCodingStandard.Classes.SuperfluousExceptionNaming">
  34. <exclude-pattern>src/Doctrine/Instantiator/Exception/UnexpectedValueException.php</exclude-pattern>
  35. <exclude-pattern>src/Doctrine/Instantiator/Exception/InvalidArgumentException.php</exclude-pattern>
  36. </rule>
  37. <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming">
  38. <exclude-pattern>src/Doctrine/Instantiator/Exception/ExceptionInterface.php</exclude-pattern>
  39. <exclude-pattern>src/Doctrine/Instantiator/InstantiatorInterface.php</exclude-pattern>
  40. </rule>
  41. </ruleset>