Skip to content

feat: use linter framework for deferred docstring checks#14206

Open
david-christiansen wants to merge 1 commit into
leanprover:masterfrom
david-christiansen:forward-ref
Open

feat: use linter framework for deferred docstring checks#14206
david-christiansen wants to merge 1 commit into
leanprover:masterfrom
david-christiansen:forward-ref

Conversation

@david-christiansen

Copy link
Copy Markdown
Contributor

This PR adapts the deferred docstring check mechanism to use the linter mechanism, presenting an interface akin to that of environment linters. This replaces custom CI setup with an already-used interface. Deferred checks are governed by the option linter.doc.deferred.

Breaking change: custom Verso docstring elements are now represented by a two-constructor type with cases for ordinary custom elements and deferred check elements.

This PR adapts the deferred docstring check mechanism to use the
linter mechanism, presenting an interface akin to that of environment
linters. This replaces custom CI setup with an already-used interface.
Deferred checks are governed by the option `linter.doc.deferred`.

Breaking change: custom Verso docstring elements are now represented
by a two-constructor type with cases for ordinary custom elements and
deferred check elements.
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jun 29, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 45e668d09492b90939bd072e3cd1769e9f71893c --onto 84b251f7390c20a0a00a221050ab4a6e6c46a191. You can force Mathlib CI using the force-mathlib-ci label. (2026-06-29 00:12:41)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 45e668d09492b90939bd072e3cd1769e9f71893c --onto 84b251f7390c20a0a00a221050ab4a6e6c46a191. You can force reference manual CI using the force-manual-ci label. (2026-06-29 00:12:43)

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

Labels

changelog-lake Lake toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants