Skip to content

fix: add missing lint config files referenced by npm scripts - #111

Queued
mrbobbytables wants to merge 1 commit into
cncf:mainfrom
mrbobbytables:advisory/add-missing-lint-configs
Queued

mrbobbytables wants to merge 1 commit into
cncf:mainfrom
mrbobbytables:advisory/add-missing-lint-configs

Conversation

@mrbobbytables

Copy link
Copy Markdown
Member

Advisory finding (issue #24)

While reviewing this repo as part of the Hive advisory process, I found that
three npm scripts reference lint/config files that do not exist anywhere in
the repository, so anyone running them locally (or in future CI) gets a hard
config error instead of real feedback:

  • npm run check:spelling -> cspell -c .cspell.yml ... (.cspell.yml missing)
  • npm run check:markdown -> markdownlint -c .markdownlint.yaml ... (.markdownlint.yaml missing)
  • npm run _check:links-md -> markdown-link-check --config .markdown-link-check.json ... (.markdown-link-check.json missing)

None of these are currently wired into CI, so this hasn't broken any builds,
but it's a dead-end for contributors trying to use the documented npm run check workflow.

Changes

  • Added .cspell.yml with a word list covering CNCF/project terminology,
    architecture-doc jargon (Kyverno, Kubevirt, Dapr, etc.), and contributor
    names that appear in the docs, so npm run check:spelling passes cleanly.
  • Added .markdownlint.yaml, relaxing:
    • MD013 (line length) — prose here isn't hard-wrapped at 80 chars.
    • MD025 (single H1) — Docusaurus pages get their H1 from frontmatter
      title.
    • MD033 (inline HTML) — pages intentionally embed raw HTML and
      MDX/React components (<CommunityPeople />, <AwardsTimeline />, etc.).
  • Added .markdown-link-check.json with reasonable timeout/retry defaults.

Verified

$ npm run check:spelling
CSpell: Files checked: 30, Issues found: 0 in 0 files.

$ npm run _check:links-md
...config now loads correctly, links are checked instead of erroring...

npm run check:markdown now runs against the new config instead of
erroring, though it still surfaces a number of pre-existing content issues
(missing alt text, heading spacing, etc.) in the imported architecture docs
under docs/architectures/ — those are content fixes and out of scope here,
noted separately as a follow-up advisory item.

Note: npm run check:links (the make check-links / htmltest-based
target) still has no Makefile in the repo, so it remains broken; fixing
that involves adding htmltest tooling and is a larger, separate task.

Relates to #24.

npm run check:spelling, check:markdown, and check:links-md all
reference config files (.cspell.yml, .markdownlint.yaml,
.markdown-link-check.json) that do not exist in the repository,
so every contributor who runs these scripts locally hits a hard
"Config file not accessible" error instead of getting real
lint/spelling feedback.

- Add .cspell.yml with CNCF/project-specific technical terms and
  contributor names so check:spelling passes cleanly.
- Add .markdownlint.yaml, relaxing line-length (MD013), single-H1
  (MD025), and inline-HTML (MD033) rules that don't fit this
  Docusaurus site's prose and MDX/React component usage.
- Add .markdown-link-check.json with sane timeout/retry defaults
  for check:links-md.

Found via advisory analysis for issue cncf#24.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@kubestellar-hive kubestellar-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved by @castrojo for Hive auto-merge on green CI.

@kubestellar-hive kubestellar-hive Bot added the lgtm Approved by a Hive merger/owner for auto-merge on green CI label Sep 14, 2026
@castrojo
castrojo added this pull request to the merge queue Sep 15, 2026

@castrojo castrojo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Approved by a Hive merger/owner for auto-merge on green CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants