-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
executable file
·32 lines (30 loc) · 1.65 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
<?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.ControlStructures.IfElseStructure.SpaceBeforeElse" />
<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.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterArrow" />
<exclude name="MediaWiki.Classes.UnusedUseStatement.UnusedUse" />
<exclude name="MediaWiki.Classes.UnsortedUseStatements.UnsortedUse" />
<exclude name="MediaWiki.Usage.StaticClosure.StaticClosure" />
<exclude name="MediaWiki.PHPUnit.MockBoilerplate.ConstraintEqualTo" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine" />
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace" />
<exclude name="Universal.WhiteSpace.CommaSpacing.SpaceBeforeInFunctionCall" />
</rule>
<rule ref="Generic.Formatting.NoSpaceAfterCast" />
<rule ref="Generic.Metrics.CyclomaticComplexity">
</rule>
<rule ref="Generic.Metrics.NestingLevel" />
<rule ref="Squiz.Operators.ValidLogicalOperators" />
</ruleset>