Repository navigation
conformance: per-surface lint architecture (CI action wrappers, language-only hook, VS Code docker) - #500
Merged
Conversation
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]>
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
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
:latestin CI (validate-task.yml), Husky pre-commit, and VS Code tasks. - Update the pre-commit hook to run markdownlint/cspell when
cspell.jsonor.markdownlint-cli2.jsoncis staged (even if no.mdfiles 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]>
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]>
- 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]>
- .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]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:latestfor on-demand local linting.Supersedes this PR's earlier
:latest-docker-everywhere approach. All linters pass locally.🤖 Generated with Claude Code