ipfs/ipfs-cluster

View on GitHub

Showing 105 of 124 total issues

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

package adder
Severity: Minor
Found in adder/util.go by gofmt

2: cannot find package "github.com/ipfs-cluster/ipfs-cluster/adder/ipfsadd" in any of:
Open

    "github.com/ipfs-cluster/ipfs-cluster/adder/ipfsadd"
Severity: Minor
Found in adder/adder.go by govet

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

// Package single implements a ClusterDAGService that chunks and adds content
Severity: Minor
Found in adder/single/dag_service.go by gofmt

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

package sharding
Severity: Minor
Found in adder/sharding/shard.go by gofmt

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

// Package pb provides protobuf definitions for serialized types in Cluster.
Severity: Minor
Found in api/pb/generate.go by gofmt

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

// Package client provides a Go Client for the IPFS Cluster API provided
Severity: Minor
Found in api/rest/client/client.go by gofmt

context.Context should be the first parameter of a function
Open

func newShard(globalCtx context.Context, ctx context.Context, rpc *rpc.Client, opts api.PinOptions) (*shard, error) {
Severity: Minor
Found in adder/sharding/shard.go by golint

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

package ipfscluster
Severity: Minor
Found in rpc_api.go by gofmt

Your code does not pass gofmt in 1 place. Go fmt your code!
Open

package main
Severity: Minor
Found in cmd/ipfs-cluster-service/lock.go by gofmt

FIXME found
Open

    // FIXME: This is a bit lazy, as "invalidxx,pinned" would result in a
Severity: Minor
Found in api/rest/restapi.go by fixme

FIXME found
Confirmed

    // TODO: FIXME: potentially unpinning shards which are referenced
Severity: Minor
Found in cluster.go by fixme

FIXME found
Confirmed

    // FIXME: We have a 4MB limit on the block size enforced by bitswap:
Severity: Minor
Found in adder/sharding/dag.go by fixme

FIXME found
Confirmed

    // FIXME: This will grow in memory
Severity: Minor
Found in adder/sharding/dag_service.go by fixme

FIXME found
Confirmed

    //     // FIXME: We don't know anymore the shard pin maxDepth
Severity: Minor
Found in adder/sharding/dag_service.go by fixme

FIXME found
Open

    // FIXME: can't this happen on initialization?  Perhaps the point here
Severity: Minor
Found in adder/single/dag_service.go by fixme

FIXME found
Confirmed

// FIXME include maxdepth
Severity: Minor
Found in api/types.go by fixme

FIXME found
Open

    // FIXME: this is probably not safe in concurrency?  However, there is
Severity: Minor
Found in adder/sharding/dag_service.go by fixme

FIXME found
Open

    // FIXME: This only applies to ipfs-cluster-service.
Severity: Minor
Found in cluster_config.go by fixme

FIXME found
Confirmed

        // FIXME: when we know how ipfs returns partial pins.
Severity: Minor
Found in api/types.go by fixme

FIXME found
Open

    // FIXME: replicate everywhere.
Severity: Minor
Found in adder/util.go by fixme
Severity
Category
Status
Source
Language