-
Notifications
You must be signed in to change notification settings - Fork 53
/
phpcs.xml
38 lines (37 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
37
38
<?xml version="1.0"?>
<ruleset>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="Generic.Files.LineLength.TooLong" />
<exclude name="Generic.PHP.NoSilencedErrors.Discouraged" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals" />
</rule>
<rule ref="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate">
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
<properties>
<property name="ignoreList" type="array" value="$IP" />
<property name="allowedPrefixes" type="array" value="wg,wmg" />
</properties>
</rule>
<rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions">
<properties>
<property name="allowedPrefixes" type="array" value="wg,wmf" />
</properties>
</rule>
<file>.</file>
<arg name="encoding" value="utf8"/>
<arg name="extensions" value="php"/>
<arg name="bootstrap" value="./vendor/mediawiki/mediawiki-codesniffer/utils/bootstrap-ci.php"/>
<exclude-pattern>\.git/</exclude-pattern>
<exclude-pattern>vendor/</exclude-pattern>
<exclude-pattern>portals/</exclude-pattern>
<!-- Auto generated files -->
<exclude-pattern>dblists-index\.php</exclude-pattern>
<exclude-pattern>wmf-config/interwiki\.php</exclude-pattern>
<exclude-pattern>wmf-config/interwiki-labs\.php</exclude-pattern>
</ruleset>