lintpack/gocritic: update lintpack & gocritic versions

update lintpack & gocritic versions to support all the new gocritic checks
This commit is contained in:
David López 2018-12-20 18:02:50 +01:00 committed by Isaev Denis
parent f5902eb01f
commit 37e6995b45
86 changed files with 3092 additions and 458 deletions

View file

@ -8,7 +8,6 @@ import (
"path/filepath"
"runtime"
"runtime/debug"
"strings"
"sync"
_ "github.com/go-critic/checkers" // this import register checkers
@ -41,8 +40,7 @@ func (lint Gocritic) Run(ctx context.Context, lintCtx *linter.Context) ([]result
continue
}
params := s.SettingsPerCheck[strings.ToLower(info.Name)]
c := lintpack.NewChecker(lintpackCtx, info, params)
c := lintpack.NewChecker(lintpackCtx, info)
enabledCheckers = append(enabledCheckers, c)
}