forked from AppertaFoundation/openeyes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
101 lines (87 loc) · 3.63 KB
/
phpcs.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0"?>
<ruleset name="OpenEyes Coding Standards">
<!--
The name attribute of the ruleset tag is displayed
when running PHP_CodeSniffer with the -v command line
argument. The description tag below is not displayed anywhere
except in this file, so it can contain information for
developers who may change this file in the future.
-->
<description>The OpenEyes Coding Standards</description>
<!--
If no files or directories are specified on the command line
your custom standard can specify what files should be checked
instead.
Note that specifying any file or directory path
on the command line will ignore all file tags.
-->
<file>./</file>
<!--
You can hard-code ignore patterns directly into your
custom standard so you don't have to specify the
patterns on the command line.
-->
<exclude-pattern>/protected/data/*</exclude-pattern>
<exclude-pattern>/protected/components</exclude-pattern>
<exclude-pattern>/assets/*</exclude-pattern>
<exclude-pattern>*/*.js</exclude-pattern>
<exclude-pattern>*/*.css</exclude-pattern>
<exclude-pattern>*/*.xml</exclude-pattern>
<exclude-pattern>*/*.yml</exclude-pattern>
<exclude-pattern>*/*.csv</exclude-pattern>
<exclude-pattern>*/*.lock</exclude-pattern>
<exclude-pattern>*/*.json</exclude-pattern>
<exclude-pattern>*/*.phar</exclude-pattern>
<exclude-pattern>*/docs/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/build/*</exclude-pattern>
<exclude-pattern>/Vagrantfile</exclude-pattern>
<exclude-pattern>/.editorconfig</exclude-pattern>
<exclude-pattern>/bower.json</exclude-pattern>
<exclude-pattern>/.bowerrc</exclude-pattern>
<exclude-pattern>/features/*</exclude-pattern>
<exclude-pattern>/grunt/*</exclude-pattern>
<exclude-pattern>/.htaccess.sample</exclude-pattern>
<exclude-pattern>.jshintrc</exclude-pattern>
<exclude-pattern>/junit_behat_reports/*</exclude-pattern>
<exclude-pattern>/pdf/*</exclude-pattern>
<exclude-pattern>/puppet/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/.git</exclude-pattern>
<exclude-pattern>/exclude.txt</exclude-pattern>
<exclude-pattern>/protected/files/*</exclude-pattern>
<exclude-pattern>/protected/vendors/*</exclude-pattern>
<!--
You can hard-code command line values into your custom standard.
Note that this does not work for the command line values:
-v[v][v], -l, -d, -sniffs and -standard
The following tags are equivalent to the command line arguments:
-p
-->
<arg name="report" value="summary"/>
<arg name="colors"/>
<arg value="p"/>
<!--
You can hard-code custom php.ini settings into your custom standard.
The following tag sets the memory limit to 64M.
<ini name="memory_limit" value="128M"/>
-->
<!--
Include all sniffs in the PEAR standard. Note that the
path to the standard does not have to be specified as the
PEAR standard exists inside the PHP_CodeSniffer install
directory.
-->
<rule ref="PSR2"/>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="150" />
<property name="absoluteLineLimit" value="0" />
<property name="ignoreComments" value="true" />
</properties>
</rule>
<rule ref="Generic.CodeAnalysis.AssignmentInCondition">
</rule>
<rule ref="Generic.Commenting.Fixme" />
<rule ref="Generic.CodeAnalysis.EmptyStatement" />
</ruleset>