-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.phpcs.xml
More file actions
75 lines (58 loc) · 2.67 KB
/
Copy path.phpcs.xml
File metadata and controls
75 lines (58 loc) · 2.67 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0"?>
<ruleset>
<!-- START Copied from wikibase-codesniffer T268828 -->
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<!-- Even if we encourage to use spaces in comments, we don't think this sniff should block
patches from being merged. -->
<rule ref="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment">
<severity>0</severity>
</rule>
<!-- Disallows any content outside of <?php … ?> tags. -->
<rule ref="Generic.Files.InlineHTML" />
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="140" />
</properties>
<properties>
<!-- The inherited "lineLimit" from the base MediaWiki rule set is 100. -->
<property name="absoluteLineLimit" value="140" />
</properties>
</rule>
<rule ref="Generic.Metrics.NestingLevel" />
<!-- END Copied from wikibase-codesniffer T268828 -->
<!-- START Copied from wikibase-codesniffer T268828 -->
<rule ref="MediaWiki.NamingConventions.LowerCamelFunctionsName">
<!-- Exclude test methods like "testGivenInvalidInput_methodThrowsException". -->
<exclude-pattern>tests*Test*\.php</exclude-pattern>
</rule>
<!-- END Copied from wikibase-codesniffer T268828 -->
<rule ref="Mediawiki.Classes.FullQualifiedClassName">
<!-- FIXME: Add use statements, some class name conflicts -->
<exclude-pattern>DescriptionsField\.php</exclude-pattern>
<exclude-pattern>ElasticTermResult\.php</exclude-pattern>
<exclude-pattern>EntityResultSet\.php</exclude-pattern>
<exclude-pattern>EntityResultType\.php</exclude-pattern>
<exclude-pattern>EntitySearchElasticTest\.php</exclude-pattern>
<exclude-pattern>EntitySearchProfiles\.php</exclude-pattern>
<exclude-pattern>LabelsField\.php</exclude-pattern>
<exclude-pattern>SearchEntitiesIntegrationTest\.php</exclude-pattern>
<exclude-pattern>TermLookupSearcher\.php</exclude-pattern>
<exclude-pattern>WikibasePrefixSearcher\.php</exclude-pattern>
<exclude-pattern>WikibaseSearch\.entitytypes\.php</exclude-pattern>
</rule>
<!-- START Copied from wikibase-codesniffer T268828 -->
<rule ref="Squiz.Functions.GlobalFunction" />
<!-- NOTE: Do not add the Squiz.Strings.DoubleQuoteUsage sniff. Even if we encourage to prefer
single quotes, we don't think double quotes should block patches from being merged. -->
<!-- Enforces one empty line before and after each method in a class. -->
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
<properties>
<!-- The sniffs default is two empty lines. -->
<property name="spacing" value="1" />
</properties>
</rule>
<arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" />
<!-- END Copied from wikibase-codesniffer T268828 -->
<file>.</file>
</ruleset>