Skip to content

ci(stylelint): cover css/ as well as src/ - #116

Merged
rubenvdlinde merged 1 commit into
developmentfrom
ci/stylelint-cover-css
Aug 14, 2026
Merged

ci(stylelint): cover css/ as well as src/#116
rubenvdlinde merged 1 commit into
developmentfrom
ci/stylelint-cover-css

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

The gap

This app's stylelint glob was src/**/*.{vue,scss,css} — it did not cover css/, so
those stylesheets had never been linted.

@nextcloud/stylelint-config@2.4.0 (the version the fleet pins) does ship
indentation: 'tab'. The rule was working the whole time; those files were simply never
shown to it. That makes this a coverage gap, not a rule gap — the same family as two
earlier findings in this programme: an unquoted glob the shell expanded, and a
stylelint:fix glob narrower than its own stylelint check.

The change

Both globs become {src,css}/**/*.{vue,scss,css}, quoted so stylelint expands them
rather than the shell — unquoted and without globstar, src/**/ matches exactly one
directory level, which is how 51 files went unlinted on launchpad earlier.

Proof the widened glob actually reaches css/

A glob that silently matches nothing looks exactly like a clean directory, so this was
controlled rather than assumed. On a merged sibling app, planting a space-indented rule
in css/main.css produces:

css/main.css
 766:3  ✖  Expected indentation of 1 tab  indentation

The rule fires. Removed after checking.

The glob was src/**/*.{vue,scss,css}, so css/header-override.css and
css/launchpad.css had never been linted. Both globs (check and fix) widened
together — a stylelint:fix narrower than its check reports done while leaving
violations the check flags, which was a real finding on this app earlier.

Coverage 83 -> 85 files, zero new findings: prettier had already normalised
those stylesheets fleet-wide.
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/launchpad @ 7b22bfa

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-manifest
format
composer ✅ 104/104
npm ✅ 548/548
app:check-code ⏭️
info.xml
REUSE
PHPUnit
Newman
Playwright
Hydra gates

Quality workflow — 2026-08-14 06:55 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde
rubenvdlinde merged commit 5c738fc into development Aug 14, 2026
34 of 36 checks passed
@rubenvdlinde
rubenvdlinde deleted the ci/stylelint-cover-css branch August 14, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant