Commit graph

1601 commits

Author SHA1 Message Date
Translation updater bot 80f5665c06 Localisation updates from https://translatewiki.net.
Change-Id: I2d80fd95afbdcf4bb2b5bb2f26efb939a3801c52
2022-11-14 07:12:11 +01:00
Translation updater bot ea7804c9fd Localisation updates from https://translatewiki.net.
Change-Id: Ibd9f2b5f6102bb55a3dac43997daeb43fbe0aea9
2022-11-07 07:27:55 +01:00
Kunal Mehta d433cae33a Add strict.lua to replace "Module:No globals"
This is being backported because many users copy lua modules from
Wikipedia, and thus benefit from forwards-compatibility.

For the most part, it is a good idea to avoid global variables and use
`local` variables instead. Quoting from the ScopeTutorial[1], "The
general rule is to always use local variables, unless it's necessary for
every part of your program to be able to access the variable (which is
very rare)."

Wikimedia module authors have written "Module:No globals", which errors
on the use of any global variable. On the English Wikipedia, this is
used on 32% of pages (18 million). Wikidata[2] indicates that it's been
copied to 334 other wikis.

Lua itself distributes an extra named "strict.lua"[3], which is what
this is based off of. Similar to bit32.lua, this is a pure-Lua library
that can be imported/enabled with `require( "strict" )` at the top of a
module.

The two changes I made from Lua's strict is to exempt the `arg` key,
which is used internally by Scribunto, and remove `what()`, since we
don't enable access to `debug.getinfo()` for security reasons.

[1] https://lua-users.org/wiki/ScopeTutorial
[2] https://www.wikidata.org/wiki/Q16748603
[3] http://www.lua.org/extras/5.1/strict.lua

(Cherry-picked from 829c53ef05)

Bug: T209310
Change-Id: I46ee6f630ac6b26c68c31becd1f3b9d961bcab29
2022-11-07 06:04:50 +00:00
Translation updater bot c2ce1c631a Localisation updates from https://translatewiki.net.
Change-Id: I0a0ebd0d213fea6509745e04b49570d99954afbe
2022-10-31 07:37:54 +01:00
Translation updater bot 5205b2b70f Localisation updates from https://translatewiki.net.
Change-Id: If68bd48fe887b639347922d46474dfecbc5a6949
2022-10-24 07:56:23 +02:00
libraryupgrader 8f6b0ec39f build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I5902d581bc36821da101631bdde3563bcbedc075
2022-10-24 03:56:55 +00:00
Translation updater bot ea878837e2 Localisation updates from https://translatewiki.net.
Change-Id: I2f93be13314e2a73c906e01b889d8679a93a7e30
2022-10-17 07:37:57 +02:00
Translation updater bot ea4dedb15b Localisation updates from https://translatewiki.net.
Change-Id: Ib11cfee1d8252109eab0b7f3b324b5e6362e5aff
2022-10-03 07:25:11 +02:00
Translation updater bot 476efbd071 Localisation updates from https://translatewiki.net.
Change-Id: If28182ee3fc90d8992e7659cc1b0298226ff51e2
2022-09-26 07:13:51 +02:00
Translation updater bot 1c229c60f3 Localisation updates from https://translatewiki.net.
Change-Id: I56a5d40a706543f51aca5db0f6e6d3bda5c2d7b0
2022-09-12 07:12:54 +02:00
Translation updater bot 28e2fc2872 Localisation updates from https://translatewiki.net.
Change-Id: Ib38def2e7bb54597eda7d35b2630658f8213c0be
2022-09-05 07:17:59 +02:00
Translation updater bot c4261d3e14 Localisation updates from https://translatewiki.net.
Change-Id: Iae3fb8c9ac6964ba5347a55a83fe91447acd33ec
2022-08-15 07:08:17 +02:00
Translation updater bot 557c175d38 Localisation updates from https://translatewiki.net.
Change-Id: I5b136117dcdc0ca573c4b24ae8c3fb27a6385ab1
2022-07-18 07:26:53 +02:00
Translation updater bot cc20d47d3a Localisation updates from https://translatewiki.net.
Change-Id: If6ba631e6e13e516d7a20a043bf43d75c4913bdb
2022-07-04 07:18:56 +02:00
Translation updater bot db46d7ca53 Localisation updates from https://translatewiki.net.
Change-Id: Ied831191c967ed01298d5d5c86e7dece61bc90b0
2022-06-20 07:25:03 +02:00
Translation updater bot 4514ee4a76 Localisation updates from https://translatewiki.net.
Change-Id: I0caa1971805b03c5da04b2455d71e409f784f66a
2022-06-06 07:18:13 +02:00
libraryupgrader 07050e70ad build: Updating grunt to 1.5.3
Change-Id: Ib7e8202951f67dc65af7716c57827b039e595c2d
2022-05-24 00:45:35 +00:00
Translation updater bot 7aeb02d917 Localisation updates from https://translatewiki.net.
Change-Id: I5c97721ee41bc2c7baea6c992afdf6809d78bdc2
2022-05-16 07:25:44 +02:00
Translation updater bot 0a178778c7 Localisation updates from https://translatewiki.net.
Change-Id: I793150a4c8a12f88f4239420ed13d8948169c10a
2022-05-02 07:05:38 +02:00
Translation updater bot 2c734797c0 Localisation updates from https://translatewiki.net.
Change-Id: Iff32e0cce507a4cfdf4ef9ec971f45c5722babb4
2022-04-25 07:11:37 +02:00
Translation updater bot 4f9f4d7b83 Localisation updates from https://translatewiki.net.
Change-Id: Ib8b7bf1d6610c6eddc9f2528ad8f961f0c2bc1d9
2022-04-18 07:12:55 +02:00
libraryupgrader 309b1408cb build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 31.0.0 → 38.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.FunctionComment.MissingParamTag
  * MediaWiki.Commenting.FunctionComment.ObjectTypeHintParam
  * MediaWiki.Commenting.FunctionComment.ObjectTypeHintReturn
  * MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPrivate
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationProtected
  * MediaWiki.Commenting.PropertyDocumentation.MissingDocumentationPublic
  * MediaWiki.Commenting.PropertyDocumentation.NotShortBoolVar
  * MediaWiki.Commenting.PropertyDocumentation.NotShortIntVar
  * MediaWiki.Commenting.PropertyDocumentation.WrongStyle
  * MediaWiki.Usage.StaticClosure.StaticClosure
  * PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon
  * PSR2.Classes.PropertyDeclaration.Multiple

npm:
* ajv: 6.10.2 → 6.12.6
  * https://github.com/advisories/GHSA-v88g-cgmw-v5xw
* ansi-regex: 5.0.0 → 5.0.1
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
  * https://github.com/advisories/GHSA-93q8-gq69-wqmw
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25
* minimist: 1.2.5 → 1.2.6
  * https://github.com/advisories/GHSA-xvch-5gv4-984h
* nanoid: 3.1.23 → 3.3.2
  * https://github.com/advisories/GHSA-qrpm-p2h7-hrv2

Additional changes:
* Set `name` in package.json.
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I816da6b8a36655ee7c44af56eff55bb84622c0a7
2022-04-15 22:25:30 +00:00
Translation updater bot 384c64e113 Localisation updates from https://translatewiki.net.
Change-Id: I487f5029ff04bf71681cdf6274e680e2172a1732
2022-04-11 07:12:04 +02:00
Translation updater bot b39a3705f0 Localisation updates from https://translatewiki.net.
Change-Id: I50dc46431812ef9c6b519010ab39342b5cb8c379
2022-03-28 07:09:23 +02:00
Translation updater bot 2d29d8e114 Localisation updates from https://translatewiki.net.
Change-Id: I3cfc4f82794ca6744d7b9e6703a41c555535e20b
2022-03-21 06:58:05 +01:00
Translation updater bot 04b897f164 Localisation updates from https://translatewiki.net.
Change-Id: I91badddc302b49d7f158c5b2c4ecde8efda96908
2022-02-28 07:00:40 +01:00
Translation updater bot c5884f9bf7 Localisation updates from https://translatewiki.net.
Change-Id: If39b733af67a58d2813f5c46b95c0b34cba0dcd1
2022-02-14 07:10:24 +01:00
Translation updater bot ba81e0bd55 Localisation updates from https://translatewiki.net.
Change-Id: I8b196f8fb58d320ccc0cd2d1d404c0049c4f1214
2022-01-31 06:59:01 +01:00
Translation updater bot 07680fe86e Localisation updates from https://translatewiki.net.
Change-Id: Icfdb7205d4e4d0b40aa52ec1cd5186975b6dc789
2021-12-20 06:59:37 +01:00
Translation updater bot 344ee14512 Localisation updates from https://translatewiki.net.
Change-Id: I3a15b4996954aaa583309396c7494fcbfb64c48d
2021-12-13 06:56:24 +01:00
libraryupgrader 43b5f2e328 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I294a259caf9c874ec047b6a2a001c3cbcd9ccb2e
2021-09-04 04:55:58 +00:00
libraryupgrader 0775e8e499 build: Updating npm dependencies
* postcss: 7.0.35 → 7.0.36
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* glob-parent: 5.1.0 → 5.1.2
  * https://npmjs.com/advisories/1751 (CVE-2020-28469)
* trim-newlines: 3.0.0 → 3.0.1
  * https://npmjs.com/advisories/1753 (CVE-2021-33623)

Change-Id: Ic94070d6ebda17d3165ceca24c6a469b23d7f7c9
2021-07-23 21:34:29 +00:00
libraryupgrader 8119592874 build: Updating npm dependencies
* grunt: 1.1.0 → 1.4.0
* stylelint-config-wikimedia: 0.10.1 → 0.10.3
  * https://npmjs.com/advisories/1693 (CVE-2021-23368)
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)
* hosted-git-info: 2.8.5 → 2.8.9
  * https://npmjs.com/advisories/1677 (CVE-2021-23362)
* @stylelint/postcss-markdown: 0.36.1 → 0.36.2
  * https://npmjs.com/advisories/1700 (CVE-2020-7753)

Change-Id: Ic0485e04de57935e09078d226cbbd74967ed4a17
2021-05-13 08:20:58 +00:00
libraryupgrader d21b655d99 build: Updating ini to 1.3.8
* https://npmjs.com/advisories/1589

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I0870d1285cd4921f8ac1e792d1f8c71f26872fe4
2021-01-02 21:23:03 +00:00
libraryupgrader e44ec26892 build: Updating lodash to 4.17.19
* https://npmjs.com/advisories/1523
* CVE-2019-10744

Change-Id: If976aa682a32c003de02675d8c0cca6865179bb8
2020-07-11 02:32:56 +00:00
Translation updater bot a19f263be5 Localisation updates from https://translatewiki.net.
Change-Id: Ibbfe8d87ddf99d179329f415a10028884834c61e
2020-07-06 09:54:31 +02:00
Translation updater bot 48176dae33 Localisation updates from https://translatewiki.net.
Change-Id: Iebd6e22b358fe7c528e8ca757983a67bf304e3bd
2020-07-02 08:42:36 +02:00
Translation updater bot c94ba18a45 Localisation updates from https://translatewiki.net.
Change-Id: I15d0063d2ff48a3d44db26fb8dfe89b0b70a0a14
2020-06-29 16:26:33 +02:00
Umherirrender 99ab75226b phpcs: Fix SuperfluousVariadicArgComment
Change-Id: Ib14f2aa18e43ef7ae621b6281fecd47e8bd3899c
2020-06-27 13:45:24 +02:00
Translation updater bot 141d9919ea Localisation updates from https://translatewiki.net.
Change-Id: Ie065c0b1f0b84991d038ec9a214a6d3d3ed80b79
2020-06-24 08:29:53 +02:00
Translation updater bot 2e9c979758 Localisation updates from https://translatewiki.net.
Change-Id: I336ab4e8cac01c24ba517e7bdef0badd84463441
2020-06-22 08:45:07 +02:00
Jon Harald Søby 0a04009c18 Add Northern Sámi namespace translation for Scribunto
Bug: T255828
Change-Id: I4f7fc0eaecaf819b17c45d958b625dd3aed25f83
2020-06-18 22:42:04 +02:00
Translation updater bot 715aab7cb1 Localisation updates from https://translatewiki.net.
Change-Id: I0c38999b87bbe58fcc65eba86660cd09f59f917c
2020-06-18 08:38:29 +02:00
Translation updater bot d6cfd5e55e Localisation updates from https://translatewiki.net.
Change-Id: Ia360395ba3652515834e3ac6d25e0fdadaf20e9f
2020-06-15 08:40:35 +02:00
Translation updater bot 523426fb32 Localisation updates from https://translatewiki.net.
Change-Id: I3351a527bd825a418724d8d0c9604363b13a2e0b
2020-06-09 09:14:36 +02:00
Translation updater bot 34694e7f3d Localisation updates from https://translatewiki.net.
Change-Id: I7c0d3b52cac2753ee215f4e0bccde9bc911e1f80
2020-06-08 08:52:14 +02:00
Umherirrender 1b2e35a108 build: Load pcntl stub to pass phan on windows
pcntl cannot installed on windows,
use the stub shipped with mediawiki/core to provide the missing constant

Change-Id: I974110db1cf1cf98e860a5589d0d3c280488c3aa
2020-06-06 13:58:24 +02:00
Translation updater bot 4d8e20b67f Localisation updates from https://translatewiki.net.
Change-Id: I423ec67edd258805b4f4b0dfb2d4f611a6d0fbee
2020-06-03 08:30:54 +02:00
libraryupgrader b9c82f4d4a build: Updating mediawiki/mediawiki-phan-config to 0.10.2
Additional changes:
* Removed phan-taint-check-plugin from extra, now inherited from mediawiki-phan-config.

Change-Id: I83fff3a5ff566790bc051d7bfffe7f3b124d3de7
2020-06-02 01:54:01 +00:00
Translation updater bot 182905cfc3 Localisation updates from https://translatewiki.net.
Change-Id: I04b1effce82c367aeede7851705b676e8c57e8b5
2020-06-01 10:08:59 +02:00