Commit graph

2012 commits

Author SHA1 Message Date
Translation updater bot cd3ef0a647 Localisation updates from https://translatewiki.net.
Change-Id: Ifd1fcc428ecfb65cd0aaa2b247e4039f101f404a
2020-02-10 08:35:27 +01:00
libraryupgrader 7b2cda5591 build: Updating composer dependencies
* mediawiki/minus-x: 0.3.2 → 1.0.0
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1

Change-Id: Ibdedddbf19eb4712c31c1b95024391ff013f73e8
2020-02-07 06:37:29 +00:00
Brad Jorsch 633ff1ff2d LuaStandaloneInterpreterTest: Use assertEqualsWithDelta
Using the $delta parameter to assertEquals was deprecated in PHPUnit 8.

Change-Id: Iab5ead5a075bf7481a972b3b9e94cc3e754f1cd3
2020-01-23 11:53:33 -05:00
Daimona Eaytoy 2e1306fa45 Kill hack for the PHPUnit migration
Bug: T192167
Change-Id: Ic86f6fc67555d2e678ce46f6ad34a25236b560af
2020-01-23 16:22:40 +00:00
Brad Jorsch 3a19bb8b0c Document a lot of methods
Clear up a bunch of phpcs ignores by documenting many methods.

Also remove Scribunto_LuaError::setLineMap(), which has apparently never
been used since it was added in Ia51f439e.

Change-Id: I763bcdbc7edbbb8e4600495a03acca3439fc0ec9
2020-01-17 23:03:03 +00:00
Max Semenik 0d6a4da3d5 Make tests pass on PHPUnit 8
Bug: T192167
Change-Id: Idf87f4c0f0d74848a0cc8f131a84c87e8eeb7809
2020-01-16 16:04:33 +03:00
libraryupgrader 6adb1c423b build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.WrongStyle

Change-Id: Ifa2c7a7febc1e06c28318305cfef0b0103c6e8eb
2020-01-14 14:49:35 +00:00
libraryupgrader c874103030 build: Updating npm dependencies
* grunt-stylelint: 0.10.1 → 0.13.0
* stylelint-config-wikimedia: 0.4.3 → 0.8.0

Additional changes:
* Remove direct "stylelint" dependency in favor of "grunt-stylelint".
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: Ic087c1d4a6f6d7ec48da8c498a9b9d81063ce0e4
2020-01-10 10:48:47 +00:00
Umherirrender 73481be881 build: Remove unneeded exclude from .eslintrc.json
This reverts parts of commit 631a0f40fc.

Change-Id: I408c7522055a4dbfe1958d2d3ec3a54a777957ff
2020-01-08 16:54:09 +00:00
libraryupgrader 631a0f40fc build: Updating npm dependencies
* eslint-config-wikimedia: 0.12.0 → 0.15.0
  The following rules are failing and were disabled:
  * brace-style
  * camelcase
  * eqeqeq
  * max-len
  * max-statements-per-line
  * new-cap
  * no-constant-condition
  * no-dupe-keys
  * no-empty
  * no-implicit-globals
  * no-mixed-spaces-and-tabs
  * no-redeclare
  * no-tabs
  * no-undef
  * no-underscore-dangle
  * no-unused-vars
  * no-use-before-define
  * no-useless-concat
  * one-var
  * valid-jsdoc
  * vars-on-top

* grunt-eslint: 21.0.0 → 22.0.0

Additional changes:
* Added .eslintcache to .gitignore.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I95ee6d80f0dbd109636114d6eff4408f10943263
2020-01-08 07:46:47 +00:00
Translation updater bot 4ec31764bd Localisation updates from https://translatewiki.net.
Change-Id: Ied72432d56d30dd563b99f07ff7df427052a1c09
2020-01-08 08:42:55 +01:00
Translation updater bot 3523c0afd2 Localisation updates from https://translatewiki.net.
Change-Id: I2822e9287ef5d1ac2000eeb8bde2f4538cc5dd8b
2020-01-06 08:50:31 +01:00
Brad Jorsch 8a8e51d8c7 Set $wgFragmentMode for UriLibraryTest
It affects the behavior of mw.uri.anchorEncode()

Change-Id: I3a704507cda79a2a48ec58ce9b7500667ea0dda3
2020-01-02 14:51:11 -05:00
Umherirrender ef8aff71ec Use class name resolution to refer to class names
::class is validated by phan and avoids misspelled class names

Change-Id: I613d5df56fcee6099e4294f5c6df078aafad1210
2020-01-02 16:59:55 +00:00
libraryupgrader 3b2d40f28d build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Depends-On: I9661ed8dd80cb827d7a1414c1eef952c0933a1f0
Change-Id: Ia34d9d9eade74cbb261dbfe4e39971de57cab888
2019-12-31 20:46:17 +00:00
Translation updater bot 26513da3c3 Localisation updates from https://translatewiki.net.
Change-Id: I533d3a95cbdc10d41a4865b5298a3eb9de59677c
2019-12-29 20:41:49 +01:00
Umherirrender 9c6f6f905a Split all classes in own files
Move autoload entries for test to TestAutoloadClasses key

Change-Id: Ie705db0e7225600b7b498cfa134733a65f1ae1c9
2019-12-21 10:20:18 +01:00
Umherirrender e83bc743ec Split classes in Base.php
Change-Id: Ie29a32aeb10cf23264481d3b0f5fb5096d49b60e
2019-12-18 19:06:57 +00:00
Translation updater bot 42f09dd4af Localisation updates from https://translatewiki.net.
Change-Id: I58952cf1931e020f5de3b7f5b2eed24ffde74212
2019-12-18 09:26:36 +01:00
libraryupgrader b5e2a4deb8 build: Updating dependencies
composer:
* mediawiki/minus-x: 0.3.1 → 0.3.2

npm:
* grunt-banana-checker: 0.6.0 → 0.8.1

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I9337ad916e96d48ef3ed6e4c7c901ed323193ae5
2019-12-18 05:33:18 +00:00
Translation updater bot e3aa1228cb Localisation updates from https://translatewiki.net.
Change-Id: I7948190d6a13428a64de786636fb4e3d6da185c2
2019-12-17 10:08:52 +01:00
Translation updater bot 772ff3f7ab Localisation updates from https://translatewiki.net.
Change-Id: I01204736729b24e92f9ca8ea71cd9db9b21abad9
2019-12-16 12:15:16 +01:00
Translation updater bot 57ed9f7f19 Localisation updates from https://translatewiki.net.
Change-Id: I9091885c6a1b7a5db13a633d518d6a37b4fae8de
2019-12-09 09:36:55 +01:00
Translation updater bot 491ac583ac Localisation updates from https://translatewiki.net.
Change-Id: I79227d1013d4281ba6a452a5e7f0c535684ed533
2019-12-06 09:33:25 +01:00
Translation updater bot 2641ed79c3 Localisation updates from https://translatewiki.net.
Change-Id: I94cbb72faf9751f9c20b75fd0b3decd34bdc396b
2019-12-02 09:23:29 +01:00
Umherirrender e70a548fbc build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: Ia8cb36d60d56eb899e96eacf7640d8da50c4adfe
2019-11-26 09:30:36 +00:00
Translation updater bot 21be09b3a6 Localisation updates from https://translatewiki.net.
Change-Id: I2c9e5dfa4e6f117db2bb11ef9f91a0cf19367714
2019-11-25 09:10:53 +01:00
Florian b0103abfed Fix type after upgrading to phpunit 7
See I77ea560f4a5344bd1c356ecc3e7857968ad829b8

Change-Id: Ie9c83cf44e6555a9ae1f3182fdc3cc4269329fa7
2019-11-21 17:55:05 +01:00
Jon Harald Søby d15c4918f3 Add Scribunto namespaces for Sakizaya (szy)
Reported to me on
https://incubator.wikimedia.org/wiki/Talk:Wp/szy#Namespaces

Bug: T237371
Change-Id: I325b1496d9084468c62ca21a378a358471d3a732
2019-11-20 09:11:02 +00:00
Translation updater bot 43672d7525 Localisation updates from https://translatewiki.net.
Change-Id: I404ff01a0f3287546e100cdf5f0ef4d642d8185a
2019-11-18 09:24:30 +01:00
Jon Harald Søby c8ff920717 Add Scribunto namespaces for avk, gcr and shy-latn
Add namespaces for Kotava, Guianan Creole and Shawiya languages.
As reported on, respectively,
https://incubator.wikimedia.org/wiki/Special:PermaLink/4661225#Kotava_namespaces ,
https://incubator.wikimedia.org/wiki/Talk:Wp/gcr , and
https://incubator.wikimedia.org/wiki/Talk:Wt/shy

Bug: T238109
Bug: T238110
Change-Id: I8b52467805f04cc6283283535b268a4cff5022ef
2019-11-18 00:17:35 +00:00
Max Semenik d866df0ed8 Stop passing objects by reference
Bug: T193950
Change-Id: Ib18865bac35e52b52489fb0d501dfd0574906092
2019-11-15 19:23:28 +00:00
Translation updater bot 63e8bdc9f7 Localisation updates from https://translatewiki.net.
Change-Id: I9de1f49c6f8581d04a6c38b862136e8f08d13c03
2019-11-15 09:22:09 +01:00
Translation updater bot 9296813f51 Localisation updates from https://translatewiki.net.
Change-Id: I0131720d4a034d2f7fd2e7bc7dc01714a616280b
2019-11-11 14:51:18 +01:00
James D. Forrester a4f43da4d2 Drop use of wgParser, replaced in 1.32 and to be removed in 1.35
Bug: T160811
Change-Id: Ic18f8e3df636e092a2517a622cb3969ac048725e
2019-10-29 08:38:30 +00:00
Max Semenik 764847164a Replace trigger_error('') magic with error_clear_last()
Bug: T191247
Change-Id: I8bedd9c6df4648941c957d92fa8b0c8464f1d796
2019-10-28 14:08:55 +00:00
Umherirrender 52fb5f8c21 build: Removed unneeded exclude MediaWiki.Commenting.PhpunitAnnotations
Nothing to exclude

Change-Id: I8f31a5111cc30a90488ffc5a41c50e72816e613f
2019-10-25 19:47:52 +02:00
Translation updater bot 54f05d3f9d Localisation updates from https://translatewiki.net.
Change-Id: Ie0d141b0412abf775b69f4cdb46d8c5ce31876a1
2019-10-24 10:48:10 +02:00
Brad Jorsch 0ee41431c2 Don't error if someone returns a built-in function from their module
This is getting close to the point of "don't do that, just wrap the
built-in". But since it's a regression in a recent patch, let's restore
the old behavior here.

Bug: T236092
Change-Id: Ieddc23d942bc91fd0246ae14d8a4af7719e3834f
2019-10-23 08:41:40 +00:00
James D. Forrester de636b2bc6 Collapse uses of now-deprecated wfGetRusage()
It can no longer return false.

Depends-On: Ibab4825b53cd76053f1e4ce8986dfac8054a04f8
Change-Id: Ic70d0304e9cd04d4011671e498146e4b5994cbe9
2019-10-22 11:34:35 +01:00
Jon Harald Søby b6c584da5f Add Saraiki namespaces
As reported on
https://incubator.wikimedia.org/wiki/Wp/skr/Template:namespaces

Change-Id: I0a132744cbfacc7d640528d6b3a130abc52f65b6
2019-10-21 22:17:16 +00:00
Translation updater bot bfd5f8b2c5 Localisation updates from https://translatewiki.net.
Change-Id: Iafa331acffe8e33111f28a1a0c0aa1cdd382491d
2019-10-21 10:00:43 +02:00
Timo Tijhof 85076760de Remove use of jquery.ui module aliases
Bug: T219604
Change-Id: If38feab0bed047f15a3833811742c5c520ddc3d0
2019-10-19 21:30:38 +01:00
Jon Harald Søby 3b6b01537e Add namespace and magic word translations for mnw and my
Add namespace and magic word translations reported to me on
https://incubator.wikimedia.org/w/index.php?oldid=4645800

Also add magic word translation for my own native Norwegian Bokmål.

Bug: T235741
Change-Id: Id475b77c444b4c1fe241e966410df3d0ace51360
2019-10-18 20:03:05 +00:00
Translation updater bot 267d2e0922 Localisation updates from https://translatewiki.net.
Change-Id: I296069e1c857269ebc18ff95df65e150ff924097
2019-10-18 09:29:31 +02:00
Translation updater bot d50fe446dc Localisation updates from https://translatewiki.net.
Change-Id: Ibb2584c99d685bed9cbf321fb500c39a3b7a75c1
2019-10-16 20:41:38 +02:00
Translation updater bot a45bf6163a Localisation updates from https://translatewiki.net.
Change-Id: I22ed85f469af8071c2ab3ca703931e304df1fd7f
2019-10-16 10:40:57 +02:00
Jon Harald Søby 1f995556c1 Localize Scribunto strings for Balinese
Bug: T234769
Change-Id: I81c70f97886fe21deef437fa20e64da02a7c816c
2019-10-14 11:47:06 +00:00
Brad Jorsch 1617bb3deb Return correct frame from mw.getCurrentFrame in certain edge cases
When an #invoke is passed as an argument to another #invoke,
mw.getCurrentFrame() at module scope will return the wrong frame.

On the PHP side, we need to always reset the frame when processing
an #invoke, not just when there's no frame already. I don't remember why
I82dde43e wasn't done that way, but changing it doesn't make any tests
fail and Scribunto tends to have good tests.

On the Lua side, we need to do the same. The logic wih mw.getCurrentFrame()
using a global that gets stored, modified, and reset in several places
was getting confusing, so this patch reworks the logic to inject a
globalless mw.getCurrentFrame() into each #invoke's cloned environment
instead.

Bug: T234368
Change-Id: I8cb5bc4dc14c9b448c9f267e0539daa75e72af4c
2019-10-14 02:39:13 +00:00
James D. Forrester 4a93593abf build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: Ie4cb4cbee163943cd159eb0ad1d7deaac10e68d8
2019-10-11 11:31:29 -07:00