code: func (gosec *Analyzer) ParseErrors(pkg *packages.Package) error {
  	if len(pkg.Errors) == 0 {
  		return nil
  	}
  	for _, pkgErr := range pkg.Errors {
  		parts := strings.Split(pkgErr.Pos, ":")
  		file := parts[0]
  		var err error
  		var line int
  		if len(parts) > 1 {
  			if line, err = strconv.Atoi(parts[1]); err != nil {
  				return fmt.Errorf("parsing line: %v", err)
  			}
  		}
  		var column int
  		if len(parts) > 2 {
  			if column, err = strconv.Atoi(parts[2]); err != nil {
  				return fmt.Errorf("parsing column: %v", err)
  			}
  		}
  		msg := strings.TrimSpace(pkgErr.Msg)
  		newErr := NewError(line, column, msg)
  		if errSlice, ok := gosec.errors[file]; ok {
  			gosec.errors[file] = append(errSlice, *newErr)
  		} else {
  			errSlice = []Error{}
  			gosec.errors[file] = append(errSlice, *newErr)
  		}
  	}
  	return nil
  }
docs: // ParseErrors parses the errors from given package