status-im/status-go

View on GitHub

Showing 348 of 496 total issues

MessengerResponse has 88 methods (exceeds 21 allowed). Consider refactoring.
Open

type MessengerResponse struct {
    Contacts                      []*Contact
    Installations                 []*multidevice.Installation
    Invitations                   []*GroupChatInvitation
    CommunityChanges              []*communities.CommunityChanges
Severity: Major
Found in protocol/messenger_response.go - About 1 day to fix

    File persistence.go has 1365 lines of code (exceeds 900 allowed). Consider refactoring.
    Open

    package protocol
    
    import (
        "bytes"
        "context"
    Severity: Major
    Found in protocol/persistence.go - About 1 day to fix

      API has 83 methods (exceeds 21 allowed). Consider refactoring.
      Open

      type API struct {
          s      *Service
          reader *Reader
          router *router.Router
      }
      Severity: Major
      Found in services/wallet/api.go - About 1 day to fix

        Messenger has 81 methods (exceeds 21 allowed). Consider refactoring.
        Open

        func (m *Messenger) dispatchToHandler(messageState *ReceivedMessageState, protoBytes []byte, msg *v1protocol.StatusMessage, filter transport.Filter, fromArchive bool) error {
            switch msg.ApplicationLayer.Type {
            
                   case protobuf.ApplicationMetadataMessage_CHAT_MESSAGE:
                return m.handleChatMessageProtobuf(messageState, protoBytes, msg, filter, fromArchive)
        Severity: Major
        Found in protocol/messenger_handlers.go - About 1 day to fix

          File api.go has 1305 lines of code (exceeds 900 allowed). Consider refactoring.
          Open

          package ext
          
          import (
              "context"
              "crypto/ecdsa"
          Severity: Major
          Found in services/ext/api.go - About 1 day to fix

            Database has 76 methods (exceeds 21 allowed). Consider refactoring.
            Open

            type Database struct {
                db                   *sql.DB
                SyncQueue            chan SyncSettingField
                changesSubscriptions []chan *SyncSettingField
                notifier             Notifier
            Severity: Major
            Found in multiaccounts/settings/database.go - About 1 day to fix

              File registrar.go has 1266 lines of code (exceeds 900 allowed). Consider refactoring.
              Open

              // Code generated - DO NOT EDIT.
              // This file is a generated binding and any manual changes will be lost.
              
              package registrar
              
              
              Severity: Major
              Found in contracts/registrar/registrar.go - About 1 day to fix

                File waku.go has 1246 lines of code (exceeds 900 allowed). Consider refactoring.
                Open

                // Copyright 2019 The Waku Library Authors.
                //
                // The Waku library is free software: you can redistribute it and/or modify
                // it under the terms of the GNU Lesser General Public License as published by
                // the Free Software Foundation, either version 3 of the License, or
                Severity: Major
                Found in waku/waku.go - About 1 day to fix

                  File client.go has 1239 lines of code (exceeds 900 allowed). Consider refactoring.
                  Open

                  package pushnotificationclient
                  
                  import (
                      "bytes"
                      "context"
                  Severity: Major
                  Found in protocol/pushnotificationclient/client.go - About 1 day to fix

                    File CommunityTokenDeployer.go has 1223 lines of code (exceeds 900 allowed). Consider refactoring.
                    Open

                    // Code generated - DO NOT EDIT.
                    // This file is a generated binding and any manual changes will be lost.
                    
                    package communitytokendeployer
                    
                    
                    Severity: Major
                    Found in contracts/community-tokens/deployer/CommunityTokenDeployer.go - About 1 day to fix

                      Client has 67 methods (exceeds 21 allowed). Consider refactoring.
                      Open

                      type Client struct {
                          persistence        *Persistence
                          messagePersistence MessagePersistence
                      
                          config *Config
                      Severity: Major
                      Found in protocol/pushnotificationclient/client.go - About 1 day to fix

                        CelerFilterer has 66 methods (exceeds 21 allowed). Consider refactoring.
                        Open

                        type CelerFilterer struct {
                            contract *bind.BoundContract // Generic contract wrapper for the low level calls
                        }
                        Severity: Major
                        Found in contracts/celer/bridge.go - About 1 day to fix

                          File activity_center_persistence.go has 1212 lines of code (exceeds 900 allowed). Consider refactoring.
                          Open

                          package protocol
                          
                          import (
                              "context"
                              "database/sql"
                          Severity: Major
                          Found in protocol/activity_center_persistence.go - About 1 day to fix

                            File activity_test.go has 1194 lines of code (exceeds 900 allowed). Consider refactoring.
                            Open

                            package activity
                            
                            import (
                                "context"
                                "database/sql"
                            Severity: Major
                            Found in services/wallet/activity/activity_test.go - About 1 day to fix

                              Transport has 62 methods (exceeds 21 allowed). Consider refactoring.
                              Open

                              type Transport struct {
                                  waku        types.Waku
                                  api         types.PublicWakuAPI // only PublicWakuAPI implements logic to send messages
                                  keysManager *transportKeysManager
                                  filters     *FiltersManager
                              Severity: Major
                              Found in protocol/transport/transport.go - About 1 day to fix

                                MessengerCommunitiesSuite has 62 methods (exceeds 21 allowed). Consider refactoring.
                                Open

                                type MessengerCommunitiesSuite struct {
                                    suite.Suite
                                    owner *Messenger
                                    bob   *Messenger
                                    alice *Messenger
                                Severity: Major
                                Found in protocol/communities_messenger_test.go - About 1 day to fix

                                  Method Messenger.RequestImportDiscordCommunity has 682 lines of code (exceeds 500 allowed). Consider refactoring.
                                  Open

                                  func (m *Messenger) RequestImportDiscordCommunity(request *requests.ImportDiscordCommunity) {
                                      go func() {
                                  
                                          totalImportChunkCount := len(request.FilesToImport)
                                  
                                  
                                  Severity: Major
                                  Found in protocol/messenger_communities_import_discord.go - About 1 day to fix

                                    File uniswapv2pair.go has 1155 lines of code (exceeds 900 allowed). Consider refactoring.
                                    Open

                                    // Code generated - DO NOT EDIT.
                                    // This file is a generated binding and any manual changes will be lost.
                                    
                                    package uniswapv2
                                    
                                    
                                    Severity: Major
                                    Found in contracts/uniswapV2/uniswapv2pair.go - About 1 day to fix

                                      CelerSession has 57 methods (exceeds 21 allowed). Consider refactoring.
                                      Open

                                      type CelerSession struct {
                                          Contract     *Celer            // Generic contract binding to set the session for
                                          CallOpts     bind.CallOpts     // Call options to use throughout this session
                                          TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
                                      }
                                      Severity: Major
                                      Found in contracts/celer/bridge.go - About 1 day to fix

                                        HopL2OptimismBridgeSession has 53 methods (exceeds 21 allowed). Consider refactoring.
                                        Open

                                        type HopL2OptimismBridgeSession struct {
                                            Contract     *HopL2OptimismBridge // Generic contract binding to set the session for
                                            CallOpts     bind.CallOpts        // Call options to use throughout this session
                                            TransactOpts bind.TransactOpts    // Transaction auth options to use throughout this session
                                        }
                                        Severity: Major
                                        Found in contracts/hop/l2Contracts/l2OptimismBridge/l2OptimismBridge.go - About 7 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language