Skip to content

ci: run the Obsidian review checks in strict mode - #667

Merged
Quorafind merged 1 commit into
masterfrom
ci/obsidian-review-strict
Nov 28, 2026
Merged

Quorafind merged 1 commit into
masterfrom
ci/obsidian-review-strict

Conversation

@Quorafind

@Quorafind Quorafind commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Description

This is the final step of the Obsidian scanner cleanup. It switches the review workflow from #626 to strict: true, so a new error-level finding fails CI before it can reach a release.

What strict mode enforces

  • obsidianmd/obsidian-workflows@v1 fails the job only on findings with severity error.
  • Without strict, it downgrades policy errors to warnings, so the job always passes.
  • Its Stylelint rules are all warning, so CSS findings are reported but never fail the job, in either mode.

Blockers found by this PR's own strict run

GitHub shows at most 10 error and 10 warning annotations per step. That hid most of the findings in the advisory runs. I ran the action's ESLint config locally with its pinned versions to get the full list:

Where Errors Fix
src/: no-static-styles-assignment 2 #668
src/: settings-tab/no-manual-html-headings 3 #669
packages/calendar/src: static style assignments, undescribed or restricted eslint-disable 10 taskgenius/calendar#1, bumped in #670
packages/calendar/examples/demo: style.cssText, innerHTML 10 taskgenius/calendar#2, bumped in #670

The directory scanner doesn't see the calendar submodule: on GitHub a submodule is only a commit pointer. CI checks it out because the build needs it, so the action lints it. The calendar src/ code is bundled into main.js, though.

.stylelintignore → packages/calendar/

This keeps the calendar demo's CSS out of the Stylelint report. It is noise reduction only; those findings are warnings and don't fail the job.

Parsing-error notices (packages/calendar/dist/*, jest.config.js, files outside the TS project) are notices, not findings.

Status: #668, #669, taskgenius/calendar#1, #2 and #670 are merged, and this branch is rebased on top of them. Its own strict-mode check run is the test.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring (CI)

Checklist

  • I have read and agree to the CLA
  • My code follows the project's style guidelines
  • I have tested my changes (this PR's strict "Obsidian review checks" run)
  • I have updated the documentation (not applicable)

Every rule the directory scanner reports is now at 0 on master, so make
any new finding fail the job. Keep the calendar submodule out of the
scanner's Stylelint run: CI checks it out to build, but the directory
scanner never sees submodule contents, so its demo CSS isn't part of
the plugin's review.
@Quorafind
Quorafind force-pushed the ci/obsidian-review-strict branch from 210ab05 to 61aa9c5 Compare November 28, 2026 08:52
@Quorafind
Quorafind marked this pull request as ready for review November 28, 2026 08:52
@Quorafind
Quorafind merged commit 794e113 into master Nov 28, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant