https://github.com/PressForward/pressforward
Raw File
Tip revision: 1227ece8e858dfb6fc4b02349192a7dec50d1868 authored by Boone B Gorges on 16 December 2022, 18:58:11 UTC
Fix folder query when querying for nominations.
Tip revision: 1227ece
phpcs.xml.dist
<?xml version="1.0"?>
<ruleset name="PressForward">
	<description>A custom set of PHPCS rules for PressForward PHP files.</description>

	<!-- Exclude the Composer Vendor directory. -->
	<exclude-pattern>/vendor/*</exclude-pattern>

	<!-- Exclude any Node Modules directory. -->
	<exclude-pattern>/node_modules/*</exclude-pattern>

	<!-- Exclude Javascript and CSS files. -->
	<exclude-pattern>*.js</exclude-pattern>
	<exclude-pattern>*.css</exclude-pattern>

	<!-- Exclude test files. -->
	<exclude-pattern>/tests/</exclude-pattern>

	<!-- Misc files that are not loaded in production -->
	<exclude-pattern>Libraries/random_compat/other/build_phar.php</exclude-pattern>
	<exclude-pattern>Libraries/FiveFiltersReadability/examples/</exclude-pattern>
	<exclude-pattern>modules/foo</exclude-pattern>

	<!-- Iterate over all PHP files by default -->
	<file>.</file>

	<!-- Check for PHP cross-version compatibility. -->
	<config name="testVersion" value="5.3-"/>
	<!-- <rule ref="PHPCompatibilityWP" /> -->

	<!-- Include the WordPress-Extra standard. -->
	<!--
	<rule ref="WordPress">
		<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
		<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
		<exclude name="Generic.Arrays.DisallowShortArraySyntax.Found" />
	</rule>
	-->

	<rule ref="WordPress.Security">
		<exclude name="WordPress.Security.NonceVerification" />
	</rule>

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

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

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

</ruleset>
back to top