Ignore languages/messages/Messages*.php in line length sniff
authorVivek Ghaisas <v.a.ghaisas@gmail.com>
Tue, 25 Aug 2015 20:27:41 +0000 (01:57 +0530)
committerAddshore <addshorewiki@gmail.com>
Tue, 1 Sep 2015 14:09:12 +0000 (14:09 +0000)
Most of these files have very long lines, but that makes them easier to
read. Also, they're generated from a script. It's probably a better idea
to ignore their lengths than to change the lengths.

Bug: T103806
Change-Id: Ic6860520e4cc76f93aa13c364aae11cf14f279d0

phpcs.xml

index 7f1bced..36ad394 100644 (file)
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -4,6 +4,9 @@
        <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>