2 <ruleset name="MediaWiki">
3 <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
4 <rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions">
6 <property name="ignoreList" type="array" value="bfNormalizeTitleStrReplace,bfNormalizeTitleStrTr,cdbShowHelp,codepointToUtf8,compare_point,cssfilter,escapeSingleString,findAuxFile,findFiles,getEscapedProfileUrl,getFileCommentFromSourceWiki,getFileUserFromSourceWiki,hexSequenceToUtf8,mccGetHelp,mccShowUsage,mimeTypeMatch,moveToExternal,NothingFunction,NothingFunctionData,resolveStub,resolveStubs,showUsage,splitFilename,utf8ToCodepoint,utf8ToHexSequence" />
9 <rule ref="MediaWiki.NamingConventions.ValidGlobalName">
11 <property name="ignoreList" type="array" value="$IP,$messageMemc,$parserMemc" />
15 <arg name="encoding" value="utf8"/>
16 <arg name="extensions" value="php,php5,inc,sample"/>
17 <rule ref="Generic.Files.LineLength">
18 <exclude-pattern>*/languages/messages/Messages*.php</exclude-pattern>
20 <rule ref="PSR2.Methods.MethodDeclaration.Underscore">
21 <exclude-pattern>*/includes/StubObject.php</exclude-pattern>
23 <rule ref="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures">
24 <severity>0</severity>
26 <rule ref="Generic.ControlStructures.InlineControlStructure.NotAllowed">
27 <severity>0</severity>
29 <exclude-pattern>node_modules</exclude-pattern>
30 <exclude-pattern>vendor</exclude-pattern>
31 <exclude-pattern>extensions</exclude-pattern>
32 <exclude-pattern>skins</exclude-pattern>
33 <exclude-pattern>.git</exclude-pattern>