Merge "Ignore testRunLegacyHooks in findHooks.php"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 24 Jan 2014 21:09:33 +0000 (21:09 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 24 Jan 2014 21:09:33 +0000 (21:09 +0000)
maintenance/findHooks.php

index ee8c48f..32ecb1d 100644 (file)
@@ -42,6 +42,11 @@ require_once __DIR__ . '/Maintenance.php';
  * @ingroup Maintenance
  */
 class FindHooks extends Maintenance {
+       /*
+        * Hooks that are ignored
+        */
+       protected static $ignore = array( 'testRunLegacyHooks' );
+
        public function __construct() {
                parent::__construct();
                $this->mDescription = 'Find hooks that are undocumented, missing, or just plain wrong';
@@ -255,8 +260,11 @@ class FindHooks extends Maintenance {
                if ( $sort ) {
                        asort( $arr );
                }
+
                foreach ( $arr as $v ) {
-                       $this->output( "$msg: $v\n" );
+                       if ( !in_array( $v, self::$ignore ) ) {
+                               $this->output( "$msg: $v\n" );
+                       }
                }
        }
 }