Umherirrender
255d76f2a1
build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
...
Clean up use of @codingStandardsIgnore
- @codingStandardsIgnoreFile -> phpcs:ignoreFile
- @codingStandardsIgnoreLine -> phpcs:ignore
- @codingStandardsIgnoreStart -> phpcs:disable
- @codingStandardsIgnoreEnd -> phpcs:enable
For phpcs:disable always the necessary sniffs are provided.
Some start/end pairs are changed to line ignore
Change-Id: I92ef235849bcc349c69e53504e664a155dd162c8
2018-01-01 14:10:16 +01:00
Thiemo Mättig
91a920fd85
Remove auto-generated "Constructor" documentation on constructors
...
Having such comments is worse than not having them. They add zero
information. But you must read the text to understand there is
nothing you don't already know from the class and the method name.
This is similar to I994d11e. Even more trivial, because this here is
about comments that don't say anything but "constructor".
Change-Id: I474dcdb5997bea3aafd11c0760ee072dfaff124c
2017-07-21 12:19:30 +02:00
Kunal Mehta
6e9b4f0e9c
Convert all array() syntax to []
...
Per wikitech-l consensus:
https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html
Notes:
* Disabled CallTimePassByReference due to false positives (T127163)
Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Chad Horohoe
f94e85e976
wfRunHooks() -> Hooks::run() in maintenance scripts
...
Change-Id: I6550bca3a6a3a6cd67bb1ed94c09805deed86dbc
2015-04-27 21:42:17 -07:00
umherirrender
e78776373e
Fixed some @params documentation (maintenance)
...
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.
Also added some missing @param.
Change-Id: I727deec35a712de0f0c676cc87dfa661f1ee965b
2014-04-17 22:48:32 +02:00
jenkins-bot
664df4958a
Merge "Exclude non-standard global $checkBlacklist in CodeSniffer checks"
2013-11-14 10:11:44 +00:00
Siebrand Mazeland
837bde0339
Exclude non-standard global $checkBlacklist in CodeSniffer checks
...
Change-Id: Ifabec0303743f9c89c1e96c8489a6089eda5b163
2013-11-11 16:33:44 +00:00
Siebrand Mazeland
bd36998440
Use capital for classes Languages and ExtensionLanguages
...
Searched core and 600+ extensions for uses. Found no more.
Class names are case-insensitive anyway.
Change-Id: I296d39be9aa3a2690f80a23691b34394aa1c6637
2013-11-11 15:51:29 +00:00
Siebrand Mazeland
c6f256a8f7
Break long lines
...
Also:
* Remove an unneeded constant MEDIAWIKI check in a file with all classes.
* Document some variables.
Reduces PHP CodeSniffer errors and warnings.
Change-Id: I67bccf82e90302d13ad8fd04c8a4b75ac5edd984
2013-11-11 15:49:30 +00:00
Siebrand Mazeland
7abb017ad6
Update formatting
...
Change-Id: Ia730172478f7f73c02ff3ae30c36e73fb929974b
2013-11-11 16:24:24 +01:00
Alexandre Emsenhuber
33bec07ae9
New hook 'LocalisationChecksBlacklist' to allow to extend the localisation checks blacklist
...
The point is to allow to use the blacklist of translatewiki.net,
so the format of $checkBlacklist got changed to be compatible with it.
Change-Id: I5eb328c4bdbb0b21962b89acbe12f46ebb4d9d70
2013-11-10 11:07:58 +01:00
Siebrand Mazeland
0b7b45811f
Blacklist plural checks for 'cdo'
...
Per
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Nmembers/cdo_no_PLURAL:_in_our_language
Change-Id: I87253da38d7cb726250927939c33cc6b2cbdc6b0
2013-07-08 09:25:00 +02:00
Siebrand Mazeland
436a38763d
Update formatting
...
Reindent file.
Change-Id: I83415327289469ca1965a1f7b8a96fdcd4f9ad45
2013-07-08 09:23:07 +02:00
Siebrand Mazeland
59f6fd0199
Change EXIF to Exif
...
Per https://en.wikipedia.org/wiki/Exchangeable_image_file_format . Spotted
by Shirayuki and documented on
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Sesp-property-exif-data/en
Change-Id: I92ba67ec60ccfe7a173d950593357b86792b8ed3
2013-05-10 13:51:06 +02:00
umherirrender
9f14ecf829
Added space after switch/Removed spaces after unset
...
While at it, added/removed some other spaces in the same files
Change-Id: I84d8001aa123a008807ad5eb76f396aed7c899a4
2013-04-26 16:42:31 +02:00
umherirrender
b114f5e1c1
Fixed some spacing in maintenance folder
...
Added spaces before if, foreach
Added some braces for one line statements
Change-Id: I9657f72996358f8c1c154cea1ea97970d973723c
2013-04-18 20:48:44 +02:00
umherirrender
15abcf71ca
Added/Removed spaces around string concatenation
...
And added/removed spaces around some other tokens,
like +, -, *, /, <, >, =, !
Fixed windows newline style
Change-Id: I0b9c8c408f3f6bfc0d685a074d7ec468fb848fc8
2013-04-13 13:36:24 +02:00
Siebrand Mazeland
d4b046a893
Update docs for return and exception info
...
* Removed some inline tabs in the process.
* IDE fixed some incorrect leading spaces, too.
Change-Id: Ic9303eff6db4424ac3f1fa2816839692b43e6190
2012-10-09 09:41:58 +00:00
jeroendedauw
430b31415f
Replace remaining Array occurences with array
...
Change-Id: Id7c2fdd6814a8239acbe050d857b56350e691a49
2012-10-05 16:11:54 +02:00
Robin Pepermans
9184dc83d6
Update core usage of getLanguageName[s].
2012-03-08 20:56:26 +00:00
Siebrand Mazeland
95e2ff5ea8
Fixes for highlighter.
2012-02-20 09:57:56 +00:00
Sam Reed
f3f180850a
Fixing up undefined types in maintenance documentation
2012-02-09 21:08:06 +00:00
Sam Reed
ebaad11e83
Update documentation, returns
2011-10-14 21:19:25 +00:00
Sam Reed
b88afb0daa
Fixup/add documentation
...
Remove some unused variables
2011-03-30 19:00:11 +00: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
6b3b915353
Big attack on unused variables...
2010-10-14 20:53:04 +00:00
Platonides
10ed39657b
Remove unused global $IP
2010-07-28 12:11:46 +00:00
Siebrand Mazeland
d8f23e62b0
Revert r69841, r69882, r69892, r69896, r69910 in phase3/maintenance/language because rebuildLanguage.php was broken.
...
This prevented message updates by Raymond from translatewiki.net.
Reported issues:
* Warning: in_array() expects parameter 2 to be array, null given in maintenance\language\languages.inc on line 173
* Warning: in_array() expects parameter 2 to be array, null given in maintenance\language\languages.inc on line 175
* Warning: in_array(): Wrong datatype for second argument in phase3\maintenance\language\languages.inc on line 175
2010-07-26 20:29:55 +00:00
Sam Reed
534611b355
Fix typo in deleteArchivedFiles.inc
...
Remove unused globals
Add missing global
2010-07-24 20:01:14 +00:00
Alexandre Emsenhuber
6db9cc78cb
Update --help screen for better readability
2010-04-09 17:21:52 +00:00
Alexandre Emsenhuber
049041295a
fix variable name
2009-12-27 17:08:33 +00:00
Alexandre Emsenhuber
43f088aeb6
Remove "non-message checks" from the header, like for the body to avoid rows in the header with no associated items in the body
2009-12-27 16:44:57 +00:00
Alexandre Emsenhuber
b8cfcd0656
Added --prefix option to maintenance/language/checkLanguage.php to add interwiki prefix to links (when using --links option)
2009-12-27 14:59:27 +00:00
Siebrand Mazeland
b3f5c36d67
Partial update of plural forms per http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
...
* updating check blacklists in core and Translate
* adding language classes for codes that use singular form for plural as only difference to English plural forms
* adding FIXME for 'be' plurals: MediaWiki definitions differs from CLDR
2009-09-28 08:40:09 +00:00
Siebrand Mazeland
3d20501ffd
Update $checkBlacklist
2009-05-31 13:23:37 +00:00
Niklas Laxström
772c5c07a5
* Hack for checkLanguage.php to work without database
2009-05-02 10:49:37 +00:00
Chad Horohoe
221967100c
(bug 17948) Maintenance scripts now exit(0) or exit(1) as appropriate
2009-04-06 14:41:33 +00:00
Rotem Liss
8a4f563606
Recommiting r47578, fixed.
2009-02-21 10:18:45 +00:00
Siebrand Mazeland
b3d7259f41
Revert r47578. Causing Fatal error: Call to undefined method languages::getMessagesWithoutVariables() in /home/siebrand/phase3/maintenance/language/transstat.php on line 99
...
(http://www.mediawiki.org/?diff=prev&oldid=240025 )
2009-02-20 23:35:50 +00:00
Rotem Liss
31c5be42b8
Language script: Extend variables check to cover also variables which should not be used.
2009-02-20 20:18:47 +00:00
Rotem Liss
0a5f1883f6
Localization script: Adding the possibility of checking all FlaggedRevs messages.
2008-12-25 18:14:32 +00:00
Alexandre Emsenhuber
352cbb523e
Per Nikerabbit and Siebrand: removed $skinNames from localisation files and replaced them with messages. Messages names are "skinname-<skin>" where <skin> is the internal name of the skin.
...
Updates for other languages should come soon :)
2008-12-25 18:00:26 +00:00
Rotem Liss
9c91948341
Adding an option to do the 'easy' checks in the language checking script, i.e. the checks that a non-speaker of the language can usually fix.
2008-10-25 17:35:26 +00:00
Rotem Liss
49fc3f5e9e
Language checking script:
...
* Checking for non-existant magic words and special pages.
* Cleanup for total count check.
2008-10-25 17:24:37 +00:00
Rotem Liss
01b0f30c10
Removing a debug line.
2008-10-21 09:34:01 +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
Rotem Liss
bb133a3418
Add duplicate check to the default checks: Now that messages may be makred as optional, every message not marked as such should be translated.
2008-08-21 19:15:40 +00:00
Siebrand Mazeland
92edb444b6
Disable plural checks for gn, hu, sah
2008-07-18 15:53:29 +00:00
Siebrand Mazeland
9a8b86b5be
Update help
2008-07-13 10:16:48 +00:00
Rotem Liss
9f51078f62
Show extension name only if its checks are not empty.
2008-07-06 11:12:02 +00:00