-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
30 lines (28 loc) · 1.16 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
@see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file
@see https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xml.dist
-->
<ruleset name="pdk-php">
<description>The coding standard for Xedi\Pdk-PHP</description>
<file>src</file>
<!-- Show Progress -->
<arg value="p" />
<arg name="basepath" value="."/>
<rule ref="PSR12" />
<rule ref="PSR2.Files.EndFileNewline"/>
<rule ref="vendor/suin/phpcs-psr4-sniff/src/Suin"/>
<rule ref="Suin.Classes.PSR4">
<properties>
<!-- composerJsonPath must be relative path to "basepath" -->
<property name="composerJsonPath" value="composer.json"/>
</properties>
</rule>
<rule ref="Generic.Commenting" />
<rule ref="PEAR.Commenting">
<exclude name="PEAR.Commenting.FileComment.Missing" />
<exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag" />
<exclude name="PEAR.Commenting.ClassComment.MissingLicenseTag" />
<exclude name="PEAR.Commenting.ClassComment.MissingLinkTag" />
</rule>
</ruleset>