Introduce (experimental) Project Config Based Run (reviewdog.yml)
Project Configuration Based Run
[experimental]
reviewdog can also be controlled via the reviewdog.yml configuration file instead of "-f" or "-efm" arguments.
With reviewdog.yml, you can run the same commands both CI service and local
environment including editor intergration with ease.
reviewdog.yml
runner:
<tool-name>:
cmd: <command> # (required)
errorformat: # (optional if there is supporeted format for <tool-name>. see reviewdog -list)
- <list of errorformat>
name: <tool-name> # (optional. you can overwrite <tool-name> defined by runner key)
# examples
golint:
cmd: golint ./...
errorformat:
- "%f:%l:%c: %m"
govet:
cmd: go tool vet -all -shadowstrict .
$ reviewdog -diff="git diff master"
project/run_test.go:61:28: [golint] error strings should not end with punctuation
project/run.go:57:18: [errcheck] defer os.Setenv(name, os.Getenv(name))
project/run.go:58:12: [errcheck] os.Setenv(name, "")
# You can use -conf to specify config file path.
$ reviewdog -ci=droneio -conf=./reviewdog.yml
Output format for project config based run is one of following formats.
<file>: [<tool name>] <message>
<file>:<lnum>: [<tool name>] <message>
<file>:<lnum>:<col>: [<tool name>] <message>
0.9.3 (2016-12-15)
- Document for Project Configuration Based Run #59 (haya14busa)
- ProjectConf: fix data race of DiffCmd #56 (haya14busa)
- ProjectConf: dogfooding #54 (haya14busa)
- ProjectConf: remove 'isatty' because isatty==false in CI server #55 (haya14busa)
- ProjectConf: hide secret environment variables from command executions #53 (haya14busa)
- ProjectConf: introduce project based run #52 (haya14busa)
- Refactor comment writer #51 (haya14busa)
- ProjectConf: reforctoring: run reviewdog by project config #50 (haya14busa)
- CI: introduce codecov #49 (haya14busa)
- ProjectConf: introduce config struct and Parse func #48 (haya14busa)
- CI: introduce errcheck #45 (haya14busa)
- use "golang.org/x/net/context" for now to make reviewdog buildable in pre go 1.7 #44 (haya14busa)
- update travis sec token #42 (haya14busa)