Commit graph

703 commits

Author SHA1 Message Date
Ed Sanders c4bc2c7d36 build: Update linters
Change-Id: I0c7b153461300840deb75c695f893b3b4a778dcf
2019-11-15 16:40:39 +00:00
Umherirrender 670e3d8190 build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: I2d187f75e8898bb0394f334a24430a3448de348d
2019-11-01 23:58:15 +01:00
Brian Wolff f8d9cdebdb Make CodeEditor compatible with CSP
Adds a "script-src blob:" directive on pages using CodeEditor.
This should allow using the blob-based web-worker that ACE uses.

This bumps the MediaWiki dependency to current master (1.35.0+).

Bug: T214743
Depends-on: I68054644220cd03bc96cf8ffb9c7ee375be77f96
Change-Id: I40612274a7e1d964119433442d992a8bf67f61af
2019-10-28 12:41:05 +00:00
Translation updater bot 4a6e3ba045 Localisation updates from https://translatewiki.net.
Change-Id: I850c2ecc70a8fcc89a4d9a984fc3e6c5ad24ac63
2019-10-24 10:41:49 +02:00
James D. Forrester 7b00222d50 build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I68af0f46c6ae0d3be18871d661c32e67770388d5
2019-10-15 16:03:24 -07:00
Translation updater bot 3cdf93b439 Localisation updates from https://translatewiki.net.
Change-Id: If20edc00adff67a285849bc786a7268312d6f721
2019-10-08 09:32:03 +02:00
jenkins-bot 4134505cf7 Merge "Fix typo in comments" 2019-10-07 19:45:14 +00:00
Ed Sanders 3568d866bb build: Update linters
Change-Id: I93c5de0d4a2c3480f1c3ef39ac7394e1552eb631
2019-10-07 16:57:17 +01:00
Ammar 3eb4ef07de Fix typo in comments
"Seperately" → Separately

Bug: T201491
Change-Id: Ib7ce92f36db5abe447e38cda513acb580fab9007
2019-10-07 04:59:58 +01:00
Daimona Eaytoy b3fb04b463 Directly use $wgTitle instead of relying on getContextTitle fallback
This is apparently the only code relying on the fallback. Since it seems to do this most of the time, use $wgTitle directly.

Bug: T176526
Change-Id: I9edc7c3cb7b0f2b024873b2f6fbdb8c275225854
2019-09-30 17:38:56 +00:00
Translation updater bot d00963af56 Localisation updates from https://translatewiki.net.
Change-Id: I9fc30733880fa3bb2a31bda4fafb6a5c0ac02f85
2019-09-12 09:59:57 +02:00
Translation updater bot b86d4ae337 Localisation updates from https://translatewiki.net.
Change-Id: I69ed501ae0933677fb48c5c820a6e0e383c6e59c
2019-09-10 09:36:02 +02:00
Translation updater bot ab1c459608 Localisation updates from https://translatewiki.net.
Change-Id: I11616e2dcd8634418111db90caaa307cc404de51
2019-09-04 10:12:00 +02:00
libraryupgrader d359c2163b build: Updating eslint-utils to 1.4.2
* https://npmjs.com/advisories/1118

Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I841090e530044fe9a10dcfab842bf4a4cc58d073
2019-08-24 06:34:28 +00:00
libraryupgrader 329b82c1ae build: Updating lodash to 4.17.15
* https://npmjs.com/advisories/1065
* CVE-2019-10744

Change-Id: Idd40e0d758100b393ffb36bd12644ea86520c003
2019-08-01 18:56:10 +00:00
jenkins-bot e09b486175 Merge "Drop wgCodeEditorEnableCore, default on, pointless to disable" 2019-07-18 15:28:50 +00:00
Translation updater bot f312224037 Localisation updates from https://translatewiki.net.
Change-Id: I937a0db257a709a6cedc293d64430a58da659cb5
2019-07-18 08:52:54 +02:00
libraryupgrader 7ef50bcb3b build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 24.0.0 → 26.0.0

npm:
* set-value: 2.0.0 → 2.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* union-value: 1.0.0 → 1.0.1
  * https://npmjs.com/advisories/1012
  * CVE-2019-10747
* mixin-deep: 1.3.1 → 1.3.2
  * https://npmjs.com/advisories/1013
  * CVE-2019-10746

Change-Id: I5e7a2681ada0bc8db97d780799b042a1c1cb61fb
2019-07-14 10:01:50 +00:00
James D. Forrester 988bc3c0b1 Drop wgCodeEditorEnableCore, default on, pointless to disable
Change-Id: I637ac6cc92183dbf73b6bb39d487c6d4099657be
2019-07-12 10:58:50 -07:00
James D. Forrester fd3f2bd2e6 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I586ed07d3fe3c2df1b1e040572e2bcbaf16a2238
2019-07-09 14:01:05 -07:00
Translation updater bot 3a9607ba46 Localisation updates from https://translatewiki.net.
Change-Id: I4aae8bb5c71e632ba4bcbe15c72760e7aba95239
2019-06-10 22:54:03 +02:00
libraryupgrader 0aaa235f6b build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: Ib027c268a5fdac5124a64915a620b97ae919d04c
2019-06-10 06:20:43 +00:00
libraryupgrader f3293c8a6a build: Updating npm dependencies for security issues
* Updated grunt to 1.0.4, addressing:
  * https://npmjs.com/advisories/788
  * https://npmjs.com/advisories/813
* Updated stylelint-config-wikimedia to 0.6.0, addressing:
  * https://npmjs.com/advisories/786

Committed package-lock.json (T179229) too.

Change-Id: I49af3e3901457d68bd12c2e78dc4018480e771e3
2019-06-08 02:08:54 +00:00
Translation updater bot b30dcd80db Localisation updates from https://translatewiki.net.
Change-Id: I048a1fcbe9f48075e6ad245c8a78353be74d865c
2019-06-05 22:28:46 +02:00
James D. Forrester bb75af7b7c build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: Ib4864319e95f58475dcc25e3bcf9dbb398b8d15b
2019-05-19 13:10:49 +02:00
James D. Forrester 169e97d8d3 build: Upgrade eslint-config-wikimedia 0.12.0, drop grunt-jsonlint
Change-Id: Ia88e2eb429391182052aa09b3e0a4a81859ec778
2019-05-06 15:27:44 -07:00
Translation updater bot bfb8a3adb8 Localisation updates from https://translatewiki.net.
Change-Id: Ic1d591f318e6504b5c9bb6300da9c9544adf8843
2019-03-31 22:16:12 +02:00
Ed Sanders 5cac43ddd3 build: Update eslint-config-wikimedia to 0.11.0
Change-Id: I99fd10fbcce5d5e6b87b6e3faeb7b18c4e573ef7
2019-03-13 22:38:54 +00:00
libraryupgrader 60f5dd35d6 build: Updating mediawiki/mediawiki-phan-config to 0.5.0
Change-Id: Id7df3b0116c11bdac000933ce61d7c5fad05d4f1
2019-03-11 02:28:29 +00:00
Translation updater bot 75b89e7ccf Localisation updates from https://translatewiki.net.
Change-Id: Ifff72da1073f0f52abc8207139c54a763d967027
2019-03-03 22:17:28 +01:00
zoranzoki21 b22a552157 Upgrade CodeEditor to use newer version of phan
Bug: T216913
Change-Id: I8f200ffa0887b5f983adb151ab9de517f9c4bc4c
2019-02-28 18:17:13 +01:00
Translation updater bot 19c83cd110 Localisation updates from https://translatewiki.net.
Change-Id: Ica8d5fe36ff71de1c75bdbaf99403bea5899e38e
2019-02-10 22:18:28 +01:00
libraryupgrader c57ed17dc0 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: Ib6846bf3f466cc93dbc4ed1e93fb2b9f0b6394b5
2019-02-06 11:38:08 +00:00
Derick Alangi 92c432ab83 Remove "return true" legacy behavior from hook handler functions
Change-Id: Ie33721116c5ae665f45ed0a8baeace031cfeca89
2019-02-02 10:06:40 +01:00
Derick Alangi ef09440a94 Fix PHPDoc comment @return for CodeEditorHooks methods
Should return "true" (as there is no case for false) and not bool.

Change-Id: I2badcbb3b06c8a9593908b064629bfef8ea82488
2019-01-16 14:46:28 +01:00
Translation updater bot 0d20ebd9dc Localisation updates from https://translatewiki.net.
Change-Id: Ia159d1f544f30aabd0e0550db04b393d739bb295
2019-01-01 22:20:24 +01:00
Kunal Mehta f1a81a1370 build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I60b236c249ab7602f474f5d6d4f5e94a8446c11c
2018-12-17 18:54:08 -08:00
Fomafix 6aa0a7016a Add typehints to function parameters
Change-Id: I820f7be8486c2f5d560eabe84629dd41db774735
2018-12-16 12:04:49 +01:00
Ed Sanders 737bfb2c80 Fix typo in eslint extends
Change-Id: I9d18c7942cde83f48b13b42aaacd8ca5e4b83a15
2018-12-14 15:08:40 +00:00
Ed Sanders 4ad54da406 build: Update linters
Change-Id: I9baecb9fd4b9d9bf86897ccec8289614b136c3a2
2018-12-10 13:31:37 +00:00
James D. Forrester bbf2d290e7 eslint: Drop 'dot-notation' rule
Bug: T210552
Change-Id: Id2e19a985ee0c80745d0a25c14d9a53b442ceda0
2018-11-28 10:30:34 -08:00
libraryupgrader a20803d132 build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: I0c67ae5fd9b9de39516c498f9441cc8e29de390b
2018-11-14 09:17:51 +00:00
Ed Sanders 8c6473826a Remove obsolete aliases from closures
Bug: T208951
Change-Id: Ib3502d54c39e65c2aed38f7e630a8b8286d522c2
2018-11-12 13:16:11 +00:00
James D. Forrester c692070874 build: Bump linting devDependencies to latest
eslint-config-wikimedia      0.5.0  →   0.8.1
 + eslint-plugin-qunit                   3.3.0
 grunt-eslint                20.1.0  →  21.0.0
 grunt-stylelint              0.9.0  →  0.10.1
 stylelint                    8.2.0  →   9.2.0
 stylelint-config-wikimedia   0.4.2  →   0.4.3

Change-Id: I34518a652fe144df5215b82e7e0c3e74f9b46a0d
2018-11-05 17:21:34 -08:00
Translation updater bot 805e8b144c Localisation updates from https://translatewiki.net.
Change-Id: I40509a5d2c50467577c680b9571466e3a7cdfcd7
2018-10-17 23:44:02 +02:00
Translation updater bot 1ff0d89215 Localisation updates from https://translatewiki.net.
Change-Id: Ia33edafef2cfe1efb8f298783514ede13c6de8f2
2018-10-03 18:53:05 +02:00
Reedy 87b8535dec Remove php entry point
Bug: T140007
Change-Id: I22f5bfea9dcb8f0111132bf205127d48cbc2a6b6
2018-09-12 23:41:30 +01:00
libraryupgrader a7519a4dff build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: I357c64d09f71a393c2d42660424aa3256aa60311
2018-09-07 08:10:29 +00:00
Translation updater bot b8fef2853c Localisation updates from https://translatewiki.net.
Change-Id: Ia6fd7ed35b46f7a3f6b47df4d935e56264ab7070
2018-09-03 22:15:00 +02:00
libraryupgrader 1ce1c8cc31 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: Ia227c2d1988fe66c9badee025d9f2c300599f191
2018-09-02 23:42:52 +00:00