Commit graph

274 commits

Author SHA1 Message Date
libraryupgrader 72f5bffa81 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: Ibc27a91c218a93efb10e4d4a9e8c1a9ee6fa7a56
2020-12-07 03:31:09 +00:00
libraryupgrader 49bbea7ec1 build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Change-Id: Iafd4c78988f4a62a28bf4ad2cde813d9faff92de
2020-11-20 20:03:38 +00:00
Thiemo Kreuz 7af3fcc8e3 Trivialize TemplateStylesHooks::getConfig()
This is cached anyway in the ConfigFactory.

This patch also includes a few very minor cleanups in the
same file.

Change-Id: Iec44dae1d6a69e0f28d62f875a22f30f8b10cf78
2020-11-11 16:44:09 +01:00
libraryupgrader f17b06db0a build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).

Change-Id: I19196f86a18cc4be7ac9e24d8c84a2ed4c8121f4
2020-11-04 13:51:41 +00:00
Translation updater bot 58aea1a6af Localisation updates from https://translatewiki.net.
Change-Id: I13d169b1275a510c9325dab85497b27013e1942c
2020-10-21 08:27:57 +02:00
Gergő Tisza 53e0377986 Fix type doc for the extra wrapper
A token is a component value, but not all component values are tokens.
Follows up I5dc04611f.

Bug: T258093
Change-Id: I2292a5dbedf1607f9ad25d2b4021a225a202d407
2020-10-19 08:37:08 +00:00
jenkins-bot 8edccc8d4c Merge "Fix wrapper="…" failing for more complex selectors" 2020-10-15 17:03:02 +00:00
Thiemo Kreuz b76898e848 Fix remaining PHPCS warnings about missing PHPDocs
Change-Id: Ic1c638902066dd5bb9333a2607c9ff84093fb4a2
2020-10-15 08:53:57 +02:00
Thiemo Kreuz 1c0687c850 Fix wrapper="…" failing for more complex selectors
For example, <templatestyles wrapper="a[href]" /> fails with an
InvalidArgumentException very late in the process, long after
the actual validation in TemplateStylesHooks::validateExtraWrapper()
was done. This happens because validateExtraWrapper() works on a
proper tree (where the [href] from the example is a nested object),
but flattens this tree in the end via toTokenArray(). This
flattened array ends in StyleRuleSanitizer::doSanitize() where it
is added to a ComponentValueList – which expects a tree.

The only change in this patch is that the object structure is not
flattened any more. That's all.

Bug: T258093
Change-Id: I5dc04611f91fe672da706f31fa8d0c254e3123d3
2020-10-15 06:51:21 +00:00
libraryupgrader efdcaa278c build: Updating mediawiki/mediawiki-phan-config to 0.10.3
Additional changes:
* Consolidated .phpcs.xml encoding to "UTF-8" (T200956).
* Dropped .php5 files from .phpcs.xml (T200956).

Change-Id: I40902ceda27db7781045e1c721d963e09f19da21
2020-09-25 10:52:28 +00:00
Translation updater bot 1202aafa3b Localisation updates from https://translatewiki.net.
Change-Id: I1171dd13a76bcd18b3f93f53788c7d49b1591cc9
2020-09-24 08:29:49 +02:00
Translation updater bot b325abfdd5 Localisation updates from https://translatewiki.net.
Change-Id: I29347721a43cde11ce3e168cf576c02e28912db7
2020-09-21 08:30:37 +02:00
Umherirrender f67fbc1394 build: Use existing eslint also for json linting
Bug: T220036
Change-Id: I7e9c43ea56366785b8cb94c9c6863b87841a6135
2020-09-11 23:49:03 +02:00
libraryupgrader 8bff1e5bba build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
* grunt: 1.2.1 → 1.3.0

Change-Id: I203a380057f62c181a40cfe86372595d151d70f8
2020-09-04 23:25:13 +00:00
Translation updater bot 78345b163d Localisation updates from https://translatewiki.net.
Change-Id: If222d73b80c2cffbd15a96f80c3e64e7418701d8
2020-08-24 11:59:14 +02:00
Translation updater bot e9b7001a93 Localisation updates from https://translatewiki.net.
Change-Id: I6ddc47e9a4bfadec70282f38a349cc37b5c35c38
2020-08-10 09:02:02 +02:00
Translation updater bot abc1cb5a4d Localisation updates from https://translatewiki.net.
Change-Id: I61ff62ebf7e5fba68cade0c8c05f175be3bf43d7
2020-07-27 08:38:34 +02:00
Translation updater bot 9bde861add Localisation updates from https://translatewiki.net.
Change-Id: Ic9e748382babd6085661924b30d6f793a8def927
2020-07-21 09:13:40 +02:00
libraryupgrader c434758822 build: Updating grunt to 1.2.1
Change-Id: I74d2a2da678d817223929649f75288bb85f8af76
2020-07-19 02:04:48 +00:00
libraryupgrader f5fb5c3579 build: Updating npm dependencies
* eslint-config-wikimedia: 0.15.3 → 0.16.2
* grunt-eslint: 22.0.0 → 23.0.0

Change-Id: I1025318076083519745263b796c44474b6c336ca
2020-07-17 05:24:58 +00:00
libraryupgrader 7743810422 build: Updating lodash to 4.17.19
* https://npmjs.com/advisories/1523
* CVE-2019-10744

Change-Id: Ife54da1658b625461aff595cefa148a55aac743a
2020-07-11 05:23:48 +00:00
Translation updater bot 9cb9fcd999 Localisation updates from https://translatewiki.net.
Change-Id: If22f05bd8016b93e7efa1d3fbb0bd577f4253414
2020-06-19 08:41:58 +02:00
Translation updater bot 6723979e8d Localisation updates from https://translatewiki.net.
Change-Id: Id6b28077e378f9d52d63e5b13f08b31735da5c58
2020-06-15 08:40:45 +02:00
libraryupgrader dee1c954c1 build: Updating mediawiki/minus-x to 1.1.0
Change-Id: Id35756a9fa58070dab5e8231d30997c20e9bb479
2020-06-10 08:09:13 +00:00
DannyS712 324dcb3d06 Remove use of Parser::fetchCurrentRevisionOfTitle
Bug: T249384
Change-Id: Ice32a365ef7b85b46cb5a78d6d07a35a21727173
2020-06-03 03:27:35 +00:00
DannyS712 c74a26d111 Use RevisionRecordCallback in ParserOptions, require MW 1.35+
Bug: T249384
Change-Id: I36b7a57278f9c32040180fc885827731a2d94098
2020-06-03 03:12:20 +00:00
libraryupgrader f1d183cc18 build: Updating composer dependencies
* php-parallel-lint/php-console-highlighter: 0.4.0 → 0.5.0
* php-parallel-lint/php-parallel-lint: 1.0.0 → 1.2.0

Change-Id: Ic828e64e2db213e1abff5af52fca0eeb53da6bfd
2020-05-31 15:11:35 +00:00
Umherirrender 660b940b2e build: Bump phan to 0.10.2, remove taint-check
Change-Id: I09d1ce6d4768c2849a21f2cc3a481692d6c71ca8
2020-05-31 17:08:35 +02:00
libraryupgrader 52b1ad503d build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".

Change-Id: I616722aa3eec40ddf3b80b4c6c227a233504f901
2020-05-30 08:03:48 +00:00
jenkins-bot 89724e4b64 Merge "Revert "Remove use of WikiPage::doEditContent"" 2020-05-08 01:06:17 +00:00
DannyS712 9f3832efdf Revert "Remove use of WikiPage::doEditContent"
This reverts commit eb94a40c3e.

Reason for revert: autopatrol status wasn't included in the
use of PageUpdater, revert for now and reapply properly with
autopatrol later.

Bug: T252179
Change-Id: I38e29e607bc01146ccab00ef8e10d59b769e4044
2020-05-08 00:16:42 +00:00
Michael Holloway 9cc02fc154 Add a README
Change-Id: Iaae761db2a7d185ddc78aefab1c6c927b75455d8
2020-04-30 11:44:33 -04:00
libraryupgrader de19f61cad build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 29.0.0 → 30.0.0

npm:
* eslint-config-wikimedia: 0.15.0 → 0.15.3

Change-Id: If18d71390a1efdf7a91d98ba2f81c4450dab1b75
2020-04-22 20:28:37 +00:00
DannyS712 eb94a40c3e Remove use of WikiPage::doEditContent
Bug: T250638
Change-Id: Ie2ee283ba34db120586469b5d34c3840297e134b
2020-04-20 00:31:43 +00:00
libraryupgrader d1dae631d6 build: Updating grunt-banana-checker to 0.9.0
Change-Id: I85882214dc9ad8d89d3f7da5bcf2298bab36fe91
2020-04-19 20:27:57 +00:00
C. Scott Ananian eb0babef80 Don't use deprecated $wgParserConf global
The modern way to create a Parser object is to use a ParserFactory.

Change-Id: I97d58750c91b06eeca5d810509becdf53a39cc95
2020-04-16 14:39:33 -04:00
Translation updater bot 8f9bb5d11e Localisation updates from https://translatewiki.net.
Change-Id: I1b16803fe06a4bc4070090df560a823f9379ec43
2020-04-07 08:50:47 +02:00
Translation updater bot 960415d66f Localisation updates from https://translatewiki.net.
Change-Id: I3b1431e12d7b43c49bd84c160747b98c92177c33
2020-03-31 08:29:22 +02:00
Translation updater bot bf9f6e0963 Localisation updates from https://translatewiki.net.
Change-Id: I16ec866e69fff34a14a55685c30c14ccf85c416a
2020-03-30 09:15:18 +02:00
Translation updater bot d7f1387ee9 Localisation updates from https://translatewiki.net.
Change-Id: I54b4f72cd5622d3dc205be9371f5e9a153869ac3
2020-03-23 09:04:35 +01:00
libraryupgrader 26a0a9a989 build: Updating mkdirp to 0.5.3
* https://npmjs.com/advisories/1179

Change-Id: Iecedb8951e4ea33ea02e9f98e729fea1e1e27519
2020-03-21 07:48:48 +00:00
libraryupgrader a5e13eee75 build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I4a3efd1082e884a4ab8d17eb4f4e0181690c62a9
2020-03-19 13:28:45 +00:00
libraryupgrader 275831267a build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I404dc941bda8f9d3daaae86e31e67e25ee21f9b4
2020-03-08 14:00:29 +00:00
Translation updater bot 5f07f3f991 Localisation updates from https://translatewiki.net.
Change-Id: I2847e09c55f1970ec3b91802d0a0b07b2373111d
2020-03-02 09:11:37 +01:00
peter-ovchyn 08ce0c613e Remove onParserAfterTidy hood as tidy is dead
Bug: T244055
Change-Id: I7afa31c6a542bfafbd50a55a1e79058074bf4906
2020-02-21 21:59:16 +02:00
libraryupgrader 84c0827301 build: Updating composer dependencies
* jakub-onderka/php-console-highlighter: 0.3.2 → 0.4.0
* mediawiki/minus-x: 0.3.2 → 1.0.0
* mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1

Change-Id: I4822e9002d2618ba3260f69475d179dee158ce9c
2020-01-30 07:32:48 +00:00
Translation updater bot eb1378f278 Localisation updates from https://translatewiki.net.
Change-Id: I3949e2f54cd5707a2bcf640be0fc89b29fc4bf9b
2020-01-24 08:15:39 +01:00
libraryupgrader ad916d481c build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
Additional changes:
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I51df4fe88464b3c166dca3e845958c9b5ea3819f
2020-01-14 12:48:19 +00:00
libraryupgrader 7393155fdb build: Updating npm dependencies
* eslint-config-wikimedia: 0.11.0 → 0.15.0
* grunt-eslint: 21.0.0 → 22.0.0

Additional changes:
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I90b2d015c99cad35ad8face7f8f0baeec04525af
2020-01-08 16:25:38 +00:00
Translation updater bot 9cccad3e52 Localisation updates from https://translatewiki.net.
Change-Id: I78ae0004d9bb48093ff64aa3fca2460c845c424b
2020-01-02 08:59:55 +01:00