-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathphpcs.xml
More file actions
26 lines (22 loc) · 956 Bytes
/
Copy pathphpcs.xml
File metadata and controls
26 lines (22 loc) · 956 Bytes
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
<?xml version="1.0"?>
<ruleset name="Dashboard">
<description>PSR-12 with emoncms naming.</description>
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
<arg name="colors"/>
<arg value="p"/>
<exclude-pattern>*/vendor/*</exclude-pattern>
<!-- Warnings are reported but do not fail the run -->
<config name="ignore_warnings_on_exit" value="1"/>
<rule ref="PSR12">
<!-- Module code uses snake_case functions and no namespaces -->
<exclude name="PSR1.Methods.CamelCapsMethodName"/>
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
<!-- Every file starts with the emoncms exec guard beside declarations -->
<exclude name="PSR1.Files.SideEffects"/>
</rule>
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Generic.Arrays.ArrayIndent"/>
<rule ref="Generic.PHP.LowerCaseConstant"/>
</ruleset>