phpcs.xml.dist 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  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>.</file>
  11. <exclude-pattern>vendor/*</exclude-pattern>
  12. <rule ref="Doctrine">
  13. <exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"/>
  14. <exclude name="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator.RequiredNullCoalesceEqualOperator"/> <!-- PHP 7.4 required-->
  15. <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/> <!-- PHP 7.4 required-->
  16. <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingNativeTypeHint"/> <!-- we can do it in doctrine-bundle 3.0-->
  17. <exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint"/> <!-- we can do it in doctrine-bundle 3.0 -->
  18. <exclude name="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming.SuperfluousSuffix"/>
  19. <exclude name="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix"/>
  20. </rule>
  21. <rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
  22. <exclude-pattern>Tests/*</exclude-pattern>
  23. </rule>
  24. <rule ref="Squiz.Classes.ClassFileName.NoMatch">
  25. <exclude-pattern>Tests/*</exclude-pattern>
  26. </rule>
  27. <rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements.UnusedProperty">
  28. <exclude-pattern>Tests/DependencyInjection/Fixtures/*</exclude-pattern>
  29. </rule>
  30. </ruleset>