Showing 1,971 of 13,422 total issues
Function TestNewBufferedPipe
has 6 return statements (exceeds 4 allowed). Open
Open
func TestNewBufferedPipe(t *testing.T) {
t.Run("Write and read data", func(t *testing.T) {
pipe := processlog.NewBufferedPipe()
testData := []byte("Hello, World!")
Method testJaeger.StartJaegerPyroscopeUI
has 6 return statements (exceeds 4 allowed). Open
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{
Consider simplifying this complex logical expression. Open
Open
if (
comps.length > 2 ||
!comps[0].match(/^-?[0-9]*$/) ||
(comps[1] && !comps[1].match(/^[0-9]*$/)) ||
value === '.' ||
Method testJaeger.StartJaegerServer
has 6 return statements (exceeds 4 allowed). Open
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)
}
Consider simplifying this complex logical expression. Open
Open
if (!((gap ?? false) || (gapX ?? false) || (gapY ?? false))) {
novelClassName += GAP_LOOKUP[0]
}
Consider simplifying this complex logical expression. Open
Open
if (!((gap ?? false) || (gapX ?? false) || (gapY ?? false))) {
novelClassName += GAP_LOOKUP[0]
}
Function NewTestContractWatcher
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewTestContractWatcher(ctx context.Context, tb testing.TB, contractListener ContractFilterer, heightWatcher chainwatcher.BlockHeightWatcher, requiredConfirmations uint) TestContractWatcher {
Function MockTx
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func MockTx(ctx context.Context, t *testing.T, simulatedBackend backends.SimulatedTestBackend, acct *keystore.Key, txType uint8) *types.Transaction {
Method Service.GetNonceAttemptsByStatus
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (_m *Service) GetNonceAttemptsByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, nonce uint64, matchStatuses ...db.Status) ([]db.TX, error) {
Function getForkClientHandler
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func getForkClientHandler(ctx context.Context, cmd *exec.Cmd, chainID uint64, processPort int, clientFunc func(client *ethclient.Client)) func() error {
Method ILightInbox.VerifyStateWithAttestation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (_m *ILightInbox) VerifyStateWithAttestation(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
Method ILightInbox.SubmitStateReportWithSnapshot
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (_m *ILightInbox) SubmitStateReportWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) {
Method Store.GetNonceAttemptsByStatus
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (s *Store) GetNonceAttemptsByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, nonce uint64, matchStatuses ...db.Status) (txs []db.TX, err error) {
Method IOrigin.WatchSent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (_m *IOrigin) WatchSent(opts *bind.WatchOpts, sink chan<- *origin.OriginSent, messageHash [][32]byte, nonce []uint32, destination []uint32) (event.Subscription, error) {
Function setupOtterscan
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func setupOtterscan(ctx context.Context, tb testing.TB, pool *dockertest.Pool, anvilResource *dockertest.Resource, args *OptionBuilder) (string, error) {
Function NewGenericPassword
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewGenericPassword(service string, account string, label string, data []byte, accessGroup string) interface{} {
Function GenerateABIFromEtherscan
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func GenerateABIFromEtherscan(ctx context.Context, chainID uint32, url string, contractAddress common.Address, fileName, solVersion, pkgName string) error {
Function NewGenericPassword
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func NewGenericPassword(service string, account string, label string, data []byte, accessGroup string) interface{} {
Method Store.StoreRelayableAgentStatus
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ctx context.Context,
agentAddress common.Address,
staleFlag agentTypes.AgentFlagType,
updatedFlag agentTypes.AgentFlagType,
domain uint32,
Method IBondingManager.Initialize
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (_m *IBondingManager) Initialize(opts *bind.TransactOpts, origin_ common.Address, destination_ common.Address, inbox_ common.Address, summit_ common.Address) (*types.Transaction, error) {