Add CodeSniffer config file based on WordPress standard

[MAILPOET-6240]
This commit is contained in:
Jan Lysý
2024-11-04 11:15:55 +01:00
committed by Jan Lysý
parent 9f08c1864c
commit 8d7f26c42d

View File

@@ -0,0 +1,16 @@
<?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>
<!-- Skip the vendor directory -->
<exclude-pattern>vendor/*</exclude-pattern>
</ruleset>