Last active
January 5, 2022 12:06
WordPress Custom Coding standard for phpcs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Sayem Rules" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"> | |
<description>Sayem Ruleset to validate WordPress coding standard</description> | |
<rule ref="WordPress-Extra"> | |
<exclude name="WordPress.Arrays.ArrayDeclarationSpacing"/> | |
<exclude name="WordPress.Files.FileName.InvalidClassFileName"/> | |
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/> | |
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores"/> | |
</rule> | |
<rule ref="WordPress.PHP.StrictComparisons"> | |
<severity>2|3</severity> | |
</rule> | |
<rule ref="WordPress.WP.I18n"> | |
<properties> | |
<property name="text_domain" type="array"> | |
<element key="plugins/happy-elementor-addons" value="happy-elementor-addons"/> | |
<element key="plugins/happy-elementor-addons-pro" value="happy-addons-pro"/> | |
<element key="plugins/eazygrid-elementor" value="eazygrid-elementor"/> | |
<element key="plugins/eazyfilter" value="eazyfilter"/> | |
</property> | |
</properties> | |
</rule> | |
<rule ref="WordPress.NamingConventions.ValidVariableName"> | |
<properties> | |
<property name="customVariablesWhitelist" value="PHP_classes" type="array" /> | |
</properties> | |
</rule> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment