#158 add --vendor flag for golint check (not sure yet if others need it too)

This commit is contained in:
Shawn Smith
2016-09-30 23:56:27 +09:00
parent cc582796c3
commit a5daf2f907

View File

@@ -18,7 +18,7 @@ func (g GoLint) Weight() float64 {
// Percentage returns the percentage of .go files that pass golint
func (g GoLint) Percentage() (float64, []FileSummary, error) {
return GoTool(g.Dir, g.Filenames, []string{"gometalinter", "--deadline=180s", "--disable-all", "--enable=golint", "--min-confidence=0.85"})
return GoTool(g.Dir, g.Filenames, []string{"gometalinter", "--deadline=180s", "--disable-all", "--enable=golint", "--min-confidence=0.85", "--vendor"})
}
// Description returns the description of go lint