Preparing report...

Report for github.com/GerardSoleCa/PubKeyManager

A+    Excellent!    Found 11 issues across 15 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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign26%

IneffAssign detects ineffectual assignments in Go code.

    • PubKeyManager/infrastructure/sqlitehandler.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/GerardSoleCa/PubKeyManager/interfaces (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/xeodou/go-sqlcipher (invalid package name: "") (ineffassign)
    • PubKeyManager/server/handlers/keyHandler.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/GerardSoleCa/PubKeyManager/domain (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/GerardSoleCa/PubKeyManager/server/utils (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/codegangsta/negroni (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gorilla/sessions (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • Line 17: warning: undeclared name: logging (ineffassign)
    • Line 59: warning: handler.Ok undefined (type KeyServiceHandler has no field or method Ok) (ineffassign)
    • Line 66: warning: handler.BadRequest undefined (type KeyServiceHandler has no field or method BadRequest) (ineffassign)
    • Line 71: warning: handler.BadRequest undefined (type KeyServiceHandler has no field or method BadRequest) (ineffassign)
    • Line 85: warning: handler.ParseBody undefined (type KeyServiceHandler has no field or method ParseBody) (ineffassign)
    • Line 86: warning: handler.BadRequest undefined (type KeyServiceHandler has no field or method BadRequest) (ineffassign)
    • Line 90: warning: handler.ErrorResponse undefined (type KeyServiceHandler has no field or method ErrorResponse) (ineffassign)
    • Line 93: warning: handler.CreatedWithBody undefined (type KeyServiceHandler has no field or method CreatedWithBody) (ineffassign)
    • Line 100: warning: handler.BadRequest undefined (type KeyServiceHandler has no field or method BadRequest) (ineffassign)
    • Line 105: warning: handler.BadRequest undefined (type KeyServiceHandler has no field or method BadRequest) (ineffassign)
    • Line 109: warning: handler.InternalServerError undefined (type KeyServiceHandler has no field or method InternalServerError) (ineffassign)
    • Line 112: warning: handler.NoContent undefined (type KeyServiceHandler has no field or method NoContent) (ineffassign)
    • Line 120: warning: handler.Unauthorized undefined (type KeyServiceHandler has no field or method Unauthorized) (ineffassign)
    • Line 124: warning: handler.Unauthorized undefined (type KeyServiceHandler has no field or method Unauthorized) (ineffassign)
    • Line 12: warning: "github.com/op/go-logging" imported but not used (ineffassign)
    • PubKeyManager/server/handlers/userHandler.go
    • Line 39: warning: handler.ParseBody undefined (type UserServiceHandler has no field or method ParseBody) (ineffassign)
    • Line 40: warning: handler.BadRequest undefined (type UserServiceHandler has no field or method BadRequest) (ineffassign)
    • Line 46: warning: handler.Unauthorized undefined (type UserServiceHandler has no field or method Unauthorized) (ineffassign)
    • Line 58: warning: handler.Ok undefined (type UserServiceHandler has no field or method Ok) (ineffassign)
    • Line 64: warning: handler.ParseBody undefined (type UserServiceHandler has no field or method ParseBody) (ineffassign)
    • Line 65: warning: handler.BadRequest undefined (type UserServiceHandler has no field or method BadRequest) (ineffassign)
    • Line 69: warning: handler.ErrorResponse undefined (type UserServiceHandler has no field or method ErrorResponse) (ineffassign)
    • Line 73: warning: handler.CreatedWithBody undefined (type UserServiceHandler has no field or method CreatedWithBody) (ineffassign)
    • PubKeyManager/server/server.go
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/GerardSoleCa/PubKeyManager/server/handlers (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/GerardSoleCa/PubKeyManager/usecases (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/codegangsta/negroni (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/gorilla/context (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/GerardSoleCa/PubKeyManager/infrastructure (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/gorilla/securecookie (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/gorilla/sessions (invalid package name: "") (ineffassign)
    • Line 19: warning: undeclared name: logging (ineffassign)
    • Line 12: warning: "github.com/op/go-logging" imported but not used (ineffassign)
    • PubKeyManager/interfaces/userRepository.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • Line 8: warning: undeclared name: logging (ineffassign)
    • Line 5: warning: "github.com/op/go-logging" imported but not used (ineffassign)
    • PubKeyManager/usecases/userUseCases.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • Line 12: warning: undeclared name: logging (ineffassign)
    • Line 6: warning: "github.com/op/go-logging" imported but not used (ineffassign)
    • PubKeyManager/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/GerardSoleCa/PubKeyManager/infrastructure (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/GerardSoleCa/PubKeyManager/interfaces (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/GerardSoleCa/PubKeyManager/server (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/GerardSoleCa/PubKeyManager/usecases (invalid package name: "") (ineffassign)
    • PubKeyManager/domain/user.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/op/go-logging (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import golang.org/x/crypto/bcrypt (invalid package name: "") (ineffassign)
    • Line 9: warning: undeclared name: logging (ineffassign)
    • Line 5: warning: "github.com/op/go-logging" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!