Page MenuHomePhabricator

NearbyPages does not exclude vendor/ or node_modules/ from stylelint
Closed, ResolvedPublic

Description

See https://gerrit.wikimedia.org/r/c/mediawiki/extensions/NearbyPages/+/718817 (patch set 1) and https://libraryupgrader2.wmcloud.org/logs2/428397: no rules were failing, but libup still tried to disable them.

Event Timeline

Legoktm subscribed.

If an extension is not using Gruntfile.js, LibUp will run stylelint over **/*.{css,less}, expecting that the extension has configured stylelint to ignore vendor/, node_modules, etc.

https://gerrit.wikimedia.org/r/plugins/gitiles/labs/libraryupgrader/+/refs/heads/master/runner/runner/__init__.py#1004

Looking at the log, it seems to have tried linting all the CSS in vendor/, there needs to be an exclusion/ignore rule set up for that.

Legoktm renamed this task from LibUp tried to disable many stylelint rules even when none were failing to NearbyPages does not exclude vendor/ or node_modules/ from stylelint.Sep 5 2021, 7:10 AM

Change 719351 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/NearbyPages@master] Add stylelint ignore to NearbyPages

https://gerrit.wikimedia.org/r/719351

Change 719351 merged by jenkins-bot:

[mediawiki/extensions/NearbyPages@master] Add stylelint ignore to NearbyPages

https://gerrit.wikimedia.org/r/719351

Jdlrobson claimed this task.