Updated staticcheck
This commit is contained in:
parent
5dc1fd0f86
commit
99f83542f6
34 changed files with 6144 additions and 2537 deletions
|
|
@ -20,11 +20,8 @@ func main() {
|
|||
simple.NewChecker(),
|
||||
staticcheck.NewChecker(),
|
||||
stylecheck.NewChecker(),
|
||||
&unused.Checker{},
|
||||
}
|
||||
|
||||
uc := unused.NewChecker(unused.CheckAll)
|
||||
uc.ConsiderReflection = true
|
||||
checkers = append(checkers, unused.NewLintChecker(uc))
|
||||
|
||||
lintutil.ProcessFlagSet(checkers, fs)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue