Commit graph

48 commits

Author SHA1 Message Date
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
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 c717a4bc60 build: Updating mediawiki/mediawiki-phan-config to 0.9.0
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I9924d3acae39786c9f0809eac2dbf10479a590c8
2019-12-22 07:08:31 +00:00
libraryupgrader 6c0fbae585 build: Updating mediawiki/minus-x to 0.3.2
Additional changes:
* Added .eslintcache to .gitignore.

Change-Id: I1840616fbeab661c6640c73b93015fc916032b32
2019-12-18 11:25:47 +00:00
Umherirrender 6bfed64796 build: Updating mediawiki/mediawiki-phan-config to 0.8.0
Bug: T235049
Change-Id: Ic3e3b4a3b617fc3e82f20f1e2eeab4c7a72686d3
2019-11-06 20:24:26 +01:00
James D. Forrester de4ea4d91a build: Upgrade mediawiki-codesniffer to v28.0.0
Change-Id: I703c20b1a3f5687a8488a30a57b1d14d79336be0
2019-10-15 15:59:23 -07:00
libraryupgrader a9b68311ed 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: I367bde15a9de89e4b855fd8ce65a8e93cd5cd9eb
2019-07-16 02:42:51 +00:00
James D. Forrester ba07d9c056 build: Upgrade phan-taint-check-plugin from 1.5.x to 2.0.1
Change-Id: I1237b4d487aa6faeaa8e9773689f7ce0dc9a5187
2019-07-09 14:18:32 -07:00
libraryupgrader b24866c1a1 build: Updating mediawiki/mediawiki-phan-config to 0.6.1
Change-Id: I966c630aeba5a75bb9d787dc34466e5af47da051
2019-06-10 11:45:51 +00:00
James D. Forrester 08b0b6fb4b build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0
Change-Id: Ie166f11bd62b5b7ca109fa55a294630b5b6e28e2
2019-05-19 13:35:39 +02:00
Umherirrender 679b3046ba Add phan
Change-Id: Ie1dec630c5f69c617020699049081a494f75b8bd
2019-05-01 16:06:46 +02:00
Reedy 5108673852 Remove cssjanus dependancy
MW core has required it for quite a few versions, an extension doesn't
need to have its own requirement

Change-Id: Ibe2672de40306d20a4d08bb53b90ce42843e3e09
2019-02-11 04:11:29 +00:00
libraryupgrader 738785c148 build: Updating mediawiki/mediawiki-codesniffer to 24.0.0
Change-Id: I30549f3fe0352ff411a6ce0207198f295d29f975
2019-02-07 05:14:31 +00:00
libraryupgrader c15c693fe0 build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: Idbebb7c7acdbd8abeed7b19f3c99a028c9bff3ab
2018-11-16 14:38:33 +00:00
libraryupgrader c7e759afc1 build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: Iefd16b6f04eafda6a1a15e6dafea59b3af8fa85f
2018-09-08 06:09:47 +00:00
libraryupgrader 8fc7762e14 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: Ib65124f53a023499f349a9ccbc764cbb26965fca
2018-09-03 19:54:14 +00:00
libraryupgrader e79c22bec5 build: Updating mediawiki/phan-taint-check-plugin to 1.4.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: I3ea35a3373332c56fb7c7eb7b6d8b93054445867
2018-09-01 14:41:18 +00:00
Gergő Tisza 17756c44b2
Hoist selectors for html and body element
Bug: T197617
Depends-On: Iac00198495cf08dec034f45100937df0f6cb1590
Change-Id: I5dd85d12eb77c70c1632974561c4cad8636fad1d
2018-08-24 22:16:17 +02:00
Umherirrender d9b730de44 Add phan-taint-check-plugin
Change-Id: Id410e41889bc6e4920c15c56d507c2f59601ec88
2018-08-19 19:14:00 -07:00
libraryupgrader 3960d9eca0 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: I073424017959cc6f5e60c5d1945acb88126d3f71
2018-07-27 20:00:54 +00:00
libraryupgrader 351e1f715f build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: Iadb3874ba4ea17ee1f6a86023a51a1cfed6397b0
2018-05-26 06:43:46 +00:00
Reedy 2f97a064b5 Update wikimedia/css-sanitizer to ~1.0.6
Depends-On: I9ed96a29d6db39206377b45e3d46cb2082587f75
Depends-On: I963a61135d66b8baa4638979fd21077d925276b9
Change-Id: I35c7aba4a8518bc0a9e70199aa7407a9786243c7
2018-04-18 14:17:01 +00:00
libraryupgrader 3e03d07154 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I06f70505d8b53b4c5abdb07ae2d3c3a3f7cfc063
2018-04-14 06:59:50 +00:00
libraryupgrader d50324a37d build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment

Change-Id: Idbf1b6ac66fd580c243f0433025ee4e479a1e00e
2018-03-29 06:09:06 +00:00
libraryupgrader 8937ee2acf build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ife689d0b6688e8b7582e3b88204785fdb6c031c7
2018-03-10 06:05:48 +00:00
Kunal Mehta 37fc1df457 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: Ic9accb2eb34bc32d455f48dfe81a91d23a2d5f5e
2018-03-03 23:27:16 +00:00
libraryupgrader 3fe2b9011a build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I471871ef1816e623f396b86c37212e55b171d847
2018-02-25 11:32:20 +00:00
libraryupgrader 0551ea9412 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I9ee2ed98fdb484c4020b65b90c22014e2769826c
2018-02-18 09:52:36 +00:00
libraryupgrader a88b7c164f build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
The following sniffs now pass and were enabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch

Change-Id: I4b4f7577107b869789479671e74b1fa7329979aa
2018-02-15 14:32:27 +00:00
Reedy 252fb74845 Update wikimedia/css-sanitizer
Updated
* wikimedia/css-santizer v1.0.2 -> v1.0.3

https://github.com/wikimedia/css-sanitizer/compare/v1.0.2...v1.0.3

Bug: T182273
Change-Id: Ib392edd4f7478e709f1bdf6dbc2935c1ac201bb6
Depends-On: I1966eaec7e4105f876206ab4cd606cefdaeb0add
Depends-On: Idd686bf84a44f2106ae13a31516872545946aa03
2018-02-07 11:07:44 +00:00
libraryupgrader 1cd9566e22 build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Change-Id: I9735c0d9ed1c33c4310903f62336dd61ad7d7ec3
2017-12-30 02:52:59 +00:00
libraryupgrader 7f410e88f9 build: Updating mediawiki/minus-x to 0.2.1
Change-Id: I2addf8d9381339841f17bf58a4f25bbcbff7972a
2017-12-11 09:10:22 +00:00
Umherirrender 53e19f4085 build: Always exclude vendor and node_modules
Change-Id: Iabe54bad6c3e12c7276364b2af4cee26933eaac9
2017-11-12 00:39:13 +01:00
Kunal Mehta 79dcc0b224 build: Adding MinusX
Change-Id: Ic43981c89348a588746b13426b1efa3a37b19b31
2017-11-03 19:50:33 -07:00
libraryupgrader be81f3de99 build: Updating mediawiki/mediawiki-codesniffer to 14.1.0
And moved phpcs.xml to .phpcs.xml (T177256).

Change-Id: I02554f10c64f11b2b61ce08f2edf6af2287883c4
2017-10-21 04:31:06 +00:00
libraryupgrader b833bd839a build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
Change-Id: Ic6bfe73efbff856600302d155fbeb0ba38923b55
2017-09-24 05:33:54 +00:00
libraryupgrader e160cb66b9 build: Updating mediawiki/mediawiki-codesniffer to 0.12.0
The following sniffs are failing and were disabled:
* MediaWiki.Files.ClassMatchesFilename.NotMatch

Change-Id: Iccb7bd9026e92cca5b505fa62b4fbf5aa6e56d94
2017-09-01 04:57:51 +00:00
Kunal Mehta d6257bd2ff build: Updating mediawiki/mediawiki-codesniffer to 0.11.0
Change-Id: I59ba41e53abae528f5a62ae172b0db0c0f60b35f
2017-08-11 00:34:47 -04:00
Kunal Mehta 119ccaf5fc build: Updating mediawiki/mediawiki-codesniffer to 0.10.1
The following sniffs now pass and were enabled:
* MediaWiki.Commenting.FunctionComment.MissingReturn

Change-Id: I8fdffa68dfd23e17b623042761057f8c952f0dce
2017-07-23 00:39:22 -07:00
Kunal Mehta d519bda71d build: Updating mediawiki/mediawiki-codesniffer to 0.10.0
Change-Id: I16caa0c4247193d152ba52761e96a6578dc57758
2017-07-01 01:43:32 -07:00
Kunal Mehta 612524a641 build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment

Change-Id: Ic998e3f2a791bf987f826d6dd0e92a8de24be5b7
2017-06-20 00:22:54 -07:00
Brad Jorsch 5fd77aa0d7 Update css-sanitizer to v1.0.2
Also fold a unit test into the normal function since we don't have to
have two valid responses based on css-sanitizer version.

Change-Id: I107c8b911781924ce9cc0730257243b9cb1592a6
2017-06-13 17:09:48 -04:00
Brad Jorsch b301a30abf Use wikimedia/css-sanitizer, and rewrite the hooking
wikimedia/css-sanitizer provides a real CSS parser, which should be
safer than poking at things with regular expressions.

Instead of the strange hybrid model that tried to both process inline
CSS and save CSS when the template is saved, it now looks for
<templatestyles src="Title" /> during the parse to do all the
transclusion of styles.

The output method is "<style> tags in the body", pending someone
implementing T160563.

It now also registers a "sanitized-css" content model, which should pick
up the CSS syntax highlighting and will validate the submitted CSS on
submit and prevent a save if it's not valid.

This patch also takes advantage of LGPL-2.x § 3 to relicense the
extension as GPL-2.0+, although at this point none of the LGPL code
remains anyway.

Bug: T133408
Bug: T136054
Bug: T135788
Bug: T135789
Change-Id: I993e6f18d32a43aac8398743133d227b05133bbd
Depends-On: If4eb5bf71f94fa366ec4eddb6964e8f4df6b824a
2017-06-07 15:14:09 +00:00
Antoine Musso 0fe99941e1 build: add jakub-onderka/php-console-highlighter
Highlight PHP code when parallel-lint fails

Change-Id: Ie7582baa805457a0445a119bfd5fb859f693e51f
2017-05-05 21:40:02 +02:00
Umherirrender de34a26818 Add fix phpcbf command to composer.json
This allows to use the phpcbf easily

Change-Id: Ib8fb40c6fcb94215ea94cd0b2b7b6272309425e4
2017-04-29 13:07:12 +02:00
Umherirrender 95deb18b3f Use tabs to indent in json
Change-Id: Ifba40f1902bee0ce50fdb1296b5603a5117aa8cf
2017-03-23 19:31:51 +01:00
Coren dfa7e27b5a Linting and slight tweak to parser
- add a tweak to the parser (keep the value tokens in a declaration
  separate in the parsed tree to ease matching at render time
- add error checking to encoding/decoding the templatestyles property
- pick some lint suggested by Brion and Bryan

Change-Id: If60b91e119102c0f0f559fe7e5a4c421c94b7ff4
2016-04-12 15:42:23 +00:00
Coren 31743445bd TemplateStyles extension prototype
This extension adds a <templatestyles> tag that, when placed
on a template, allows specifying CSS for pages where that
template is transcluded.

Unlike inline styles, the per-template CSS supports rules
with proper selectors, and @media blocks.

THIS VERSION DOES NOT CURRENTLY FILTER DECLARATIONS and is
therefore unsuitable for wikis where unprivileged users should
not be allowed to influcence the pagewide CSS in unrestricted
ways!

Bug: T483
Change-Id: Ibc1cae3079d164f7ac7bcc7c4ded3f02bb048614
2016-04-08 11:08:59 -04:00