dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
841cf1b
)
Merge "Ignore testRunLegacyHooks in findHooks.php"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Fri, 24 Jan 2014 21:09:33 +0000
(21:09 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Fri, 24 Jan 2014 21:09:33 +0000
(21:09 +0000)
maintenance/findHooks.php
patch
|
blob
|
history
diff --git
a/maintenance/findHooks.php
b/maintenance/findHooks.php
index
ee8c48f
..
32ecb1d
100644
(file)
--- a/
maintenance/findHooks.php
+++ b/
maintenance/findHooks.php
@@
-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" );
+ }
}
}
}