-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.phpcs.xml
More file actions
28 lines (26 loc) · 1.38 KB
/
Copy path.phpcs.xml
File metadata and controls
28 lines (26 loc) · 1.38 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
<?xml version="1.0"?>
<ruleset>
<file>.</file>
<exclude-pattern>/.git/</exclude-pattern>
<exclude-pattern type="relative">^node_modules/</exclude-pattern>
<exclude-pattern type="relative">^vendor/</exclude-pattern>
<arg name="colors" />
<arg name="extensions" value="php" />
<arg value="p" />
<arg name="warning-severity" value="0" />
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength" />
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
<!-- GLPI's own convention for CommonDBRelation classes uses underscore-joined
names (e.g. core's Appliance_Item, Calendar_Holiday) instead of PascalCase. -->
<exclude name="Squiz.Classes.ValidClassName.NotCamelCaps" />
<!-- post_addItem/post_updateItem/post_purgeItem are the exact override names
required by CommonDBTM; renaming them would break the hooks. -->
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps" />
<!-- Conflicts with PHP-CS-Fixer's PER-CS2.0 style, which collapses empty
bodies (e.g. constructor promotion with no body) to a same-line `{}`. -->
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore" />
</rule>
<rule ref="Generic.Arrays.ArrayIndent"></rule>
</ruleset>