waku-org/go-waku

View on GitHub
waku/v2/protocol/rln/waku_rln_relay.go

Summary

Maintainability
A
3 hrs
Test Coverage
C
78%

Method WakuRLNRelay.ValidateMessage has 70 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (rlnRelay *WakuRLNRelay) ValidateMessage(msg *pb.WakuMessage, optionalTime *time.Time) (messageValidationResult, error) {
    if msg == nil {
        return validationError, errors.New("nil message")
    }

Severity: Minor
Found in waku/v2/protocol/rln/waku_rln_relay.go - About 1 hr to fix

    Method WakuRLNRelay.ValidateMessage has 12 return statements (exceeds 4 allowed).
    Open

    func (rlnRelay *WakuRLNRelay) ValidateMessage(msg *pb.WakuMessage, optionalTime *time.Time) (messageValidationResult, error) {
        if msg == nil {
            return validationError, errors.New("nil message")
        }
    
    
    Severity: Major
    Found in waku/v2/protocol/rln/waku_rln_relay.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status