Special case opus mime detction
[mediawiki.git] / phpcs.xml
blob4693b42eb524c0bdfe3abfb1cd83ed9a33c0520e
1 <?xml version="1.0"?>
2 <ruleset name="MediaWiki">
3         <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
4         <rule ref="MediaWiki.NamingConventions.PrefixedGlobalFunctions">
5                 <properties>
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" />
7                 </properties>
8         </rule>
9         <rule ref="MediaWiki.NamingConventions.ValidGlobalName">
10                 <properties>
11                         <property name="ignoreList" type="array" value="$IP,$messageMemc,$parserMemc" />
12                 </properties>
13         </rule>
14         <file>.</file>
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>
19         </rule>
20         <rule ref="PSR2.Methods.MethodDeclaration.Underscore">
21                 <exclude-pattern>*/includes/StubObject.php</exclude-pattern>
22         </rule>
23         <rule ref="MediaWiki.ControlStructures.AssignmentInControlStructures.AssignmentInControlStructures">
24                 <severity>0</severity>
25         </rule>
26         <rule ref="Generic.ControlStructures.InlineControlStructure.NotAllowed">
27                 <severity>0</severity>
28         </rule>
29         <exclude-pattern>node_modules/</exclude-pattern>
30         <exclude-pattern>vendor/</exclude-pattern>
31         <exclude-pattern type="relative">^extensions/</exclude-pattern>
32         <exclude-pattern type="relative">^skins/</exclude-pattern>
33         <exclude-pattern>.git</exclude-pattern>
34         <exclude-pattern>AdminSettings.php</exclude-pattern>
35         <exclude-pattern>LocalSettings.php</exclude-pattern>
36         <exclude-pattern>StartProfiler.php</exclude-pattern>
37 </ruleset>