use gometalinter for calling misspell, closes #135

This commit is contained in:
Shawn Smith
2016-06-12 14:16:55 +09:00
parent 61771ca502
commit 5de474ef7b

View File

@@ -18,7 +18,7 @@ func (g Misspell) Weight() float64 {
// Percentage returns the percentage of .go files that pass gofmt
func (g Misspell) Percentage() (float64, []FileSummary, error) {
return GoTool(g.Dir, g.Filenames, []string{"gometalinter", "--deadline=180s", "--disable-all", "--linter", "misspell:misspell ./*.go:PATH:LINE:MESSAGE", "--enable=misspell"})
return GoTool(g.Dir, g.Filenames, []string{"gometalinter", "--deadline=180s", "--disable-all", "--enable=misspell"})
}
// Description returns the description of Misspell