Skip to content

Commit

Permalink
fix: add trailing line-break in nolints.json (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
adomani authored Sep 25, 2024
1 parent 6d5e1c8 commit 1745fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/runLinter.lean
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def readJsonFile (α) [FromJson α] (path : System.FilePath) : IO α := do

/-- Serialize the given value `a : α` to the file as JSON. -/
def writeJsonFile [ToJson α] (path : System.FilePath) (a : α) : IO Unit :=
IO.FS.writeFile path <| toJson a |>.pretty
IO.FS.writeFile path <| toJson a |>.pretty.push '\n'

/--
Usage: `runLinter [--update] [Batteries.Data.Nat.Basic]`
Expand Down

0 comments on commit 1745fbd

Please sign in to comment.