Skip to content

Commit 685b03b

Browse files
committed
Fix
1 parent b1a5cd8 commit 685b03b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Mathlib/Tactic/Linter/DirectoryDependency.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ modularity of Mathlib.
1616
-- XXX: this PR is copy-pasted from lint-style.lean; can I centralise this?
1717
/-- Parse all imports in a text file at `path` and return just their names:
1818
this is just a thin wrapper around `Lean.parseImports'`.
19-
Omit `Init (which is part of the prelude). -/
19+
Omit `Init` (which is part of the prelude). -/
2020
def findImports (path : System.FilePath) : IO (Array Lean.Name) := do
2121
return (← Lean.parseImports' (← IO.FS.readFile path) path.toString)
2222
|>.map (fun imp ↦ imp.module) |>.erase `Init

scripts/lint-style.lean

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ In addition, this checks that
2222

2323
open Cli Mathlib.Linter.TextBased System.FilePath
2424

25-
/-- Parse all imports in a text file at `path` and return just their names:
26-
this is just a thin wrapper around `Lean.parseImports'`.
27-
Omit `Init (which is part of the prelude). -/
28-
def findImports (path : System.FilePath) : IO (Array Lean.Name) := do
29-
return (← Lean.parseImports' (← IO.FS.readFile path) path.toString)
30-
|>.map (fun imp ↦ imp.module) |>.erase `Init
31-
3225
/-- Additional imports generated by `mk_all`. -/
3326
def explicitImports : Array Lean.Name := #[`Batteries, `Std]
3427

0 commit comments

Comments
 (0)