duanruinong0619
duanruinong0619
2018-09-05 19:44

如何检查golang代码并忽略供应商库

已采纳

I want to use gometalinter on my local project, the problem is when I run it like gometalinter ./... its inspect also the vendor folder which I want to ignore, I try to find somthing and find this gometalinter ./... -excludepkg ./vendor... which doesnt help, also the vendor lib is inspected, any idea how to avoid it ?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • dongyongyu0789 dongyongyu0789 3年前

    Per gometalinter --help:

      --vendor                 Enable vendoring support (skips 'vendor' directories and sets GO15VENDOREXPERIMENT=1).
    
    点赞 评论 复制链接分享

相关推荐