-
Notifications
You must be signed in to change notification settings - Fork 3
/
phpcs.xml
24 lines (24 loc) · 957 Bytes
/
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
<?xml version="1.0"?>
<ruleset name="VuFind Coding Standards" namespace="VuFind\PHPCS">
<description>Coding standards for VuFind.</description>
<file>../src</file>
<file>.</file>
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*.php-cs-fixer.*</exclude-pattern>
<arg name="extensions" value="php"/>
<!-- We only use PEAR to ensure complete comments at this time -->
<rule ref="PEAR.Commenting">
<exclude name="PEAR.Commenting.FunctionComment.ParamCommentAlignment" />
</rule>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.Commenting.DocComment"/>
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<!-- Lines can be 120 chars long, but never show errors -->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="120"/>
<property name="absoluteLineLimit" value="0"/>
</properties>
</rule>
<rule ref="PSR12" />
</ruleset>