-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml.dist
40 lines (35 loc) · 1.4 KB
/
.phpcs.xml.dist
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
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<ruleset>
<file>.</file>
<exclude-pattern>build</exclude-pattern>
<exclude-pattern>uploads</exclude-pattern>
<exclude-pattern>/public</exclude-pattern>
<arg name="extensions" value="php" />
<!-- https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="7.4-"/>
<!-- https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties -->
<config name="minimum_supported_wp_version" value="5.7"/>
<rule ref="CodeAtlantic">
<!-- <exclude name="WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid" />
<exclude name="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase" />
<exclude name="Squiz.Commenting.FileComment.Missing" /> -->
</rule>
<!-- <rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. -->
<property name="prefixes" type="array">
<element value="alapp"/>
<element value="App" />
<element value="app" />
</property>
</properties>
</rule>
<rule ref="WordPress.WP.I18n">
<properties>
<!-- Value: replace the text domain used. -->
<property name="text_domain" type="array">
<element value="app" />
</property>
</properties>
</rule> -->
</ruleset>