Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add unused variables ignore function for #guard_msgs #3931

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

kmill
Copy link
Collaborator

@kmill kmill commented Apr 17, 2024

The #guard_msgs command already runs linters by virtue of using elabCommandTopLevel, so linters should not be run on #guard_msgs itself. While we could use a more general solution, of the linters the unused variables linter is the noisiest one, and it's easy enough to make it not report messages for #guard_msgs.

The `#guard_msgs` command already runs linters by virtue of using `elabCommandTopLevel`. Linters should *not* be run on `#guard_msgs` itself, however the unused variables linter is the noisiest one, and it's easy enough to make it not report messages for `#guard_msgs`.
@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 Apr 17, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented Apr 17, 2024

Mathlib CI status (docs):

  • ❗ Std/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 75e68e7565708361e117c5f56b66fdbe013de667 --onto 23aacdeac069475e3f40110e87859dad5a22074c. (2024-04-17 03:34:34)
  • ❗ Std/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 75e68e7565708361e117c5f56b66fdbe013de667 --onto d3e004932c1f5ac3946850692940512d381c7634. (2024-04-17 13:23:09)

@kmill kmill added this pull request to the merge queue Apr 17, 2024
Merged via the queue into leanprover:master with commit 627a0f3 Apr 17, 2024
10 checks passed
@kmill kmill deleted the fix_guard_msgs_lint branch April 17, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

4 participants