Fix case in errcheck name

This commit is contained in:
Herman Schaaf
2016-06-15 18:07:08 +08:00
parent 4a7ccfe0b2
commit 24f1ce2f30
2 changed files with 3 additions and 4 deletions

View File

@@ -1,13 +1,13 @@
package check
// Errcheck is the check for the errcheck command
type Errcheck struct {
// ErrCheck is the check for the errcheck command
type ErrCheck struct {
Dir string
Filenames []string
}
// Name returns the name of the display name of the command
func (e Errcheck) Name() string {
func (c ErrCheck) Name() string {
return "errcheck"
}

View File

@@ -183,7 +183,6 @@ func newChecksResp(repo string, forceRefresh bool) (checksResp, error) {
check.GoLint{Dir: dir, Filenames: filenames},
check.GoCyclo{Dir: dir, Filenames: filenames},
check.License{Dir: dir, Filenames: []string{}},
check.Errcheck{Dir: dir, Filenames: filenames},
check.Misspell{Dir: dir, Filenames: filenames},
check.IneffAssign{Dir: dir, Filenames: filenames},
check.ErrCheck{Dir: dir, Filenames: filenames},