-
Notifications
You must be signed in to change notification settings - Fork 8
/
.phpcs.xml
48 lines (46 loc) · 2.18 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
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
<exclude name="MediaWiki.NamingConventions.PrefixedGlobalFunctions.allowedPrefix" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
</rule>
<rule ref="MediaWiki.Usage.ForbiddenFunctions.exec">
<exclude-pattern>*/melange/BundleCreater\.php</exclude-pattern>
<exclude-pattern>*/validate-bash\.php</exclude-pattern>
</rule>
<rule ref="MediaWiki.Usage.ForbiddenFunctions.escapeshellarg">
<exclude-pattern>*/melange/BundleCreater\.php</exclude-pattern>
<exclude-pattern>*/validate-bash\.php</exclude-pattern>
</rule>
<rule ref="MediaWiki.Usage.ForbiddenFunctions.passthru">
<exclude-pattern>*/melange/BundleCreater\.php</exclude-pattern>
</rule>
<rule ref="Generic.Files.LineLength.TooLong">
<severity>0</severity>
</rule>
<rule ref="Generic.PHP.NoSilencedErrors.Discouraged">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix">
<severity>0</severity>
</rule>
<rule ref="MediaWiki.NamingConventions.ValidGlobalName.wgPrefix">
<severity>0</severity>
</rule>
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
<exclude-pattern>puppet/*</exclude-pattern>
<exclude-pattern>melange/extensions/*</exclude-pattern>
<exclude-pattern>repong/vendor/*</exclude-pattern>
<exclude-pattern>snedUdpMessage.php</exclude-pattern>
</ruleset>