Files
piratepoet/packages/php/email-editor/phpcs.xml
Jan Lysý c6f6eeef53 Add excluded rule for tests to avoid repetition
Our tests use method _after and _before, so we would need to add ignore to each usage.
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00

28 lines
977 B
XML

<?xml version="1.0"?>
<ruleset name="Custom WordPress Standards">
<!-- Set the base standard to WordPress -->
<rule ref="WordPress"/>
<!-- Define files and folders to scan -->te
<file>.</file>
<!-- Exclude test files from FileName rules because we need to match Codeception autoload -->
<rule ref="WordPress.Files.FileName">
<exclude-pattern>tests/*</exclude-pattern>
</rule>
<!-- Exclude bootstrap from the SeparateFunctionsFromOO.Mixed rule -->
<rule ref="Universal.Files.SeparateFunctionsFromOO.Mixed">
<exclude-pattern>tests/unit/_bootstrap.php</exclude-pattern>
</rule>
<!-- Exclude test files from the PSR2.Methods.MethodDeclaration.Underscore rule due to methods _after() and _before() -->
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<exclude-pattern>tests/integration</exclude-pattern>
<exclude-pattern>tests/unit</exclude-pattern>
</rule>
<!-- Skip the vendor directory -->
<exclude-pattern>vendor/*</exclude-pattern>
</ruleset>