Commit graph

21 commits

Author SHA1 Message Date
Alex Monk
aa838b52de Try to fix some other broken-looking legacy maintenance script options
Bug: T125748
Change-Id: I2004d9b1fd7389623a3f2da6682f9007efd679dc
2016-03-12 00:47:36 +00:00
Aaron Schulz
6921770414 Updated some try-catch statements: MWException -> Exception
Change-Id: I76601a86e30f4984e3b1a8c8ec5ef5a0f652433a
2015-01-09 17:20:22 -08:00
Timo Tijhof
beb1c4a0ec phpcs: More require/include is not a function
Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81.

Also updated usage in text in documentation and the
installer LocalSettingsGenerator.

Most of them were handled by this regex:
- find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$
- replace: $1 $2;

Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
2013-05-21 23:26:28 +02:00
Timo Tijhof
50e7985d4d phpcs: Fix WhiteSpace.LanguageConstructSpacing warnings
Squiz.WhiteSpace.LanguageConstructSpacing:
   Language constructs must be followed by a single space;
   expected "require_once expression" but found
   "require_once(expression)"

It is a keyword (e.g. like `new`, `return` and `print`). As
such the parentheses don't make sense.

Per our code conventions, we use a space after keywords like
these. We appeared to have an unwritten exception for `require`
that doesn't make sense. About 60% of require/include usage
was missing the space and/or had superfluous parentheses.

It is as silly as print("foo") or return("foo"), it works
because keywords have no significance for whitespace between
it and the expression that follows, and since experessions can
be wrapped in parentheses for clarity (e.g. when doing string
concatenation or mathematical operations) the parenthesis
before and after basiclaly just ignored.

Change-Id: I2df2f80b8123714bea7e0771bf94b51ad5bb4b87
2013-05-09 05:56:26 +02:00
jeroendedauw
38c7f444e1 Use __DIR__ instead of dirname( __FILE__ )
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)

Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
2012-08-27 21:45:00 +02:00
Alexandre Emsenhuber
9f5d06527c Part of bug 26280: added license headers to PHP files in maintenance 2010-12-16 19:15:12 +00:00
Sam Reed
659778619c Stylize maintenance folder.. 2010-05-22 16:50:39 +00:00
Rotem Liss
5a626d9296 * New features for checking languages: Checking namespace names, skin names, magic words and special page aliases. No support for extensions yet.
* Code cleanup, whitespace and documentation for the language checking scripts.
2008-10-21 09:29:47 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Rotem Liss
54a34961ba * Recreating the checkExtensions script, using data in the Translate extension, and using the existing interface of checkLanguage. The i18n.db file is now obsolete.
* Moving the CheckLanguageCLI class to checkLanguage.inc.
* Several fixes in checkLanguage script.
2008-05-09 14:16:59 +00:00
Siebrand Mazeland
bef575abda Make --links work for output=wiki too 2008-04-15 22:00:27 +00:00
Niklas Laxström
b56fd3f500 * More suppression guesswork
* Don't list languages that don't have problems
2007-11-07 20:40:21 +00:00
Niklas Laxström
d044c8a37d * Wrong variable and some guessed suppressions 2007-10-15 15:09:42 +00:00
Niklas Laxström
74e42ffd0c * Rewritten check language with less globals and wiki output 2007-10-15 12:58:00 +00:00
Rotem Liss
59a1a11e60 Using (optional) parameters instead of globals in checkLanguage.inc. 2007-08-28 02:37:44 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Tim Starling
50f4540135 Fix heredoc vim syntax highlighting 2007-06-16 02:58:00 +00:00
Rotem Liss
cfb7887eb1 (bug 9176) Add --plural parameter to checkLanguage.php 2007-03-06 14:03:48 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Antoine Musso
4947698603 Script to check external i18 messages files such as the ones used by extension.
* move checkLanguage() in its own file (still using globals though).
* adapt Languages class so it can be overriden (s/private/protected/)
FIXME: lack documentation
2007-01-09 03:40:11 +00:00
Tim Starling
2575420772 Moved language-related command-line scripts to their own directory. 2006-10-04 02:21:41 +00:00
Renamed from maintenance/checkLanguage.php (Browse further)