code: func (gosec *Analyzer) AppendError(file string, err error) {
  	// Do not report the error for empty packages (e.g. files excluded from build with a tag)
  	r := regexp.MustCompile(`no buildable Go source files in`)
  	if r.MatchString(err.Error()) {
  		return
  	}
  	errors := []Error{}
  	if ferrs, ok := gosec.errors[file]; ok {
  		errors = ferrs
  	}
  	ferr := NewError(0, 0, err.Error())
  	errors = append(errors, *ferr)
  	gosec.errors[file] = errors
  }
docs: // AppendError appends an error to the file errors