Viewing File: /home/fshjisk/myqueen/wp-content/plugins/user-registration-field-visibility/phpcs.xml

<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for User Registration Plugin">
	<description>Sniffs for WordPress plugins, with minor modifications for User Registration</description>

	<!-- Only scan PHP files. -->
	<arg name="extensions" value="php" />

	<!-- Strip the filepaths down to the relevant bit. -->
	<arg name="basepath" value="./" />

	<!-- Check up to 8 files simultaneously. -->
	<arg name="parallel" value="8" />

	<!-- Show sniff codes in all reports. -->
	<arg value="ps" />

	<file>.</file>

	<!-- Directories and third party library exclusions. -->
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>

	<!-- Configs -->
	<config name="minimum_supported_wp_version" value="5.4" />
	<config name="testVersion" value="5.6-" />

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

	<!-- WordPress -->
	<rule ref="WordPress">
		<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching" />
		<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery" />
		<exclude name="WordPress.DB.DirectDatabaseQuery.SchemaChange" />
		<!-- Ignore filename error since that won't be renamed. -->
		<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
		<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
		<!-- Ignore base64_encode() obfuscation error in parser. -->
		<exclude name="WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode" />
		<!-- Ignore Variable and Method name in class not in snake case format. -->
		<exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
		<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase" />
	</rule>

	<rule ref="WordPress.WP.I18n">
		<properties>
			<property name="text_domain" type="array" value="user-registration-field-visibility" />
		</properties>
	</rule>

	<!-- Rules -->
	<rule ref="Squiz.Commenting">
		<!-- Don't make comment formatting quite as strict -->
		<exclude name="Squiz.Commenting.InlineComment.SpacingAfter" />
		<exclude name="Squiz.Commenting.LongConditionClosingComment" />
		<exclude name="Squiz.Commenting.PostStatementComment" />
	</rule>
</ruleset>
Back to Directory File Manager