Preparing report...

Report for github.com/bixlabs/authentication

A    Great!    Found 49 issues across 68 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!


gocyclo98%

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.


golint32%

Golint is a linter for Go source code.

    • authentication/api/healthcheck/structures/check/check.go
    • Line 5: warning: exported function NewResponse should have comment or be unexported (golint)
    • Line 9: warning: exported function NewErrorResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type Response should have comment or be unexported (golint)
    • Line 25: warning: exported type Result should have comment or be unexported (golint)
    • authentication/api/main.go
    • Line 57: warning: exported function NewGinRouter should have comment or be unexported (golint)
    • Line 134: warning: exported type RestConfiguration should have comment or be unexported (golint)
    • authentication/database/user/memory/user_repo.go
    • Line 12: warning: exported type UserRepo should have comment or be unexported (golint)
    • Line 17: warning: comment on exported function NewUserRepo should be of the form "NewUserRepo ..." (golint)
    • Line 23: warning: exported method UserRepo.Create should have comment or be unexported (golint)
    • Line 30: warning: exported method UserRepo.IsEmailAvailable should have comment or be unexported (golint)
    • Line 35: warning: exported method UserRepo.GetHashedPassword should have comment or be unexported (golint)
    • Line 44: warning: exported method UserRepo.ChangePassword should have comment or be unexported (golint)
    • Line 53: warning: exported method UserRepo.UpdateResetToken should have comment or be unexported (golint)
    • Line 60: warning: exported method UserRepo.Find should have comment or be unexported (golint)
    • Line 68: warning: comment on exported method UserRepo.Delete should be of the form "Delete ..." (golint)
    • Line 79: warning: exported method UserRepo.Update should have comment or be unexported (golint)
    • authentication/admincli/usermanager/structures/mappers/mappers.go
    • Line 11: warning: exported function CreateUserCommandToUser should have comment or be unexported (golint)
    • Line 16: warning: exported function UserToCreateUserResult should have comment or be unexported (golint)
    • Line 21: warning: exported function UpdateUserCommandToUpdateUser should have comment or be unexported (golint)
    • Line 26: warning: exported function UserToUpdateUserResult should have comment or be unexported (golint)
    • Line 31: warning: exported function ResetUserCommandToUpdateUser should have comment or be unexported (golint)
    • Line 35: warning: exported function UserToFindUserResult should have comment or be unexported (golint)
    • authentication/authenticator/interactors/implementation/util/util.go
    • Line 11: warning: exported const EmailValidationRegex should have comment or be unexported (golint)
    • Line 12: warning: exported const SignupInvalidEmailMessage should have comment or be unexported (golint)
    • Line 13: warning: exported const SignupPasswordLengthMessage should have comment or be unexported (golint)
    • Line 15: warning: exported const UserNotFoundMessage should have comment or be unexported (golint)
    • Line 20: warning: exported function IsValidEmail should have comment or be unexported (golint)
    • Line 28: warning: exported type InvalidEmailError should have comment or be unexported (golint)
    • Line 34: warning: exported function CheckPasswordLength should have comment or be unexported (golint)
    • Line 42: warning: exported type PasswordLengthError should have comment or be unexported (golint)
    • Line 53: warning: exported function HashPassword should have comment or be unexported (golint)
    • Line 64: warning: exported function VerifyPassword should have comment or be unexported (golint)
    • Line 72: warning: exported type WrongCredentialsError should have comment or be unexported (golint)
    • Line 78: warning: exported const SignupDuplicateEmailMessage should have comment or be unexported (golint)
    • Line 80: warning: exported type DuplicatedEmailError should have comment or be unexported (golint)
    • Line 86: warning: exported type InvalidResetPasswordCode should have comment or be unexported (golint)
    • Line 92: warning: exported type SamePasswordChangeError should have comment or be unexported (golint)
    • Line 98: warning: exported type InvalidJWTToken should have comment or be unexported (golint)
    • Line 104: warning: exported type UserNotFoundError should have comment or be unexported (golint)
    • authentication/api/authentication/structures/login/login.go
    • Line 8: warning: exported function NewResponse should have comment or be unexported (golint)
    • Line 19: warning: exported function NewErrorResponse should have comment or be unexported (golint)
    • Line 23: warning: exported type RestResponse should have comment or be unexported (golint)
    • Line 28: warning: exported type Result should have comment or be unexported (golint)
    • Line 32: warning: exported type Request should have comment or be unexported (golint)
    • authentication/email/providers/none.go
    • Line 11: warning: exported type NoneSender should have comment or be unexported (golint)
    • Line 14: warning: exported function NewNoneSender should have comment or be unexported (golint)
    • Line 24: warning: exported method NoneSender.Send should have comment or be unexported (golint)
    • authentication/api/authentication/structures/signup/signup.go
    • Line 5: warning: exported function NewResponse should have comment or be unexported (golint)
    • Line 16: warning: exported function NewErrorResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type Response should have comment or be unexported (golint)
    • Line 25: warning: exported type Result should have comment or be unexported (golint)
    • Line 29: warning: exported type Request should have comment or be unexported (golint)
    • authentication/email/providers/sendgrid.go
    • Line 13: warning: exported type SendgridSender should have comment or be unexported (golint)
    • Line 18: warning: exported function NewSengridSender should have comment or be unexported (golint)
    • Line 41: warning: exported method SendgridSender.Send should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words