synapsecns/sanguine

View on GitHub

Showing 1,971 of 13,422 total issues

Function TestNewBufferedPipe has 6 return statements (exceeds 4 allowed).
Open

func TestNewBufferedPipe(t *testing.T) {
    t.Run("Write and read data", func(t *testing.T) {
        pipe := processlog.NewBufferedPipe()

        testData := []byte("Hello, World!")
Severity: Major
Found in core/processlog/stream_test.go - About 40 mins to fix

    Method testJaeger.StartJaegerPyroscopeUI has 6 return statements (exceeds 4 allowed).
    Open

    func (j *testJaeger) StartJaegerPyroscopeUI(ctx context.Context) *uiResource {
        // can't enable if pyroscope is disabled
        // TODO: add a warning here.
        if core.HasEnv(internal.JaegerUIEndpoint) || !j.cfg.enablePyroscope {
            return &uiResource{
    Severity: Major
    Found in core/metrics/localmetrics/jaeger.go - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

        if (
          comps.length > 2 ||
          !comps[0].match(/^-?[0-9]*$/) ||
          (comps[1] && !comps[1].match(/^[0-9]*$/)) ||
          value === '.' ||
      Severity: Major
      Found in packages/synapse-interface/utils/bigint/format.ts - About 40 mins to fix

        Method testJaeger.StartJaegerServer has 6 return statements (exceeds 4 allowed).
        Open

        func (j *testJaeger) StartJaegerServer(ctx context.Context) *uiResource {
            if core.HasEnv(internal.JaegerEndpoint) && !core.HasEnv(internal.JaegerUIEndpoint) {
                j.tb.Fatalf("%s is set but %s is not, please remove %s or set %s", internal.JaegerEndpoint, internal.JaegerUIEndpoint, internal.JaegerEndpoint, internal.JaegerUIEndpoint)
            }
        
        
        Severity: Major
        Found in core/metrics/localmetrics/jaeger.go - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

            if (!((gap ?? false) || (gapX ?? false) || (gapY ?? false))) {
              novelClassName += GAP_LOOKUP[0]
            }
          Severity: Major
          Found in packages/explorer-ui/components/tailwind/Grid.tsx - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

              if (!((gap ?? false) || (gapX ?? false) || (gapY ?? false))) {
                novelClassName += GAP_LOOKUP[0]
              }
            Severity: Major
            Found in packages/synapse-interface/components/ui/tailwind/Grid.tsx - About 40 mins to fix

              Function NewTestContractWatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func NewTestContractWatcher(ctx context.Context, tb testing.TB, contractListener ContractFilterer, heightWatcher chainwatcher.BlockHeightWatcher, requiredConfirmations uint) TestContractWatcher {
              Severity: Minor
              Found in ethergo/chain/watcher/export_test.go - About 35 mins to fix

                Function MockTx has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func MockTx(ctx context.Context, t *testing.T, simulatedBackend backends.SimulatedTestBackend, acct *keystore.Key, txType uint8) *types.Transaction {
                Severity: Minor
                Found in ethergo/mocks/tx.go - About 35 mins to fix

                  Method Service.GetNonceAttemptsByStatus has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (_m *Service) GetNonceAttemptsByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, nonce uint64, matchStatuses ...db.Status) ([]db.TX, error) {
                  Severity: Minor
                  Found in ethergo/submitter/db/mocks/service.go - About 35 mins to fix

                    Function getForkClientHandler has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func getForkClientHandler(ctx context.Context, cmd *exec.Cmd, chainID uint64, processPort int, clientFunc func(client *ethclient.Client)) func() error {
                    Severity: Minor
                    Found in ethergo/forker/fork.go - About 35 mins to fix

                      Method ILightInbox.VerifyStateWithAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      func (_m *ILightInbox) VerifyStateWithAttestation(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
                      Severity: Minor
                      Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 35 mins to fix

                        Method ILightInbox.SubmitStateReportWithSnapshot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        func (_m *ILightInbox) SubmitStateReportWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) {
                        Severity: Minor
                        Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 35 mins to fix

                          Method Store.GetNonceAttemptsByStatus has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func (s *Store) GetNonceAttemptsByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, nonce uint64, matchStatuses ...db.Status) (txs []db.TX, err error) {
                          Severity: Minor
                          Found in ethergo/submitter/db/txdb/store.go - About 35 mins to fix

                            Method IOrigin.WatchSent has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func (_m *IOrigin) WatchSent(opts *bind.WatchOpts, sink chan<- *origin.OriginSent, messageHash [][32]byte, nonce []uint32, destination []uint32) (event.Subscription, error) {
                            Severity: Minor
                            Found in agents/contracts/origin/mocks/i_origin.go - About 35 mins to fix

                              Function setupOtterscan has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              func setupOtterscan(ctx context.Context, tb testing.TB, pool *dockertest.Pool, anvilResource *dockertest.Resource, args *OptionBuilder) (string, error) {
                              Severity: Minor
                              Found in ethergo/backends/anvil/anvil.go - About 35 mins to fix

                                Function NewGenericPassword has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func NewGenericPassword(service string, account string, label string, data []byte, accessGroup string) interface{} {
                                Severity: Minor
                                Found in contrib/opbot/signoz/example/keychain/unsupported.go - About 35 mins to fix

                                  Function GenerateABIFromEtherscan has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func GenerateABIFromEtherscan(ctx context.Context, chainID uint32, url string, contractAddress common.Address, fileName, solVersion, pkgName string) error {
                                  Severity: Minor
                                  Found in tools/abigen/internal/generate.go - About 35 mins to fix

                                    Function NewGenericPassword has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func NewGenericPassword(service string, account string, label string, data []byte, accessGroup string) interface{} {
                                    Severity: Minor
                                    Found in contrib/opbot/signoz/example/keychain/darwin.go - About 35 mins to fix

                                      Method Store.StoreRelayableAgentStatus has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          ctx context.Context,
                                          agentAddress common.Address,
                                          staleFlag agentTypes.AgentFlagType,
                                          updatedFlag agentTypes.AgentFlagType,
                                          domain uint32,
                                      Severity: Minor
                                      Found in agents/agents/guard/db/sql/base/relayable_agent_status.go - About 35 mins to fix

                                        Method IBondingManager.Initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func (_m *IBondingManager) Initialize(opts *bind.TransactOpts, origin_ common.Address, destination_ common.Address, inbox_ common.Address, summit_ common.Address) (*types.Transaction, error) {
                                        Severity: Minor
                                        Found in agents/contracts/bondingmanager/mocks/i_bonding_manager.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language