-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
29 lines (24 loc) · 1.09 KB
/
phpcs.xml
File metadata and controls
29 lines (24 loc) · 1.09 KB
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
<?xml version="1.0"?>
<ruleset name="TableBerg">
<description>PHP CodeSniffer rules for TableBerg</description>
<!-- Scan these files -->
<file>./packages/tableberg/includes</file>
<file>./packages/pro/includes</file>
<!-- Exclude vendor directories -->
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/freemius/*</exclude-pattern>
<!-- Line length: 80 chars warning, 120 chars error -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="80"/>
<property name="absoluteLineLimit" value="120"/>
</properties>
</rule>
<!-- Use spaces for indentation -->
<arg name="tab-width" value="4"/>
<!-- Disallow trailing commas in function calls (PHP 7.2 compat) -->
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInCall"/>
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInDeclaration"/>
<rule ref="SlevomatCodingStandard.Functions.DisallowTrailingCommaInClosureUse"/>
</ruleset>