Repository navigation
Conversation
PR summary df03aee705
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Tactic.Linter.TextBased | 20 | 19 | -1 (-5.00%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.Tactic.Linter.TextBased |
-1 |
Declarations diff
+ duplicateImportsCheck
- duplicateImportsLinter
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for script/declarations_diff.sh contains some details about this script.
4c4ca94 to
a557669
Compare
111d67a to
2b602b7
Compare
adomani
left a comment
There was a problem hiding this comment.
Thanks! I'll take a closer look, but I can't right now!
Co-authored-by: damiano <[email protected]>
|
Now that both these checks loop separately over all imports, maybe we can even unify them into a single loop that checks both broad and duplicate imports... Sorry for not thinking about this earlier! |
|
I see where you're coming from - but in the medium term, I view these linters as sufficiently different that combining them does not feel as helpful. For instance, after #14898 the two functions will have different signatures... |
|
I'm puzzled by the test failure - I have no idea where the extra |
|
It looks like the warning about importing the |
|
I just merged master. @adomani Let me know if you prefer me to split this PR in two, one for rewriting the |
adomani
left a comment
There was a problem hiding this comment.
Thanks! Just a couple of minor wording suggestions.
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by adomani. |
Co-authored-by: damiano <[email protected]>
|
Thanks! |
as part of the header linter. This yields better error spans, is more robust (as it avoids false positives from text-based parsing) and yields results more quickly (providing a better user experience). Also rewrite the `broadImports` linter to log warnings directly, as opposed to passing them down to the `headerLinter` and logging them there. Co-authored-by: grunweg <[email protected]> Co-authored-by: adomani <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
as part of the header linter. This yields better error spans, is more robust (as it avoids false positives from text-based parsing) and yields results more quickly (providing a better user experience). Also rewrite the `broadImports` linter to log warnings directly, as opposed to passing them down to the `headerLinter` and logging them there. Co-authored-by: grunweg <[email protected]> Co-authored-by: adomani <[email protected]>
as part of the header linter. This yields better error spans, is more robust (as it avoids false positives from text-based parsing) and yields results more quickly (providing a better user experience).
Also rewrite the
broadImportslinter to log warnings directly, as opposed to passing them down to theheaderLinterand logging them there.