LoginSignup
3
2

More than 5 years have passed since last update.

gometalinterでerrorのみ表示する

Last updated at Posted at 2016-11-16

gometalinterを実行するとwarningとerrorが表示されるので、
errorのみ確認したい場合は --errors オプションを付ける。
https://github.com/joefitzgerald/gometalinter-linter/issues/18

$ ## warningとerrorが表示される
$ gometalinter --fast --vendor ./...
db/mysql.go:4:2:warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
$ 
$ ## errorのみ表示される
$ gometalinter --fast --vendor --errors ./...
$ 
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2