wordpress-activitypub/phpcs.xml
2024-09-30 12:06:59 +02:00

44 lines
1.4 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">
<exclude name="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<exclude name="Generic.Commenting.DocComment.LongNotCapital"/>
<exclude name="Squiz.Commenting"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Universal.NamingConventions.NoReservedKeywordParameterNames"/>
</rule>
<rule ref="VariableAnalysis">
<exclude name="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable"/>
</rule>
<rule ref="WordPress.WP.Capabilities">
<properties>
<property name="custom_capabilities" type="array">
<element value="activitypub" />
</property>
</properties>
</rule>
</ruleset>