This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpcs.xml.dist
40 lines (33 loc) · 2.13 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
<?xml version="1.0"?>
<ruleset name="wp-jobadder">
<file>./src</file>
<file>./test/functional</file>
<file>./test/unit</file>
<rule ref="vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml">
<!-- PSR-4 mapping already in Composer -->
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName" />
<!-- There's no reason to have to specify FQNs everywhere if they can be imported -->
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/>
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation.NonFullyQualifiedClassName" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions.NonFullyQualifiedException" />
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces" />
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
<!-- The fallback mechanism is safe enough, and can be good for mocking -->
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants" />
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions" />
<!-- Sometimes it's fine to work with a list of anything -->
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification"/>
<!-- Doc can be a work in progress -->
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.UselessDocComment" />
<!-- Errors should not be caught -->
<exclude name="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly" />
<!-- No need for empty lines -->
<rule ref="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces">
<properties>
<property name="linesCountAfterOpeningBrace" value="0" />
<property name="linesCountAfterClosingBrace" value="0" />
</properties>
</rule>
</rule>
</ruleset>