wordpress-activitypub/phpcs.xml
Konstantin Obenland 00a57c39a4
PHPCS: Enable Commenting sniff (#925)
* PHPCS: Enable Commenting sniff

* Apply suggestions from code review

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>

* Fix param alignment.

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-10-07 13:25:51 +02:00

36 lines
1.1 KiB
XML

<?xml version="1.0"?>
<ruleset name="WordPress ActivityPub">
<description>WordPress ActivityPub Standards</description>
<file>./activitypub.php</file>
<file>./includes/</file>
<file>./integration/</file>
<file>./build/</file>
<exclude-pattern>*\.(inc|css|js|svg)</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*.asset.php</exclude-pattern>
<arg value="ps"/>
<arg name="basepath" value="."/><!-- Strip the file paths down to the relevant bit -->
<arg name="colors"/>
<arg name="parallel" value="50"/>
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.0-"/>
<rule ref="PHPCompatibilityWP"/>
<config name="minimum_supported_wp_version" value="4.7"/>
<config name="text_domain" value="activitypub,default"/>
<rule ref="WordPress"/>
<rule ref="VariableAnalysis"/>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="activitypub" />
</property>
</properties>
</rule>
</ruleset>