mirror of
https://github.com/logos-storage/nim-websock.git
synced 2026-05-05 09:23:09 +00:00
14 lines
280 B
Plaintext
14 lines
280 B
Plaintext
|
|
#!/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())
|