Showing 498 of 498 total issues
File messenger_handlers.go
has 1120 lines of code (exceeds 900 allowed). Consider refactoring. Open
Open
//nolint
// Code generated by generate_handlers.go. DO NOT EDIT.
// source: generate_handlers.go
package protocol
File sync_device_test.go
has 1116 lines of code (exceeds 900 allowed). Consider refactoring. Open
Open
package pairing
import (
"context"
"encoding/json"
ClientWithFallback
has 52 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type ClientWithFallback struct {
ChainID uint64
main *ethclient.Client
fallback *ethclient.Client
mainLimiter *RPCRpsLimiter
sqlitePersistence
has 52 methods (exceeds 21 allowed). Consider refactoring. Open
Open
func (db sqlitePersistence) saveProfileShowcasePreferencesClock(tx *sql.Tx, clock uint64) error {
_, err := tx.Exec(upsertProfileShowcasePreferencesQuery, clock, clock)
return err
}
HopL2ArbitrumBridgeSession
has 51 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type HopL2ArbitrumBridgeSession struct {
Contract *HopL2ArbitrumBridge // 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
}
File messenger_mention.go
has 1102 lines of code (exceeds 900 allowed). Consider refactoring. Open
Open
package protocol
// this is a reimplementation of the mention feature in status-react
// reference implementation: https://github.com/status-im/status-react/blob/972347963498fc4a2bb8f85541e79ed0541698da/src/status_im/chat/models/mentions.cljs#L1
import (
HopL1HopBridgeSession
has 49 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type HopL1HopBridgeSession struct {
Contract *HopL1HopBridge // 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
}
Database
has 49 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type Database struct {
settings.DatabaseSettingsManager
*notificationssettings.NotificationsSettings
*walletsettings.WalletSettings
db *sql.DB
StatusNode
has 48 methods (exceeds 21 allowed). Consider refactoring. Open
Open
func (b *StatusNode) initServices(config *params.NodeConfig, mediaServer *server.MediaServer) error {
accountsFeed := &event.Feed{}
settingsFeed := &event.Feed{}
accDB, err := accounts.NewDB(b.appDB)
if err != nil {
HopL1Erc20BridgeSession
has 46 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type HopL1Erc20BridgeSession struct {
Contract *HopL1Erc20Bridge // 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
}
HopL1EthBridgeSession
has 45 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type HopL1EthBridgeSession struct {
Contract *HopL1EthBridge // 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
}
GethWakuWrapper
has 45 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type GethWakuWrapper struct {
waku *waku.Waku
}
gethWakuV2Wrapper
has 45 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type gethWakuV2Wrapper struct {
waku *wakuv2.Waku
}
TestClient
has 45 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type TestClient struct {
t *testing.T
// [][block, newBalance, nonceDiff]
balances map[common.Address][][]int
outgoingERC20Transfers map[common.Address][]testERC20Transfer
File messenger_contacts.go
has 1065 lines of code (exceeds 900 allowed). Consider refactoring. Open
Open
package protocol
import (
"context"
"crypto/ecdsa"
MessengerSuite
has 44 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type MessengerSuite struct {
MessengerBaseTestSuite
}
File commands_sequential.go
has 1057 lines of code (exceeds 900 allowed). Consider refactoring. Open
Open
package transfer
import (
"context"
"math/big"
Peer
has 43 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type Peer struct {
host common.WakuHost
rw p2p.MsgReadWriter
p2pPeer *p2p.Peer
logger *zap.Logger
API
has 43 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type API struct {
manager *account.GethManager
config *params.NodeConfig
db *accounts.Database
feed *event.Feed
MessengerCommunitiesTokenPermissionsSuite
has 43 methods (exceeds 21 allowed). Consider refactoring. Open
Open
type MessengerCommunitiesTokenPermissionsSuite struct {
suite.Suite
owner *Messenger
bob *Messenger
alice *Messenger