MediaWiki  1.28.0
findHooks.php File Reference

Simple script that try to find documented hook and hooks actually in the code and show what's missing. More...

Go to the source code of this file.

Classes

class  FindHooks
 Maintenance script that compares documented and actually present mismatches. More...
 

Variables

 $maintClass = 'FindHooks'
 

Detailed Description

Simple script that try to find documented hook and hooks actually in the code and show what's missing.

This script assumes that:

  • hooks names in hooks.txt are at the beginning of a line and single quoted.
  • hooks names in code are the first parameter of wfRunHooks.

if –online option is passed, the script will compare the hooks in the code with the ones at http://www.mediawiki.org/wiki/Manual:Hooks

Any instance of wfRunHooks that doesn't meet these parameters will be noted.

Copyright © Antoine Musso

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

Author
Antoine Musso <hashar at="" free="" dot="" fr>="">

Definition in file findHooks.php.

Variable Documentation

Definition at line 343 of file findHooks.php.