<?xml version="1.0"?>
<ruleset name="Nobel Prizes ruleset">
	<description>Nobel Prizes rules for PHP CodeSniffer</description>

	<rule ref="PHPCompatibilityWP" />

	<rule ref="10up-Default">
		<exclude name="Squiz.Commenting.FunctionComment.EmptyThrows"/>
		<exclude name="Squiz.Commenting.FileComment.Missing"/>
		<exclude name="Squiz.Commenting.FunctionComment.MissingParamComment"/>
		<exclude name="Squiz.Commenting.ClassComment.Missing"/>
		<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
		<exclude name="Generic.Commenting.DocComment.MissingShort"/>
		<exclude name="Squiz.Commenting.FunctionComment.MissingParamName"/>
		<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType"/>
		<exclude name="WordPress.Security.EscapeOutput.ExceptionNotEscaped"	/>
		<exclude name="Squiz.Commenting.VariableComment.Missing" />
		<exclude name="Squiz.Commenting.FunctionComment.MissingParamType" />
		<exclude name="Squiz.Commenting.FunctionComment.MissingParamTag" />
	</rule>

	<rule ref="Internal.NoCodeFound">
		<severity>0</severity>
	</rule>

	<!-- Check for cross-version support for PHP 8.2 and higher. -->
	<config name="testVersion" value="7.4-" />

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

	<!-- Show sniff name -->
	<arg value="s"/>

	<!-- Show colors -->
	<arg name="colors"/>

	<file>includes</file>

	<exclude-pattern>*/tests/*</exclude-pattern>
	<exclude-pattern>*/dist/*</exclude-pattern>
	<exclude-pattern>*/vendor/*</exclude-pattern>
	<exclude-pattern>*/node_modules/*</exclude-pattern>
	<exclude-pattern>*/*\.(css|js)$</exclude-pattern>
</ruleset>
