streamdal/go-sdk

View on GitHub

Showing 23 of 36 total issues

Method Streamdal.runStep has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (s *Streamdal) runStep(ctx context.Context, aud *protos.Audience, step *protos.PipelineStep, data []byte, isr *protos.InterStepResult) (*protos.WASMResponse, error) {
Severity: Minor
Found in go_sdk.go - About 35 mins to fix

    Method Streamdal.createFunction has 5 return statements (exceeds 4 allowed).
    Open

    func (s *Streamdal) createFunction(step *protos.PipelineStep) (*function, error) {
        inst, err := s.createWASMInstance(step.GetXWasmBytes())
        if err != nil {
            return nil, errors.Wrap(err, "unable to create WASM instance")
        }
    Severity: Major
    Found in function.go - About 35 mins to fix

      Method Streamdal.runStep has 5 return statements (exceeds 4 allowed).
      Open

      func (s *Streamdal) runStep(ctx context.Context, aud *protos.Audience, step *protos.PipelineStep, data []byte, isr *protos.InterStepResult) (*protos.WASMResponse, error) {
          s.config.Logger.Debugf("Running step '%s'", step.Name)
      
          // Get WASM module
          f, err := s.getFunction(ctx, step)
      Severity: Major
      Found in go_sdk.go - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language