mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 12:05:52 +00:00
Merge pull request #115 from GoASTScanner/bugfix
Temporarily disable typechecker fatal error
This commit is contained in:
commit
72caf3de41
1 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,6 @@
|
|||
package core
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go/ast"
|
||||
"go/importer"
|
||||
"go/parser"
|
||||
|
@ -126,7 +125,10 @@ func (gas *Analyzer) process(filename string, source interface{}) error {
|
|||
conf := types.Config{Importer: importer.Default()}
|
||||
gas.context.Pkg, err = conf.Check("pkg", gas.context.FileSet, []*ast.File{root}, gas.context.Info)
|
||||
if err != nil {
|
||||
return fmt.Errorf(`Error during type checking: "%s"`, err)
|
||||
// TODO(gm) Type checker not currently considering all files within a package
|
||||
// see: issue #113
|
||||
gas.logger.Printf(`Error during type checking: "%s"`, err)
|
||||
err = nil
|
||||
}
|
||||
|
||||
gas.context.Imports = NewImportInfo()
|
||||
|
|
Loading…
Reference in a new issue