Merge "Upgrade wikimedia/remex-html to 2.0.1" into REL1_31
[lhc/web/wiklou.git] / .phpcs.xml
1 <?xml version="1.0"?>
2 <ruleset name="MediaWiki">
3 <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
4 <exclude name="Generic.ControlStructures.InlineControlStructure" />
5 <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
6 <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
7 <exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" />
8 <exclude name="MediaWiki.Commenting.FunctionComment.MissingReturn" />
9 <exclude name="MediaWiki.Commenting.FunctionComment.ExtraParamComment" />
10 <exclude name="MediaWiki.Commenting.FunctionComment.WrongStyle" />
11 <exclude name="MediaWiki.Commenting.IllegalSingleLineComment.IllegalSingleLineCommentStart" />
12 <exclude name="MediaWiki.Commenting.IllegalSingleLineComment.IllegalSingleLineCommentEnd" />
13 <exclude name="MediaWiki.Commenting.LicenseComment.InvalidLicenseTag" />
14 <exclude name="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures" />
15 <exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
16 <exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
17 <exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.SingleSpaceBeforeSingleLineComment" />
18 <exclude name="MediaWiki.Usage.DbrQueryUsage.DbrQueryFound" />
19 <exclude name="MediaWiki.Usage.ExtendClassUsage.FunctionVarUsage" />
20 <exclude name="MediaWiki.Usage.ForbiddenFunctions.assert" />
21 <exclude name="MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals" />
22 <exclude name="MediaWiki.Files.ClassMatchesFilename.WrongCase" />
23 <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
24 <exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound" />
25 <exclude name="MediaWiki.VariableAnalysis.ForbiddenGlobalVariables.ForbiddenGlobal$wgTitle" />
26 <exclude name="MediaWiki.Commenting.FunctionComment.SpacingDocStar" />
27 <exclude name="MediaWiki.Commenting.FunctionComment.SpacingDocTag" />
28 <exclude name="Squiz.Scope.MethodScope.Missing" />
29 <exclude name="Squiz.Scope.MemberVarScope.Missing" />
30 <exclude name="MediaWiki.Commenting.MissingCovers.MissingCovers" />
31 <exclude name="MediaWiki.Usage.AssignmentInReturn.AssignmentInReturn" />
32 </rule>
33 <rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions">
34 <properties>
35 <!--
36 includes/compat/normal/UtfNormalUtil.php
37 * codepointToUtf8
38 * escapeSingleString
39 * hexSequenceToUtf8
40 * utf8ToCodepoint
41 * utf8ToHexSequence
42 includes/GlobalFunctions.php
43 * mimeTypeMatch
44 maintenance/benchmarks/bench_strtr_str_replace.php
45 * bfNormalizeTitleStrReplace
46 * bfNormalizeTitleStrTr
47 maintenance/cdb.php
48 * cdbShowHelp
49 maintenance/language/transstat.php
50 * showUsage
51 maintenance/mcc.php
52 * mccGetHelp
53 * mccShowUsage
54 maintenance/storage/moveToExternal.php
55 * moveToExternal
56 maintenance/storage/resolveStubs.php
57 * resolveStub
58 * resolveStubs
59 profileinfo.php
60 * compare_point
61 * getEscapedProfileUrl
62 tests/phpunit/includes/HooksTest.php
63 * NothingFunction
64 * NothingFunctionData
65 tests/qunit/data/styleTest.css.php
66 * cssfilter
67 -->
68 <property name="ignoreList" type="array" value="bfNormalizeTitleStrReplace,bfNormalizeTitleStrTr,cdbShowHelp,codepointToUtf8,compare_point,cssfilter,escapeSingleString,getEscapedProfileUrl,hexSequenceToUtf8,mccGetHelp,mccShowUsage,mimeTypeMatch,moveToExternal,NothingFunction,NothingFunctionData,resolveStub,resolveStubs,showUsage,utf8ToCodepoint,utf8ToHexSequence" />
69 </properties>
70 </rule>
71 <rule ref="MediaWiki.NamingConventions.ValidGlobalName">
72 <properties>
73 <property name="ignoreList" type="array" value="$IP,$messageMemc,$parserMemc" />
74 </properties>
75 </rule>
76 <rule ref="Generic.Files.LineLength">
77 <exclude-pattern>*/languages/messages/Messages*\.php</exclude-pattern>
78 </rule>
79 <rule ref="PSR2.Methods.MethodDeclaration.Underscore">
80 <exclude-pattern>*/includes/StubObject\.php</exclude-pattern>
81 </rule>
82 <file>.</file>
83 <arg name="encoding" value="UTF-8"/>
84 <arg name="extensions" value="php,php5,inc,sample"/>
85 <exclude-pattern type="relative">^extensions/</exclude-pattern>
86 <exclude-pattern type="relative">^skins/</exclude-pattern>
87 <exclude-pattern>AdminSettings\.php</exclude-pattern>
88 <exclude-pattern>LocalSettings\.php</exclude-pattern>
89 <exclude-pattern>StartProfiler\.php</exclude-pattern>
90 </ruleset>