<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
	<description>Sniffs for Notification WordPress plugin</description>

	<rule ref="WordPress">
		<!-- <exclude name="WordPress-VIP" /> -->
		<exclude name="Generic.Files.LowercasedFilename" />
		<exclude name="WordPress.Files.FileName" />
		<exclude name="WordPress.Files.FileName.UnderscoresNotAllowed" />
		<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
		<exclude name="WordPress.PHP.DevelopmentFunctions.error_log_trigger_error" />
		<exclude name="WordPress.VIP.SuperGlobalInputUsage.AccessDetected" />
		<exclude name="WordPress.VIP.ValidatedSanitizedInput" />
		<exclude name="WordPress.VIP.RestrictedFunctions" />
		<exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" />
		<exclude name="WordPress.Security.NonceVerification.NoNonceVerification" />
		<exclude name="WordPress.DB.SlowDBQuery" />
		<exclude name="WordPress.VIP.PostsPerPage" />
		<exclude name="WordPress.WP.I18n.NonSingularStringLiteralText" />
		<exclude name="WordPress.VIP.RestrictedVariables.cache_constraints___SERVER__REMOTE_ADDR__" />
		<exclude name="WordPress.WP.AlternativeFunctions.file_system_read_file_get_contents" />
		<exclude name="WordPress.WP.I18n.NonSingularStringLiteralDomain" />
		<exclude name="WordPress.WP.GlobalVariablesOverride" />
		<exclude name="PEAR.Functions.FunctionCallSignature.MultipleArguments" />
		<exclude name="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket" />
		<exclude name="PEAR.Functions.FunctionCallSignature.CloseBracketLine" />
	</rule>
	<rule ref="Squiz.Commenting.FunctionComment">
	    <exclude name="Squiz.Commenting.FunctionComment.InvalidTypeHint" />
	</rule>
	<rule ref="PSR2.Methods.MethodDeclaration">
	    <exclude name="PSR2.Methods.MethodDeclaration.Underscore" />
	</rule>

	<!-- Check all PHP files in directory tree by default. -->
	<arg name="extensions" value="php"/>
	<file>.</file>

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

	<exclude-pattern>*/assets/*</exclude-pattern>
	<exclude-pattern>*/bin/*</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/freemius/*</exclude-pattern>
	<exclude-pattern>*/languages/*</exclude-pattern>
	<exclude-pattern>*/tests/*</exclude-pattern>
	<exclude-pattern>class/Utils/EDDUpdater.php</exclude-pattern>
</ruleset>
