Repository navigation
Conversation
Co-authored-by: grunweg <[email protected]>
…ommunity/mathlib4 into adomani/linter_undocumented
…opied_assert_not_exists
PR summary 40502a4bd5Import changes exceeding 2%
Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
@YaelDillies Can you comment on the comment in Data/Finset/Sym? Can that one be removed, or should it be preserved? (If so, can it be clarified to be understandable to other readers?)
remove debugging output. And tweak a comment.
And fix a defect on comparing style exceptions for the duplicate imports linter.
The comment in `Data/Finset/Sym` is a porting artifact and can just be removed. Pre-requisite for rewriting the copyright header linter in Lean in #16574.
|
This PR/issue depends on:
|
Co-authored-by: grunweg <[email protected]>
adomani
left a comment
There was a problem hiding this comment.
Thank you so much for the review and the updates!
| | .node _ ``Lean.Parser.Module.module #[_header, .node _ `null args] => args[0]? | ||
| | _=> some .missing -- this is unreachable, if the input comes from `testParseModule` | ||
|
|
||
| /-- `getImportIds s` takes as input `s : Syntax`. |
There was a problem hiding this comment.
If we are serious about controlling imports in Init, then maybe rather than adding a comment, we should actually think about what is wanted and how to enforce it.
grunweg
left a comment
There was a problem hiding this comment.
I think this is good to go.
maintainer merge
| | .node _ ``Lean.Parser.Module.module #[_header, .node _ `null args] => args[0]? | ||
| | _=> some .missing -- this is unreachable, if the input comes from `testParseModule` | ||
|
|
||
| /-- `getImportIds s` takes as input `s : Syntax`. |
There was a problem hiding this comment.
I agree this would be a good idea - and a follow-up PR. I just added a comment; feel free to tweak it.
|
🚀 Pull request has been placed on the maintainer queue by grunweg. |
…opied_assert_not_exists
|
bors merge |
This syntax linter checks that * the copyright statement is correctly formatted; * `Mathlib.Tactic` is not imported; * makes sure that the module docs are the first non-import command of each file. The linter is off by default on projects downstream of mathlib, but it is on by default on mathlib. This subsumes the corresponding text-based linters. These will be removed in a future PR. Co-authored-by: Michael Rothgang <[email protected]> Co-authored-by: grunweg <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
This syntax linter checks that
Mathlib.Tacticis not imported;The linter is off by default on projects downstream of mathlib, but it is on by default on mathlib.
This subsumes the corresponding text-based linters. These will be removed in a future PR.