Permalink
Browse files

Use new, stateful lint API

  • Loading branch information...
1 parent 1808e1b commit 5209bb5ade5cd85f05bd736811e0b241fcdff0da @dominikh committed Nov 19, 2016
Showing with 113 additions and 96 deletions.
  1. +2 −1 cmd/staticcheck/staticcheck.go
  2. +109 −94 lint.go
  3. +2 −1 lint_test.go
@@ -16,5 +16,6 @@ func main() {
}
args = append(args, arg)
}
- lintutil.ProcessArgs("staticcheck", staticcheck.Funcs, args)
+ c := staticcheck.NewChecker()
+ lintutil.ProcessArgs("staticcheck", c, args)
}
Oops, something went wrong.

0 comments on commit 5209bb5

Please sign in to comment.