<?xml version="1.0"?>
<ruleset name="OnlineStatusInSL Plugin"
		 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		 xsi:noNamespaceSchemaLocation="phpcs.xsd">
    <description>Rules for WordPress plugins</description>

	<!-- do not check for old code, which will be hopelessly smelly (gwyneth 20220425) -->
	<exclude-pattern>*/tags/*</exclude-pattern>

    <arg name="basepath" value="trunk"/>
    <arg name="extensions" value="php"/>
    <arg name="colors"/>
    <arg name="parallel" value="75"/>
    <arg name="tab-width" value="4"/>

    <!-- Show progress of the run
    <arg value="p"/>
    -->

    <!-- Include the whole WordPress standard -->
    <rule ref="WordPress"/>

	<!-- Include PHPCompatibility and PHPCompatibilityWP-->
    <rule ref="PHPCompatibility"/>
	<rule ref="PHPCompatibilityWP"/>

    <config name="testVersion" value="7.4-"/>

    <!-- Allow long lines -->
    <rule ref="Generic.Files.LineLength">
        <severity>0</severity>
    </rule>

    <rule ref="WordPress.WP.DeprecatedClasses">
        <properties>
            <property name="minimum_supported_version" value="5.4"/>
        </properties>
    </rule>

    <rule ref="WordPress.WP.DeprecatedFunctions">
        <properties>
            <property name="minimum_supported_version" value="5.4"/>
        </properties>
    </rule>

    <rule ref="WordPress.WP.DeprecatedParameters">
        <properties>
            <property name="minimum_supported_version" value="5.4"/>
        </properties>
    </rule>

	<rule ref="WordPress">
		<exclude name="WordPress.Files.FileName.InvalidClassFileName"/>
		<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
	</rule>

	<rule ref="Squiz.Commenting">
		<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
		<exclude name="Squiz.Commenting.FileComment.Missing"/>
		<exclude name="Squiz.Commenting.ClassComment.Missing"/>
		<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
	</rule>
</ruleset>