-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruleset.xml
32 lines (28 loc) · 1.81 KB
/
ruleset.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
31
32
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WPGraphQL Strict Coding Standard" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>WPGraphQL Coding Standards for Inline Documentation and Comments</description>
<!-- The rules below are the changes from between the original sniff or parent ruleset, and what should be applied for this Standard. -->
<rule ref="WordPress-Docs">
<severity>5</severity>
<!-- Conflicts with FQCN -->
<exclude name="Squiz.Commenting.FunctionComment.IncorrectTypeHint" />
<!-- Conflicts with b/c in AbstractConnectionResolver -->
<exclude name="Squiz.Commenting.FunctionComment.InvalidNoReturn" />
</rule>
<rule ref="Squiz.Commenting.FunctionComment">
<properties>
<property name="skipIfInheritdoc" value="true" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints" />
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification" />
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessAnnotation" />
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint.UselessSuppress" />
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing" />
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint.UselessSuppress" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessAnnotation" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint.UselessSuppress" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing" />
</ruleset>