forked from wikimedia/mediawiki-extensions-Flow
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs.xml
33 lines (33 loc) · 1.37 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam" />
<exclude name="MediaWiki.Commenting.FunctionComment.ObjectTypeHintReturn" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="140" />
</properties>
</rule>
<rule ref="Generic.Files.OneObjectStructurePerFile.MultipleFound">
<exclude-pattern>maintenance/</exclude-pattern>
</rule>
<rule ref="MediaWiki.Files.ClassMatchesFilename.NotMatch">
<exclude-pattern>maintenance/</exclude-pattern>
<exclude-pattern>scripts/</exclude-pattern>
<exclude-pattern>tests/</exclude-pattern>
</rule>
<rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions">
<properties>
<property name="ignoreList" type="array" value="query_revisions,parsoid_to_wikitext,truncate,out" />
</properties>
</rule>
<file>.</file>
<arg name="extensions" value="php"/>
<arg name="encoding" value="UTF-8"/>
<exclude-pattern>handlebars</exclude-pattern>
<exclude-pattern>.phan/stubs</exclude-pattern>
</ruleset>