-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpcs.xml
40 lines (38 loc) · 1.89 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
31
32
33
34
35
36
37
38
39
40
<?xml version="1.0"?>
<ruleset>
<file>src/</file>
<file>tests/</file>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.Files.LineLength.TooLong" />
<exclude name="MediaWiki.Commenting.FunctionComment" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation" />
<exclude name="MediaWiki.Commenting.FunctionAnnotations.UnrecognizedAnnotation" />
<exclude name="MediaWiki.Commenting.MissingCovers.MissingCovers" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment" />
<exclude name="MediaWiki.WhiteSpace.DisallowEmptyLineFunctions.NoEmptyLine" />
<exclude name="MediaWiki.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterClosure" />
<exclude name="MediaWiki.WhiteSpace.SameLineCatch.CatchNotOnSameLine" />
<exclude name="MediaWiki.Classes.UnusedUseStatement.UnusedUse" />
<exclude name="MediaWiki.Classes.UnsortedUseStatements.UnsortedUse" />
<exclude name="MediaWiki.Usage.StaticClosure.StaticClosure" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine" />
<exclude name="MediaWiki.ControlStructures.IfElseStructure.SpaceBeforeElse" />
</rule>
<rule ref="Generic.Formatting.NoSpaceAfterCast" />
<rule ref="Generic.Metrics.CyclomaticComplexity" />
<rule ref="Generic.Metrics.NestingLevel" />
<rule ref="Generic.WhiteSpace.ScopeIndent" tabIndent="true">
<properties>
<property name="ignoreIndentationTokens" type="array">
<element value="T_COMMENT"/>
</property>
</properties>
</rule>
<rule ref="Squiz.Operators.ValidLogicalOperators" />
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
</rule>
</ruleset>