Preparing report...

Report for github.com/totoval/framework

A    Great!    Found 154 issues across 169 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!


golint8%

Golint is a linter for Go source code.

    • framework/hub/hub.go
    • Line 13: warning: exported function Make should have comment or be unexported (golint)
    • Line 20: warning: comment on exported function Register should be of the form "Register ..." (golint)
    • framework/utils/code_verify/code_verify.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported const VALIDATION_CACHE_KEY should have comment or be unexported (golint)
    • Line 18: warning: exported function Generate should have comment or be unexported (golint)
    • Line 24: warning: exported function Verify should have comment or be unexported (golint)
    • framework/cache/rate_limit.go
    • Line 12: warning: exported type RateLimit should have comment or be unexported (golint)
    • Line 16: warning: exported function NewRateLimit should have comment or be unexported (golint)
    • Line 22: warning: exported const RATE_LIMITE_CACHE_KEY should have comment or be unexported (golint)
    • Line 23: warning: exported const RATE_LIMITE_TIMER_CACHE_KEY should have comment or be unexported (golint)
    • Line 32: warning: exported method RateLimit.TooManyAttempts should have comment or be unexported (golint)
    • Line 42: warning: exported method RateLimit.Hit should have comment or be unexported (golint)
    • Line 55: warning: exported method RateLimit.Attempts should have comment or be unexported (golint)
    • Line 63: warning: exported method RateLimit.ResetAttempts should have comment or be unexported (golint)
    • Line 66: warning: exported method RateLimit.RetriesLeft should have comment or be unexported (golint)
    • Line 70: warning: exported method RateLimit.Clear should have comment or be unexported (golint)
    • Line 74: warning: exported method RateLimit.AvailableIn should have comment or be unexported (golint)
    • framework/helpers/pb/helpers.go
    • Line 10: warning: exported function DurationConvert should have comment or be unexported (golint)
    • Line 14: warning: exported function TimestampConvert should have comment or be unexported (golint)
    • framework/cmd/schedule/when.go
    • Line 3: warning: exported type When should have comment or be unexported (golint)
    • Line 6: warning: exported const EveryYear should have comment (or a comment on this block) or be unexported (golint)
    • framework/notification/notifier.go
    • Line 3: warning: exported type Notifier should have comment or be unexported (golint)
    • Line 7: warning: exported type Driver should have comment or be unexported (golint)
    • Line 13: warning: exported type Messager should have comment or be unexported (golint)
    • framework/request/websocket/base_handler.go
    • Line 9: warning: exported type BaseHandler should have comment or be unexported (golint)
    • Line 12: warning: exported method BaseHandler.OnPing should have comment or be unexported (golint)
    • Line 16: warning: exported method BaseHandler.OnPong should have comment or be unexported (golint)
    • Line 20: warning: exported method BaseHandler.OnClose should have comment or be unexported (golint)
    • Line 24: warning: exported method BaseHandler.ReadBufferSize should have comment or be unexported (golint)
    • Line 27: warning: exported method BaseHandler.WriteBufferSize should have comment or be unexported (golint)
    • Line 30: warning: exported method BaseHandler.CheckOrigin should have comment or be unexported (golint)
    • Line 33: warning: exported method BaseHandler.WriteTimeout should have comment or be unexported (golint)
    • Line 36: warning: exported method BaseHandler.ReadTimeout should have comment or be unexported (golint)
    • Line 39: warning: exported method BaseHandler.MaxMessageSize should have comment or be unexported (golint)
    • framework/cmd/schedule.go
    • Line 3: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 9: warning: exported function ScheduleCommandList should have comment or be unexported (golint)
    • Line 13: warning: exported function NewSchedule should have comment or be unexported (golint)
    • Line 19: warning: exported method Schedule.Command should have comment or be unexported (golint)
    • framework/helpers/zone/helpers.go
    • Line 11: warning: exported type Time should have comment or be unexported (golint)
    • Line 12: warning: exported type Duration should have comment or be unexported (golint)
    • Line 13: warning: exported type Location should have comment or be unexported (golint)
    • Line 14: warning: exported type Timer should have comment or be unexported (golint)
    • Line 15: warning: exported type Ticker should have comment or be unexported (golint)
    • Line 17: warning: exported type Month should have comment or be unexported (golint)
    • Line 18: warning: exported type Weekday should have comment or be unexported (golint)
    • Line 21: warning: exported const Sunday should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const Nanosecond should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 46: warning: exported function Date should have comment or be unexported (golint)
    • Line 49: warning: exported function Until should have comment or be unexported (golint)
    • Line 52: warning: exported function AfterFunc should have comment or be unexported (golint)
    • Line 55: warning: exported function After should have comment or be unexported (golint)
    • Line 62: warning: exported function Since should have comment or be unexported (golint)
    • Line 65: warning: exported function Now should have comment or be unexported (golint)
    • Line 68: warning: exported function NewTimer should have comment or be unexported (golint)
    • Line 71: warning: exported function NewTicker should have comment or be unexported (golint)
    • Line 74: warning: exported function Tick should have comment or be unexported (golint)
    • Line 81: warning: exported function ParseDuration should have comment or be unexported (golint)
    • Line 84: warning: exported function Sleep should have comment or be unexported (golint)
    • Line 87: warning: exported function Parse should have comment or be unexported (golint)
    • Line 90: warning: exported function Unix should have comment or be unexported (golint)
    • Line 94: warning: exported function GetLocation should have comment or be unexported (golint)
    • Line 98: warning: exported function At should have comment or be unexported (golint)
    • framework/helpers/cache/proto_buffer.go
    • Line 10: warning: exported function Pget should have comment or be unexported (golint)
    • Line 13: warning: exported function Ppull should have comment or be unexported (golint)
    • Line 16: warning: exported function Pput should have comment or be unexported (golint)
    • Line 19: warning: exported function Padd should have comment or be unexported (golint)
    • Line 22: warning: exported function Pforever should have comment or be unexported (golint)
    • framework/model/modeller.go
    • Line 5: warning: exported type Modeller should have comment or be unexported (golint)
    • Line 13: warning: exported type Context should have comment or be unexported (golint)
    • framework/resources/lang/internal/locale.go
    • Line 14: warning: exported type UnmarshalFunc should have comment or be unexported (golint)
    • Line 16: warning: exported var LocalizerMap should have comment or be unexported (golint)
    • Line 85: warning: exported function AddLocale should have comment or be unexported (golint)
    • Line 91: warning: exported function HasLocale should have comment or be unexported (golint)
    • Line 98: warning: exported function Locale should have comment or be unexported (golint)
    • framework/notification/notify.go
    • Line 3: warning: exported type Notify should have comment or be unexported (golint)
    • Line 7: warning: exported method Notify.Prepare should have comment or be unexported (golint)
    • Line 12: warning: exported method Notify.SetDriver should have comment or be unexported (golint)
    • framework/biu/types.go
    • Line 13: warning: exported type Method should have comment or be unexported (golint)
    • Line 16: warning: exported const MethodGet should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type Cookie should have comment or be unexported (golint)
    • Line 29: warning: exported type AllowRedirects should have comment or be unexported (golint)
    • Line 37: warning: exported type Protocol should have comment or be unexported (golint)
    • Line 40: warning: exported const ProtocolHttp should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported type Body should have comment or be unexported (golint)
    • Line 79: warning: exported type UrlParam should have comment or be unexported (golint)
    • framework/utils/crypt/aes.go
    • Line 18: warning: exported function Encrypt should have comment or be unexported (golint)
    • Line 32: warning: exported function Decrypt should have comment or be unexported (golint)
    • framework/utils/jwt/token.go
    • Line 15: warning: exported const ExpiredTime should have comment or be unexported (golint)
    • Line 16: warning: exported const RefreshExpiredTime should have comment or be unexported (golint)
    • Line 17: warning: exported const MaxRefreshTimes should have comment or be unexported (golint)
    • Line 19: warning: exported const REFRESH_TOKEN_CACHE_KEY should have comment or be unexported (golint)
    • Line 20: warning: exported const REVOKED_TOKEN_CACHE_KEY should have comment or be unexported (golint)
    • Line 35: warning: error var TokenExpired should have name of the form ErrFoo (golint)
    • Line 35: warning: exported var TokenExpired should have comment or be unexported (golint)
    • Line 36: warning: error var TokenNotValidYet should have name of the form ErrFoo (golint)
    • Line 37: warning: error var TokenMalformed should have name of the form ErrFoo (golint)
    • Line 38: warning: error var TokenInvalid should have name of the form ErrFoo (golint)
    • Line 39: warning: error var TokenNoSet should have name of the form ErrFoo (golint)
    • Line 42: warning: exported type UserClaims should have comment or be unexported (golint)
    • Line 50: warning: exported method UserClaims.Valid should have comment or be unexported (golint)
    • Line 79: warning: exported type JWT should have comment or be unexported (golint)
    • Line 83: warning: exported function NewJWT should have comment or be unexported (golint)
    • Line 88: warning: exported method JWT.CreateToken should have comment or be unexported (golint)
    • Line 104: warning: exported method JWT.ParseToken should have comment or be unexported (golint)
    • Line 136: warning: exported method JWT.RefreshToken should have comment or be unexported (golint)
    • Line 180: warning: exported method JWT.RefreshTokenUnverified should have comment or be unexported (golint)
    • Line 216: warning: exported method JWT.IsRevoked should have comment or be unexported (golint)
    • Line 219: warning: exported method JWT.RevokeToken should have comment or be unexported (golint)
    • framework/cmd/commands/schedule/schedule.go
    • Line 14: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 17: warning: exported method Schedule.Command should have comment or be unexported (golint)
    • Line 21: warning: exported method Schedule.Description should have comment or be unexported (golint)
    • Line 25: warning: exported method Schedule.Handler should have comment or be unexported (golint)
    • framework/cmd/commands/queue/listen.go
    • Line 14: warning: exported type Listen should have comment or be unexported (golint)
    • Line 17: warning: exported method Listen.Command should have comment or be unexported (golint)
    • Line 21: warning: exported method Listen.Description should have comment or be unexported (golint)
    • Line 25: warning: exported method Listen.Handler should have comment or be unexported (golint)
    • framework/model/helper/helpers.go
    • Line 15: warning: exported type Helper should have comment or be unexported (golint)
    • Line 19: warning: exported method Helper.SetTX should have comment or be unexported (golint)
    • Line 105: warning: comment on exported method Helper.Create should be of the form "Create ..." (golint)
    • Line 157: warning: comment on exported method Helper.Save should be of the form "Save ..." (golint)
    • Line 212: warning: exported method Helper.SaveByID should have comment or be unexported (golint)
    • Line 217: warning: comment on exported method Helper.First should be of the form "First ..." (golint)
    • Line 229: warning: exported method Helper.FirstForUpdate should have comment or be unexported (golint)
    • Line 240: warning: exported method Helper.Delete should have comment or be unexported (golint)
    • Line 269: warning: exported method Helper.Restore should have comment or be unexported (golint)
    • Line 280: warning: exported method Helper.Q should have comment or be unexported (golint)
    • Line 355: warning: exported method Helper.Count should have comment or be unexported (golint)
    • Line 360: warning: exported method Helper.Exist should have comment or be unexported (golint)
    • framework/hub/event.go
    • Line 5: warning: exported type Event should have comment or be unexported (golint)
    • Line 9: warning: exported method Event.SetParam should have comment or be unexported (golint)
    • Line 17: warning: exported method Event.ParamProto should have comment or be unexported (golint)
    • framework/queue/retry.go
    • Line 39: warning: exported function Forget should have comment or be unexported (golint)
    • Line 46: warning: exported function Flush should have comment or be unexported (golint)
    • Line 50: warning: exported function Retry should have comment or be unexported (golint)
    • framework/job/helpers.go
    • Line 9: warning: exported function Dispatch should have comment or be unexported (golint)
    • Line 16: warning: exported function Process should have comment or be unexported (golint)
    • framework/model/types/bigfloat/bigfloat.go
    • Line 24: warning: exported type BigFloat should have comment or be unexported (golint)
    • Line 30: warning: exported const AutoPrec should have comment or be unexported (golint)
    • Line 32: warning: exported function Zero should have comment or be unexported (golint)
    • Line 38: warning: exported method BigFloat.Convert should have comment or be unexported (golint)
    • Line 46: warning: exported method BigFloat.Float should have comment or be unexported (golint)
    • Line 50: warning: exported method BigFloat.BF should have comment or be unexported (golint)
    • Line 54: warning: exported method BigFloat.Value should have comment or be unexported (golint)
    • Line 58: warning: exported method BigFloat.Scan should have comment or be unexported (golint)
    • Line 120: warning: exported method BigFloat.SetInt should have comment or be unexported (golint)
    • Line 128: warning: exported method BigFloat.Copy should have comment or be unexported (golint)
    • Line 132: warning: exported type RoundType should have comment or be unexported (golint)
    • Line 135: warning: exported const RoundUpAlways should have comment (or a comment on this block) or be unexported (golint)
    • Line 179: warning: exported method BigFloat.Round should have comment or be unexported (golint)
    • Line 348: warning: exported method BigFloat.Ceil should have comment or be unexported (golint)
    • Line 351: warning: exported method BigFloat.Floor should have comment or be unexported (golint)
    • Line 355: warning: exported method BigFloat.CreateFromString should have comment or be unexported (golint)
    • Line 397: warning: comment on exported method BigFloat.MarshalJSON should be of the form "MarshalJSON ..." (golint)
    • Line 403: warning: exported method BigFloat.UnmarshalJSON should have comment or be unexported (golint)
    • Line 407: warning: exported method BigFloat.UnmarshalBinary should have comment or be unexported (golint)
    • Line 411: warning: exported method BigFloat.MarshalBinary should have comment or be unexported (golint)
    • Line 458: warning: comment on exported method BigFloat.Add should be of the form "Add ..." (golint)
    • Line 463: warning: exported method BigFloat.Sub should have comment or be unexported (golint)
    • Line 467: warning: exported method BigFloat.Mul should have comment or be unexported (golint)
    • Line 471: warning: exported method BigFloat.Div should have comment or be unexported (golint)
    • Line 475: warning: exported method BigFloat.Abs should have comment or be unexported (golint)
    • Line 478: warning: exported method BigFloat.Cmp should have comment or be unexported (golint)
    • framework/cmd/commands/migration/migration_rollback.go
    • Line 12: warning: exported type MigrationRollback should have comment or be unexported (golint)
    • Line 15: warning: exported method MigrationRollback.Command should have comment or be unexported (golint)
    • Line 19: warning: exported method MigrationRollback.Description should have comment or be unexported (golint)
    • Line 23: warning: exported method MigrationRollback.Handler should have comment or be unexported (golint)
    • framework/database/migration/migration_utils.go
    • Line 11: warning: exported type MigrationUtils should have comment or be unexported (golint)
    • Line 16: warning: comment on exported method MigrationUtils.SetUp should be of the form "SetUp ..." (golint)
    • Line 84: warning: exported method MigrationUtils.Migrate should have comment or be unexported (golint)
    • Line 109: warning: exported method MigrationUtils.Rollback should have comment or be unexported (golint)
    • Line 135: warning: exported method MigrationUtils.Fresh should have comment or be unexported (golint)
    • Line 138: warning: exported method MigrationUtils.Install should have comment or be unexported (golint)
    • Line 144: warning: exported method MigrationUtils.Refresh should have comment or be unexported (golint)
    • Line 147: warning: exported method MigrationUtils.Reset should have comment or be unexported (golint)
    • Line 150: warning: exported method MigrationUtils.Status should have comment or be unexported (golint)
    • framework/request/request.go
    • Line 9: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 11: warning: exported type Engine should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 22: warning: exported type EngineHash should have comment or be unexported (golint)
    • Line 24: warning: exported method Engine.Hash should have comment or be unexported (golint)
    • Line 28: warning: exported method Engine.Use should have comment or be unexported (golint)
    • Line 31: warning: exported method Engine.UseGin should have comment or be unexported (golint)
    • Line 35: warning: exported method Engine.GinEngine should have comment or be unexported (golint)
    • framework/http/middleware/auth.go
    • Line 13: warning: exported const CONTEXT_TOKEN_KEY should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type TokenRevokeError should have comment or be unexported (golint)
    • Line 22: warning: exported function AuthRequired should have comment or be unexported (golint)
    • Line 55: warning: exported function Revoke should have comment or be unexported (golint)
    • framework/console/output.go
    • Line 9: warning: exported function Println should have comment or be unexported (golint)
    • Line 14: warning: exported function Sprintf should have comment or be unexported (golint)
    • Line 17: warning: exported function Sprint should have comment or be unexported (golint)
    • Line 21: warning: exported type Attribute should have comment or be unexported (golint)
    • Line 24: warning: exported const CODE_SUCCESS should have comment (or a comment on this block) or be unexported (golint)
    • framework/cmd/commands/migration/migrate.go
    • Line 12: warning: exported type Migrate should have comment or be unexported (golint)
    • Line 15: warning: exported method Migrate.Command should have comment or be unexported (golint)
    • Line 19: warning: exported method Migrate.Description should have comment or be unexported (golint)
    • Line 23: warning: exported method Migrate.Handler should have comment or be unexported (golint)
    • framework/sentry/sentry.go
    • Line 15: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 30: warning: exported function Use should have comment or be unexported (golint)
    • Line 36: warning: exported function CaptureError should have comment or be unexported (golint)
    • Line 44: warning: exported function CaptureMsg should have comment or be unexported (golint)
    • Line 52: warning: exported function CapturePanic should have comment or be unexported (golint)
    • framework/cmd/commands/migration/migration_init.go
    • Line 12: warning: exported type MigrationInit should have comment or be unexported (golint)
    • Line 15: warning: exported method MigrationInit.Command should have comment or be unexported (golint)
    • Line 19: warning: exported method MigrationInit.Description should have comment or be unexported (golint)
    • Line 23: warning: exported method MigrationInit.Handler should have comment or be unexported (golint)
    • framework/job/job.go
    • Line 9: warning: exported type Job should have comment or be unexported (golint)
    • Line 14: warning: exported method Job.Name should have comment or be unexported (golint)
    • Line 18: warning: exported method Job.Handle should have comment or be unexported (golint)
    • Line 22: warning: exported method Job.SetParam should have comment or be unexported (golint)
    • Line 30: warning: exported method Job.ParamProto should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method Job.Retries should be of the form "Retries ..." (golint)
    • Line 39: warning: comment on exported method Job.SetDelay should be of the form "SetDelay ..." (golint)
    • Line 44: warning: comment on exported method Job.Delay should be of the form "Delay ..." (golint)
    • framework/notification/message.go
    • Line 3: warning: exported type Message should have comment or be unexported (golint)
    • Line 12: warning: exported method Message.SetFrom should have comment or be unexported (golint)
    • Line 15: warning: exported method Message.SetTo should have comment or be unexported (golint)
    • Line 18: warning: exported method Message.SetCc should have comment or be unexported (golint)
    • Line 21: warning: exported method Message.SetBcc should have comment or be unexported (golint)
    • Line 24: warning: exported method Message.SetSubject should have comment or be unexported (golint)
    • Line 27: warning: exported method Message.SetBody should have comment or be unexported (golint)
    • Line 31: warning: exported method Message.From should have comment or be unexported (golint)
    • Line 34: warning: exported method Message.To should have comment or be unexported (golint)
    • Line 37: warning: exported method Message.Cc should have comment or be unexported (golint)
    • Line 40: warning: exported method Message.Bcc should have comment or be unexported (golint)
    • Line 43: warning: exported method Message.Subject should have comment or be unexported (golint)
    • Line 46: warning: exported method Message.Body should have comment or be unexported (golint)
    • framework/hub/helpers.go
    • Line 11: warning: exported function Emit should have comment or be unexported (golint)
    • Line 42: warning: exported function On should have comment or be unexported (golint)
    • framework/view/kernel.go
    • Line 10: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 18: warning: exported function AddView should have comment or be unexported (golint)
    • framework/validator/validation.go
    • Line 17: warning: exported type Validation should have comment or be unexported (golint)
    • Line 20: warning: comment on exported method Validation.Validate should be of the form "Validate ..." (golint)
    • Line 26: warning: comment on exported method Validation.ValidateJSONMulti should be of the form "ValidateJSONMulti ..." (golint)
    • Line 32: warning: exported method Validation.ValidateXMLMulti should have comment or be unexported (golint)
    • Line 37: warning: exported method Validation.ValidateYAMLMulti should have comment or be unexported (golint)
    • Line 42: warning: exported method Validation.ValidateMsgPackMulti should have comment or be unexported (golint)
    • Line 47: warning: exported method Validation.ValidateProtoBufMulti should have comment or be unexported (golint)
    • Line 53: warning: comment on exported method Validation.ValidateJSON should be of the form "ValidateJSON ..." (golint)
    • Line 63: warning: exported method Validation.ValidateXML should have comment or be unexported (golint)
    • Line 72: warning: exported method Validation.ValidateYAML should have comment or be unexported (golint)
    • Line 81: warning: exported method Validation.ValidateMsgPack should have comment or be unexported (golint)
    • Line 90: warning: exported method Validation.ValidateProtoBuf should have comment or be unexported (golint)
    • Line 106: warning: exported method Validation.ValidateUri should have comment or be unexported (golint)
    • Line 109: warning: exported method Validation.ValidateQuery should have comment or be unexported (golint)
    • Line 112: warning: exported method Validation.ValidateForm should have comment or be unexported (golint)
    • Line 115: warning: exported method Validation.ValidateFormPost should have comment or be unexported (golint)
    • Line 118: warning: exported method Validation.ValidateFormMultipart should have comment or be unexported (golint)
    • framework/cache/utils/utils.go
    • Line 5: warning: exported function DurationFromNow should have comment or be unexported (golint)
    • Line 14: warning: exported function NewKey should have comment or be unexported (golint)
    • framework/helpers/log/helpers.go
    • Line 9: warning: exported function Error should have comment or be unexported (golint)
    • Line 18: warning: exported function Info should have comment or be unexported (golint)
    • Line 25: warning: exported function Warn should have comment or be unexported (golint)
    • Line 32: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 39: warning: exported function Debug should have comment or be unexported (golint)
    • Line 46: warning: exported function Panic should have comment or be unexported (golint)
    • Line 53: warning: exported function Trace should have comment or be unexported (golint)
    • Line 60: warning: exported function ErrorStr should have comment or be unexported (golint)
    • framework/cmd/commander.go
    • Line 5: warning: exported type Commander should have comment or be unexported (golint)
    • Line 11: warning: exported type Arg should have comment or be unexported (golint)
    • Line 18: warning: exported method Arg.Get should have comment or be unexported (golint)
    • framework/route/route.go
    • Line 20: warning: exported var RouteNameMap should have comment or be unexported (golint)
    • Line 152: warning: exported function Bind should have comment or be unexported (golint)
    • framework/policy/policy.go
    • Line 9: warning: exported type Policier should have comment or be unexported (golint)
    • Line 19: warning: exported type Action should have comment or be unexported (golint)
    • Line 22: warning: exported const ActionCreate should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type Authorization should have comment or be unexported (golint)
    • Line 34: warning: exported method Authorization.Authorize should have comment or be unexported (golint)
    • framework/database/db_connector.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 63: warning: exported function Connection should have comment or be unexported (golint)
    • Line 68: warning: exported function DB should have comment or be unexported (golint)
    • Line 72: warning: exported function Prefix should have comment or be unexported (golint)
    • framework/helpers/locale/helpers.go
    • Line 9: warning: exported function AddLocale should have comment or be unexported (golint)
    • Line 12: warning: exported function SetLocale should have comment or be unexported (golint)
    • Line 15: warning: exported function Locale should have comment or be unexported (golint)
    • framework/cmd/commands/queue/retry.go
    • Line 15: warning: exported type Retry should have comment or be unexported (golint)
    • Line 18: warning: exported method Retry.Command should have comment or be unexported (golint)
    • Line 22: warning: exported method Retry.Description should have comment or be unexported (golint)
    • Line 26: warning: exported method Retry.Handler should have comment or be unexported (golint)
    • framework/hub/listen.go
    • Line 9: warning: exported type Listen should have comment or be unexported (golint)
    • Line 12: warning: exported method Listen.Name should have comment or be unexported (golint)
    • Line 16: warning: exported method Listen.Subscribe should have comment or be unexported (golint)
    • Line 20: warning: exported method Listen.Construct should have comment or be unexported (golint)
    • Line 24: warning: exported method Listen.Handle should have comment or be unexported (golint)
    • Line 28: warning: exported method Listen.Retries should have comment or be unexported (golint)
    • Line 32: warning: exported method Listen.Delay should have comment or be unexported (golint)
    • framework/model/types/bigint/bigint.go
    • Line 10: warning: exported type BigInt should have comment or be unexported (golint)
    • Line 14: warning: exported method BigInt.BI should have comment or be unexported (golint)
    • Line 18: warning: exported function Zero should have comment or be unexported (golint)
    • Line 24: warning: exported method BigInt.Convert should have comment or be unexported (golint)
    • Line 28: warning: exported method BigInt.Int should have comment or be unexported (golint)
    • Line 36: warning: exported method BigInt.Value should have comment or be unexported (golint)
    • Line 39: warning: exported method BigInt.Scan should have comment or be unexported (golint)
    • Line 57: warning: exported method BigInt.CreateFromString should have comment or be unexported (golint)
    • Line 65: warning: comment on exported method BigInt.MarshalJSON should be of the form "MarshalJSON ..." (golint)
    • Line 70: warning: exported method BigInt.UnmarshalJSON should have comment or be unexported (golint)
    • Line 74: warning: exported method BigInt.UnmarshalBinary should have comment or be unexported (golint)
    • Line 78: warning: exported method BigInt.MarshalBinary should have comment or be unexported (golint)
    • Line 82: warning: exported method BigInt.SetUint64 should have comment or be unexported (golint)
    • Line 86: warning: exported method BigInt.SetInt64 should have comment or be unexported (golint)
    • Line 91: warning: comment on exported method BigInt.Add should be of the form "Add ..." (golint)
    • Line 95: warning: exported method BigInt.Sub should have comment or be unexported (golint)
    • Line 98: warning: exported method BigInt.Mul should have comment or be unexported (golint)
    • Line 101: warning: exported method BigInt.Div should have comment or be unexported (golint)
    • Line 104: warning: exported method BigInt.Pow should have comment or be unexported (golint)
    • Line 111: warning: exported method BigInt.Abs should have comment or be unexported (golint)
    • Line 114: warning: exported method BigInt.Cmp should have comment or be unexported (golint)
    • framework/cmd/manager.go
    • Line 19: warning: exported function Add should have comment or be unexported (golint)
    • Line 61: warning: exported function List should have comment or be unexported (golint)
    • framework/hub/eventer.go
    • Line 10: warning: exported type EventerName should have comment or be unexported (golint)
    • Line 12: warning: exported type Eventer should have comment or be unexported (golint)
    • Line 20: warning: exported function EventName should have comment or be unexported (golint)
    • framework/database/migration/migration.go
    • Line 13: warning: exported type Migration should have comment or be unexported (golint)
    • Line 28: warning: exported method Migration.TableName should have comment or be unexported (golint)
    • Line 38: warning: exported method Migration.Name should have comment or be unexported (golint)
    • framework/helpers/cache/basic.go
    • Line 8: warning: exported function Prefix should have comment or be unexported (golint)
    • Line 12: warning: exported function Has should have comment or be unexported (golint)
    • Line 15: warning: exported function Get should have comment or be unexported (golint)
    • Line 18: warning: exported function Pull should have comment or be unexported (golint)
    • Line 21: warning: exported function Put should have comment or be unexported (golint)
    • Line 24: warning: exported function Add should have comment or be unexported (golint)
    • Line 27: warning: exported function Increment should have comment or be unexported (golint)
    • Line 30: warning: exported function Decrement should have comment or be unexported (golint)
    • Line 33: warning: exported function Forever should have comment or be unexported (golint)
    • Line 36: warning: exported function Forget should have comment or be unexported (golint)
    • framework/logs/level.go
    • Line 5: warning: exported type Level should have comment or be unexported (golint)
    • Line 8: warning: comment on exported const PANIC should be of the form "PANIC ..." (golint)
    • Line 10: warning: exported const FATAL should have comment (or a comment on this block) or be unexported (golint)
    • framework/request/http/auth/request_user.go
    • Line 3: warning: exported type UserNotLoginError should have comment or be unexported (golint)
    • Line 9: warning: exported type UserNotExistError should have comment or be unexported (golint)
    • Line 15: warning: exported type RequestUser should have comment or be unexported (golint)
    • Line 20: warning: exported method RequestUser.SetContext should have comment or be unexported (golint)
    • Line 23: warning: exported method RequestUser.ScanUser should have comment or be unexported (golint)
    • Line 45: warning: exported method RequestUser.User should have comment or be unexported (golint)
    • Line 49: warning: exported method RequestUser.UserId should have comment or be unexported (golint)
    • framework/request/http/context.go
    • Line 17: warning: exported const CONTEXT_CLAIM_KEY should have comment or be unexported (golint)
    • Line 18: warning: exported const CONTEXT_IUSER_MODEL_KEY should have comment or be unexported (golint)
    • Line 92: warning: exported function ConvertContext should have comment or be unexported (golint)
    • framework/cmd/commands/queue/work.go
    • Line 14: warning: exported type Work should have comment or be unexported (golint)
    • Line 17: warning: exported method Work.Command should have comment or be unexported (golint)
    • Line 21: warning: exported method Work.Description should have comment or be unexported (golint)
    • Line 25: warning: exported method Work.Handler should have comment or be unexported (golint)
    • framework/database/migration/migrator_indentify.go
    • Line 9: warning: exported const TIMESTAMP_LENGTH should have comment or be unexported (golint)
    • Line 11: warning: exported type MigratorIdentifier should have comment or be unexported (golint)
    • Line 16: warning: exported type MigratorIdentify should have comment or be unexported (golint)
    • Line 18: warning: exported method MigratorIdentify.Name should have comment or be unexported (golint)
    • Line 23: warning: exported method MigratorIdentify.Timestamp should have comment or be unexported (golint)
    • framework/model/sort.go
    • Line 5: warning: exported type Sort should have comment or be unexported (golint)
    • Line 11: warning: exported const ASC should have comment (or a comment on this block) or be unexported (golint)
    • framework/request/websocket/msg.go
    • Line 13: warning: exported type Msg should have comment or be unexported (golint)
    • Line 19: warning: exported method Msg.SetJSON should have comment or be unexported (golint)
    • Line 25: warning: exported method Msg.SetProtoBuf should have comment or be unexported (golint)
    • Line 31: warning: exported method Msg.SetString should have comment or be unexported (golint)
    • Line 37: warning: exported method Msg.SendDone should have comment or be unexported (golint)
    • Line 49: warning: exported method Msg.SetByte should have comment or be unexported (golint)
    • Line 54: warning: exported method Msg.Type should have comment or be unexported (golint)
    • Line 61: warning: exported method Msg.ProtoBuf should have comment or be unexported (golint)
    • Line 64: warning: exported method Msg.JSON should have comment or be unexported (golint)
    • Line 70: warning: exported method Msg.Byte should have comment or be unexported (golint)
    • framework/route/group.go
    • Line 14: warning: exported type RouteGrouper should have comment or be unexported (golint)
    • Line 18: warning: exported type Grouper should have comment or be unexported (golint)
    • framework/config/config.go
    • Line 25: warning: exported function Env should have comment or be unexported (golint)
    • Line 32: warning: exported function Add should have comment or be unexported (golint)
    • Line 36: warning: exported function Get should have comment or be unexported (golint)
    • Line 45: warning: exported function GetInterface should have comment or be unexported (golint)
    • Line 55: warning: exported function GetString should have comment or be unexported (golint)
    • Line 58: warning: exported function GetInt should have comment or be unexported (golint)
    • Line 61: warning: exported function GetInt64 should have comment or be unexported (golint)
    • Line 64: warning: exported function GetUint should have comment or be unexported (golint)
    • Line 67: warning: exported function GetBool should have comment or be unexported (golint)
    • framework/helpers/m/helpers.go
    • Line 10: warning: exported type Helper should have comment or be unexported (golint)
    • Line 12: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 17: warning: exported function H should have comment or be unexported (golint)
    • Line 21: warning: exported function Transaction should have comment or be unexported (golint)
    • framework/model/base_model.go
    • Line 16: warning: exported type BaseModeller should have comment or be unexported (golint)
    • Line 21: warning: exported type BaseModel should have comment or be unexported (golint)
    • Line 25: warning: exported method BaseModel.DB should have comment or be unexported (golint)
    • Line 31: warning: exported method BaseModel.SetTX should have comment or be unexported (golint)
    • Line 34: warning: exported method BaseModel.SetDB should have comment or be unexported (golint)
    • Line 37: warning: exported method BaseModel.SetTableName should have comment or be unexported (golint)
    • Line 40: warning: exported method BaseModel.BeforeSave should have comment or be unexported (golint)
    • Line 43: warning: don't use underscores in Go names; var __err should be _Err (golint)
    • Line 55: warning: exported method BaseModel.BeforeUpdate should have comment or be unexported (golint)
    • Line 58: warning: don't use underscores in Go names; var __err should be _Err (golint)
    • Line 71: warning: comment on exported method BaseModel.AfterFind should be of the form "AfterFind ..." (golint)
    • Line 80: warning: don't use underscores in Go names; var __err should be _Err (golint)
    • framework/app/mode.go
    • Line 9: warning: exported type Mode should have comment or be unexported (golint)
    • Line 12: warning: exported const ModeProduction should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function SetMode should have comment or be unexported (golint)
    • Line 39: warning: exported function GetMode should have comment or be unexported (golint)
    • framework/errors/errors.go
    • Line 12: warning: exported function ErrPrintln should have comment or be unexported (golint)
    • Line 33: warning: exported function ErrPrint should have comment or be unexported (golint)
    • framework/hub/listener.go
    • Line 9: warning: exported type Listener should have comment or be unexported (golint)
    • Line 20: warning: exported type ListenerName should have comment or be unexported (golint)
    • framework/model/types/null/null.go
    • Line 32: warning: exported function String should have comment or be unexported (golint)
    • Line 36: warning: exported function MapStringInterface should have comment or be unexported (golint)
    • Line 40: warning: exported function Byte should have comment or be unexported (golint)
    • Line 44: warning: exported function Float64 should have comment or be unexported (golint)
    • Line 47: warning: exported function Float32 should have comment or be unexported (golint)
    • Line 51: warning: exported function Int should have comment or be unexported (golint)
    • Line 54: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 57: warning: exported function Int32 should have comment or be unexported (golint)
    • Line 60: warning: exported function Int16 should have comment or be unexported (golint)
    • Line 63: warning: exported function Int8 should have comment or be unexported (golint)
    • Line 67: warning: exported function Uint should have comment or be unexported (golint)
    • Line 70: warning: exported function Uint64 should have comment or be unexported (golint)
    • Line 73: warning: exported function Uint32 should have comment or be unexported (golint)
    • Line 76: warning: exported function Uint16 should have comment or be unexported (golint)
    • Line 79: warning: exported function Uint8 should have comment or be unexported (golint)
    • Line 83: warning: exported function BigInt should have comment or be unexported (golint)
    • Line 90: warning: exported function BigFloat should have comment or be unexported (golint)
    • Line 98: warning: exported function Time should have comment or be unexported (golint)
    • framework/queue/queuer.go
    • Line 8: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 17: warning: exported function Queue should have comment or be unexported (golint)
    • framework/monitor/app/http/controllers/dashboard_websocket.go
    • Line 11: warning: exported type DashboardWebsocketController should have comment or be unexported (golint)
    • Line 16: warning: exported method DashboardWebsocketController.DefaultChannels should have comment or be unexported (golint)
    • Line 20: warning: exported method DashboardWebsocketController.OnMessage should have comment or be unexported (golint)
    • Line 44: warning: exported method DashboardWebsocketController.Loop should have comment or be unexported (golint)
    • framework/logs/log.go
    • Line 26: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 37: warning: exported type Field should have comment or be unexported (golint)
    • Line 39: warning: exported function Println should have comment or be unexported (golint)
    • Line 55: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 57: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 59: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • framework/cache/cache_connector.go
    • Line 12: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 49: warning: exported function Store should have comment or be unexported (golint)
    • Line 53: warning: exported function Cache should have comment or be unexported (golint)
    • framework/context/contextor.go
    • Line 15: warning: exported type HttpContextor should have comment or be unexported (golint)
    • Line 44: warning: exported type LifeCycleContextor should have comment or be unexported (golint)
    • Line 58: warning: exported type DataContextor should have comment or be unexported (golint)
    • Line 75: warning: exported type RequestParamContextor should have comment or be unexported (golint)
    • Line 93: warning: exported type RequestFileContextor should have comment or be unexported (golint)
    • Line 99: warning: exported type RequestBindingContextor should have comment or be unexported (golint)
    • Line 117: warning: exported type RequestHeaderContextor should have comment or be unexported (golint)
    • Line 126: warning: exported type RequestRawContextor should have comment or be unexported (golint)
    • Line 130: warning: exported type ResponseContextor should have comment or be unexported (golint)
    • Line 151: warning: exported type ResponseFileContextor should have comment or be unexported (golint)
    • Line 156: warning: exported type ResponseStreamContextor should have comment or be unexported (golint)
    • framework/helpers/ptr/helpers.go
    • Line 12: warning: exported function String should have comment or be unexported (golint)
    • Line 16: warning: exported function MapStringInterface should have comment or be unexported (golint)
    • Line 20: warning: exported function Bool should have comment or be unexported (golint)
    • Line 24: warning: exported function Byte should have comment or be unexported (golint)
    • Line 28: warning: exported function Float64 should have comment or be unexported (golint)
    • Line 31: warning: exported function Float32 should have comment or be unexported (golint)
    • Line 35: warning: exported function Int should have comment or be unexported (golint)
    • Line 38: warning: exported function Int64 should have comment or be unexported (golint)
    • Line 41: warning: exported function Int32 should have comment or be unexported (golint)
    • Line 44: warning: exported function Int16 should have comment or be unexported (golint)
    • Line 47: warning: exported function Int8 should have comment or be unexported (golint)
    • Line 51: warning: exported function Uint should have comment or be unexported (golint)
    • Line 54: warning: exported function Uint64 should have comment or be unexported (golint)
    • Line 57: warning: exported function Uint32 should have comment or be unexported (golint)
    • Line 60: warning: exported function Uint16 should have comment or be unexported (golint)
    • Line 63: warning: exported function Uint8 should have comment or be unexported (golint)
    • Line 67: warning: exported function BigInt should have comment or be unexported (golint)
    • Line 72: warning: exported function BigFloat should have comment or be unexported (golint)
    • Line 80: warning: exported function Time should have comment or be unexported (golint)
    • framework/model/pagination.go
    • Line 13: warning: exported type Model should have comment or be unexported (golint)
    • Line 15: warning: exported type Pagination should have comment or be unexported (golint)
    • Line 24: warning: exported method Pagination.Count should have comment or be unexported (golint)
    • Line 27: warning: exported method Pagination.CurrentPage should have comment or be unexported (golint)
    • Line 30: warning: exported method Pagination.LastPage should have comment or be unexported (golint)
    • Line 33: warning: exported method Pagination.FirstItem should have comment or be unexported (golint)
    • Line 39: warning: exported method Pagination.LastItem should have comment or be unexported (golint)
    • Line 45: warning: exported method Pagination.ItemArr should have comment or be unexported (golint)
    • Line 48: warning: exported method Pagination.Total should have comment or be unexported (golint)
    • Line 51: warning: exported method Pagination.PerPage should have comment or be unexported (golint)
    • Line 55: warning: comment on exported method Model.Paginate should be of the form "Paginate ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words