Closed flowirtz closed 3 weeks ago
Currently some producers fail if they are unable to extract the code correctly, e.g. see this snippet from producers/semgrep/main.go:76:
producers/semgrep/main.go:76
cs, err := context.ExtractCode(iss) if err != nil { return nil, err } iss.ContextSegment = &cs
Instead, we should log a warning, and just keep the ContextSegment empty.
ContextSegment
Currently some producers fail if they are unable to extract the code correctly, e.g. see this snippet from
producers/semgrep/main.go:76
:Instead, we should log a warning, and just keep the
ContextSegment
empty.