summaryrefslogtreecommitdiffstats
path: root/.phpcs.xml
blob: 8cc7e75f895dcb91ac1c79ff06b924e582474ab9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd">
    <description>PHPCS configuration for Giglogadmin</description>

    <file>giglogadmin.php</file>
    <file>includes</file>

    <exclude-pattern>*/src/Standards/*/Tests/*\.(inc|css|js)$</exclude-pattern>
    <exclude-pattern>*/tests/Core/*/*\.(inc|css|js)$</exclude-pattern>

    <arg name="basepath" value="."/>
    <arg name="colors"/>
    <arg name="parallel" value="75"/>
    <arg value="np"/>

    <!-- Don't hide tokenizer exceptions -->
    <rule ref="Internal.Tokenizer.Exception">
        <type>error</type>
    </rule>

    <!-- Include the whole PEAR standard -->
    <rule ref="WordPress">
        <exclude name="Generic.WhiteSpace.DisallowSpaceIndent" />
        <exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
        <exclude name="WordPress.PHP.YodaConditions.NotYoda" />
    </rule>
</ruleset>