Preparing report...

Report for github.com/aurelius15/go-skeleton

(v0.1.0)

A+    Excellent!    Found 21 issues across 29 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!


golint27%

Golint is a linter for Go source code.

    • internal/log/log.go
    • Line 11: warning: exported function Default should have comment or be unexported (golint)
    • Line 15: warning: exported function SetDefault should have comment or be unexported (golint)
    • Line 19: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 29: warning: exported function GracefulSync should have comment or be unexported (golint)
    • internal/reflection/reflection.go
    • Line 13: warning: exported var ErrFiledValueIsNotString should have comment or be unexported (golint)
    • Line 15: warning: exported var ErrTypeNotStructure should have comment or be unexported (golint)
    • Line 17: warning: exported var ErrFieldWithRequestedTagNotExist should have comment or be unexported (golint)
    • Line 19: warning: exported var ErrInterfaceNotFound should have comment or be unexported (golint)
    • Line 21: warning: exported function StringFieldByName should have comment or be unexported (golint)
    • Line 31: warning: exported function FirstNotNilInterface should have comment or be unexported (golint)
    • Line 50: warning: exported function FieldByTag should have comment or be unexported (golint)
    • test/mock/server.go
    • Line 9: warning: exported type MockedConfig should have comment or be unexported (golint)
    • Line 13: warning: exported method MockedConfig.Config should have comment or be unexported (golint)
    • Line 18: warning: exported method MockedConfig.Command should have comment or be unexported (golint)
    • Line 23: warning: exported type MockedWebEngine should have comment or be unexported (golint)
    • Line 27: warning: exported method MockedWebEngine.Run should have comment or be unexported (golint)
    • internal/config/number_of_users_config.go
    • Line 7: warning: exported const NumberOfUsersCmd should have comment or be unexported (golint)
    • Line 9: warning: exported type NumberOfUsersConfig should have comment or be unexported (golint)
    • Line 11: warning: exported method NumberOfUsersConfig.Config should have comment or be unexported (golint)
    • Line 16: warning: exported method NumberOfUsersConfig.Command should have comment or be unexported (golint)
    • internal/helper/helper.go
    • Line 10: warning: exported var ErrCanNotGenerateUUID should have comment or be unexported (golint)
    • Line 12: warning: exported function UUID should have comment or be unexported (golint)
    • Line 21: warning: exported function UUIDMask should have comment or be unexported (golint)
    • internal/config/config.go
    • Line 8: warning: exported const LocalMode should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type Configure should have comment or be unexported (golint)
    • Line 17: warning: exported type Config should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseConfig should have comment or be unexported (golint)
    • internal/config/server_config.go
    • Line 7: warning: exported const ServerCmd should have comment or be unexported (golint)
    • Line 9: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 13: warning: exported method ServerConfig.Config should have comment or be unexported (golint)
    • Line 18: warning: exported method ServerConfig.Command should have comment or be unexported (golint)
    • internal/storage/redis.go
    • Line 7: warning: exported function Instance should have comment or be unexported (golint)
    • Line 11: warning: exported function SetInstance should have comment or be unexported (golint)
    • cmd/server_cmd.go
    • Line 10: warning: exported type ServerCmd should have comment or be unexported (golint)
    • Line 15: warning: exported method ServerCmd.BindConfig should have comment or be unexported (golint)
    • Line 20: warning: exported method ServerCmd.Execute should have comment or be unexported (golint)
    • internal/repository/user_repository.go
    • Line 15: warning: exported type UserRepo should have comment or be unexported (golint)
    • Line 19: warning: exported function UserRepository should have comment or be unexported (golint)
    • Line 27: warning: exported method UserRepo.NumberOfUsers should have comment or be unexported (golint)
    • Line 32: warning: exported method UserRepo.GetUserByID should have comment or be unexported (golint)
    • Line 43: warning: exported method UserRepo.SaveUser should have comment or be unexported (golint)
    • internal/server/server.go
    • Line 11: warning: exported type WebEngine should have comment or be unexported (golint)
    • Line 16: warning: exported function NewServer should have comment or be unexported (golint)
    • cmd/cmd.go
    • Line 5: warning: exported var CommandCollection should have comment or be unexported (golint)
    • Line 7: warning: exported type Command should have comment or be unexported (golint)
    • cmd/number_of_users_cmd.go
    • Line 11: warning: exported type NumberOfUsersCmd should have comment or be unexported (golint)
    • Line 15: warning: exported method NumberOfUsersCmd.BindConfig should have comment or be unexported (golint)
    • Line 19: warning: exported method NumberOfUsersCmd.Execute 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!