You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are various rules that we ignore via comment, slow queries being the biggest. However, CodeClimate will flag those comments for not having the proper punctuation, and still flag the ones that are ignored. I'd like to update the phpcs.xml file to reflect the rules we generally ignore to begin with.
<?xml version="1.0"?>
<rulesetname="BU-ID-Defaults">
<description>Modified ruleset for BU Interactive Design.</description>
<!--Exclued 3rd party code.-->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Ensure certain file types aren't sniffed -->
<exclude-pattern>*\.(scss|css|js)</exclude-pattern>
<ruleref="WordPress">
<!-- Don't require punctuation after inline comments -->
<excludename="Squiz.Commenting.InlineComment.InvalidEndChar"/>
<!-- Allow empty catch statements -->
<excludename="Generic.CodeAnalysis.EmptyStatement.DetectedCatch"/>
<!-- Comment punctuation doesn't matter -->
<excludename="Squiz.Commenting.FunctionComment.ParamCommentFullStop"/>
<excludename="Squiz.Commenting.FunctionComment.ThrowsNoFullStop"/>
<!-- Allow shorthand array syntax -->
<excludename="Generic.Arrays.DisallowShortArraySyntax.Found"/>
<!-- Don't worry about slow queries -->
<excludename="WordPress.DB.SlowDBQuery"/>
<!-- This nonce sniff almost never works right -->
<excludename="WordPress.Security.NonceVerification.Missing"/>
</rule>
<!-- Sets the minimum supported WP version to 5.4. -->
<configname="minimum_supported_wp_version"value="5.4" />
<!-- Make missing translator comment a warning. -->
<ruleref="WordPress.WP.I18n.MissingTranslatorsComment">
<type>warning</type>
</rule>
<!-- Sometimes we need to override globals -->
<ruleref="WordPress.WP.GlobalVariablesOverride.OverrideProhibited">
<type>warning</type>
</rule>
</ruleset>
The text was updated successfully, but these errors were encountered:
There are various rules that we ignore via comment, slow queries being the biggest. However, CodeClimate will flag those comments for not having the proper punctuation, and still flag the ones that are ignored. I'd like to update the phpcs.xml file to reflect the rules we generally ignore to begin with.
The text was updated successfully, but these errors were encountered: