status-im/status-go

View on GitHub

Showing 282 of 434 total issues

File resolver.go has 6877 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 resolver

Severity: Major
Found in contracts/resolver/resolver.go - About 2 wks to fix

    File uniswap.go has 6030 lines of code (exceeds 900 allowed). Consider refactoring.
    Open

    package token
    
    import (
        "github.com/ethereum/go-ethereum/common"
    )
    Severity: Major
    Found in services/wallet/token/uniswap.go - About 2 wks to fix

      File messenger.go has 4913 lines of code (exceeds 900 allowed). Consider refactoring.
      Open

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

        File manager.go has 4607 lines of code (exceeds 900 allowed). Consider refactoring.
        Open

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

          File communities_messenger_test.go has 3296 lines of code (exceeds 900 allowed). Consider refactoring.
          Open

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

            File messenger_handler.go has 3105 lines of code (exceeds 900 allowed). Consider refactoring.
            Open

            package protocol
            
            import (
                "context"
                "crypto/ecdsa"
            Severity: Major
            Found in protocol/messenger_handler.go - About 6 days to fix

              File data.go has 3098 lines of code (exceeds 900 allowed). Consider refactoring.
              Open

              package alias
              
              var animals = [...]string{
                  "Aardvark",
                  "Aardwolf",
              Severity: Major
              Found in protocol/identity/alias/data.go - About 6 days to fix

                File bridge.go has 3005 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 celer
                
                
                Severity: Major
                Found in contracts/celer/bridge.go - About 6 days to fix

                  PublicAPI has 311 methods (exceeds 21 allowed). Consider refactoring.
                  Open

                  type PublicAPI struct {
                      service  *Service
                      eventSub mailservers.EnvelopeEventSubscriber
                      log      log.Logger
                  }
                  Severity: Major
                  Found in services/ext/api.go - About 6 days to fix

                    Function newDefaultStore has 1716 lines of code (exceeds 500 allowed). Consider refactoring.
                    Open

                    func newDefaultStore() *DefaultStore {
                        return &DefaultStore{
                            TokenListID: []*Token{
                                &Token{
                                    Address:     common.HexToAddress("0x6b175474e89094c44da98b954eedeac495271d0f"),
                    Severity: Major
                    Found in services/wallet/token/tokenstore.go - About 6 days to fix

                      File snt.go has 2682 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 snt
                      
                      
                      Severity: Major
                      Found in contracts/snt/snt.go - About 5 days to fix

                        File message_persistence.go has 2611 lines of code (exceeds 900 allowed). Consider refactoring.
                        Open

                        package protocol
                        
                        import (
                            "context"
                            "database/sql"
                        Severity: Major
                        Found in protocol/message_persistence.go - About 5 days to fix

                          Manager has 225 methods (exceeds 21 allowed). Consider refactoring.
                          Open

                          type Manager struct {
                              persistence                  *Persistence
                              encryptor                    *encryption.Protocol
                              ensSubscription              chan []*ens.VerificationRecord
                              subscriptions                []chan *Subscription
                          Severity: Major
                          Found in protocol/communities/manager.go - About 4 days to fix

                            File l1Bridge.go has 2308 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 hopBridge
                            
                            
                            Severity: Major
                            Found in contracts/hop/bridge/l1Bridge.go - About 4 days to fix

                              File community.go has 2076 lines of code (exceeds 900 allowed). Consider refactoring.
                              Open

                              package communities
                              
                              import (
                                  "bytes"
                                  "crypto/ecdsa"
                              Severity: Major
                              Found in protocol/communities/community.go - About 3 days to fix

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

                                type Messenger struct {
                                    node                      types.Node
                                    server                    *p2p.Server
                                    peerStore                 *mailservers.PeerStore
                                    config                    *config
                                Severity: Major
                                Found in protocol/messenger.go - About 3 days to fix

                                  File messenger_test.go has 1967 lines of code (exceeds 900 allowed). Consider refactoring.
                                  Open

                                  package protocol
                                  
                                  import (
                                      "context"
                                      "encoding/hex"
                                  Severity: Major
                                  Found in protocol/messenger_test.go - About 3 days to fix

                                    File geth_backend.go has 1962 lines of code (exceeds 900 allowed). Consider refactoring.
                                    Open

                                    package api
                                    
                                    import (
                                        "context"
                                        "database/sql"
                                    Severity: Major
                                    Found in api/geth_backend.go - About 3 days to fix

                                      File communities_events_utils_test.go has 1892 lines of code (exceeds 900 allowed). Consider refactoring.
                                      Open

                                      package protocol
                                      
                                      import (
                                          "context"
                                          "errors"
                                      Severity: Major
                                      Found in protocol/communities_events_utils_test.go - About 3 days to fix

                                        Community has 163 methods (exceeds 21 allowed). Consider refactoring.
                                        Open

                                        type Community struct {
                                            config     *Config
                                            mutex      sync.Mutex
                                            timesource common.TimeSource
                                            encryptor  DescriptionEncryptor
                                        Severity: Major
                                        Found in protocol/communities/community.go - About 3 days to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language