synapsecns/sanguine

View on GitHub
tools/abigen/internal/etherscan/ratelimiter.go

Summary

Maintainability
A
1 hr
Test Coverage

Method fileRateLimiter.releaseLock has 6 return statements (exceeds 4 allowed).
Open

func (f *fileRateLimiter) releaseLock() (ok bool, err error) {
    f.mux.Unlock()

    err = f.openFile()
    if err != nil {
Severity: Major
Found in tools/abigen/internal/etherscan/ratelimiter.go - About 40 mins to fix

    Method fileRateLimiter.obtainLock has 5 return statements (exceeds 4 allowed).
    Open

    func (f *fileRateLimiter) obtainLock(ctx context.Context) (ok bool, err error) {
        f.mux.Lock()
        err = f.openFile()
        if err != nil {
            return false, fmt.Errorf("could not open file: %w", err)
    Severity: Major
    Found in tools/abigen/internal/etherscan/ratelimiter.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status