nimlint
nimlint copied to clipboard
`nimlint --overwrite`, `nimlint -o:outfile`, `nimlint --outdir:dir`, `find . | nimlint --stdinfiles`
-
[ ]
nimlint --overwrite
overwrite input files, but 1st check if we're in a git repo, and git status is clean -
[ ]
nimlint --overwrite:force
overwrite input files -
[ ]
nimlint -o:outfile
write modified file tooutfile
-
[ ]
nimlint --outdir:dir
write modified file tooutfile = rebasePath(inputFile, getCurrentDir(), dir)
(rebasePath
from https://github.com/nim-lang/Nim/pull/15514) -
[ ]
find . | nimlint --stdinfiles
reads input files to lint from stdin. Makes it convenient for command pipelines, without having to bloatnimlint
eg:rg . -t nim | nimlint --stdinfiles
git ls-files | xargs grep foo | nimlint --stdinfiles