Skip to content

Commit 660ea06

Browse files
committed
Return the number of files with errors as exit code.
1 parent 7084023 commit 660ea06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mathlib/Tactic/Linter/TextBased.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def lint_all_files (path : System.FilePath) : IO UInt32 := do
400400
/-- Implementation of the `lint_style` command line program. -/
401401
def lintStyleCli (_args : Cli.Parsed) : IO UInt32 := do
402402
let mut number_error_files := 0
403-
for s in #["Archive.lean", "Counterexamples.lean", "Mathlib.lean"] do
403+
for s in ["Archive.lean", "Counterexamples.lean", "Mathlib.lean"] do
404404
let n ← lint_all_files (System.mkFilePath [s])
405405
number_error_files := number_error_files + n
406406
return number_error_files
@@ -410,7 +410,7 @@ open Cli in
410410
-- so far, no help options or so: perhaps that is fine?
411411
def lint_style : Cmd := `[Cli|
412412
lint_style VIA lintStyleCli; ["0.0.1"]
413-
"Run text-based style linters on Mathlib and the Archive and Counterexamples directories."
413+
"Run text-based style linters on every Lean file in Mathlib/, Archive/ and Counterexamples/."
414414
]
415415

416416
/-- The entry point to the `lake exe lint_style` command. -/

0 commit comments

Comments
 (0)