ruleset.xml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <ruleset name="Magento2FunctionalTestingFramework">
  9. <description>Custom Magento2 Functional Testing Framework coding standard.</description>
  10. <rule ref="PSR2"/>
  11. <rule ref="Magento.Files.LineLength">
  12. <properties>
  13. <property name="lineLimit" value="120"/>
  14. <property name="absoluteLineLimit" value="120"/>
  15. </properties>
  16. </rule>
  17. <rule ref="Magento.LiteralNamespaces.LiteralNamespaces">
  18. <exclude-pattern>*/_files/*</exclude-pattern>
  19. </rule>
  20. <rule ref="Magento.Commenting.FunctionComment">
  21. <exclude-pattern>*/dev/tests*</exclude-pattern>
  22. </rule>
  23. <rule ref="Magento.Commenting.VariableComment"/>
  24. <rule ref="Generic.Functions.CallTimePassByReference"/>
  25. <rule ref="Generic.PHP.DeprecatedFunctions"/>
  26. <rule ref="Squiz.Commenting.DocCommentAlignment"/>
  27. <rule ref="Squiz.Functions.GlobalFunction"/>
  28. <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
  29. <!-- Codeception Webdriver violates this, cannot fix as we extend from them -->
  30. <rule ref="PSR2.Methods.MethodDeclaration.Underscore">
  31. <severity>0</severity>
  32. </rule>
  33. </ruleset>