add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)

This commit is contained in:
Timothee Cour
2021-02-17 10:30:09 -08:00
committed by GitHub
parent 35e14998ec
commit 31bb67a309
20 changed files with 43 additions and 23 deletions

View File

@@ -74,7 +74,7 @@ when defined(js):
system.`+`(a, b)
{.pop.}
elif defined(posix):
elif defined(posix) and not defined(osx):
import posix
elif defined(windows):

View File

@@ -4,7 +4,9 @@ this can eventually be moved to std/os and `walkDirRec` can be implemented in te
to avoid duplication
]##
import std/[os,strutils]
import std/[os]
when defined(windows):
from strutils import replace
type
PathEntry* = object