mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
#158 add --vendor flag for golint check (not sure yet if others need it too)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user