-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpcs.xml.dist
62 lines (54 loc) · 2.91 KB
/
phpcs.xml.dist
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
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OpenapiDataMocker package" xsi:noNamespaceSchemaLocation="phpcs.xsd">
<description>Coding standard for OpenapiDataMocker package</description>
<!-- Don't need to inspect installed packages -->
<exclude-pattern>./vendor</exclude-pattern>
<exclude-pattern>./test/Mock/Model</exclude-pattern>
<!-- <basepath> A path to strip from the front of file paths inside reports -->
<arg name="basepath" value="."/>
<!-- do not lint css and js files -->
<arg name="extensions" value="php,inc"/>
<!-- colors Use colors in output -->
<arg name="colors"/>
<!-- Do not print warnings -->
<!-- <arg name="warning-severity" value="0"/> -->
<!-- -p Show progress of the run -->
<!-- -s Show sniff codes in all reports -->
<arg value="ps"/>
<!-- Include the whole PSR12 standard -->
<rule ref="PSR12">
<!-- There is no way to wrap generated comments, just disable that rule for now -->
<exclude name="Generic.Files.LineLength.TooLong" />
</rule>
<rule ref="Squiz.Commenting">
<exclude name="Squiz.Commenting.FileComment.IncorrectAuthor" />
<!-- @subpackage tag is considered deprecated -->
<exclude name="Squiz.Commenting.FileComment.MissingSubpackageTag" />
<exclude name="Squiz.Commenting.FileComment.SubpackageTagOrder" />
<!-- violates PSR12.Files.FileHeader.SpacingAfterBlock -->
<exclude name="Squiz.Commenting.FileComment.SpacingAfterOpen" />
<exclude name="Squiz.Commenting.ClosingDeclarationComment.Missing" />
<exclude name="Squiz.Commenting.FileComment.MissingCopyrightTag" />
<exclude name="Squiz.Commenting.FileComment.CopyrightTagOrder" />
<exclude name="Squiz.Commenting.FunctionComment.IncorrectParamVarName" />
<exclude name="Squiz.Commenting.FunctionComment.InvalidReturn" />
<!-- same sniff in PEAR standard presented -->
<exclude name="Squiz.Commenting.FunctionComment.SpacingAfterParamType" />
<exclude name="Squiz.Commenting.InlineComment.NotCapital" />
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar" />
<exclude name="Squiz.Commenting.LongConditionClosingComment.Missing" />
</rule>
<rule ref="Generic.Commenting"/>
<rule ref="PEAR.Commenting">
<exclude name="PEAR.Commenting.ClassComment" />
<!-- @category tag is considered deprecated -->
<exclude name="PEAR.Commenting.FileComment.MissingCategoryTag" />
<exclude name="PEAR.Commenting.FileComment.IncompleteLicense" />
<exclude name="PEAR.Commenting.FileComment.LicenseTagOrder" />
<!-- violates Squiz.Commenting.FileComment.AuthorTagOrder -->
<exclude name="PEAR.Commenting.FileComment.AuthorTagOrder" />
</rule>
<!-- Paths to check -->
<file>src</file>
<file>test</file>
</ruleset>