Updated staticcheck

This commit is contained in:
kolaente 2019-04-22 12:59:42 +02:00
parent 5dc1fd0f86
commit 99f83542f6
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
34 changed files with 6144 additions and 2537 deletions

View file

@ -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)
}