Commit graph

240 commits

Author SHA1 Message Date
Umherirrender add3e27461 User constructor does not take an argument
User object without argument is the anon default

Change-Id: I2c47c4865386d59f14eb6390b3e12fb9c5198ccd
2018-08-06 23:12:26 +02:00
Kunal Mehta eab15dfe42 Configure phan-taint-check-plugin
The plugin checks and flags potential security issues (XSS, SQLi, etc.)
using static analysis.

See <https://www.mediawiki.org/wiki/Phan-taint-check-plugin> for more
details.

Bug: T201219
Change-Id: I0c81983a41a9c8863bd16c7d358b51472b7e9e9a
2018-08-03 21:31:26 -07:00
libraryupgrader 9ff2069079 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: I85ea2a4649a28440c04786911b29e24437b790cd
2018-07-27 20:09:11 +00:00
Translation updater bot 9b7f77b8b5 Localisation updates from https://translatewiki.net.
Change-Id: I60e89bf3e733dd1f2c5363d66c52e62712161877
2018-07-17 22:14:06 +02:00
jenkins-bot 6c36417f4c Merge "Remove unused ParserOptions from ExtractFormatterTest" 2018-07-01 23:37:27 +00:00
Thiemo Kreuz 60cd40b975 Remove not needed count() and "return true" from hook handlers
This patch fixes two styls issues I could not separate:

* Hook handler functions do not need to return true. This is the default
anyway, and meaningless.

* Counting is possibly expensive and not needed when all we need to know
is if an array is empty or not.

Change-Id: I460776c981638806a606d9bf88fc8579d6da8c0e
2018-06-28 20:45:20 +02:00
Thiemo Kreuz 9f99628c1f Remove unused ParserOptions from ExtractFormatterTest
Change-Id: I685b468ad13da73b6273041f6ff068c2d8b730d0
2018-06-28 20:44:46 +02:00
Translation updater bot f607ff8d6c Localisation updates from https://translatewiki.net.
Change-Id: I1e6f035ccec4d52d3cd4fc7187b19679b2d75a67
2018-06-24 22:26:03 +02:00
libraryupgrader 138908a926 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: I1d30fed4bc490b4e598b3439ab10f8fa5790a953
2018-05-26 06:54:00 +00:00
Translation updater bot 4afe1f40f5 Localisation updates from https://translatewiki.net.
Change-Id: I52d0115344c7ead3a16c37b7e511d4126f8f64f6
2018-04-27 22:26:16 +02:00
Translation updater bot 7b00e9aa6e Localisation updates from https://translatewiki.net.
Change-Id: I9803a505e310e98596550212ecaa1e49f79b0dea
2018-04-15 22:23:37 +02:00
libraryupgrader fd2754ee40 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: Ida68791e01c26fd4058718718dbede561d02de05
2018-04-14 07:02:44 +00:00
Translation updater bot 51f9abef91 Localisation updates from https://translatewiki.net.
Change-Id: Ia59e0be6caa7fe59bc84c866679dfbdfa9990d86
2018-04-13 22:13:02 +02:00
Translation updater bot 00077b2f74 Localisation updates from https://translatewiki.net.
Change-Id: I7d2a9f6d7cd986b66d6fd49e766140bc959ee020
2018-04-11 22:40:30 +02:00
Umherirrender 618aef40a0 Remove @return from __construct
Change-Id: I2000dc076c869620533368431f6c55241fbc92e8
2018-04-05 12:18:59 +02:00
Translation updater bot aaa0805f92 Localisation updates from https://translatewiki.net.
Change-Id: Icb6dc68e027755eba16e65bb9622e19e55709b3d
2018-04-02 09:48:51 +02:00
Translation updater bot b06250c1f7 Localisation updates from https://translatewiki.net.
Change-Id: I9bb761a55d7118ed73472bc10509cf99d8e4fb7b
2018-03-30 09:34:57 +02:00
libraryupgrader 7715826915 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
Change-Id: I449bedf7eebf18c58b144f1913fa416c87228364
2018-03-29 06:15:22 +00:00
Translation updater bot 67261c3e4d Localisation updates from https://translatewiki.net.
Change-Id: I2603f53143fc1eb5571191c1353e048e83752058
2018-03-27 22:09:56 +02:00
Translation updater bot 541b3d1506 Localisation updates from https://translatewiki.net.
Change-Id: I411ba35ac5a13672b16a5fcc1c8b1871aa749f0a
2018-03-23 22:13:22 +01:00
Translation updater bot f99f0849f0 Localisation updates from https://translatewiki.net.
Change-Id: I63e3bbbfbe0565e7a5b38531105c02faf6f0218f
2018-03-21 22:32:16 +01:00
Translation updater bot 6cb42ee264 Localisation updates from https://translatewiki.net.
Change-Id: Id092172ca2a258866a106c3094a252c3f30c5e7c
2018-03-20 22:12:59 +01:00
jdlrobson d69b35f4bc Adjust expectations for API consumers when using the TextExtracts API
Bug: T170617
Change-Id: I53e08db40e5319019c842869f992bac32b1dac97
2018-03-20 09:42:10 -07:00
libraryupgrader dd728f81e2 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: I9bfd9a9a98312490be5464fd3db028478b1f94ae
2018-03-10 06:06:14 +00:00
Kunal Mehta adfde34586 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: I78f8a3b4e06363a6af4a79189d1ff68697b34dcd
2018-03-02 15:43:49 -08:00
libraryupgrader 80187f5415 build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I445ac42ed1d4f1f17a6494ee489284e33633f060
2018-02-25 11:38:27 +00:00
libraryupgrader a95038699e build: Updating mediawiki/minus-x to 0.3.1
Change-Id: Ic3c2c99a8f366df4110df2dd9304184be686ba3f
2018-02-18 09:58:06 +00:00
libraryupgrader 2ecb9f8f06 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Ib1a9584cab61f71c3525b0a81d906f457dab3eb6
2018-02-15 14:32:47 +00:00
Gergő Tisza be8a5d6ea3
Bump cache version due to 'unwrap' ParserOutput option
Bug: T186927
Change-Id: I078f71d99f3179af5f4f85892472932eb5635fe1
2018-02-09 14:15:30 -08:00
jenkins-bot 1923c116c4 Merge "Fix and add @covers tags" 2018-01-23 23:22:26 +00:00
Kunal Mehta b463a99a79 Fix and add @covers tags
Change-Id: Ifa11ee418e016c103fb0ac6b32a790a2977aec8d
2018-01-23 14:54:12 -08:00
jenkins-bot 6e7f069974 Merge "Use 'unwrap' post-cache transform instead of setWrapOutputClass( false ), when available" 2018-01-20 03:20:19 +00:00
libraryupgrader 9266688c54 build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Change-Id: Ia11ca0c7e5d33291520b47885c33c29b0db96796
2017-12-30 02:53:10 +00:00
Brad Jorsch 63a1d82b4e Use 'unwrap' post-cache transform instead of setWrapOutputClass( false ), when available
To reduce parser cache fragmentation, core is deprecating
$parserOptions->setWrapOutputClass( false ) in favor of
$parserOutput->getText( [ 'unwrap' => true ] );

Change-Id: Ibc013a41f4a463f4014fbbce7ce27f8690161728
2017-12-22 13:43:44 -05:00
Translation updater bot 29e72ab3b1 Localisation updates from https://translatewiki.net.
Change-Id: I43979c58750774ed81990a5276e539ad5ff4875a
2017-12-15 22:38:04 +01:00
libraryupgrader 8370fde129 build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I34f22b1874631aa37ec1d4441b5a1510723baad6
2017-12-11 09:10:21 +00:00
Translation updater bot 77ee108696 Localisation updates from https://translatewiki.net.
Change-Id: I361a918a11e23ebc4b79203e86416cf9eb1603d1
2017-12-05 09:41:52 +01:00
jenkins-bot 03de2f62b4 Merge "Don't repeat the default in test setup" 2017-12-01 04:36:15 +00:00
Pppery f6fd9273c5 Re-enable MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic sniff
Bug: T170580
Change-Id: I0a0055f1de57f15a45c21e2f51ed275a2b249440
2017-11-30 15:31:55 -05:00
jenkins-bot 95dc34e4c7 Merge "Re-enable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment sniff" 2017-11-30 19:11:09 +00:00
Pppery d05f289032 Re-enable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment sniff
Bug: T170580
Change-Id: Ib5bcab3414f44013cf57c0d006b212dea175473a
2017-11-29 23:07:30 -05:00
Pppery 009765a04c Re-enable MediaWiki.Commenting.FunctionComment.MissingParamComment sniff
Also renames $action to $name in APIQueryExtracts.php, because trying to
document the parameter revealed that "action" doesn't match the use of
the parameter.

Bug: T170580
Change-Id: I1b7f3f0e17b118ea9bcfd28c69321aa692aad4e3
2017-11-29 21:56:29 -05:00
Pppery 624da67ec6 Re-enable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName sniff
Change-Id: I420fd3640772f4127ca15603af00fd30aecc28c0
2017-11-29 20:27:15 -05:00
Brad Jorsch 6523ae42dd Don't repeat the default in test setup
For a new ParserOptions object, ->setEditSection( true ) is already the
default. Since it's being deprecated in MediaWiki core change
Ied5fe1a61, just remove the call.

Change-Id: Id517a8746d4cc4b0b26a98a74244e4d8c711358c
2017-11-22 17:44:44 -05:00
Umherirrender e60c111566 build: Always exclude vendor and node_modules
Change-Id: I4360de1ed97a3bbb89a611fc566ba2e89c1def37
2017-11-12 00:40:18 +01:00
Kunal Mehta aa567e8b3c build: Adding MinusX
Change-Id: I880a076d056207bb88ee0f7f7649de5c083efac5
2017-11-03 19:52:12 -07:00
libraryupgrader 509178400c build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I32a95a07c133b03dbb68c36e2e3e38791c7982dd
2017-10-21 04:31:09 +00:00
Ed Sanders 2969f18872 build: Upgrade linters
Change-Id: Ie377edfccd078e08a1cdb5c9e021a4b96a41599b
2017-10-09 15:29:26 +01:00
Umherirrender 01376c8e05 Improve some parameter docs
Change-Id: Ie4326ecb517e5c7381b946b45bc108f8889fd4b2
2017-10-07 11:24:02 +02:00
Translation updater bot 6c69ffaf75 Localisation updates from https://translatewiki.net.
Change-Id: I1ada78bc2b6cae019cdad4b6d2ca8590b99d9e05
2017-09-28 22:47:10 +02:00