https://github.com/PressForward/pressforward
Tip revision: 6574fc369f5d200caa1257f849ff8d2e213c877e authored by Boone B Gorges on 01 March 2023, 19:55:47 UTC
Stable tag 5.4.0.
Stable tag 5.4.0.
Tip revision: 6574fc3
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>
<!-- Do not scan built files. -->
<exclude-pattern>/build/</exclude-pattern>
<file>.</file>
<!-- Check for PHP cross-version compatibility. -->
<rule ref="PHPCompatibilityWP">
<config name="testVersion" value="5.7-"/>
</rule>
<!-- Include the WordPress-Extra standard. -->
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude name="Universal.Arrays.DisallowShortArraySyntax.Found" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_tax_query" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_key" />
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_value" />
<exclude-pattern>class-SplClassLoader.php</exclude-pattern>
<exclude-pattern>Controllers/StatsShortcodes.php</exclude-pattern>
<!-- Third-party libraries don't need to be scanned for coding standards -->
<exclude-pattern>Libraries/</exclude-pattern>
</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>
<rule ref="PEAR.NamingConventions.ValidClassName.Invalid">
<exclude-pattern>Controllers/PF_to_WP_Meta.php</exclude-pattern>
<exclude-pattern>Controllers/PF_to_WP_Posts.php</exclude-pattern>
<exclude-pattern>Controllers/PF_to_WP_System.php</exclude-pattern>
</rule>
<rule ref="PHPCompatibility.Keywords.ForbiddenNamesAsDeclared.resourceFound">
<exclude-pattern>Libraries/text-stats</exclude-pattern>
</rule>
<rule ref="Squiz.Commenting.FileComment.Missing">
<exclude-pattern>pressforward.php</exclude-pattern>
</rule>
</ruleset>