forked from wikimedia/mediawiki-extensions-MobileFrontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
54 lines (54 loc) · 3.35 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
<?xml version="1.0"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.EmptyTag.ClassSince" />
<exclude name="MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
<exclude name="MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam" />
<exclude name="MediaWiki.Commenting.FunctionComment.UppercasePrimitiveCallableParam" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingVar" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.NotShortBoolVar" />
<exclude name="MediaWiki.Commenting.RedundantVarName.Found" />
<exclude name="MediaWiki.PHPUnit.AssertionOrder.WrongOrder" />
<exclude name="MediaWiki.Usage.StaticClosure.StaticClosure" />
<exclude name="MediaWiki.VariableAnalysis.MisleadingGlobalNames.Misleading$wgDefaultUserOptions" />
<exclude name="MediaWiki.VariableAnalysis.MisleadingGlobalNames.Misleading$wgMFStripResponsiveImages" />
<exclude name="PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon" />
<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.NotShortBoolVar" />
<exclude name="MediaWiki.Commenting.PropertyDocumentation.MissingVar" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
<exclude name="MediaWiki.Commenting.FunctionComment.DefaultNullTypeParam" />
<exclude name="MediaWiki.Commenting.FunctionComment.UppercasePrimitiveCallableParam" />
<exclude name="MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam" />
<exclude name="MediaWiki.Commenting.RedundantVarName.Found" />
<exclude name="MediaWiki.Commenting.EmptyTag.ClassSince" />
<exclude name="PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon" />
<exclude name="MediaWiki.PHPUnit.AssertionOrder.WrongOrder" />
<exclude name="MediaWiki.Usage.StaticClosure.StaticClosure" />
<exclude name="MediaWiki.VariableAnalysis.MisleadingGlobalNames.Misleading$wgMFStripResponsiveImages" />
<exclude name="MediaWiki.VariableAnalysis.MisleadingGlobalNames.Misleading$wgDefaultUserOptions" />
</rule>
<rule ref="Generic.Files.LineLength">
<exclude-pattern>MobileFrontend\.alias\.php</exclude-pattern>
</rule>
<rule ref="Generic.Files.OneObjectStructurePerFile.MultipleFound">
<exclude-pattern>tests/phpunit/*</exclude-pattern>
</rule>
<rule ref="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic">
<exclude-pattern>tests/phpunit/*</exclude-pattern>
</rule>
<rule ref="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected">
<exclude-pattern>tests/phpunit/*</exclude-pattern>
</rule>
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
</ruleset>