weedops-devtools/linting/.phpcs.xml
Alex 010984d461 Initial commit: Weedops dev tooling
Linting configs (PHPCS, ESLint, Stylelint), Forgejo CI pipeline,
WordPress health check, PHP linter, strain migration tool,
and Docker local dev environment.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 05:55:00 +00:00

45 lines
1.3 KiB
XML

<?xml version="1.0"?>
<ruleset name="Weedops WordPress Standards">
<description>PHP_CodeSniffer ruleset for Weedops WordPress themes and plugins.</description>
<!-- Scan these file types -->
<arg name="extensions" value="php"/>
<!-- Show progress and sniff codes -->
<arg value="ps"/>
<!-- Paths to check -->
<file>.</file>
<!-- Exclude vendor and node_modules -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/.git/*</exclude-pattern>
<!-- WordPress Coding Standards -->
<rule ref="WordPress">
<!-- Allow short array syntax -->
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>
<!-- WordPress Theme-specific -->
<rule ref="WordPress-Extra"/>
<!-- Enforce text domain for i18n -->
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="weedops"/>
</property>
</properties>
</rule>
<!-- Prefix everything with weedops_ -->
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="weedops"/>
</property>
</properties>
</rule>
</ruleset>