-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.phpcs.xml
36 lines (28 loc) · 1.55 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
<?xml version="1.0"?>
<ruleset>
<file>includes/</file>
<file>tests/</file>
<rule ref="./vendor/sirbrillig/phpcs-variable-analysis/VariableAnalysis">
<exclude name="VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable" />
</rule>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.Files.LineLength.TooLong" />
<exclude name="Squiz.WhiteSpace.SuperfluousWhitespace.EndLine" />
<exclude name="MediaWiki.Commenting" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.SingleSpaceBeforeSingleLineComment" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="MediaWiki.WhiteSpace.SpaceAfterClosure.NoWhitespaceAfterClosure" />
<exclude name="MediaWiki.Classes.UnusedUseStatement.UnusedUse" />
<exclude name="MediaWiki.Classes.UnsortedUseStatements.UnsortedUse" />
<exclude name="MediaWiki.ControlStructures.IfElseStructure.SpaceBeforeElse" />
<exclude name="MediaWiki.Usage.StaticClosure.StaticClosure" />
<exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionConfigUsage" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
<exclude name="MediaWiki.NamingConventions.PrefixedGlobalFunctions.allowedPrefix" />
<!-- This is to avoid false positives when using PHP 8.0 named arguments -->
<exclude name="Generic.PHP.DiscourageGoto.Found" />
<exclude name="PSR2.Classes.PropertyDeclaration.Multiple" />
</rule>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
</ruleset>