-
Notifications
You must be signed in to change notification settings - Fork 4
/
phpcs-end.xml
37 lines (30 loc) · 1.11 KB
/
phpcs-end.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
33
34
35
36
37
<?xml version="1.0"?>
<ruleset name="G2_Ruleset">
<description>Coding Standards for Gallery 2 Community Edition</description>
<!-- GENERAL:
- Rules basically follow PSR2
- This is run after php-cs-fixer to apply operator alignment.
-->
<!-- Assume UTF-8 -->
<config name="encoding" value="utf-8" />
<!-- ARGS -->
<arg name="tab-width" value="4" />
<arg name="extensions" value="php,inc,class,css,js,xml,xaml,html" />
<arg name="ignore" value="*g2data/*,*/lib/composer/*,*/dev_vendor/*,*/dev_scripts/*,*MANIFEST*,*GNUmakefile*" />
<!-- Load WordPress Standards -->
<config name="installed_paths" value="dev_vendor/wp-coding-standards/wpcs" />
<!-- APPLY SELECTED WORDPRESS RULES -->
<rule ref="WordPress.Arrays.MultipleStatementAlignment">
<properties>
<property name="maxColumn" value="70" />
<property name="exact" value="true" />
<property name="alignMultilineItems" value="!=100" />
</properties>
</rule>
<!-- APPLY SELECTED GENERIC RULES -->
<rule ref="Generic.Formatting.MultipleStatementAlignment">
<properties>
<property name="maxPadding" value="45" />
</properties>
</rule>
</ruleset>