nimlint icon indicating copy to clipboard operation
nimlint copied to clipboard

`nimlint --overwrite`, `nimlint -o:outfile`, `nimlint --outdir:dir`, `find . | nimlint --stdinfiles`

Open timotheecour opened this issue 3 years ago • 0 comments

  • [ ] 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 to outfile

  • [ ] nimlint --outdir:dir write modified file to outfile = 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 bloat nimlint eg: rg . -t nim | nimlint --stdinfiles git ls-files | xargs grep foo | nimlint --stdinfiles

timotheecour avatar Dec 06 '20 22:12 timotheecour