Preparing report...

Report for github.com/talkgo/night

A+    Excellent!    Found 16 issues across 33 files

Tweet

gofmt90%

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!


golint54%

Golint is a linter for Go source code.

    • night/content/night/other/zap-learn/logger/zap/zap.go
    • Line 16: warning: exported type ZLogger should have comment or be unexported (golint)
    • Line 51: warning: exported method ZLogger.DPanic should have comment or be unexported (golint)
    • Line 55: warning: exported method ZLogger.Fdebug should have comment or be unexported (golint)
    • Line 63: warning: exported method ZLogger.Finfo should have comment or be unexported (golint)
    • Line 71: warning: exported method ZLogger.Fwarn should have comment or be unexported (golint)
    • Line 79: warning: exported method ZLogger.Ferror should have comment or be unexported (golint)
    • Line 87: warning: exported method ZLogger.Fpanic should have comment or be unexported (golint)
    • Line 141: warning: exported method ZLogger.DPanicf should have comment or be unexported (golint)
    • Line 149: warning: exported method ZLogger.TearDown should have comment or be unexported (golint)
    • Line 153: warning: exported method ZLogger.Level should have comment or be unexported (golint)
    • Line 170: warning: exported method ZLogger.ShowSQL should have comment or be unexported (golint)
    • Line 179: warning: exported method ZLogger.IsShowSQL should have comment or be unexported (golint)
    • Line 183: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 303: warning: comment on exported function NewLoggerWithLevel should be of the form "NewLoggerWithLevel ..." (golint)
    • night/content/night/other/zap-learn/logger/logger.go
    • Line 7: warning: exported type Logger should have comment or be unexported (golint)
    • Line 38: warning: comment on exported var Log should be of the form "Log ..." (golint)
    • Line 42: warning: exported function Setup should have comment or be unexported (golint)
    • Line 48: warning: exported function TearDown should have comment or be unexported (golint)
    • Line 52: warning: exported function FDebug should have comment or be unexported (golint)
    • Line 57: warning: exported function FInfo should have comment or be unexported (golint)
    • Line 62: warning: exported function FWarn should have comment or be unexported (golint)
    • Line 67: warning: exported function FError should have comment or be unexported (golint)
    • Line 72: warning: exported function FPanic should have comment or be unexported (golint)
    • night/examples/gin_examples/pkg/auth/auth.go
    • Line 5: warning: exported type Authenticator should have comment or be unexported (golint)
    • Line 7: warning: exported method Authenticator.Hash should have comment or be unexported (golint)
    • Line 17: warning: exported method Authenticator.CompareHash should have comment or be unexported (golint)
    • night/examples/gin_examples/pkg/http/userHandler.go
    • Line 11: warning: exported method AppServer.RegisterUserHandler should have comment or be unexported (golint)
    • Line 47: warning: exported method AppServer.LoginUserHandler should have comment or be unexported (golint)
    • Line 78: warning: exported method AppServer.LogoutUserHandler should have comment or be unexported (golint)
    • Line 96: warning: exported method AppServer.GetUserHandler should have comment or be unexported (golint)
    • Line 116: warning: exported method AppServer.GetMeHandler should have comment or be unexported (golint)
    • night/examples/gin_examples/pkg/postgres/userrepository.go
    • Line 11: warning: exported type UserRepository should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method UserRepository.Store should be of the form "Store ..." (golint)
    • Line 26: warning: exported method UserRepository.Find should have comment or be unexported (golint)
    • Line 38: warning: exported method UserRepository.FindByEmail should have comment or be unexported (golint)
    • Line 45: warning: exported method UserRepository.FindBySessionID should have comment or be unexported (golint)
    • Line 69: warning: exported method UserRepository.Update should have comment or be unexported (golint)
    • night/examples/gin_examples/pkg/mock/service.go
    • Line 5: warning: exported type UserService should have comment or be unexported (golint)
    • Line 15: warning: exported method UserService.CreateUser should have comment or be unexported (golint)
    • Line 20: warning: exported method UserService.GetUser should have comment or be unexported (golint)
    • Line 25: warning: exported type UserAuthenticationProvider should have comment or be unexported (golint)
    • Line 36: warning: exported method UserAuthenticationProvider.Login should have comment or be unexported (golint)
    • Line 41: warning: exported method UserAuthenticationProvider.Logout should have comment or be unexported (golint)
    • Line 45: warning: exported method UserAuthenticationProvider.CheckAuthentication should have comment or be unexported (golint)
    • Line 50: warning: exported type Authenticator should have comment or be unexported (golint)
    • Line 56: warning: exported type AuthenticatorMock should have comment or be unexported (golint)
    • Line 67: warning: exported method AuthenticatorMock.Hash should have comment or be unexported (golint)
    • Line 72: warning: exported method AuthenticatorMock.CompareHash should have comment or be unexported (golint)
    • Line 76: warning: exported method AuthenticatorMock.SessionID should have comment or be unexported (golint)
    • night/examples/gin_examples/pkg/service/userservice/userservice.go
    • Line 10: warning: exported type UserService should have comment or be unexported (golint)
    • Line 15: warning: exported type Authenticator should have comment or be unexported (golint)
    • Line 29: warning: exported method UserService.CreateUser should have comment or be unexported (golint)
    • Line 54: warning: exported method UserService.Login should have comment or be unexported (golint)
    • Line 74: warning: exported method UserService.Logout should have comment or be unexported (golint)
    • Line 86: warning: exported method UserService.CheckAuthentication should have comment or be unexported (golint)
    • Line 95: warning: exported method UserService.GetUser should have comment or be unexported (golint)
    • night/examples/gin_examples/user.go
    • Line 7: warning: exported type User should have comment or be unexported (golint)
    • Line 16: warning: exported type UserRepository should have comment or be unexported (golint)
    • Line 24: warning: exported type UserService should have comment or be unexported (golint)
    • Line 30: warning: exported type UserAuthenticationProvider should have comment or be unexported (golint)
    • night/examples/gin_examples/pkg/mock/repository.go
    • Line 5: warning: exported type UserRepository should have comment or be unexported (golint)
    • Line 22: warning: exported method UserRepository.Store should have comment or be unexported (golint)
    • Line 27: warning: exported method UserRepository.Update should have comment or be unexported (golint)
    • Line 32: warning: exported method UserRepository.Find should have comment or be unexported (golint)
    • Line 37: warning: exported method UserRepository.FindByEmail should have comment or be unexported (golint)
    • Line 42: warning: exported method UserRepository.FindBySessionID 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!