Preparing report...

Report for github.com/gokit/jwtkit

A+    Excellent!    Found 7 issues across 9 files

Tweet

gofmt88%

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


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!


golint88%

Golint is a linter for Go source code.

    • jwtkit/example/jwt.go
    • Line 5: warning: comment on exported type UserClaim should be of the form "UserClaim ..." (with optional leading article) (golint)
    • Line 11: warning: exported type User should have comment or be unexported (golint)
    • Line 20: warning: exported type CreateUserSession should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign44%

IneffAssign detects ineffectual assignments in Go code.

    • jwtkit/example/userclaimjwt/userclaimjwt.go
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: could not import github.com/dgrijalva/jwt-go (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/rs/xid (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/gokit/tokens (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/gokit/jwtkit/example (invalid package name: "") (ineffassign)
    • Line 296: warning: claim.Id undefined (type JWTClaim has no field or method Id) (ineffassign)
    • Line 470: warning: claim.Id undefined (type JWTClaim has no field or method Id) (ineffassign)
    • Line 471: warning: claim.IssuedAt undefined (type JWTClaim has no field or method IssuedAt) (ineffassign)
    • Line 472: warning: claim.Subject undefined (type JWTClaim has no field or method Subject) (ineffassign)
    • Line 473: warning: claim.ExpiresAt undefined (type JWTClaim has no field or method ExpiresAt) (ineffassign)
    • Line 500: warning: claim.ExpiresAt undefined (type JWTClaim has no field or method ExpiresAt) (ineffassign)
    • Line 546: warning: claim.Id undefined (type JWTClaim has no field or method Id) (ineffassign)
    • Line 547: warning: claim.IssuedAt undefined (type JWTClaim has no field or method IssuedAt) (ineffassign)
    • Line 548: warning: claim.Subject undefined (type JWTClaim has no field or method Subject) (ineffassign)
    • Line 549: warning: claim.ExpiresAt undefined (type JWTClaim has no field or method ExpiresAt) (ineffassign)
    • Line 585: warning: claim.ExpiresAt undefined (type JWTClaim has no field or method ExpiresAt) (ineffassign)
    • jwtkit/example/userclaimjwt/userclaimjwt_test.go
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: could not import github.com/influx6/faux/tests (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/dgrijalva/jwt-go (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/gokit/jwtkit/example/userclaimjwt (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/gokit/jwtkit/example/userclaimjwt/mock (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/gokit/jwtkit/example (invalid package name: "") (ineffassign)
    • jwtkit/main.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 7: warning: could not import github.com/gokit/jwtkit/jwt (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/influx6/faux/flags (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/influx6/faux/metrics (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/influx6/faux/metrics/custom (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/influx6/moz/ast (invalid package name: "") (ineffassign)
    • jwtkit/example/userclaimjwt/mock/userclaimjwt.go
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/gokit/tokens (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/gokit/jwtkit/example/userclaimjwt (invalid package name: "") (ineffassign)
    • jwtkit/jwt/jwt.go
    • 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 10: warning: could not import github.com/gokit/jwtkit/static (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/influx6/moz/ast (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/influx6/moz/gen (invalid package name: "") (ineffassign)

misspell77%

Misspell Finds commonly misspelled English words

    • jwtkit/example/userclaimjwt/userclaimjwt_test.go
    • Line 109: warning: "succesfully" is a misspelling of "successfully" (misspell)
    • Line 111: warning: "succesfully" is a misspelling of "successfully" (misspell)
    • Line 136: warning: "succesfully" is a misspelling of "successfully" (misspell)
    • Line 138: warning: "succesfully" is a misspelling of "successfully" (misspell)
    • Line 188: warning: "succesfully" is a misspelling of "successfully" (misspell)
    • Line 190: warning: "succesfully" is a misspelling of "successfully" (misspell)
    • Line 239: warning: "succesfully" is a misspelling of "successfully" (misspell)
    • Line 241: warning: "succesfully" is a misspelling of "successfully" (misspell)