status-im/status-go

View on GitHub
protocol/encryption/protocol.go

Summary

Maintainability
B
6 hrs
Test Coverage
C
78%

Protocol has 41 methods (exceeds 21 allowed). Consider refactoring.
Open

type Protocol struct {
    encryptor     *encryptor
    secret        *sharedsecret.SharedSecret
    multidevice   *multidevice.Multidevice
    publisher     *publisher.Publisher
Severity: Minor
Found in protocol/encryption/protocol.go - About 5 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                        if err != nil {
                            return nil, err
                        }
    Severity: Major
    Found in protocol/encryption/protocol.go - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if err != nil {
                              return nil, err
                          }
      Severity: Major
      Found in protocol/encryption/protocol.go - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status