Preparing report...

Report for github.com/jcmturner/goidentity/v6

(v6.0.1)

A+    Excellent!    Found 3 issues across 4 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!


golint25%

Golint is a linter for Go source code.

    • goidentity/v6/user.go
    • Line 10: warning: exported type User should have comment or be unexported (golint)
    • Line 24: warning: exported function NewUser should have comment or be unexported (golint)
    • Line 36: warning: exported method User.UserName should have comment or be unexported (golint)
    • Line 40: warning: exported method User.SetUserName should have comment or be unexported (golint)
    • Line 44: warning: exported method User.Domain should have comment or be unexported (golint)
    • Line 48: warning: exported method User.SetDomain should have comment or be unexported (golint)
    • Line 52: warning: exported method User.DisplayName should have comment or be unexported (golint)
    • Line 59: warning: exported method User.SetDisplayName should have comment or be unexported (golint)
    • Line 63: warning: exported method User.Human should have comment or be unexported (golint)
    • Line 67: warning: exported method User.SetHuman should have comment or be unexported (golint)
    • Line 71: warning: exported method User.AuthTime should have comment or be unexported (golint)
    • Line 75: warning: exported method User.SetAuthTime should have comment or be unexported (golint)
    • Line 79: warning: exported method User.AuthzAttributes should have comment or be unexported (golint)
    • Line 89: warning: exported method User.Authenticated should have comment or be unexported (golint)
    • Line 93: warning: exported method User.SetAuthenticated should have comment or be unexported (golint)
    • Line 97: warning: exported method User.AddAuthzAttribute should have comment or be unexported (golint)
    • Line 101: warning: exported method User.RemoveAuthzAttribute should have comment or be unexported (golint)
    • Line 108: warning: exported method User.EnableAuthzAttribute should have comment or be unexported (golint)
    • Line 114: warning: exported method User.DisableAuthzAttribute should have comment or be unexported (golint)
    • Line 120: warning: exported method User.Authorized should have comment or be unexported (golint)
    • Line 127: warning: exported method User.SessionID should have comment or be unexported (golint)
    • Line 131: warning: exported method User.SetExpiry should have comment or be unexported (golint)
    • Line 135: warning: exported method User.Expired should have comment or be unexported (golint)
    • Line 142: warning: exported method User.Attributes should have comment or be unexported (golint)
    • Line 146: warning: exported method User.SetAttribute should have comment or be unexported (golint)
    • Line 150: warning: exported method User.SetAttributes should have comment or be unexported (golint)
    • Line 154: warning: exported method User.RemoveAttribute should have comment or be unexported (golint)
    • Line 158: warning: exported method User.Marshal should have comment or be unexported (golint)
    • Line 168: warning: exported method User.Unmarshal should have comment or be unexported (golint)
    • goidentity/v6/identity.go
    • Line 10: warning: exported const CTXKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Identity should have comment or be unexported (golint)
    • Line 40: warning: exported function AddToHTTPRequestContext should have comment or be unexported (golint)
    • Line 42: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 46: warning: exported function FromHTTPRequestContext should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!