bradleyfalzon / revgrep

Filters output from static analysis tools, showing only recently changed lines of code
Apache License 2.0
103 stars 15 forks source link

Handle subdirectories #3

Closed bradleyfalzon closed 8 years ago

bradleyfalzon commented 8 years ago

You should be able to run revgrep from within a sub folder of the VCS and only those files are matched.

bradleyfalzon commented 8 years ago
[bradleyf@srv4 git (master %)]$ go vet ./...
main.go:3: missing argument for Sprintf("%s"): format reads arg 1, have only 0 args
untracked.go:2: missing argument for Sprintf("%v"): format reads arg 1, have only 0 args
exit status 1
dir/main.go:3: missing argument for Sprintf("%s"): format reads arg 1, have only 0 args
exit status 1
[bradleyf@srv4 git (master %)]$ go vet ./... |& revgrep
dir/main.go:3: missing argument for Sprintf("%s"): format reads arg 1, have only 0 args
[bradleyf@srv4 git (master %)]$ cd dir/
[bradleyf@srv4 dir (master %)]$ go vet ./... |& revgrep
main.go:3: missing argument for Sprintf("%s"): format reads arg 1, have only 0 args