Make the comment in the beginning of LanguageFi.php shorter
[lhc/web/wiklou.git] / phpcs.xml
index 7f1bced..7bd87cd 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -1,9 +1,26 @@
 <?xml version="1.0"?>
 <ruleset name="MediaWiki">
-       <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
+       <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
+               <!-- Disable failing rules -->
+               <exclude name="Generic.Files.LineLength"/>
+               <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
+               <exclude name="MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix"/>
+               <exclude name="MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceBeforeCloseParenthesis"/>
+               <exclude name="MediaWiki.WhiteSpace.SpaceyParenthesis.SingleSpaceAfterOpenParenthesis"/>
+               <exclude name="Squiz.Classes.ValidClassName.NotCamelCaps"/>
+               <exclude name="Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed"/>
+               <exclude name="MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect"/>
+               <exclude name="PSR2.Methods.MethodDeclaration.AbstractAfterVisibility"/>
+               <exclude name="Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed"/>
+               <exclude name="Squiz.WhiteSpace.ScopeClosingBrace.Indent"/>
+               <exclude name="Squiz.WhiteSpace.SemicolonSpacing.Incorrect"/>
+       </rule>
        <file>.</file>
        <arg name="encoding" value="utf8"/>
        <arg name="extensions" value="php,php5,inc,sample"/>
+       <rule ref="Generic.Files.LineLength">
+               <exclude-pattern>*/languages/messages/Messages*.php</exclude-pattern>
+       </rule>
        <exclude-pattern>node_modules</exclude-pattern>
        <exclude-pattern>vendor</exclude-pattern>
        <exclude-pattern>extensions</exclude-pattern>