Commit graph

24 commits

Author SHA1 Message Date
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