mirror of
https://github.com/codex-storage/nim-websock.git
synced 2025-02-02 13:53:21 +00:00
14 lines
280 B
Nim
14 lines
280 B
Nim
#!/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()) |