commit | 3f171416dc3bb8a52fb878919d68ef3e780e42ba | [log] [tgz] |
---|---|---|
author | David Symonds <dsymonds@golang.org> | Mon Sep 08 16:19:00 2014 +1000 |
committer | David Symonds <dsymonds@golang.org> | Mon Sep 08 16:20:39 2014 +1000 |
tree | d0b3eccec76417c02bf4d16cb3333cb20a43e8f8 | |
parent | ae65d273b9f43866a987aed78633d2c9ff1966ce [diff] |
Set a no-op error reporter to encourage the typechecker to do more work.
diff --git a/lint.go b/lint.go index 53a8655..e3957d0 100644 --- a/lint.go +++ b/lint.go
@@ -200,8 +200,9 @@ var gcImporter = gcimporter.Import func (p *pkg) typeCheck() error { - // Do typechecking without errors so we do as much as possible. config := &types.Config{ + // By setting a no-op error reporter, the type checker does as much work as possible. + Error: func(error) {}, Import: gcImporter, } info := &types.Info{