Commit graph

325 commits

Author SHA1 Message Date
libraryupgrader 3186e0deae build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".

Change-Id: I31357257b33559dc17a638535d332e5bc4c0f592
2020-05-30 08:20:56 +00:00
Reedy 51c8f66727 Fix PSR12.Properties.ConstantVisibility.NotFound
Bug: T253169
Change-Id: I6512139d76e1f6ae232e8e9484b79a795b520f1c
2020-05-30 01:35:27 +01:00
Translation updater bot 3e18444c2c Localisation updates from https://translatewiki.net.
Change-Id: I99266706bde82a98cbcdbbe96bffd253adebdebb
2020-05-25 08:41:09 +02:00
Translation updater bot 760a7d9ecb Localisation updates from https://translatewiki.net.
Change-Id: Ife8028303c8f8510735007d60a3d6d30de22f560
2020-05-22 08:36:30 +02:00
jenkins-bot d61da26ed8 Merge "Add Special:MyLanguage for better user experience" 2020-05-21 23:24:40 +00:00
jenkins-bot daa89130cb Merge "Convert to manifest_version 2" 2020-05-12 15:54:43 +00:00
Reedy 9a2aacde39 Convert to manifest_version 2
Bug: T252470
Change-Id: I514df27723fddc635968dc1ee38db38bd1ab1fa8
2020-05-12 02:05:32 +01:00
Yuki Shira 9baea120f2 Add Special:MyLanguage for better user experience
Change-Id: If6781926f34067730d2f4bb616086959ce8bd0a9
2020-05-10 13:13:52 +09:00
Translation updater bot b2e383658d Localisation updates from https://translatewiki.net.
Change-Id: I2fce0b95c00d458fe05fbe4422f3df7975f6443a
2020-05-01 10:01:55 +02:00
libraryupgrader 69c6da905e 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: I64c7b77f26706c05e422f4489011752e934ff30a
2020-04-22 20:56:09 +00:00
libraryupgrader 7087ff2c1b build: Updating grunt-banana-checker to 0.9.0
Change-Id: Id253a16d07b9c9065efc0e8c9baea6dccc2f4a2e
2020-04-19 20:58:07 +00:00
Translation updater bot 8fee593bf0 Localisation updates from https://translatewiki.net.
Change-Id: I87185df6aad811360bce2d9f7644c332d444e57a
2020-04-07 08:50:56 +02:00
libraryupgrader 533cfe6aae build: Updating mkdirp to 0.5.3
* https://npmjs.com/advisories/1179

Change-Id: I3f744ccba73a637594acb8e0dd66add22fff0e27
2020-03-21 07:50:14 +00:00
libraryupgrader 716b9921bc build: Updating minimist to 1.2.5
* https://npmjs.com/advisories/1179

Change-Id: I43a106c3000884563da1b6000cfda17b68be96d6
2020-03-19 14:09:47 +00:00
Timo Tijhof 9d3ee77a95 tests: Remove PHP 7.4 workaround
Follows-up 955e0bb. Some of the other test cases already did this,
so let's do it here as well.

Change-Id: Ib39b03a38ff0d444568980db39a4d9b1e54618b7
2020-03-13 22:54:52 +00:00
Aaron Schulz e9d466f398 Convert $wgMemc use to WANObjectCache
Bug: T160813
Change-Id: If298927d6b90e1b94e83485e723f13aa2bad0932
2020-03-13 21:07:36 +00:00
Thiemo Kreuz 955e0bb5bb Fix PHP 7.4 compatibility
The way this test is set up means the $this->params property is not
initialized. It is only initialized when execute() is, well, executed.
Since there is not really a guarantee this will always happen before
the failing method is called, I figured it's better to add this cheap
safety check in the production code.

Taggign with T233012 because I believe this extension is a gated one
for many other codebases.

Bug: T233012
Change-Id: Ie0060125cf4646d80f8c88eedd01551f66e3fb89
2020-03-13 20:59:58 +00:00
libraryupgrader bd2e751655 build: Updating acorn to 7.1.1
* https://npmjs.com/advisories/1488

Change-Id: I96c26ef0223c1ad4450584453eabc75505e220ce
2020-03-08 14:31:47 +00:00
libraryupgrader fc5a68abd3 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: Iecca5b2b282ea0a6748ec8349cbf3234e507f087
2020-01-30 07:37:37 +00:00
libraryupgrader 7025be47c1 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 28.0.0 → 29.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate

npm:
* eslint-config-wikimedia: 0.12.0 → 0.15.0
* grunt-eslint: 21.0.0 → 22.0.0

Additional changes:
* Also sorted "composer fix" command to run phpcbf last.
* Removing manual reportUnusedDisableDirectives for eslint.

Change-Id: I351f0a333fd5f06e47f0748aa25cb3fff63cc67f
2020-01-15 09:17:22 +00:00
jenkins-bot 66dd863e2c Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0" 2020-01-15 08:35:38 +00:00
Translation updater bot 6ac7e5de12 Localisation updates from https://translatewiki.net.
Change-Id: Iabd4622829e404bfe5eeb24dbd660377ce81a839
2019-12-26 16:22:04 +01:00
libraryupgrader 5986441375 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Don't pass booleans to BagOStuff::makeKey()

Change-Id: I87e42cee60d0adefd94f4bdc7fbbfabc65b7c93e
2019-12-21 23:44:50 -08:00
jenkins-bot 009161db33 Merge "Remove unused 'OpenSearchXml' hook handler" 2019-12-20 16:59:06 +00:00
libraryupgrader 871f84833f build: Updating mediawiki/minus-x to 0.3.2
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ia78e645acb6cbdf1e557ee2c0a011cce4130b702
2019-12-18 11:38:44 +00:00
Timo Tijhof 0453a3155f Remove unused 'OpenSearchXml' hook handler
This is the equivalent of the current 'ApiOpenSearchSuggest' hook
as it once existed in the "OpenSearchXml" MediaWiki extension,
which merged into core and archived three years ago.

Change-Id: Ibe244851857ddff3a437acb12c3cc7660eb89089
2019-12-16 18:34:19 +00:00
libraryupgrader 4508eae90a build: Updating grunt-banana-checker to 0.8.1
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Ie4e45aa7ad1346f3d603d13dd259ce0f64447235
2019-12-15 02:24:24 +00:00
Translation updater bot 1087c8e37f Localisation updates from https://translatewiki.net.
Change-Id: I74e1aad5fb126989cc7961cc4582205670de69d7
2019-12-02 09:23:55 +01:00
Umherirrender 6297b90b96 build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: I530dee68a6d541162498a56841d13a557c7aed59
2019-11-05 17:01:08 +01:00
James D. Forrester d8eda5744f build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: Ia1b33a8f268e6977ae32341a2b6b1e2f1603d776
2019-10-11 13:00:28 -07:00
Translation updater bot 17e82b03ef Localisation updates from https://translatewiki.net.
Change-Id: I3afed67c3eeb04188c4be65a2d6e478c7821c814
2019-09-16 09:57:25 +02:00
DannyS712 4c94bec18f Use Special:MyLanguage in API help links
Bug: T231269
Change-Id: I242981f4f7ecbd31fe4052daee8652089f4c6694
2019-08-27 06:44:46 +00:00
Translation updater bot ec635c314d Localisation updates from https://translatewiki.net.
Change-Id: I2163c049ee1f93377871c2b2e6e6125e16927bbc
2019-08-25 10:32:02 +02:00
Alex Monk 7683625d9e Split apihelp messages to a separate file
Bug: T189982
Change-Id: I719dd65bfe502094fa7b12d5d67d45f92d9daf5b
2019-08-25 00:00:59 +01:00
libraryupgrader 2289f56998 build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: Iaa987c50c90ba717ce14a35ea392c3afbda7fbcc
2019-08-23 06:38:04 +00:00
Max Semenik c0b9bd8b77 Add more TextTruncator tests
This will take it to 100% coverage.

Change-Id: I835ac5795f15c65f07f47e9c00295d391dbf90ab
2019-07-17 20:29:00 -07:00
libraryupgrader ed0f255d9f build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 24.0.0 → 26.0.0

npm:
* lodash: 4.17.11 → 4.17.14
  * https://npmjs.com/advisories/1065
  * CVE-2019-10744

Change-Id: I7f08d7b9906e407cbc06198c8ae726df1e8e8ed0
2019-07-16 03:04:10 +00:00
James D. Forrester b39beef59b build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: Icf908ab86776d7a12ed0eeee2899623d8d03fad3
2019-07-09 14:18:47 -07:00
Translation updater bot 506ebc1d86 Localisation updates from https://translatewiki.net.
Change-Id: I6b83ed6fc4f8a0cb8a8f2bece6fa6a06e4ba42c4
2019-07-03 22:46:28 +02:00
Translation updater bot 89be536867 Localisation updates from https://translatewiki.net.
Change-Id: I2842a8bcdcef2a2dcadb6f6058a33aca527de2fc
2019-06-30 22:39:40 +02:00
Nicholas Ray 2f71245dc6 Build: add package-lock file
Add package-lock file. The previous version of Node.js did not support
package-locks but v10.15.2 does.

Bug: T179229
Change-Id: I06161513ebbaaa8b895c480038c36835bfe83f80
2019-06-27 12:05:29 -06:00
Translation updater bot 552a6df826 Localisation updates from https://translatewiki.net.
Change-Id: I98bc47bb20c4bea2aec796418f522cbce5a123c8
2019-06-24 08:39:58 +02:00
libraryupgrader 77f88b2edb build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: If493b81f311980c08edb37e9783469696acb4ad8
2019-06-10 12:01:22 +00:00
James D. Forrester 081e8e6b74 build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: I002ccea301dc2d008756714974ff55b73db29ab1
2019-05-19 13:36:07 +02:00
James D. Forrester f2cbf77787 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: I764c24fcd33a1732bb228fd68cde919f8bd5273e
2019-05-07 10:52:31 -07:00
Thiemo Kreuz 8de415c4fd Fix truncate code potentially removing whitespace from extract
By turning the (?:…) into (?=…) they become lookaheads and are not
part of the returned string in $tail any more. This is exactly what we
want here. All we want is to *know* if the dot, question or exclamation
mark is followed by a space. But we don't need the space captured.

Change-Id: I4be715c4c084165e5ab25da77609f12ffce4d385
2019-05-03 08:46:29 +02:00
Thiemo Kreuz 81fd92685a Move Tidy functionality to TextTruncator
I argue that the code fixing unclosed HTML tags is – even if optional –
an integral part of the code that potentially breaks these HTML tags in
the first place. Notice how much code disappears in the ApiQueryExtracts
class.

Additionally, the new approach uses an interface instead of a static
function call that is impossible to mock and hard to test.

Change-Id: Ic1a65995f4dba11d060a8738d642905cbfc79271
2019-05-03 08:46:27 +02:00
jenkins-bot 8567e067f2 Merge "Extract unrelated static code from ExtractFormatter" 2019-05-02 21:03:58 +00:00
jenkins-bot 112caed347 Merge "Consistently mention the @license in all files" 2019-05-02 21:00:35 +00:00
Umherirrender 2e76760c2c Add phan
Change-Id: I2b76d0689ac6a79d5c67284ddccad49f34e05edb
2019-04-27 21:23:26 +02:00