forked from wikimedia/operations-mediawiki-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
57 lines (56 loc) · 2.77 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0"?>
<ruleset>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.Classes.DuplicateClassName.Found" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.FunctionComment.SuperfluousVariadicArgComment" />
<exclude name="MediaWiki.Commenting.MissingCovers.MissingCovers" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.WrongCase" />
<exclude name="MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix" />
<exclude name="MediaWiki.NamingConventions.ValidGlobalName.allowedPrefix" />
<exclude name="MediaWiki.PHP71Features.VoidReturnType.NotAllowed"/>
<exclude name="MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.SingleSpaceBeforeSingleLineComment" />
<exclude name="Squiz.PHP.NonExecutableCode.ReturnNotRequired" />
</rule>
<file>.</file>
<arg name="bootstrap" value="./vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php"/>
<arg name="encoding" value="utf8"/>
<arg name="extensions" value="php,php5,inc,sample"/>
<rule ref="Generic.Files.LineLength.TooLong">
<severity>0</severity>
</rule>
<rule ref="Generic.PHP.CharacterBeforePHPOpeningTag.Found">
<severity>0</severity>
</rule>
<rule ref="Generic.PHP.NoSilencedErrors.Discouraged">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures">
<exclude-pattern>multiversion/MWWikiversions\.php</exclude-pattern>
<exclude-pattern>tests/cirrusTest\.php</exclude-pattern>
<exclude-pattern>tests/timelineTest\.php</exclude-pattern>
<exclude-pattern>wmf-config/CommonSettings\.php</exclude-pattern>
</rule>
<rule ref="MediaWiki.Usage.ForbiddenFunctions.extract">
<exclude-pattern>tests/cirrusTest\.php</exclude-pattern>
<exclude-pattern>wmf-config/CommonSettings\.php</exclude-pattern>
</rule>
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.Usage.ForbiddenFunctions.exec">
<exclude-pattern>docroot/noc/conf/index\.php</exclude-pattern>
<exclude-pattern>docroot/noc/conf/activeMWVersions\.php</exclude-pattern>
</rule>
<exclude-pattern>\.git/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>lib/mongofill/</exclude-pattern>
<exclude-pattern>lib/xhgui-collector/</exclude-pattern>
<exclude-pattern>*/portals/*</exclude-pattern>
<!-- Auto generated files -->
<exclude-pattern>wmf-config/interwiki\.php</exclude-pattern>
<exclude-pattern>wmf-config/trusted-xff\.php</exclude-pattern>
</ruleset>