ipfs/ipfs-cluster

View on GitHub
api/rest/client/methods.go

Summary

Maintainability
B
5 hrs
Test Coverage

File methods.go has 535 lines of code (exceeds 500 allowed). Consider refactoring.
Open

package client

import (
    "bytes"
    "context"
Severity: Minor
Found in api/rest/client/methods.go - About 2 hrs to fix

    defaultClient has 25 methods (exceeds 20 allowed). Consider refactoring.
    Open

    func (c *defaultClient) ID(ctx context.Context) (api.ID, error) {
        ctx, span := trace.StartSpan(ctx, "client/ID")
        defer span.End()
    
        var id api.ID
    Severity: Minor
    Found in api/rest/client/methods.go - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status