Preparing report...

Report for github.com/firmeve/firmeve

A    Great!    Found 117 issues across 152 files

Tweet

gofmt95%

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!


golint26%

Golint is a linter for Go source code.

    • firmeve/support/strings/strings.go
    • Line 13: warning: exported function UcFirst should have comment or be unexported (golint)
    • Line 18: warning: exported function UcWords should have comment or be unexported (golint)
    • Line 22: warning: exported function SnakeCase should have comment or be unexported (golint)
    • Line 26: warning: exported function Join should have comment or be unexported (golint)
    • Line 30: warning: exported function HTMLEntity should have comment or be unexported (golint)
    • Line 34: warning: exported function RandWithCharset should have comment or be unexported (golint)
    • Line 47: warning: exported function Rand should have comment or be unexported (golint)
    • firmeve/cron/command.go
    • Line 11: warning: exported type Command should have comment or be unexported (golint)
    • Line 14: warning: exported method Command.CobraCmd should have comment or be unexported (golint)
    • Line 21: warning: exported method Command.Run should have comment or be unexported (golint)
    • firmeve/context/provider.go
    • Line 8: warning: exported type Provider should have comment or be unexported (golint)
    • Line 12: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 16: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 26: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/converter/resource/item.go
    • Line 14: warning: exported type Item should have comment or be unexported (golint)
    • Line 30: warning: exported function NewItem should have comment or be unexported (golint)
    • Line 46: warning: exported method Item.SetOption should have comment or be unexported (golint)
    • Line 51: warning: exported method Item.SetMeta should have comment or be unexported (golint)
    • Line 54: warning: exported method Item.Meta should have comment or be unexported (golint)
    • Line 58: warning: exported method Item.SetLink should have comment or be unexported (golint)
    • Line 62: warning: exported method Item.Link should have comment or be unexported (golint)
    • Line 70: warning: exported method Item.Data should have comment or be unexported (golint)
    • firmeve/support/path/path.go
    • Line 19: warning: comment on exported function RunFile should be of the form "RunFile ..." (golint)
    • Line 26: warning: comment on exported function RunDir should be of the form "RunDir ..." (golint)
    • Line 31: warning: comment on exported function RunRelative should be of the form "RunRelative ..." (golint)
    • Line 37: warning: exported function Exists should have comment or be unexported (golint)
    • firmeve/examples/views/server.go
    • Line 10: warning: exported type App should have comment or be unexported (golint)
    • Line 14: warning: exported method App.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method App.Register should have comment or be unexported (golint)
    • Line 21: warning: exported method App.Boot should have comment or be unexported (golint)
    • firmeve/http/command.go
    • Line 15: warning: exported type Command should have comment or be unexported (golint)
    • Line 43: warning: exported method Command.CobraCmd should have comment or be unexported (golint)
    • Line 68: warning: exported method Command.Run should have comment or be unexported (golint)
    • firmeve/converter/transform/transformer.go
    • Line 4: warning: exported type BaseTransformer should have comment or be unexported (golint)
    • Line 9: warning: exported method BaseTransformer.Resource should have comment or be unexported (golint)
    • Line 13: warning: exported method BaseTransformer.SetResource should have comment or be unexported (golint)
    • firmeve/converter/resource/paginator.go
    • Line 12: warning: exported type Paginator should have comment or be unexported (golint)
    • Line 22: warning: exported function NewPaginator should have comment or be unexported (golint)
    • Line 45: warning: exported method Paginator.CollectionData should have comment or be unexported (golint)
    • Line 76: warning: exported method Paginator.SetLink should have comment or be unexported (golint)
    • Line 80: warning: exported method Paginator.Link should have comment or be unexported (golint)
    • Line 84: warning: exported method Paginator.SetMeta should have comment or be unexported (golint)
    • Line 88: warning: exported method Paginator.Meta should have comment or be unexported (golint)
    • firmeve/kernel/command.go
    • Line 19: warning: exported type CommandOption should have comment or be unexported (golint)
    • Line 101: warning: exported function NewCommand should have comment or be unexported (golint)
    • firmeve/http/server.go
    • Line 14: warning: exported type Server should have comment or be unexported (golint)
    • Line 21: warning: exported var DefaultConfig should have comment or be unexported (golint)
    • Line 40: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 58: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 84: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 90: warning: exported method Server.Restart should have comment or be unexported (golint)
    • Line 97: warning: exported method Server.New should have comment or be unexported (golint)
    • firmeve/examples/cron/main.go
    • Line 23: warning: exported function EverySecond should have comment or be unexported (golint)
    • Line 27: warning: exported function Second5 should have comment or be unexported (golint)
    • Line 31: warning: exported function EveryMinute should have comment or be unexported (golint)
    • firmeve/validator/validator.go
    • Line 9: warning: exported type Validator should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Validator.RegisterTranslation should have comment or be unexported (golint)
    • Line 29: warning: exported method Validator.RegisterValidation should have comment or be unexported (golint)
    • Line 33: warning: exported method Validator.RegisterTranslationValidation should have comment or be unexported (golint)
    • Line 41: warning: exported method Validator.Validate should have comment or be unexported (golint)
    • firmeve/examples/error/server.go
    • Line 10: warning: exported type App should have comment or be unexported (golint)
    • Line 14: warning: exported method App.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method App.Register should have comment or be unexported (golint)
    • Line 21: warning: exported method App.Boot should have comment or be unexported (golint)
    • firmeve/logger/logger.go
    • Line 25: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 34: warning: exported const Debug should have comment (or a comment on this block) or be unexported (golint)
    • Line 79: warning: exported function New should have comment or be unexported (golint)
    • firmeve/jwt/jwt.go
    • Line 13: warning: exported type Jwt should have comment or be unexported (golint)
    • Line 22: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 30: warning: exported var ErrorExpired should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method Jwt.Create should have comment or be unexported (golint)
    • Line 72: warning: comment on exported method Jwt.Parse should be of the form "Parse ..." (golint)
    • Line 82: warning: exported method Jwt.Invalidate should have comment or be unexported (golint)
    • Line 93: warning: exported method Jwt.Valid should have comment or be unexported (golint)
    • Line 111: warning: exported method Jwt.Refresh should have comment or be unexported (golint)
    • firmeve/database/gorm/json.go
    • Line 9: warning: exported type JSON should have comment or be unexported (golint)
    • Line 15: warning: exported method JSON.Scan should have comment or be unexported (golint)
    • Line 19: warning: exported method JSON.Value should have comment or be unexported (golint)
    • Line 30: warning: exported function NewJSON should have comment or be unexported (golint)
    • firmeve/firmeve.go
    • Line 28: warning: exported var Application should have comment or be unexported (golint)
    • Line 42: warning: exported function WithProviders should have comment or be unexported (golint)
    • Line 48: warning: exported function WithCommands should have comment or be unexported (golint)
    • Line 54: warning: exported function WithConfigPath should have comment or be unexported (golint)
    • Line 60: warning: exported function RunDefault should have comment or be unexported (golint)
    • Line 68: warning: exported function Run should have comment or be unexported (golint)
    • Line 72: warning: exported function RunWithFunc should have comment or be unexported (golint)
    • Line 88: warning: exported function RunWithSupportFunc should have comment or be unexported (golint)
    • firmeve/jwt/memory.go
    • Line 8: warning: exported type Memory should have comment or be unexported (golint)
    • Line 13: warning: exported function NewMemoryStore should have comment or be unexported (golint)
    • Line 20: warning: exported method Memory.Has should have comment or be unexported (golint)
    • Line 35: warning: exported method Memory.Put should have comment or be unexported (golint)
    • Line 45: warning: exported method Memory.Forget should have comment or be unexported (golint)
    • Line 57: warning: exported method Memory.Clear should have comment or be unexported (golint)
    • firmeve/render/paginator.go
    • Line 11: warning: exported var Paginator should have comment or be unexported (golint)
    • Line 17: warning: exported type PaginatorResource should have comment or be unexported (golint)
    • firmeve/logger/provider.go
    • Line 9: warning: exported type Provider should have comment or be unexported (golint)
    • Line 13: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 17: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 23: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/kernel/contract/application.go
    • Line 1: warning: package comment should be of the form "Package contract ..." (golint)
    • Line 5: warning: exported const ModeDevelopment should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type Application should have comment or be unexported (golint)
    • Line 29: warning: exported type PoolFunc should have comment or be unexported (golint)
    • Line 31: warning: exported type Pool should have comment or be unexported (golint)
    • firmeve/testing/firmeve.go
    • Line 14: warning: exported function Application should have comment or be unexported (golint)
    • Line 20: warning: exported function ApplicationDefault should have comment or be unexported (golint)
    • firmeve/kernel/recover.go
    • Line 10: warning: comment on exported function Recover should be of the form "Recover ..." (golint)
    • Line 15: warning: comment on exported function RecoverCallback should be of the form "RecoverCallback ..." (golint)
    • firmeve/http/provider.go
    • Line 11: warning: exported type Provider should have comment or be unexported (golint)
    • Line 15: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 35: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/validator/provider.go
    • Line 15: warning: exported type Provider should have comment or be unexported (golint)
    • Line 20: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 24: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 33: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/event/provider.go
    • Line 8: warning: exported type Provider should have comment or be unexported (golint)
    • Line 12: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 16: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 20: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/database/gorm/array.go
    • Line 9: warning: exported type StringArray should have comment or be unexported (golint)
    • Line 14: warning: exported type IntArray should have comment or be unexported (golint)
    • Line 20: warning: exported method StringArray.Scan should have comment or be unexported (golint)
    • Line 24: warning: exported method StringArray.Value should have comment or be unexported (golint)
    • Line 35: warning: exported method IntArray.Scan should have comment or be unexported (golint)
    • Line 39: warning: exported method IntArray.Value should have comment or be unexported (golint)
    • Line 50: warning: exported function NewStringArray should have comment or be unexported (golint)
    • Line 57: warning: exported function NewIntArray should have comment or be unexported (golint)
    • firmeve/support/reflect/type.go
    • Line 7: warning: exported function IndirectType should have comment or be unexported (golint)
    • Line 17: warning: exported function KindElemType should have comment or be unexported (golint)
    • Line 21: warning: exported type CallInParameterFunc should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function CallInParameterType should be of the form "CallInParameterType ..." (golint)
    • Line 37: warning: exported type CallFieldFunc should have comment or be unexported (golint)
    • Line 39: warning: comment on exported function CallFieldType should be of the form "CallFieldType ..." (golint)
    • Line 53: warning: exported type CallMethodFunc should have comment or be unexported (golint)
    • Line 55: warning: exported function CallMethodType should have comment or be unexported (golint)
    • Line 65: warning: exported function Methods should have comment or be unexported (golint)
    • Line 75: warning: exported function MethodExists should have comment or be unexported (golint)
    • Line 80: warning: comment on exported function StructFields should be of the form "StructFields ..." (golint)
    • firmeve/redis/redis.go
    • Line 8: warning: exported type Redis should have comment or be unexported (golint)
    • Line 14: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method Redis.Cluster should have comment or be unexported (golint)
    • Line 49: warning: exported method Redis.Client should have comment or be unexported (golint)
    • firmeve/examples/http/server.go
    • Line 15: warning: exported type App should have comment or be unexported (golint)
    • Line 19: warning: exported method App.Name should have comment or be unexported (golint)
    • Line 23: warning: exported method App.Register should have comment or be unexported (golint)
    • Line 26: warning: exported method App.Boot should have comment or be unexported (golint)
    • Line 77: warning: exported function Add should have comment or be unexported (golint)
    • firmeve/cron/cron.go
    • Line 10: warning: exported type Cron should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 21: warning: exported method Cron.RunWithFunc should have comment or be unexported (golint)
    • Line 27: warning: exported method Cron.RunWithJob should have comment or be unexported (golint)
    • Line 31: warning: exported method Cron.SecondsWithFunc should have comment or be unexported (golint)
    • Line 36: warning: exported method Cron.SecondsWithJob should have comment or be unexported (golint)
    • Line 41: warning: exported method Cron.EverySecondWithFunc should have comment or be unexported (golint)
    • Line 45: warning: exported method Cron.EverySecondWithJob should have comment or be unexported (golint)
    • Line 49: warning: exported method Cron.MinutesWithFunc should have comment or be unexported (golint)
    • Line 54: warning: exported method Cron.MinutesWithJob should have comment or be unexported (golint)
    • Line 59: warning: exported method Cron.EveryMinuteWithFunc should have comment or be unexported (golint)
    • Line 63: warning: exported method Cron.EveryMinuteWithJob should have comment or be unexported (golint)
    • Line 67: warning: exported method Cron.HoursWithFunc should have comment or be unexported (golint)
    • Line 72: warning: exported method Cron.HoursWithJob should have comment or be unexported (golint)
    • Line 77: warning: exported method Cron.EveryHourWithFunc should have comment or be unexported (golint)
    • Line 81: warning: exported method Cron.EveryHourWithJob should have comment or be unexported (golint)
    • Line 85: warning: exported method Cron.DayAtWithFunc should have comment or be unexported (golint)
    • Line 90: warning: exported method Cron.DayAtWithJob should have comment or be unexported (golint)
    • Line 94: warning: exported method Cron.EveryDayWithFunc should have comment or be unexported (golint)
    • Line 98: warning: exported method Cron.EveryDayWithJob should have comment or be unexported (golint)
    • Line 102: warning: exported method Cron.EveryWeeklyWithFunc should have comment or be unexported (golint)
    • Line 106: warning: exported method Cron.EveryWeeklyWithJob should have comment or be unexported (golint)
    • Line 110: warning: exported method Cron.WeeklyOnWithFunc should have comment or be unexported (golint)
    • Line 114: warning: exported method Cron.WeeklyOnWithJob should have comment or be unexported (golint)
    • Line 118: warning: exported method Cron.Start should have comment or be unexported (golint)
    • Line 122: warning: exported method Cron.Stop should have comment or be unexported (golint)
    • firmeve/support/option.go
    • Line 6: warning: comment on exported type Option should be of the form "Option ..." (with optional leading article) (golint)
    • Line 9: warning: comment on exported function ApplyOption should be of the form "ApplyOption ..." (golint)
    • firmeve/kernel/contract/binding.go
    • Line 6: warning: exported type Binding should have comment or be unexported (golint)
    • Line 10: warning: exported type BindingFile should have comment or be unexported (golint)
    • Line 20: warning: exported type FileInfo should have comment or be unexported (golint)
    • Line 31: warning: exported type UploadOption should have comment or be unexported (golint)
    • firmeve/kernel/contract/error.go
    • Line 1: warning: package comment should be of the form "Package contract ..." (golint)
    • Line 6: warning: exported type Error should have comment or be unexported (golint)
    • Line 30: warning: exported type ErrorStack should have comment or be unexported (golint)
    • Line 36: warning: exported type ErrorRender should have comment or be unexported (golint)
    • firmeve/http/http.go
    • Line 15: warning: exported type Http should have comment or be unexported (golint)
    • Line 57: warning: exported function NewWrapResponseWriter should have comment or be unexported (golint)
    • Line 65: warning: exported function NewHttp should have comment or be unexported (golint)
    • Line 83: warning: exported method Http.Name should have comment or be unexported (golint)
    • Line 87: warning: exported method Http.Application should have comment or be unexported (golint)
    • Line 95: warning: exported method Http.Metadata should have comment or be unexported (golint)
    • Line 99: warning: exported method Http.Message should have comment or be unexported (golint)
    • Line 110: warning: exported method Http.Request should have comment or be unexported (golint)
    • Line 114: warning: exported method Http.SetSession should have comment or be unexported (golint)
    • Line 118: warning: exported method Http.Session should have comment or be unexported (golint)
    • Line 122: warning: exported method Http.SessionValue should have comment or be unexported (golint)
    • Line 126: warning: exported method Http.ResponseWriter should have comment or be unexported (golint)
    • Line 134: warning: exported method Http.SetHeader should have comment or be unexported (golint)
    • Line 138: warning: exported method Http.Header should have comment or be unexported (golint)
    • Line 142: warning: exported method Http.IsContentType should have comment or be unexported (golint)
    • Line 146: warning: exported method Http.IsAccept should have comment or be unexported (golint)
    • Line 157: warning: exported method Http.IsMethod should have comment or be unexported (golint)
    • Line 161: warning: exported method Http.SetCookie should have comment or be unexported (golint)
    • Line 171: warning: exported method Http.Cookie should have comment or be unexported (golint)
    • Line 180: warning: exported method Http.Redirect should have comment or be unexported (golint)
    • Line 184: warning: exported method Http.SetStatus should have comment or be unexported (golint)
    • Line 188: warning: exported method Http.ContentType should have comment or be unexported (golint)
    • Line 192: warning: exported method Http.Accept should have comment or be unexported (golint)
    • Line 196: warning: exported method Http.SetParams should have comment or be unexported (golint)
    • Line 200: warning: exported method Http.Params should have comment or be unexported (golint)
    • Line 204: warning: exported method Http.Param should have comment or be unexported (golint)
    • Line 214: warning: exported method Http.SetRoute should have comment or be unexported (golint)
    • Line 218: warning: exported method Http.Route should have comment or be unexported (golint)
    • Line 222: warning: exported method Http.Values should have comment or be unexported (golint)
    • Line 250: warning: exported method Http.ClientIP should have comment or be unexported (golint)
    • Line 254: warning: exported method Http.Clone should have comment or be unexported (golint)
    • firmeve/http/route.go
    • Line 6: warning: exported type Route should have comment or be unexported (golint)
    • Line 14: warning: exported method Route.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method Route.Use should have comment or be unexported (golint)
    • Line 24: warning: exported method Route.Handlers should have comment or be unexported (golint)
    • firmeve/cache/cache.go
    • Line 10: warning: exported type Cache should have comment or be unexported (golint)
    • Line 16: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 26: warning: exported var ErrDriverNotFound should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 38: warning: comment on exported method Cache.Driver should be of the form "Driver ..." (golint)
    • Line 57: warning: exported method Cache.Store should have comment or be unexported (golint)
    • Line 61: warning: exported method Cache.Get should have comment or be unexported (golint)
    • Line 65: warning: exported method Cache.GetDefault should have comment or be unexported (golint)
    • Line 69: warning: exported method Cache.Pull should have comment or be unexported (golint)
    • Line 73: warning: exported method Cache.PullDefault should have comment or be unexported (golint)
    • Line 77: warning: exported method Cache.Add should have comment or be unexported (golint)
    • Line 81: warning: exported method Cache.Put should have comment or be unexported (golint)
    • Line 85: warning: exported method Cache.Forever should have comment or be unexported (golint)
    • Line 89: warning: exported method Cache.Forget should have comment or be unexported (golint)
    • Line 93: warning: exported method Cache.Increment should have comment or be unexported (golint)
    • Line 97: warning: exported method Cache.Decrement should have comment or be unexported (golint)
    • Line 101: warning: exported method Cache.Has should have comment or be unexported (golint)
    • Line 105: warning: exported method Cache.Flush should have comment or be unexported (golint)
    • Line 109: warning: exported method Cache.GetDecode should have comment or be unexported (golint)
    • Line 113: warning: exported method Cache.AddEncode should have comment or be unexported (golint)
    • Line 117: warning: exported method Cache.ForeverEncode should have comment or be unexported (golint)
    • Line 121: warning: exported method Cache.PutEncode should have comment or be unexported (golint)
    • firmeve/jwt/provider.go
    • Line 7: warning: exported type Provider should have comment or be unexported (golint)
    • Line 11: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 15: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 26: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/database/provider.go
    • Line 8: warning: exported type Provider should have comment or be unexported (golint)
    • Line 12: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 16: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 31: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/kernel/contract/scheduler.go
    • Line 4: warning: exported type Scheduler should have comment or be unexported (golint)
    • Line 13: warning: exported type SchedulerHandler should have comment or be unexported (golint)
    • Line 17: warning: exported type SchedulerFailed should have comment or be unexported (golint)
    • Line 21: warning: exported type SchedulerMessage should have comment or be unexported (golint)
    • firmeve/render/item.go
    • Line 10: warning: exported var Item should have comment or be unexported (golint)
    • Line 16: warning: exported type ItemResource should have comment or be unexported (golint)
    • firmeve/http/router.go
    • Line 11: warning: exported type Router should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 31: warning: exported method Router.GET should have comment or be unexported (golint)
    • Line 35: warning: exported method Router.POST should have comment or be unexported (golint)
    • Line 39: warning: exported method Router.PUT should have comment or be unexported (golint)
    • Line 43: warning: exported method Router.PATCH should have comment or be unexported (golint)
    • Line 47: warning: exported method Router.DELETE should have comment or be unexported (golint)
    • Line 51: warning: exported method Router.OPTIONS should have comment or be unexported (golint)
    • Line 55: warning: comment on exported method Router.Static should be of the form "Static ..." (golint)
    • Line 61: warning: exported method Router.NotFound should have comment or be unexported (golint)
    • Line 69: warning: exported method Router.Handler should have comment or be unexported (golint)
    • Line 77: warning: exported method Router.HttpRouter should have comment or be unexported (golint)
    • Line 81: warning: comment on exported method Router.Group should be of the form "Group ..." (golint)
    • firmeve/converter/serializer/data.go
    • Line 7: warning: exported type Data should have comment or be unexported (golint)
    • Line 11: warning: exported method Data.Resolve should have comment or be unexported (golint)
    • Line 39: warning: exported function NewData should have comment or be unexported (golint)
    • firmeve/render/html.go
    • Line 16: warning: exported type Template should have comment or be unexported (golint)
    • Line 24: warning: exported var Html should have comment or be unexported (golint)
    • firmeve/examples/command/main.go
    • Line 10: warning: exported type TestCommand should have comment or be unexported (golint)
    • Line 13: warning: exported method TestCommand.CobraCmd should have comment or be unexported (golint)
    • Line 20: warning: exported method TestCommand.Run should have comment or be unexported (golint)
    • firmeve/render/collection.go
    • Line 10: warning: exported var Collection should have comment or be unexported (golint)
    • Line 16: warning: exported type CollectionResource should have comment or be unexported (golint)
    • firmeve/kernel/config.go
    • Line 20: warning: exported type Config should have comment or be unexported (golint)
    • Line 26: warning: comment on exported function NewConfig should be of the form "NewConfig ..." (golint)
    • Line 47: warning: exported method Config.Bind should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method Config.GetBool should be of the form "GetBool ..." (golint)
    • Line 65: warning: comment on exported method Config.GetFloat should be of the form "GetFloat ..." (golint)
    • Line 70: warning: comment on exported method Config.GetInt should be of the form "GetInt ..." (golint)
    • Line 75: warning: comment on exported method Config.GetIntSlice should be of the form "GetIntSlice ..." (golint)
    • Line 80: warning: comment on exported method Config.GetString should be of the form "GetString ..." (golint)
    • Line 85: warning: comment on exported method Config.GetStringMap should be of the form "GetStringMap ..." (golint)
    • Line 90: warning: comment on exported method Config.GetStringMapString should be of the form "GetStringMapString ..." (golint)
    • Line 95: warning: comment on exported method Config.GetStringSlice should be of the form "GetStringSlice ..." (golint)
    • Line 100: warning: comment on exported method Config.GetTime should be of the form "GetTime ..." (golint)
    • Line 105: warning: comment on exported method Config.GetDuration should be of the form "GetDuration ..." (golint)
    • Line 110: warning: comment on exported method Config.Exists should be of the form "Exists ..." (golint)
    • Line 124: warning: comment on exported method Config.SetDefault should be of the form "SetDefault ..." (golint)
    • Line 133: warning: exported method Config.Clone should have comment or be unexported (golint)
    • Line 142: warning: comment on exported function SetEnv should be of the form "SetEnv ..." (golint)
    • Line 150: warning: comment on exported function GetEnv should be of the form "GetEnv ..." (golint)
    • firmeve/redis/provider.go
    • Line 7: warning: exported type Provider should have comment or be unexported (golint)
    • Line 11: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 15: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 24: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/support/slices/slice.go
    • Line 8: warning: exported type Slice should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported function NewWith should have comment or be unexported (golint)
    • Line 38: warning: exported method Slice.Add should have comment or be unexported (golint)
    • Line 46: warning: exported method Slice.DeleteWithValue should have comment or be unexported (golint)
    • Line 61: warning: exported method Slice.Values should have comment or be unexported (golint)
    • Line 65: warning: exported method Slice.Len should have comment or be unexported (golint)
    • Line 69: warning: exported method Slice.Exists should have comment or be unexported (golint)
    • Line 78: warning: exported method Slice.Index should have comment or be unexported (golint)
    • Line 87: warning: exported method Slice.LastIndex should have comment or be unexported (golint)
    • firmeve/database/gorm/query.go
    • Line 18: warning: exported function NewGORMQueryMagic should have comment or be unexported (golint)
    • Line 30: warning: exported function NewGORMQueryMagicMust should have comment or be unexported (golint)
    • firmeve/database/gorm/sql.go
    • Line 8: warning: exported function NewString should have comment or be unexported (golint)
    • Line 15: warning: exported function NewInt64 should have comment or be unexported (golint)
    • Line 22: warning: exported function NewInt32 should have comment or be unexported (golint)
    • Line 29: warning: exported function NewFloat64 should have comment or be unexported (golint)
    • Line 36: warning: exported function NewBool should have comment or be unexported (golint)
    • Line 43: warning: exported function NewTime should have comment or be unexported (golint)
    • firmeve/support/reflect/value.go
    • Line 7: warning: exported function CanSetValue should have comment or be unexported (golint)
    • Line 11: warning: exported function InterfaceValue should have comment or be unexported (golint)
    • Line 19: warning: exported function SliceInterface should have comment or be unexported (golint)
    • Line 34: warning: exported function CallFuncValue should have comment or be unexported (golint)
    • Line 54: warning: exported function CallMethodValue should have comment or be unexported (golint)
    • Line 58: warning: comment on exported function CallFieldValue should be of the form "CallFieldValue ..." (golint)
    • Line 67: warning: comment on exported function CallOriginalFieldValue should be of the form "CallOriginalFieldValue ..." (golint)
    • firmeve/testing/http.go
    • Line 8: warning: exported type MockResponseWriter should have comment or be unexported (golint)
    • Line 15: warning: exported method MockResponseWriter.Header should have comment or be unexported (golint)
    • Line 24: warning: exported method MockResponseWriter.WriteHeader should have comment or be unexported (golint)
    • Line 28: warning: exported method MockResponseWriter.StatusCode should have comment or be unexported (golint)
    • Line 32: warning: exported function NewMockResponseWriter should have comment or be unexported (golint)
    • Line 38: warning: exported type MockRequest should have comment or be unexported (golint)
    • Line 42: warning: exported function NewMockRequest should have comment or be unexported (golint)
    • firmeve/examples/upload/server.go
    • Line 12: warning: exported type App should have comment or be unexported (golint)
    • Line 16: warning: exported method App.Name should have comment or be unexported (golint)
    • Line 20: warning: exported method App.Register should have comment or be unexported (golint)
    • Line 23: warning: exported method App.Boot should have comment or be unexported (golint)
    • firmeve/kernel/provider.go
    • Line 9: warning: exported type BaseProvider should have comment or be unexported (golint)
    • Line 15: warning: exported method BaseProvider.Bind should have comment or be unexported (golint)
    • Line 19: warning: exported method BaseProvider.Resolve should have comment or be unexported (golint)
    • Line 23: warning: exported method BaseProvider.BindConfig should have comment or be unexported (golint)
    • firmeve/cache/provider.go
    • Line 10: warning: exported type Provider should have comment or be unexported (golint)
    • Line 14: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 34: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/support/hash/hash.go
    • Line 16: warning: exported function Sha1 should have comment or be unexported (golint)
    • Line 23: warning: exported function Sha1String should have comment or be unexported (golint)
    • Line 27: warning: exported function Md5 should have comment or be unexported (golint)
    • Line 34: warning: exported function Md5String should have comment or be unexported (golint)
    • Line 38: warning: exported function Sha256 should have comment or be unexported (golint)
    • Line 45: warning: exported function Sha256String should have comment or be unexported (golint)
    • firmeve/kernel/contract/http.go
    • Line 1: warning: package comment should be of the form "Package contract ..." (golint)
    • Line 10: warning: exported const HttpMimeJson should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type HttpProtocol should have comment or be unexported (golint)
    • Line 68: warning: exported type HttpRoute should have comment or be unexported (golint)
    • Line 76: warning: exported type HttpRouteGroup should have comment or be unexported (golint)
    • Line 98: warning: exported type HttpRouter should have comment or be unexported (golint)
    • Line 123: warning: exported type HttpWrapResponseWriter should have comment or be unexported (golint)
    • Line 129: warning: exported type Session should have comment or be unexported (golint)
    • firmeve/kernel/contract/jwt.go
    • Line 9: warning: exported type Jwt should have comment or be unexported (golint)
    • Line 21: warning: exported type JwtAudience should have comment or be unexported (golint)
    • Line 25: warning: exported type JwtStore should have comment or be unexported (golint)
    • Line 33: warning: exported type Token should have comment or be unexported (golint)
    • firmeve/http/middleware.go
    • Line 12: warning: exported function Recovery should have comment or be unexported (golint)
    • Line 33: warning: exported function Session should have comment or be unexported (golint)
    • Line 46: warning: exported function Auth should have comment or be unexported (golint)
    • firmeve/converter/resource/collection.go
    • Line 10: warning: exported type Collection should have comment or be unexported (golint)
    • Line 22: warning: exported function NewCollection should have comment or be unexported (golint)
    • Line 30: warning: exported method Collection.SetMeta should have comment or be unexported (golint)
    • Line 34: warning: exported method Collection.Meta should have comment or be unexported (golint)
    • Line 38: warning: exported method Collection.SetLink should have comment or be unexported (golint)
    • Line 42: warning: exported method Collection.Link should have comment or be unexported (golint)
    • Line 46: warning: exported method Collection.CollectionData should have comment or be unexported (golint)
    • firmeve/kernel/contract/cache.go
    • Line 6: warning: exported type CacheStore should have comment or be unexported (golint)
    • Line 26: warning: exported type CacheSerializable should have comment or be unexported (golint)
    • Line 44: warning: exported type Cache should have comment or be unexported (golint)
    • firmeve/kernel/contract/context.go
    • Line 1: warning: package comment should be of the form "Package contract ..." (golint)
    • Line 9: warning: exported type ContextHandler should have comment or be unexported (golint)
    • Line 11: warning: exported type ContextEntity should have comment or be unexported (golint)
    • Line 16: warning: exported type ContextPool should have comment or be unexported (golint)
    • Line 24: warning: exported type Context should have comment or be unexported (golint)
    • firmeve/support/slices/slices.go
    • Line 8: warning: exported function UniqueString should have comment or be unexported (golint)
    • Line 17: warning: exported function UniqueInt should have comment or be unexported (golint)
    • Line 26: warning: exported function UniqueInterface should have comment or be unexported (golint)
    • Line 40: warning: exported function InString should have comment or be unexported (golint)
    • Line 50: warning: exported function InInt should have comment or be unexported (golint)
    • Line 60: warning: exported function InInterface should have comment or be unexported (golint)
    • firmeve/binding/form.go
    • Line 15: warning: error var ProtocolTypeError should have name of the form ErrFoo (golint)
    • Line 15: warning: exported var ProtocolTypeError should have comment or be unexported (golint)
    • firmeve/container/container.go
    • Line 39: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 47: warning: comment on exported function WithShare should be of the form "WithShare ..." (golint)
    • Line 54: warning: comment on exported function WithCover should be of the form "WithCover ..." (golint)
    • Line 207: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • firmeve/cron/provider.go
    • Line 5: warning: exported type Provider should have comment or be unexported (golint)
    • Line 9: warning: exported method Provider.Name should have comment or be unexported (golint)
    • Line 13: warning: exported method Provider.Register should have comment or be unexported (golint)
    • Line 17: warning: exported method Provider.Boot should have comment or be unexported (golint)
    • firmeve/database/database.go
    • Line 12: warning: exported type DB should have comment or be unexported (golint)
    • Line 22: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 50: warning: exported method DB.ConnectionDB should have comment or be unexported (golint)
    • Line 54: warning: exported method DB.ConnectionNewDB should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method DB.Connection should be of the form "Connection ..." (golint)
    • Line 100: warning: exported method DB.Close should have comment or be unexported (golint)
    • firmeve/context/context.go
    • Line 33: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 41: warning: exported function ReleaseContext should have comment or be unexported (golint)
    • firmeve/http/group.go
    • Line 9: warning: exported type Group should have comment or be unexported (golint)
    • Line 15: warning: exported method Group.Prefix should have comment or be unexported (golint)
    • Line 20: warning: exported method Group.Use should have comment or be unexported (golint)
    • Line 25: warning: exported method Group.GET should have comment or be unexported (golint)
    • Line 29: warning: exported method Group.POST should have comment or be unexported (golint)
    • Line 33: warning: exported method Group.PUT should have comment or be unexported (golint)
    • Line 37: warning: exported method Group.PATCH should have comment or be unexported (golint)
    • Line 41: warning: exported method Group.DELETE should have comment or be unexported (golint)
    • Line 45: warning: exported method Group.OPTIONS should have comment or be unexported (golint)
    • Line 49: warning: exported method Group.Group should have comment or be unexported (golint)
    • Line 53: warning: exported method Group.Handler should have comment or be unexported (golint)
    • firmeve/kernel/application.go
    • Line 15: warning: exported type Application should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method Application.SetMode should have comment or be unexported (golint)
    • Line 41: warning: exported method Application.Mode should have comment or be unexported (golint)
    • Line 45: warning: exported method Application.Version should have comment or be unexported (golint)
    • Line 49: warning: exported method Application.IsDevelopment should have comment or be unexported (golint)
    • Line 53: warning: exported method Application.IsProduction should have comment or be unexported (golint)
    • Line 57: warning: exported method Application.IsTesting should have comment or be unexported (golint)
    • Line 61: warning: exported method Application.Resolve should have comment or be unexported (golint)
    • Line 65: warning: exported method Application.Boot should have comment or be unexported (golint)
    • Line 77: warning: exported method Application.Register should have comment or be unexported (golint)
    • Line 93: warning: exported method Application.RegisterMultiple should have comment or be unexported (golint)
    • Line 99: warning: exported method Application.HasProvider should have comment or be unexported (golint)
    • Line 107: warning: exported method Application.GetProvider should have comment or be unexported (golint)
    • Line 115: warning: exported method Application.Reset should have comment or be unexported (golint)
    • Line 128: warning: exported method Application.RegisterPool should have comment or be unexported (golint)
    • Line 142: warning: exported method Application.PoolValue should have comment or be unexported (golint)
    • Line 153: warning: exported method Application.ReleasePool should have comment or be unexported (golint)
    • firmeve/cache/redis/redis.go
    • Line 16: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 88: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • firmeve/database/migrate.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 23: warning: exported type MigrateCommand should have comment or be unexported (golint)
    • Line 34: warning: exported function NewMigration should have comment or be unexported (golint)
    • Line 40: warning: exported method MigrateCommand.CobraCmd should have comment or be unexported (golint)
    • Line 73: warning: exported method MigrateCommand.Run should have comment or be unexported (golint)
    • firmeve/kernel/contract/resource.go
    • Line 4: warning: exported type ResourceMetaData should have comment or be unexported (golint)
    • Line 6: warning: exported type ResourceData should have comment or be unexported (golint)
    • Line 8: warning: exported type ResourceDataCollection should have comment or be unexported (golint)
    • Line 10: warning: exported type ResourceLinkData should have comment or be unexported (golint)
    • Line 12: warning: exported type ResourceFields should have comment or be unexported (golint)
    • Line 14: warning: exported type ResourceMeta should have comment or be unexported (golint)
    • Line 19: warning: exported type ResourceLink should have comment or be unexported (golint)
    • Line 24: warning: exported type ResourceDatable should have comment or be unexported (golint)
    • Line 28: warning: exported type ResourceCollectionData should have comment or be unexported (golint)
    • Line 32: warning: exported type ResourceResolver should have comment or be unexported (golint)
    • Line 36: warning: exported type ResourceResolveData should have comment or be unexported (golint)
    • Line 38: warning: exported type ResourceTransformer should have comment or be unexported (golint)
    • firmeve/render/file.go
    • Line 14: warning: exported type FileOption should have comment or be unexported (golint)
    • Line 22: warning: exported var File should have comment or be unexported (golint)
    • firmeve/binding/multipart_form.go
    • Line 24: warning: exported type MultipartFiles should have comment or be unexported (golint)
    • Line 28: warning: exported var MultipartForm should have comment or be unexported (golint)
    • Line 59: warning: exported method MultipartFiles.Files should have comment or be unexported (golint)
    • Line 63: warning: exported method MultipartFiles.File should have comment or be unexported (golint)
    • Line 67: warning: exported method MultipartFiles.Save should have comment or be unexported (golint)
    • Line 131: warning: exported method MultipartFiles.SaveAll should have comment or be unexported (golint)
    • Line 135: warning: exported function FileName should have comment or be unexported (golint)
    • Line 145: warning: exported function FileHash should have comment or be unexported (golint)
    • Line 152: warning: exported function Filepath should have comment or be unexported (golint)
    • Line 170: warning: exported function FileMime should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • firmeve/cache/cache_test.go
    • Line 56: warning: ineffectual assignment to err (ineffassign)
    • Line 62: warning: ineffectual assignment to err (ineffassign)
    • Line 67: warning: ineffectual assignment to err (ineffassign)
    • Line 166: warning: ineffectual assignment to err (ineffassign)
    • Line 179: warning: ineffectual assignment to err (ineffassign)
    • Line 192: warning: ineffectual assignment to err (ineffassign)
    • Line 222: warning: ineffectual assignment to err (ineffassign)
    • Line 235: warning: ineffectual assignment to err (ineffassign)
    • Line 248: warning: ineffectual assignment to err (ineffassign)
    • firmeve/cache/redis/redis_test.go
    • Line 95: warning: ineffectual assignment to err (ineffassign)
    • Line 132: warning: ineffectual assignment to err (ineffassign)
    • Line 180: warning: ineffectual assignment to err (ineffassign)
    • Line 193: warning: ineffectual assignment to err (ineffassign)
    • Line 206: warning: ineffectual assignment to err (ineffassign)
    • Line 236: warning: ineffectual assignment to err (ineffassign)
    • Line 252: warning: ineffectual assignment to err (ineffassign)
    • Line 265: warning: ineffectual assignment to err (ineffassign)
    • Line 283: warning: ineffectual assignment to err (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!