waku-org/go-waku

View on GitHub
waku/v2/node/wakunode2_rln.go

Summary

Maintainability
A
2 hrs
Test Coverage
F
12%

Method WakuNode.setupRLNRelay has 58 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (w *WakuNode) setupRLNRelay() error {
    var err error

    if !w.opts.enableRLN {
        return nil
Severity: Minor
Found in waku/v2/node/wakunode2_rln.go - About 1 hr to fix

    Method WakuNode.setupRLNRelay has 8 return statements (exceeds 4 allowed).
    Open

    func (w *WakuNode) setupRLNRelay() error {
        var err error
    
        if !w.opts.enableRLN {
            return nil
    Severity: Major
    Found in waku/v2/node/wakunode2_rln.go - About 50 mins to fix

      Method WakuNode.startRlnRelay has 5 return statements (exceeds 4 allowed).
      Open

      func (w *WakuNode) startRlnRelay(ctx context.Context) error {
          rlnRelay := w.rlnRelay.(*rln.WakuRLNRelay)
      
          err := rlnRelay.Start(ctx)
          if err != nil {
      Severity: Major
      Found in waku/v2/node/wakunode2_rln.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status