Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
go vet
examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.
No problems detected. Good job!
Gocyclo calculates cyclomatic complexities of functions in Go source code.
The cyclomatic complexity of a function is calculated according to the following rules:
1 is the base complexity of a function
+1 for each 'if', 'for', 'case', '&&' or '||'
Go Report Card warns on functions with cyclomatic complexity > 15.
No problems detected. Good job!
Golint is a linter for Go source code.
-
go-ipfs-recovery/strategy.go
- Line 9: warning: comment on exported const All should be of the form "All ..." (golint)
- Line 13: warning: comment on exported const Data should be of the form "Data ..." (golint)
- Line 16: warning: comment on exported const Requested should be of the form "Requested ..." (golint)
- Line 20: warning: exported method Strategy.All should have comment or be unexported (golint)
- Line 24: warning: exported method Strategy.Data should have comment or be unexported (golint)
- Line 28: warning: exported method Strategy.Requested should have comment or be unexported (golint)
-
go-ipfs-recovery/test/fsdagger.go
- Line 15: warning: exported type Morpher should have comment or be unexported (golint)
- Line 29: warning: context.Context should be the first parameter of a function (golint)
- Line 29: warning: exported function NewFSDagger should have comment or be unexported (golint)
- Line 33: warning: exported method FSDagger.RandNode should have comment or be unexported (golint)
- Line 38: warning: exported method FSDagger.NewNode should have comment or be unexported (golint)
- Line 47: warning: exported method FSDagger.NewDir should have comment or be unexported (golint)
- Line 65: warning: exported method FSDagger.Node should have comment or be unexported (golint)
- Line 77: warning: exported method FSDagger.Remove should have comment or be unexported (golint)
-
go-ipfs-recovery/test/fsdagger_node.go
- Line 13: warning: exported type FSDaggerNode should have comment or be unexported (golint)
- Line 23: warning: exported method FSDaggerNode.IsDir should have comment or be unexported (golint)
- Line 27: warning: exported method FSDaggerNode.File should have comment or be unexported (golint)
- Line 36: warning: exported method FSDaggerNode.Validate should have comment or be unexported (golint)
-
go-ipfs-recovery/reedsolomon/node.go
- Line 26: warning: exported function NewNode should have comment or be unexported (golint)
- Line 37: warning: exported method Node.Proto should have comment or be unexported (golint)
- Line 41: warning: exported method Node.Recoverability should have comment or be unexported (golint)
- Line 45: warning: exported method Node.RecoveryLinks should have comment or be unexported (golint)
- Line 49: warning: exported method Node.AddRedundantNode should have comment or be unexported (golint)
- Line 61: warning: exported method Node.RemoveRedundantNode should have comment or be unexported (golint)
- Line 77: warning: exported method Node.RawData should have comment or be unexported (golint)
- Line 91: warning: exported method Node.Cid should have comment or be unexported (golint)
- Line 109: warning: exported method Node.Copy should have comment or be unexported (golint)
- Line 128: warning: exported method Node.Stat should have comment or be unexported (golint)
- Line 144: warning: exported method Node.Size should have comment or be unexported (golint)
- Line 155: warning: exported function MarshalNode should have comment or be unexported (golint)
- Line 179: warning: exported function UnmarshalNode should have comment or be unexported (golint)
- Line 212: warning: exported function DecodeNode should have comment or be unexported (golint)
- Line 228: warning: comment on exported method Node.AddRawLink should be of the form "AddRawLink ..." (golint)
- Line 235: warning: exported method Node.AddNodeLink should have comment or be unexported (golint)
- Line 240: warning: exported method Node.RemoveNodeLink should have comment or be unexported (golint)
- Line 245: warning: exported method Node.SetData should have comment or be unexported (golint)
- Line 250: warning: exported method Node.SetCidBuilder should have comment or be unexported (golint)
- Line 255: warning: exported method Node.CidBuilder should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!