Preparing report...

Report for github.com/zuuby/zuuby-ipfs

A    Great!    Found 9 issues across 9 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

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!


gocyclo100%

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!


golint11%

Golint is a linter for Go source code.

    • zuuby-ipfs/core/comm/response.go
    • Line 3: warning: exported const SuccessCode should have comment or be unexported (golint)
    • Line 5: warning: comment on exported const ClientError should be of the form "ClientError ..." (golint)
    • Line 7: warning: exported const ServerError should have comment or be unexported (golint)
    • Line 9: warning: exported const SuccessMsg should have comment or be unexported (golint)
    • Line 10: warning: exported const BadRequestMsg should have comment or be unexported (golint)
    • Line 11: warning: exported const NotFoundMsg should have comment or be unexported (golint)
    • Line 12: warning: exported const ServerMsg should have comment or be unexported (golint)
    • Line 14: warning: exported type Response should have comment or be unexported (golint)
    • Line 20: warning: exported function NewSuccess should have comment or be unexported (golint)
    • Line 28: warning: exported function NewBadRequest should have comment or be unexported (golint)
    • Line 36: warning: exported function NewNotFound should have comment or be unexported (golint)
    • Line 44: warning: exported function NewServerError should have comment or be unexported (golint)
    • zuuby-ipfs/core/utils/json.go
    • Line 7: warning: exported function StructToJSON should have comment or be unexported (golint)
    • Line 12: warning: exported function JSONToStruct should have comment or be unexported (golint)
    • zuuby-ipfs/core/utils/logger.go
    • Line 7: warning: exported type ZuubyLogger should have comment or be unexported (golint)
    • Line 13: warning: exported method ZuubyLogger.Warn should have comment or be unexported (golint)
    • Line 17: warning: exported method ZuubyLogger.Debug should have comment or be unexported (golint)
    • Line 21: warning: exported method ZuubyLogger.Info should have comment or be unexported (golint)
    • Line 25: warning: exported function NewLogger should have comment or be unexported (golint)
    • zuuby-ipfs/client/client.go
    • Line 10: warning: exported type WorkerPool should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported method WorkerPool.Start should have comment or be unexported (golint)
    • Line 49: warning: exported method WorkerPool.WaitDone should have comment or be unexported (golint)
    • zuuby-ipfs/daemon/daemon.go
    • Line 14: warning: exported type Daemon should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: comment on exported method Daemon.Start should be of the form "Start ..." (golint)
    • Line 51: warning: exported method Daemon.Stop should have comment or be unexported (golint)
    • Line 71: warning: comment on exported method Daemon.WaitReady should be of the form "WaitReady ..." (golint)
    • zuuby-ipfs/core/server/server.go
    • Line 18: warning: exported type Server should have comment or be unexported (golint)
    • Line 24: warning: exported function NewHttpServer should have comment or be unexported (golint)
    • Line 38: warning: exported method Server.Serve should have comment or be unexported (golint)
    • zuuby-ipfs/core/comm/broadcast.go
    • Line 3: warning: exported type SignalChan should have comment or be unexported (golint)
    • Line 5: warning: exported method SignalChan.Signal should have comment or be unexported (golint)
    • Line 9: warning: exported type ReadOnlySignalChan should have comment or be unexported (golint)
    • Line 15: warning: exported function NewSignalChan should have comment or be unexported (golint)
    • zuuby-ipfs/core/comm/request.go
    • Line 5: warning: exported const Get should have comment or be unexported (golint)
    • Line 6: warning: exported const Put should have comment or be unexported (golint)
    • Line 7: warning: exported const Delete should have comment or be unexported (golint)
    • Line 9: warning: exported type Push should have comment or be unexported (golint)
    • Line 14: warning: exported function NewPush should have comment or be unexported (golint)
    • Line 18: warning: exported type Request should have comment or be unexported (golint)
    • Line 23: warning: exported function NewGetReq should have comment or be unexported (golint)
    • Line 30: warning: exported function NewPutReq should have comment or be unexported (golint)
    • Line 37: warning: exported function NewDeleteReq should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • zuuby-ipfs/client/client.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/zuuby/zuuby-ipfs/core/comm (invalid package name: "") (ineffassign)
    • zuuby-ipfs/cmd/zuupfs/main.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/zuuby/zuuby-ipfs/client (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/zuuby/zuuby-ipfs/daemon (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/zuuby/zuuby-ipfs/core/server (invalid package name: "") (ineffassign)
    • zuuby-ipfs/core/utils/logger.go
    • Line 10: warning: l.Println undefined (type *ZuubyLogger has no field or method Println) (ineffassign)
    • Line 14: warning: l.Println undefined (type *ZuubyLogger has no field or method Println) (ineffassign)
    • Line 18: warning: l.Println undefined (type *ZuubyLogger has no field or method Println) (ineffassign)
    • Line 22: warning: l.Println undefined (type *ZuubyLogger has no field or method Println) (ineffassign)
    • Line 27: warning: undeclared name: os (ineffassign)
    • Line 27: warning: cannot use log.New(os.Stdout, name, log.Ltime | log.Lshortfile | log.LUTC) (value of type *log.Logger) as *ZuubyLogger value in return statement (ineffassign)
    • zuuby-ipfs/core/server/server.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/zuuby/zuuby-ipfs/core/comm (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/zuuby/zuuby-ipfs/core/utils (invalid package name: "") (ineffassign)
    • Line 40: warning: s.Logger undefined (type *Server has no field or method Logger) (ineffassign)
    • Line 42: warning: s.Logger undefined (type *Server has no field or method Logger) (ineffassign)
    • Line 52: warning: s.Logger undefined (type *Server has no field or method Logger) (ineffassign)
    • Line 81: warning: s.Logger undefined (type *Server has no field or method Logger) (ineffassign)
    • Line 7: warning: "log" imported but not used (ineffassign)
    • Line 13: warning: "github.com/zuuby/zuuby-ipfs/core/utils" imported but not used (ineffassign)
    • Line 9: warning: "os" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!