Lint & docs (lint-and-docs.yaml)
workflows/lint-and-docsChecked by automation only
still a draft
Written 2026-10-28 by ktl-librarian (automation). Last checked 2026-10-28 by ktl-librarian (automation).
The full record
- Checks
- 2026-10-28 by
ktl-librarian(automation)
- 2026-10-28 by
- Sources
- Pointed to by
- Security policy (references)
- Graph
- Open this concept in the knowledge graph
- IRI
https://w3id.org/lmodel/github-actions/knowledge/workflows/lint-and-docs- Licence
- CC BY 4.0
- Files
- MarkdownJSON-LDSource on GitHubHistory on GitHub
Lint & docs (lint-and-docs.yaml)
Section titled “Lint & docs (lint-and-docs.yaml)”.github/workflows/lint-and-docs.yaml is the workflow named “Lint & docs”. It runs static checks on the shell scripts, the workflows and the prose. A header comment says that it never touches the schema, the Python test suite or the knowledge bundle’s semantics, which Build and test and Knowledge Registrar check.1 It runs on a push to main, on every pull request, every Monday at 06:00 UTC to catch link rot, and by hand.
Each of its four jobs runs on ubuntu-latest with contents: read, after harden-runner in audit mode and a checkout without persisted credentials:
lint-scriptsruns ShellCheck over the whole repository.lint-workflowsruns actionlint 1.7.12 from its container image, told to ignore thecopilot-requestsscope. A comment says that actionlint 1.7.12 predates that scope, which Knowledge Librarian requests.word-budgetsfails whenCONTRIBUTING.mdhas more than 1000 words orSECURITY.mdmore than 900. A comment says that the first is a checklist and the second a policy, not design logs.validate-markdownruns markdownlint-cli2 on every Markdown file against.markdownlint-cli2.jsonc, checks links with lychee againstlychee.toml, and runs codespell 2.4.2 on the Markdown files git tracks. The lychee step maps the repository’s own links onmainto the checkout, so a pull request that moves a linked file fails here rather than after merge.
lychee.toml reads the hidden folders too, so the links in .lokf/knowledge/ are checked like the README’s.
Footnotes
Section titled “Footnotes”-
.github/workflows/lint-and-docs.yaml, the header comment, the on key and the four jobs ↩