Repository navigation
Conversation
Every file importing Mathlib.Init transitively imports this file already, thus having its module docstring and copyright header checked by the header linter. This adds the same input to every file *imported in* Mathlib.Init. Helps with #17556.
PR summary d8159021a3Import changes exceeding 2%
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Tactic.Finiteness.Attr | 1 | 18 | +17 (+1700.00%) |
| Mathlib.Tactic.DeclarationNames | 2 | 4 | +2 (+100.00%) |
| Mathlib.Tactic.Linter.DocPrime | 1 | 2 | +1 (+100.00%) |
| Mathlib.Tactic.Linter.GlobalAttributeIn | 1 | 2 | +1 (+100.00%) |
| Mathlib.Tactic.Linter.HashCommandLinter | 1 | 2 | +1 (+100.00%) |
| Mathlib.Tactic.Linter.Multigoal | 1 | 2 | +1 (+100.00%) |
| Mathlib.Tactic.Linter.OldObtain | 1 | 2 | +1 (+100.00%) |
| Mathlib.Tactic.Linter.RefineLinter | 1 | 2 | +1 (+100.00%) |
| Mathlib.Tactic.Linter.Style | 1 | 2 | +1 (+100.00%) |
| Mathlib.Tactic.Linter.UnusedTactic | 2 | 3 | +1 (+50.00%) |
Import changes for all files
| Files | Import difference |
|---|---|
8 filesMathlib.Tactic.Linter.OldObtain Mathlib.Tactic.Linter.Multigoal Mathlib.Tactic.Linter.DocPrime Mathlib.Tactic.Linter.GlobalAttributeIn Mathlib.Tactic.Linter.UnusedTactic Mathlib.Tactic.Linter.RefineLinter Mathlib.Tactic.Linter.HashCommandLinter Mathlib.Tactic.Linter.Style |
1 |
Mathlib.Tactic.DeclarationNames Mathlib.Tactic.Linter.Lint |
2 |
Mathlib.Tactic.Finiteness.Attr |
17 |
Declarations diff
No declarations were harmed in the making of this PR! 🐙
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.
|
Since I doubt that the |
|
I don't feel strongly about this - if you think this is useful, I'm happy to do that instead. |
And remove Mathlib.Init.Align, which does not exist any more.
|
Actually: yes, that seems like a nice simplification - and #18281 will flag any new files which import just the Header linter, so this is not likely to regress unintendedly. Changed. |
|
Thanks! maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by adomani. |
|
Pull request successfully merged into master. Build succeeded: |
header linter in all files imported in Mathlib.Initheader linter in all files imported in Mathlib.Init
|
Thanks for the reviews! |
Every file importing Mathlib.Init transitively imports this file already, thus having its module docstring and copyright header checked by the
headerlinter. This adds the same input to every file imported in Mathlib.Init.Helps with #17556.