-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs.xml
32 lines (28 loc) · 1 KB
/
phpcs.xml
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
28
29
30
31
32
<?xml version="1.0"?>
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<rule ref="Alley-Interactive">
<exclude name="Squiz.Commenting.FileComment.Missing" />
<exclude name="WordPress.NamingConventions.ValidPostTypeSlug.NotStringLiteral" />
<exclude name="Generic.Arrays.DisallowLongArraySyntax.Found" />
<exclude name="VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable" />
<exclude name="WordPress.NamingConventions.PrefixAllGlobals.ShortPrefixPassed" />
<exclude name="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase" />
</rule>
<arg value="ps" />
<arg name="severity" value="1" />
<exclude-pattern>tests/</exclude-pattern>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<property name="prefixes" type="array">
<element value="AI_Logger" />
</property>
</properties>
</rule>
</phpunit>