MediaWiki  REL1_33
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::class
 

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 Hooks::run.

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

Any instance of Hooks::run that doesn't meet these requirements 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

◆ $maintClass

Definition at line 352 of file findHooks.php.