nim-websock/lint.nims

14 lines
280 B
Plaintext
Raw Normal View History

2020-12-01 12:43:59 +00:00
#!/usr/bin/env nim
import std/strutils
proc lintFile*(file: string) =
if file.endsWith(".nim"):
exec "nimpretty " & file
proc lintDir*(dir: string) =
for file in listFiles(dir):
lintFile(file)
for subdir in listDirs(dir):
lintDir(subdir)
lintDir(projectDir())