mirror of
https://ghproxy.net/https://github.com/abhijitb/helix.git
synced 2025-08-28 00:34:34 +08:00
33 lines
987 B
Text
33 lines
987 B
Text
|
<?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>
|
|||
|
|