<?xml version="1.0"?>
<ruleset name="WordPress Theme Coding Standards">
    <!-- See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml -->
    <!-- See https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/WordPress-Core/ruleset.xml -->

    <!-- Set a description for this ruleset. -->
    <description>A custom set of code standard rules to check for WordPress themes.</description>

    <!-- Include the WordPress ruleset, with space for exclusions if necessary. -->
    <rule ref="WordPress-Core">
        <exclude name="Generic.Commenting.DocComment.MissingShort" />
        <exclude name="Generic.Formatting.MultipleStatementAlignment" />
        <exclude name="Squiz.Commenting.ClassComment.Missing" />
        <exclude name="Squiz.Commenting.FileComment.Missing" />
        <exclude name="Squiz.Commenting.FunctionComment.Missing" />
        <exclude name="Squiz.Commenting.FunctionComment.MissingParamComment" />
        <exclude name="Squiz.Commenting.VariableComment.Missing" />
        <exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeOpen" />
        <exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterOpen" />
        <exclude name="Squiz.PHP.EmbeddedPhp.ContentBeforeEnd" />
        <exclude name="Squiz.PHP.EmbeddedPhp.ContentAfterEnd" />

        <exclude name="WordPress.Arrays.MultipleStatementAlignment" />
        <exclude name="WordPress.CSRF.NonceVerification.NoNonceVerification" />
        <exclude name="WordPress.Files.FileName.InvalidClassFileName" />
        <exclude name="WordPress.Security.EscapeOutput"/>
        <exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped"/>
        <exclude name="WordPress.Security.EscapeOutput.UnsafePrintingFunction" />
        <exclude name="WordPress.Security.NonceVerification.NoNonceVerification"/>
        <exclude name="WordPress.WP.I18n.MissingTranslatorsComment" />
        <exclude name="WordPress.WP.I18n.NonSingularStringLiteralSingle" />
        <exclude name="WordPress.WP.I18n.NonSingularStringLiteralPlural" />
        <exclude name="WordPress.WP.EnqueuedResources.NonEnqueuedStylesheet" />
        <exclude name="WordPress.PHP.StrictComparisons" />
        <exclude name="WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid" />
        <exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
        <exclude name="WordPress.NamingConventions.ValidVariableName.NotSnakeCase" />
        <exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase" />

    </rule>
    <rule ref="WordPress-Docs">

    </rule>

    <rule ref="Squiz.Commenting.FunctionComment.ScalarTypeHintMissing">
        <severity>0</severity>
    </rule>

    <rule ref="WordPress.NamingConventions.ValidHookName">
        <properties>
            <property name="additionalWordDelimiters" value="/-" />
        </properties>
    </rule>

</ruleset>