Report for github.com/rivo/users

A+    Excellent!    Found 8 issues across 16 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!


gocyclo87%

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.


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!


ineffassign56%

IneffAssign detects ineffectual assignments in Go code.

    • users/loginout.go
    • Line 23: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 55: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 64: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 68: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 83: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 23: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 55: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 64: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 68: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 83: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • users/password.go
    • Line 27: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 59: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 65: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 70: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 107: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 124: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 131: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 150: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 153: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 27: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 59: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 65: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 70: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 107: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 124: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 131: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 150: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 153: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • users/signup.go
    • Line 26: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 102: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 106: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 108: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 111: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 113: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 118: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 166: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 175: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 184: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 187: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 26: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 102: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 106: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 108: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 111: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 113: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 118: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 166: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 175: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 184: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 187: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • users/users.go
    • Line 37: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 37: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • users/change.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/rivo/sessions (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import golang.org/x/crypto/bcrypt (invalid package name: "") (ineffassign)
    • Line 62: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 67: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 77: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 84: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 97: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 104: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 127: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 130: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 157: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 184: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 8: warning: could not import github.com/rivo/sessions (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import golang.org/x/crypto/bcrypt (invalid package name: "") (ineffassign)
    • Line 62: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 67: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 77: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 84: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 97: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 104: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 127: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 130: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 157: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 184: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • users/config.go
    • Line 154: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 154: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 154: warning: existingUser.GetID undefined (type User has no field or method GetID) (ineffassign)
    • Line 154: warning: user.GetID undefined (type User has no field or method GetID) (ineffassign)

misspell93%

Misspell Finds commonly misspelled English words