Skip to content

conformance: standardize CI lint to the fleet full set + codecov + husky/VS Code parity - #499

Merged
ptr727 merged 4 commits into
developfrom
feature/lint-parity-backfill
Jul 10, 2026
Merged

ptr727 merged 4 commits into
developfrom
feature/lint-parity-backfill

Conversation

@ptr727

@ptr727 ptr727 commented Jul 10, 2026 •

Copy link
Copy Markdown
Owner

Lint modernization and coverage-hygiene backfill, bringing NxWitness onto the fleet-standard lint set and keeping the three lint surfaces (CI, pre-commit hook, editor tasks) in parity.

CI lint standardized to the full fleet set

  • .github/workflows/validate-task.yml previously ran only the reduced set (C# style via Husky + editorconfig-checker). Added the digest-pinned Markdown (markdownlint-cli2), spelling (cspell), and workflow (actionlint) steps, so CI now runs the same full set as the template.
  • cspell.json (new). The repo had no spell-check config, so this adds the fleet baseline word list plus NxWitness domain terms (filesystem, Docker, and Network Optix product vocabulary). All Markdown passes cspell.

Coverage hygiene

  • codecov.yml (new). Coverage is reported and trended but never gates a PR (informational project and patch), distinct from the upload step's fail_ci_if_error: false.

Three-surface lint parity

  • .husky/pre-commit and .vscode/tasks.json now digest-pin actionlint, markdownlint, and cspell (were :latest) and spell-check all Markdown, matching the CI definition. The hook runs images-present-only so it never false-blocks, and CI stays the enforcing gate.

Mirrors ProjectTemplate #273 (codecov standard) and #276 (lint parity). markdownlint, cspell, actionlint, and editorconfig-checker all pass locally.

🤖 Generated with Claude Code

- codecov.yml: coverage reported, never gated (informational project+patch),
  so a coverage delta can't block a PR
- .husky/pre-commit: run the CI lint set (editorconfig-checker, actionlint,
  markdownlint, cspell) via Docker, present-only so it never false-blocks
- .vscode/tasks.json: a Lint group mirroring CI that warms the hook's images

Mirrors ProjectTemplate #273 (codecov) + #276 (lint parity).

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

codecov Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.28%. Comparing base (ad7031d) to head (05e5ca4).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #499   +/-   ##
========================================
  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 adds repository conformance scaffolding for coverage hygiene (Codecov config) and local lint tooling (Husky pre-commit + VS Code tasks) intended to align developer workflows with CI expectations.

Changes:

  • Add codecov.yml to make Codecov project/patch statuses informational (report-only).
  • Extend .husky/pre-commit to run additional Docker-based linters when corresponding files are staged (best-effort, images-present-only).
  • Add a language-agnostic “Lint” task set in .vscode/tasks.json to run/warm the same Docker linter images.

Reviewed changes

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

File Description
codecov.yml Introduces Codecov configuration to trend coverage without gating PRs.
.vscode/tasks.json Adds Docker-backed lint tasks (line endings, workflows, Markdown, spelling) and an aggregate task.
.husky/pre-commit Adds best-effort Docker lint steps in the pre-commit hook alongside existing Husky .NET formatting/style.

Comment thread .vscode/tasks.json Resolved
Comment thread .husky/pre-commit Resolved
Comment thread .husky/pre-commit Resolved
Comment thread .vscode/tasks.json Resolved
…to README+HISTORY, reword

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

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 .husky/pre-commit Resolved
Comment thread .husky/pre-commit Resolved
Comment thread .husky/pre-commit Resolved
- validate-task.yml: add Markdown (markdownlint-cli2), spelling (cspell), and
  workflow (actionlint) lint steps, digest-pinned like the existing line-endings
  check, so CI runs the full fleet-standard lint set instead of the reduced one.
- cspell.json: add the fleet baseline word list plus NxWitness domain terms
  (filesystem, Docker, and Network Optix product vocabulary) so the new spell
  check passes. The repo previously had no cspell.json.
- .husky/pre-commit and .vscode/tasks.json: digest-pin actionlint, markdownlint,
  and cspell (were :latest) and spell-check all Markdown, matching CI so the
  three surfaces stay in parity.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 10, 2026 19:00
@ptr727 ptr727 changed the title conformance: codecov.yml + husky/VS Code lint parity with CI conformance: standardize CI lint to the fleet full set + codecov + husky/VS Code parity Jul 10, 2026

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 5 out of 5 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 5 out of 5 changed files in this pull request and generated no new comments.

Match the validate-task.yml header style (short summary plus structured
bullets) instead of prose blocks.

- .husky/pre-commit: rewrite the header blob as a one-line summary plus
  bullets; drop the codecov.yml example from the line-endings comment (the
  comment already states the what).
- codecov.yml: restructure the header block into a summary plus bullets that
  use the full line width instead of wrapping mid-sentence, and drop the
  value-less example from the ignore comment.

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

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 5 out of 5 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 8e8dae4 into develop Jul 10, 2026
10 checks passed
@ptr727
ptr727 deleted the feature/lint-parity-backfill branch July 10, 2026 20:40
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