Showing 519 of 519 total issues
Avoid deeply nested control flow statements. Open
Open
for {
select {
case <-downloadTicker.C:
done := true
for i = startIndex; i < endIndex; i++ {
Method mailServer.processRequestInBundles
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
iter Iterator,
bloom []byte,
topics [][]byte,
limit int,
timeout time.Duration,
Avoid deeply nested control flow statements. Open
Open
if event.BlockNumber != nil {
for _, address := range event.Accounts {
if _, ok := maxKnownBlocks[address]; !ok {
maxKnownBlocks[address] = event.BlockNumber
}
Function NewAPI
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
func NewAPI(ctx context.Context, acc *accounts.Database, rpcClient *rpc.Client, accountsManager *account.GethManager, pendingTracker *transactions.PendingTxTracker, keyStoreDir string, downloader *ipfs.Downloader, httpServer *server.MediaServer) *API {
Function NewService
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
func NewService(db *sql.DB, accountsDB *accounts.Database, accountFeed *event.Feed, eventFeed *event.Feed, rpcClient *statusrpc.Client, tokenManager *token.Manager, marketManager *market.Manager, balanceCache balance.CacheIface) *Service {
Avoid deeply nested control flow statements. Open
Open
} else if typ.T == abi.BoolTy {
val, err = toBool(f, data[f.Name])
} else {
err = fmt.Errorf("type %s is not supported", f.Type)
}
Avoid deeply nested control flow statements. Open
Open
} else if t.ERC1155TransferTx != nil {
return types.HexBytes("")
}
Avoid deeply nested control flow statements. Open
Open
if sendPeriod < 60 { //Stop the growing if the timer is > 60s to at least retry every minute
sendPeriod = sendPeriod * 2
}
Method Service.GetOwnedCollectibles
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
ctx context.Context,
chainIDs []walletCommon.ChainID,
addresses []common.Address,
filter Filter,
offset int,
Avoid deeply nested control flow statements. Open
Open
if err != nil {
return nil, err
}
Avoid deeply nested control flow statements. Open
Open
if err = json.Unmarshal(jsonString, value.Interface()); err != nil {
return nil, err
}
Avoid deeply nested control flow statements. Open
Open
if err != nil {
return err
}
Avoid deeply nested control flow statements. Open
Open
if !skipUpdateUnviewedCountForAlbums {
messages, err := m.persistence.AlbumMessages(chat.ID, image.AlbumId)
if err != nil {
return err
}
Avoid deeply nested control flow statements. Open
Open
if err != nil {
return nil, err
}
Function NewMessage
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
func NewMessage(from types.Address, to *types.Address, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte, checkNonce bool) Message {
Avoid deeply nested control flow statements. Open
Open
if err != nil {
return nil, err
}
Avoid deeply nested control flow statements. Open
Open
if existingHash == hash {
hasArchive = true
break
}
Method API.GetOwnedCollectiblesAsync
has 8 arguments (exceeds 6 allowed). Consider refactoring. Open
Open
func (api *API) GetOwnedCollectiblesAsync(requestID int32, chainIDs []wcommon.ChainID, addresses []common.Address, filter collectibles.Filter, offset int, limit int, dataType collectibles.CollectibleDataType, fetchCriteria collectibles.FetchCriteria) error {
Avoid deeply nested control flow statements. Open
Open
} else if t.ERC1155TransferTx != nil {
return types.Address(t.ERC1155TransferTx.Recipient)
}
Avoid deeply nested control flow statements. Open
Open
if err != nil {
return nil, err
}