status-im/status-go

View on GitHub
services/ext/service.go

Summary

Maintainability
B
5 hrs
Test Coverage
F
22%

Service has 23 methods (exceeds 21 allowed). Consider refactoring.
Open

type Service struct {
    messenger       *protocol.Messenger
    identity        *ecdsa.PrivateKey
    cancelMessenger chan struct{}
    storage         db.TransactionalStorage
Severity: Minor
Found in services/ext/service.go - About 2 hrs to fix

    Function buildMessengerOptions has 16 arguments (exceeds 6 allowed). Consider refactoring.
    Open

        config params.NodeConfig,
        identity *ecdsa.PrivateKey,
        appDb *sql.DB,
        walletDb *sql.DB,
        httpServer *server.MediaServer,
    Severity: Major
    Found in services/ext/service.go - About 1 hr to fix

      Method Service.InitProtocol has 12 arguments (exceeds 6 allowed). Consider refactoring.
      Open

      func (s *Service) InitProtocol(nodeName string, identity *ecdsa.PrivateKey, appDb, walletDb *sql.DB, httpServer *server.MediaServer, multiAccountDb *multiaccounts.Database, acc *multiaccounts.Account, accountManager *account.GethManager, rpcClient *rpc.Client, walletService *wallet.Service, communityTokensService *communitytokens.Service, wakuService *wakuv2.Waku, logger *zap.Logger) error {
      Severity: Major
      Found in services/ext/service.go - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status