mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
use gometalinter for calling misspell, closes #135
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user