-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml.dist
More file actions
53 lines (41 loc) · 2.36 KB
/
phpcs.xml.dist
File metadata and controls
53 lines (41 loc) · 2.36 KB
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
<?xml version="1.0"?>
<ruleset name="ForkNetwork">
<description>The coding standard for this library.</description>
<!-- Default arguments for the CodeSniffer. -->
<file>src</file>
<file>tests</file>
<!-- Don't validate tests files with the .inc and .inc.fixed extension. These are specific test files that validate only one sniff at the time. -->
<exclude-pattern>*/Tests/*.inc</exclude-pattern>
<exclude-pattern>*/Tests/*.inc.fixed</exclude-pattern>
<!-- Import the default rulesets. -->
<rule ref="src/Standards/ForkNetwork/ruleset.xml"/>
<!-- Use the default Symfony coding standard as a base. -->
<rule ref="vendor/escapestudios/symfony2-coding-standard/Symfony/ruleset.xml">
<!-- Ignore missing class docblocks. -->
<exclude name="Symfony.Commenting.ClassComment"/>
<!-- Ignore empty lines before a return annotation in docblocks. -->
<exclude name="Symfony.Commenting.Annotations"/>
<!-- Ignore license requirements. -->
<exclude name="Symfony.Commenting.License"/>
<!-- Ignore forcing Yoda statements. -->
<exclude name="Symfony.ControlStructure.YodaConditions"/>
<!-- Ignore empty lines in closure. -->
<exclude name="PEAR.Functions.FunctionCallSignature.EmptyLine"/>
<!-- Ignore spacing must line up with other parameter names and types in function declaration. -->
<exclude name="Symfony.Commenting.FunctionComment.SpacingAfterParamName"/>
<exclude name="Symfony.Commenting.FunctionComment.SpacingAfterParamType"/>
<exclude name="Symfony.Commenting.FunctionComment.ParamCommentAlignment"/>
<exclude name="Symfony.Commenting.FunctionComment.ParamCommentAlignmentExceeded"/>
<!-- Ignore prefixing all abstract classes with "Abstract". Follow the example set by PHPUnit in this instance. -->
<exclude name="Symfony.NamingConventions.ValidClassName.InvalidAbstractName"/>
</rule>
<!-- Changes whitespace around concatenation operator to one space. -->
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1"/>
</properties>
</rule>
<!-- Add sorted use statements. -->
<config name="installed_paths" value="vendor/slevomat/coding-standard"/>
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
</ruleset>