Fantom-foundation/go-lachesis

View on GitHub

Showing 291 of 829 total issues

Method ContractDeactivatedDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
Open

func (it *ContractDeactivatedDelegationIterator) Next() bool {
    // If the iterator failed, stop iterating
    if it.fail != nil {
        return false
    }
Severity: Major
Found in gossip/sfc110/contract.go - About 45 mins to fix

    Method ContractUnstashedRewardsIterator.Next has 7 return statements (exceeds 4 allowed).
    Open

    func (it *ContractUnstashedRewardsIterator) Next() bool {
        // If the iterator failed, stop iterating
        if it.fail != nil {
            return false
        }
    Severity: Major
    Found in gossip/sfc110/contract.go - About 45 mins to fix

      Method ContractUpdatedStakerMetadataIterator.Next has 7 return statements (exceeds 4 allowed).
      Open

      func (it *ContractUpdatedStakerMetadataIterator) Next() bool {
          // If the iterator failed, stop iterating
          if it.fail != nil {
              return false
          }
      Severity: Major
      Found in gossip/sfc110/contract.go - About 45 mins to fix

        Method ContractPreparedToWithdrawStakeIterator.Next has 7 return statements (exceeds 4 allowed).
        Open

        func (it *ContractPreparedToWithdrawStakeIterator) Next() bool {
            // If the iterator failed, stop iterating
            if it.fail != nil {
                return false
            }
        Severity: Major
        Found in gossip/sfc202/contract.go - About 45 mins to fix

          Method Service.processSfc has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (s *Service) processSfc(block *inter.Block, receipts types.Receipts, blockFee *big.Int, sealEpoch bool, cheaters inter.Cheaters, statedb *state.StateDB) {
          Severity: Minor
          Found in gossip/sfc_index.go - About 45 mins to fix

            Function convertToPrometheusMetric has 7 return statements (exceeds 4 allowed).
            Open

            func convertToPrometheusMetric(name string, m interface{}) (prometheus.Collector, bool) {
                opts := prometheus.Opts{
                    Namespace: namespace,
                    Name:      prometheusDelims(name),
                }
            Severity: Major
            Found in metrics/prometheus/metrics.go - About 45 mins to fix

              Method ContractOwnershipTransferredIterator.Next has 7 return statements (exceeds 4 allowed).
              Open

              func (it *ContractOwnershipTransferredIterator) Next() bool {
                  // If the iterator failed, stop iterating
                  if it.fail != nil {
                      return false
                  }
              Severity: Major
              Found in gossip/sfc110/contract.go - About 45 mins to fix

                Method ContractWithdrawnStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                Open

                func (it *ContractWithdrawnStakeIterator) Next() bool {
                    // If the iterator failed, stop iterating
                    if it.fail != nil {
                        return false
                    }
                Severity: Major
                Found in gossip/sfc110/contract.go - About 45 mins to fix

                  Method ContractNetworkUpgradeActivatedIterator.Next has 7 return statements (exceeds 4 allowed).
                  Open

                  func (it *ContractNetworkUpgradeActivatedIterator) Next() bool {
                      // If the iterator failed, stop iterating
                      if it.fail != nil {
                          return false
                      }
                  Severity: Major
                  Found in gossip/sfc204/contract.go - About 45 mins to fix

                    Method ContractCreatedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                    Open

                    func (it *ContractCreatedStakeIterator) Next() bool {
                        // If the iterator failed, stop iterating
                        if it.fail != nil {
                            return false
                        }
                    Severity: Major
                    Found in gossip/sfc202/contract.go - About 45 mins to fix

                      Method ContractCreatedWithdrawRequestIterator.Next has 7 return statements (exceeds 4 allowed).
                      Open

                      func (it *ContractCreatedWithdrawRequestIterator) Next() bool {
                          // If the iterator failed, stop iterating
                          if it.fail != nil {
                              return false
                          }
                      Severity: Major
                      Found in gossip/sfc202/contract.go - About 45 mins to fix

                        Method ContractUpdatedOfflinePenaltyThresholdIterator.Next has 7 return statements (exceeds 4 allowed).
                        Open

                        func (it *ContractUpdatedOfflinePenaltyThresholdIterator) Next() bool {
                            // If the iterator failed, stop iterating
                            if it.fail != nil {
                                return false
                            }
                        Severity: Major
                        Found in gossip/sfc202/contract.go - About 45 mins to fix

                          Method ContractUpdatedStakerSfcAddressIterator.Next has 7 return statements (exceeds 4 allowed).
                          Open

                          func (it *ContractUpdatedStakerSfcAddressIterator) Next() bool {
                              // If the iterator failed, stop iterating
                              if it.fail != nil {
                                  return false
                              }
                          Severity: Major
                          Found in gossip/sfc110/contract.go - About 45 mins to fix

                            Method ContractWithdrawnDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                            Open

                            func (it *ContractWithdrawnDelegationIterator) Next() bool {
                                // If the iterator failed, stop iterating
                                if it.fail != nil {
                                    return false
                                }
                            Severity: Major
                            Found in gossip/sfc110/contract.go - About 45 mins to fix

                              Method ContractPreparedToWithdrawDelegationIterator.Next has 7 return statements (exceeds 4 allowed).
                              Open

                              func (it *ContractPreparedToWithdrawDelegationIterator) Next() bool {
                                  // If the iterator failed, stop iterating
                                  if it.fail != nil {
                                      return false
                                  }
                              Severity: Major
                              Found in gossip/sfc204/contract.go - About 45 mins to fix

                                Method ContractUpdatedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                Open

                                func (it *ContractUpdatedStakeIterator) Next() bool {
                                    // If the iterator failed, stop iterating
                                    if it.fail != nil {
                                        return false
                                    }
                                Severity: Major
                                Found in gossip/sfc204/contract.go - About 45 mins to fix

                                  Method ContractClaimedValidatorRewardIterator.Next has 7 return statements (exceeds 4 allowed).
                                  Open

                                  func (it *ContractClaimedValidatorRewardIterator) Next() bool {
                                      // If the iterator failed, stop iterating
                                      if it.fail != nil {
                                          return false
                                      }
                                  Severity: Major
                                  Found in gossip/sfc202/contract.go - About 45 mins to fix

                                    Method ContractDeactivatedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                    Open

                                    func (it *ContractDeactivatedStakeIterator) Next() bool {
                                        // If the iterator failed, stop iterating
                                        if it.fail != nil {
                                            return false
                                        }
                                    Severity: Major
                                    Found in gossip/sfc202/contract.go - About 45 mins to fix

                                      Method ContractIncreasedStakeIterator.Next has 7 return statements (exceeds 4 allowed).
                                      Open

                                      func (it *ContractIncreasedStakeIterator) Next() bool {
                                          // If the iterator failed, stop iterating
                                          if it.fail != nil {
                                              return false
                                          }
                                      Severity: Major
                                      Found in gossip/sfc110/contract.go - About 45 mins to fix

                                        Method ContractPartialWithdrawnByRequestIterator.Next has 7 return statements (exceeds 4 allowed).
                                        Open

                                        func (it *ContractPartialWithdrawnByRequestIterator) Next() bool {
                                            // If the iterator failed, stop iterating
                                            if it.fail != nil {
                                                return false
                                            }
                                        Severity: Major
                                        Found in gossip/sfc110/contract.go - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language