mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
lintpack/gocritic: update lintpack & gocritic versions
update lintpack & gocritic versions to support all the new gocritic checks
This commit is contained in:
parent
f5902eb01f
commit
37e6995b45
86 changed files with 3092 additions and 458 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue