File "phpcs.xml"

Full Path: /home/romayxjt/public_html/wp-content/plugins/orderable/phpcs.xml
File size: 2.12 KB
MIME-type: text/xml
Charset: utf-8

<?xml version="1.0"?>
<ruleset name="IconicWP-Default">
    <description>Generally-applicable sniffs for Iconic plugins</description>

	<!--
	Prevent errors caused by WordPress Coding Standards not supporting PHP 8.0+.
	See https://github.com/WordPress/WordPress-Coding-Standards/issues/2035
	-->
	<ini name="error_reporting" value="E_ALL &#38; ~E_DEPRECATED" />

    <!-- Configs -->
    <config name="minimum_supported_wp_version" value="5.2"/>
    <config name="testVersion" value="7.1-"/>

    <!-- Excludes -->
	<exclude-pattern>*/dist/*</exclude-pattern>
	<exclude-pattern>*/languages/*</exclude-pattern>
	<exclude-pattern>*/.github/*</exclude-pattern>
	<exclude-pattern>*/wp-admin/*</exclude-pattern>
	<exclude-pattern>*/wp-includes/*</exclude-pattern>
	<exclude-pattern>*/wp-config.php</exclude-pattern>
	<exclude-pattern>*/functions.php</exclude-pattern>
	<exclude-pattern>*/*.asset.php</exclude-pattern>
	<exclude-pattern>*/stubs/*</exclude-pattern>

	<!-- Third-party code -->
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*/vendor-prefixed/*</exclude-pattern>

	<!-- Ensure certain file types aren't sniffed -->
	<exclude-pattern>*\.(css|js)</exclude-pattern>

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

	<rule ref="WordPress-Core">
        <exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
		<exclude name="WordPress.PHP.YodaConditions"/>
    </rule>

	<rule ref="WooCommerce-Core" />
	<rule ref="PHPCompatibilityWP"/>

	<rule ref="WordPress.WP.PostsPerPage">
		<properties>
			<property name="posts_per_page" value="200"/>
		</properties>
	</rule>

	<rule ref="WordPress-Extra">
		<!-- Don't require punctuation after inline comments -->
		<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>

		<!-- Comment punctuation doesn't matter -->
		<exclude name="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/>
		<exclude name="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>
	</rule>
</ruleset>