Skip to content

Commit

Permalink
fix(lint-style): ignore Batteries module
Browse files Browse the repository at this point in the history
  • Loading branch information
grunweg committed Aug 15, 2024
1 parent b2e9f4c commit fe73a10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/lint-style.lean
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def lintStyleCli (args : Cli.Parsed) : IO UInt32 := do
let mut allModules := #[]
for s in ["Archive.lean", "Counterexamples.lean", "Mathlib.lean"] do
allModules := allModules.append ((← IO.FS.lines s).map (·.stripPrefix "import "))
-- note: since we manually add "Batteries" to "Mathlib.lean", we remove it here manually
allModules := allModules.erase "Batteries"
let numberErrorFiles ← lintModules allModules mode (args.hasFlag "fix")
-- Make sure to return an exit code of at most 125, so this return value can be used further
-- in shell scripts.
Expand Down

0 comments on commit fe73a10

Please sign in to comment.