Add CodeSniffer config file based on WordPress standard
[MAILPOET-6240]
This commit is contained in:
16
packages/php/email-editor/phpcs.xml
Normal file
16
packages/php/email-editor/phpcs.xml
Normal 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>
|
Reference in New Issue
Block a user