Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tactic/lint/misc): unused arguments checks for more sorry's (#10431
) * The `unused_arguments` linter now checks whether `sorry` occurs in any of the `_proof_i` declarations and will not raise an error if this is the case * Two minor changes: `open tactic` in all of `meta.expr` and fix a typo. * I cannot add a test without adding a `sorry` to the test suite, but this succeeds without linter warning: ```lean import tactic.lint /-- dummy doc -/ def one (h : 0 < 1) : {n : ℕ // 0 < n} := ⟨1, sorry⟩ #lint ``` Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
- Loading branch information
1 parent
dfa98e0
commit 43519fc
Showing
3 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters