Skip to content

conformance: per-surface lint architecture (CI action wrappers, language-only hook, VS Code docker) - #500

Merged
ptr727 merged 6 commits into
developfrom
feature/lint-latest
Jul 11, 2026
Merged

ptr727 merged 6 commits into
developfrom
feature/lint-latest

Conversation

@ptr727

@ptr727 ptr727 commented Jul 11, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #499, mirroring ProjectTemplate #276. Adopts the fleet lint architecture: the tool that fits each surface instead of docker-run on all three.

  • validate-task.yml: markdownlint, cspell, actionlint run as pinned action wrappers (Dependabot-bumped); editorconfig-checker also runs via its action wrapper, so all four CI linters are pinned actions.
  • .husky/pre-commit: language formatting/style only (dotnet husky run) — no Docker, no doc linters. Simpler and faster.
  • .vscode/tasks.json: keeps the full doc-lint set via docker :latest for on-demand local linting.

Supersedes this PR's earlier :latest-docker-everywhere approach. All linters pass locally.

🤖 Generated with Claude Code

Dependabot does not update image digests in workflow run: steps (only uses:
refs and Dockerfile FROM), so pinning these four linters was a manual chore
that drifts from the always-latest editor extensions. Run them at :latest
across CI, the hook, and the VS Code tasks, matching the template.

- validate-task.yml, .husky/pre-commit, .vscode/tasks.json: pin -> :latest.
- .husky/pre-commit: also run markdownlint/cspell when cspell.json or
  .markdownlint-cli2.jsonc is staged, closing the config-only-change gap.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 11, 2026 00:57
@codecov

codecov Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.28%. Comparing base (8e8dae4) to head (d97ccf2).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #500   +/-   ##
========================================
  Coverage    57.28%   57.28%           
========================================
  Files           15       15           
  Lines         1386     1386           
  Branches        89       89           
========================================
  Hits           794      794           
  Misses         573      573           
  Partials        19       19           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the repo’s three lint surfaces (CI workflow, Husky pre-commit hook, and VS Code tasks) to run the Docker-based linters via :latest image tags instead of digest pins, reducing manual drift when upstream linter images update. It also ensures Markdown/spelling lint runs locally when only the lint configuration changes are staged.

Changes:

  • Switch docker linter image references from digest pins to :latest in CI (validate-task.yml), Husky pre-commit, and VS Code tasks.
  • Update the pre-commit hook to run markdownlint/cspell when cspell.json or .markdownlint-cli2.jsonc is staged (even if no .md files are staged).
  • Update CI workflow commentary to reflect the new (intentional) non-pinned behavior for run-step images.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.vscode/tasks.json Unpins the four local “Lint:*” Docker tasks to use :latest tags.
.husky/pre-commit Unpins linter images to :latest and expands the staged-file trigger to include Markdown/spell lint config files.
.github/workflows/validate-task.yml Unpins docker-based lint steps to :latest and updates the rationale comment accordingly.

Mirror the template (ProjectTemplate #276). Use the tool that fits each surface
instead of docker-run on all three.

- validate-task.yml: markdownlint, cspell, and actionlint run as pinned action
  wrappers (Dependabot bumps the SHA); editorconfig-checker stays docker :latest.
- .husky/pre-commit: language formatting and style only (dotnet husky run). No
  Docker, no doc linters.
- .vscode/tasks.json: keeps the full doc-lint set via docker :latest (unchanged).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@ptr727 ptr727 changed the title conformance: run the lint images at :latest (unpin), trigger md-lint on config changes conformance: per-surface lint architecture (CI action wrappers, language-only hook, VS Code docker) Jul 11, 2026
Copilot AI review requested due to automatic review settings July 11, 2026 01:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Comment thread .vscode/tasks.json Resolved
Comment thread .husky/pre-commit Resolved
Comment thread .github/workflows/validate-task.yml Resolved
The hook no longer runs the Docker linters, so the tasks are the local
doc-lint surface, not an image-warmer for the hook.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 11, 2026 01:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread .husky/pre-commit Resolved
- validate-task.yml: editorconfig-checker runs via its action wrapper (pinned),
  so all four linters are pinned actions.
- .husky/pre-commit: header back to one line.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 11, 2026 01:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/validate-task.yml Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/validate-task.yml Resolved
- .husky/pre-commit: use an if block instead of 'command -v dotnet && ...', which
  as the last line aborted the commit (non-zero exit) when dotnet was absent.
- .vscode/tasks.json: rephrase the Lint-group comment to avoid a mid-sentence wrap.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 11, 2026 02:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 11, 2026 02:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 92cdb7d into develop Jul 11, 2026
10 checks passed
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.

2 participants