-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
.phpcs.xml
26 lines (21 loc) · 863 Bytes
/
.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
<?xml version="1.0"?>
<ruleset>
<file>.</file>
<arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="UTF-8" />
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<!-- NOTE: this should be fixed -->
<exclude name="MediaWiki.Usage.ShortListSyntax.Found" />
<exclude name="MediaWiki.PHPUnit.AssertCount.AssertSameSize" />
<!-- Don't want to apply this -->
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
</rule>
<rule ref="MediaWiki.NamingConventions.ValidGlobalName">
<properties>
<!-- Global variable $IP must be used directly in [AmazonS3HooksTest.php] -->
<property name="ignoreList" type="array" value="$IP" />
</properties>
</rule>
<!-- Don't check Composer-installed dependencies -->
<exclude-pattern type="relative">^vendor/</exclude-pattern>
</ruleset>