mirror of
https://ghproxy.net/https://github.com/abhijitb/helix.git
synced 2025-08-27 15:33:37 +08:00
32 lines
987 B
XML
32 lines
987 B
XML
<?xml version="1.0"?>
|
||
<ruleset name="Helix Plugin – WordPress Coding Standards">
|
||
<description>Apply WordPress Coding Standards to the Helix plugin.</description>
|
||
|
||
<!-- Scan only this plugin -->
|
||
<file>./</file>
|
||
|
||
<!-- Ignore non-PHP and build artifacts -->
|
||
<exclude-pattern>node_modules/*</exclude-pattern>
|
||
<exclude-pattern>build/*</exclude-pattern>
|
||
<exclude-pattern>vendor/*</exclude-pattern>
|
||
|
||
<!-- PHPCS args -->
|
||
<arg name="basepath" value="."/>
|
||
<arg name="colors"/>
|
||
<arg name="extensions" value="php"/>
|
||
|
||
<!-- Apply WordPress rulesets (requires WPCS installed) -->
|
||
<rule ref="WordPress"/>
|
||
<rule ref="WordPress-Extra"/>
|
||
<rule ref="WordPress-Docs"/>
|
||
|
||
<!-- Optional: flag missing text domains in i18n functions -->
|
||
<rule ref="WordPress.WP.I18n">
|
||
<properties>
|
||
<property name="text_domain">
|
||
<element value="helix"/>
|
||
</property>
|
||
</properties>
|
||
</rule>
|
||
</ruleset>
|
||
|