Kunal Mehta
1b69c56433
Use StaticArrayWriter class
...
Bug: T200626
Depends-On: I022c074e8a708fb5219bc4ff4b53e7e31f60dc4b
Change-Id: I601073639ea8bc0ef85de55889aaf0b433c23088
2018-08-17 22:39:18 -07:00
Translation updater bot
54d8725c1e
Localisation updates from https://translatewiki.net .
...
Change-Id: If824034321b35257cf176b05d64c6f87bc8b7e1c
2018-08-12 22:17:58 +02:00
Translation updater bot
cce338feda
Localisation updates from https://translatewiki.net .
...
Change-Id: If3261721bd6dc4b0cde2010f77764b35fb2c2ac1
2018-08-10 22:19:04 +02:00
Translation updater bot
181f16e423
Localisation updates from https://translatewiki.net .
...
Change-Id: Idfa312b309fc15bead6e240da7ed066053cb3ff6
2018-08-06 22:22:40 +02:00
Umherirrender
384331ae49
Removed unused function lang_filter
...
Have not found usage as callback
Change-Id: I67cdfb68b29e5d7879be3902cf2f63e984c3e43f
2018-08-06 17:26:34 +02:00
Kunal Mehta
27b6687848
Use wfMakeStaticArrayFile()
...
wfMakeStaticArrayFile() expects an associative array, so let's take this
opportunity to turn the lexer list into one with true as the value. This
allows us to use isset() instead of the slower in_array() when checking
to see if a lexer is known.
Bug: T200626
Change-Id: I7a852ddbcfa7c8ed19ac933205cabd176b20d0cb
2018-07-28 21:29:57 -07:00
libraryupgrader
99ebac4719
build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
...
The following sniffs are failing and were disabled:
* MediaWiki.Usage.NestedFunctions.NestedFunction
Change-Id: I973d59e297446754203ffe0217b1a7902c868aa0
2018-07-27 19:59:47 +00:00
Translation updater bot
4a8affffee
Localisation updates from https://translatewiki.net .
...
Change-Id: Id2206c65dfd548b8a0e4db510b66a13a7344446b
2018-07-24 22:10:07 +02:00
Translation updater bot
f017c5d4be
Localisation updates from https://translatewiki.net .
...
Change-Id: If4508774bf8037ac4e45ad6dd9db095571c1ece9
2018-07-22 22:09:16 +02:00
Brad Jorsch
41466e274b
Update parser test for core change
...
I42e747f1 stopped changing a regular space before percent-escapes (like
"%25") to a non-breaking space in certain cases, causing tests to fail
where they were expecting that non-breaking space. Update the test to
match this new behavior.
Bug: T199647
Change-Id: If5d90e5701f240b1bc71a3c3458e952e0e2c7df4
2018-07-16 09:23:25 -04:00
Translation updater bot
e19850baf0
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia0f308ed6c03b6565da8a9dd810a995b3f101daa
2018-07-09 22:11:21 +02:00
Translation updater bot
ba5e812419
Localisation updates from https://translatewiki.net .
...
Change-Id: If3bdbcccca072f429270144e7407a96ec54339fb
2018-07-05 22:44:09 +02:00
Translation updater bot
17a3c87c77
Localisation updates from https://translatewiki.net .
...
Change-Id: Ia5910730d22ef6d721d408d4a43e0414990a8520
2018-06-28 22:21:37 +02:00
Translation updater bot
7a4e03aa26
Localisation updates from https://translatewiki.net .
...
Change-Id: I3cac94b2b195366ad9178745cba064e5c3630813
2018-06-27 22:20:27 +02:00
Translation updater bot
237ecf0997
Localisation updates from https://translatewiki.net .
...
Change-Id: I44286b957d69dd0bd14b33f0ff1b7803d191d067
2018-06-11 22:34:23 +02:00
Kunal Mehta
1755781a3c
Don't manually suppress PhanDeprecatedClass
...
Already disabled by default in mediawiki-phan-config 0.3.0.
Change-Id: I2ad9dbefd6c167429100070b834fcbdbb216008f
2018-06-08 13:44:56 -07:00
libraryupgrader
1d40165020
build: Updating mediawiki/mediawiki-phan-config to 0.3.0
...
Change-Id: Iffc33d0ee9f76984d43b1c93a16723de70bd00ac
2018-06-08 07:49:40 +00:00
Translation updater bot
ccca6e1181
Localisation updates from https://translatewiki.net .
...
Change-Id: I78babf031fd8cdab733a0991c3f77148e12e4561
2018-05-29 22:25:15 +02:00
libraryupgrader
47a386085f
build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
...
Change-Id: I1bb12732540cda91444d1f4b7e0e11fca825243b
2018-05-26 06:39:32 +00:00
Translation updater bot
cdfb33807f
Localisation updates from https://translatewiki.net .
...
Change-Id: I43a7b006a106cec5457e8b67357ecff6e53a6493
2018-05-13 22:18:35 +02:00
Translation updater bot
d100f484b6
Localisation updates from https://translatewiki.net .
...
Change-Id: I20f077995488abc837d0aeb808978f167a57d71c
2018-05-06 22:22:53 +02:00
Kunal Mehta
b185d9892f
Upgrade phan-taint-check-plugin to 1.2.0
...
Change-Id: I2fa1c622dc495e3f4969d7684934f1839f9caf00
2018-05-04 20:01:48 -07:00
Gergő Tisza
cc44c3c7a8
Add notice about resource loading to highlight()
...
Co-Authored-By: Timo Tijhof <krinklemail@gmail.com>
Change-Id: Ide7ab4b84d1aacad2db8400de9e350a09c80e8c0
2018-05-01 09:17:58 +00:00
Translation updater bot
772d658f99
Localisation updates from https://translatewiki.net .
...
Change-Id: Ibcedb8264be6f57afe0e438175fab4f510265b75
2018-04-21 22:15:49 +02:00
Translation updater bot
d415ae2dae
Localisation updates from https://translatewiki.net .
...
Change-Id: I9c776881b46a46fa8c55a931df4fca62e212e356
2018-04-19 22:14:01 +02:00
libraryupgrader
613e8464b0
build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
...
Change-Id: I7950c319ca6a496ae57702bdebb05c0a96421646
2018-04-14 06:59:16 +00:00
Jayprakash12345
a79bf7638c
Update extensions to take advantage of parser test autodiscovery
...
Bug: T170037
Change-Id: I99e68197bbe0438c7a5a55815e8000f4deb49234
2018-04-13 15:25:52 +00:00
Translation updater bot
7538b7aefc
Localisation updates from https://translatewiki.net .
...
Change-Id: I118728e3923b13a68a00d47d7d9aabafc074f86e
2018-04-10 22:15:49 +02:00
Kunal Mehta
0615fe8444
build: Updating mediawiki/mediawiki-phan-config to 0.2.0
...
Change-Id: I1e5dc6d8fd131db8dd3296337ee73ae07b42f931
2018-04-05 17:23:15 -07:00
libraryupgrader
90212e691e
build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
...
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
Change-Id: Id89128fd4da73a71ac818d1943fe172f20b07938
2018-03-29 06:04:38 +00:00
Ed Sanders
af1a91ade9
Use OOUI 'markup' icon instead of VE's deprecated 'alienextension'
...
Change-Id: Iad1882c20c17792c1339cf9922b9c4c43bf6122b
2018-03-20 19:00:41 +00:00
James D. Forrester
df6eec698e
Parser tests: Update for breaking whitespace change in MediaWiki core
...
Changed as part of T157418.
Change-Id: I2b71eed948fe211389fb3ac166f04cd39d118328
2018-03-20 11:43:33 -07:00
libraryupgrader
a6c8aa00a5
build: Updating jakub-onderka/php-parallel-lint to 1.0.0
...
Change-Id: I7ae26de903868fc61cae4fbaa9abb717ec93dde2
2018-03-10 05:56:54 +00:00
jenkins-bot
2335b0e743
Merge "Update parser tests for RemexHtml as tidy implementation"
2018-03-06 22:27:46 +00:00
Translation updater bot
6392f1b392
Localisation updates from https://translatewiki.net .
...
Change-Id: I1a40dd7ea52cf980ce41ead53df469b79882b60e
2018-03-05 22:25:04 +01:00
Kunal Mehta
e56b9a7427
Use SPDX 3.0 license identifier
...
SPDX released version 3 of their license list (<https://spdx.org/licenses/ >),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.
Bug: T183858
Change-Id: Ic848fa4ffdeccb8340d347aeb23216364238501d
2018-03-02 15:40:34 -08:00
libraryupgrader
330ac626c2
build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
...
Change-Id: I30042215bd10f6f0257007d6370e944b4213eedb
2018-02-25 11:31:43 +00:00
Kunal Mehta
14d34dfe56
Update parser tests for RemexHtml as tidy implementation
...
Bug: T188167
Depends-On: Ic7c34d57a300dbd36a37f03fbfe33391b2950b44
Change-Id: I807a99dc9c873f3e6eb67fd62574f7916530d62e
2018-02-23 22:31:41 -08:00
James D. Forrester
6f9868891e
build: Bump devDependencies to latest
...
grunt 1.0.1 → 1.0.2
grunt-banana-checker 0.5.0 → 0.6.0
grunt-eslint 20.0.0 → 20.1.0
Change-Id: I409217f61deab2db06e15ba6761327c768aa179f
2018-02-23 18:35:07 -08:00
Timo Tijhof
8c3a3ffda0
Update highlight() to use getWithSetCallback() idiom
...
* Use backend-specific makeGlobalKey() method instead of
deprecated wfGlobalCacheKey().
* Call makeCacheKey() inline and reduce to only producing
part of the key (makeCacheKeyHash).
* Add a $ttl (1 month), instead of the previously unspecified
expiry (default: indefinite).
Change-Id: I913a768a3b61cc31ce14fa086a563ceecca7c603
2018-02-22 23:53:56 +00:00
Timo Tijhof
ae9b8419dc
Factor out plainCodeWrap to avoid recursive call to self
...
The recursive call is somewhat counter-intuitive, and seems like it could
easily break if forgotten. Instead, move the part that we want to re-use
out into its own method.
Change-Id: I64ced0da211155299744d3c86f7818e751ad027e
2018-02-22 23:40:19 +00:00
Timo Tijhof
92602f33da
Minor clean up
...
* Move "empty tag" case to earlier in highlight() by comparing to
empty string without strlen(). Follows-up cda15b184
.
* Turn "shell disabled" case into 'elseif' after length check,
instead of subsequent 'if'. That way, in case of a too large
string, we don't need to check if shell is disabled, and it
also provides the user with the size-related error instead of
the shell-related one.
* Add a few clarifying code comments.
Change-Id: Ib0ef9e683ac4aadd0461fe061ddbe9bfb0a27a82
2018-02-22 23:40:07 +00:00
Kunal Mehta
cda15b184c
If there is no input, don't try and shell out to pygments
...
pygments will just wait for stdin if the stdin that was passed
to it was empty.
Bug: T188019
Change-Id: I46271f31df74822bc71b3ac283fa572f2d149d67
2018-02-22 13:29:58 -08:00
libraryupgrader
3a588ed5da
build: Updating mediawiki/minus-x to 0.3.1
...
Change-Id: I94381a6b6fc7f3fc19dc67008f7edc8cfef20331
2018-02-18 09:46:21 +00:00
Kunal Mehta
b7d670c346
Set phan-taint-check-plugin version in composer.json
...
We cannot set this in the normal "require-dev" because the plugin
depends on exactly PHP 7.0, preventing running tests on any other PHP
version.
Instead, CI will read the version number out of the "extra" field to
figure out what version to install.
Bug: T187497
Change-Id: I36cb5e14e740afabdd42a04ff19b6d59a59a502e
2018-02-16 13:44:31 -08:00
Kunal Mehta
e75fda881e
Migrate to mediawiki-phan-config
...
Change-Id: I038c599b428683cee669e69e9a5106f178b129a2
2018-02-15 14:29:11 -08:00
Kunal Mehta
141455aa33
Move classes into includes/
...
Change-Id: Ie26b5be1bb2551ed339fdb4a587a89823c609b2e
2018-02-15 14:29:07 -08:00
Kunal Mehta
dcd54e6c09
Remove unused back-compat ResourceLoaderGeSHiVisualEditorModule alias
...
This isn't used by anything.
And use ::class syntax while we're at it.
Change-Id: I5cb0b9f36903636825080026d9bc18e5a7f7379e
2018-02-15 14:17:39 -08:00
libraryupgrader
60b26d5a1c
build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
...
Change-Id: I6d43d6e3af599d2662709a809c61ec0987487f73
2018-02-15 14:15:26 +00:00
Translation updater bot
52870eb4a6
Localisation updates from https://translatewiki.net .
...
Change-Id: I9843b2d8ac5f8c64002d0f7d6fd64aae274f5b68
2018-02-10 09:15:29 +01:00