Preparing report...

Report for github.com/Lets-Go-together/go-funny-cms

A    Great!    Found 88 issues across 99 files

Tweet

gofmt98%

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!


golint13%

Golint is a linter for Go source code.

    • go-funny-cms/pkg/mail/task.go
    • Line 16: warning: exported const TASK_WAIT should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type TaskWarp should have comment or be unexported (golint)
    • Line 31: warning: exported type TaskExpress should have comment or be unexported (golint)
    • Line 33: warning: exported function ExpressRun should have comment or be unexported (golint)
    • Line 41: warning: exported function NewTaskExpress should have comment or be unexported (golint)
    • Line 45: warning: exported method TaskExpress.Dispatch should have comment or be unexported (golint)
    • Line 57: warning: exported method TaskExpress.DispatchNow should have comment or be unexported (golint)
    • Line 100: warning: comment on exported method TaskExpress.GetSendAt should be of the form "GetSendAt ..." (golint)
    • Line 105: warning: exported method TaskExpress.GetQueryTask should have comment or be unexported (golint)
    • Line 114: warning: exported method TaskExpress.ForParse should have comment or be unexported (golint)
    • go-funny-cms/app/http/admin/controllers/mail.go
    • Line 17: warning: exported type MailController should have comment or be unexported (golint)
    • Line 19: warning: exported method MailController.List should have comment or be unexported (golint)
    • Line 82: warning: exported method MailController.Mailer should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method MailController.Resend should be of the form "Resend ..." (golint)
    • Line 105: warning: comment on exported method MailController.Delete should be of the form "Delete ..." (golint)
    • go-funny-cms/example/task/index.go
    • Line 18: warning: exported function Runing should have comment or be unexported (golint)
    • Line 25: warning: exported function CToSchedule should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function GetNews should be of the form "GetNews ..." (golint)
    • go-funny-cms/app/models/role/role.go
    • Line 7: warning: exported type RoleModel should have comment or be unexported (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Permissions_ids should be PermissionsIds (golint)
    • Line 17: warning: exported method RoleModel.TableName should have comment or be unexported (golint)
    • go-funny-cms/pkg/schedule/log/log.go
    • Line 8: warning: exported type Logger should have comment or be unexported (golint)
    • Line 15: warning: exported function D should have comment or be unexported (golint)
    • Line 18: warning: exported function E should have comment or be unexported (golint)
    • Line 21: warning: exported function Err should have comment or be unexported (golint)
    • Line 24: warning: exported function I should have comment or be unexported (golint)
    • go-funny-cms/app/http/admin/validates/auth.go
    • Line 11: warning: comment on exported type LoginParams should be of the form "LoginParams ..." (with optional leading article) (golint)
    • Line 17: warning: exported type LoginAction should have comment or be unexported (golint)
    • Line 20: warning: exported method LoginAction.Validate should have comment or be unexported (golint)
    • Line 31: warning: comment on exported type RegisterParams should be of the form "RegisterParams ..." (with optional leading article) (golint)
    • Line 39: warning: exported method RegisterParams.Validate should have comment or be unexported (golint)
    • Line 48: warning: exported type RegisterAction should have comment or be unexported (golint)
    • Line 51: warning: exported method RegisterAction.Validate should have comment or be unexported (golint)
    • Line 60: warning: comment on exported type EditParams should be of the form "EditParams ..." (with optional leading article) (golint)
    • go-funny-cms/pkg/mail/mail_event.go
    • Line 6: warning: exported const DINGTALK should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported method DingTalk.Success should have comment or be unexported (golint)
    • Line 23: warning: exported method DingTalk.Failed should have comment or be unexported (golint)
    • Line 30: warning: exported method Wechat.Success should have comment or be unexported (golint)
    • Line 34: warning: exported method Wechat.Failed should have comment or be unexported (golint)
    • go-funny-cms/pkg/auth/rabc/permission.go
    • Line 11: warning: comment on exported function GeneratePermissionNodes should be of the form "GeneratePermissionNodes ..." (golint)
    • Line 56: warning: exported function AllowPermission should have comment or be unexported (golint)
    • Line 94: warning: comment on exported function AddRolesForUser should be of the form "AddRolesForUser ..." (golint)
    • Line 148: warning: comment on exported function DeleteRoleForUsers should be of the form "DeleteRoleForUsers ..." (golint)
    • go-funny-cms/app/http/admin/controllers/tool.go
    • Line 18: warning: exported type ToolController should have comment or be unexported (golint)
    • Line 20: warning: exported method ToolController.Pwd should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method ToolController.Qiniu should be of the form "Qiniu ..." (golint)
    • go-funny-cms/app/models/notification/notification.go
    • Line 5: warning: exported type Notification should have comment or be unexported (golint)
    • Line 9: warning: don't use underscores in Go names; struct field Submitter_id should be SubmitterID (golint)
    • Line 11: warning: don't use underscores in Go names; struct field Read_at should be ReadAt (golint)
    • Line 14: warning: exported method Notification.TableName should have comment or be unexported (golint)
    • go-funny-cms/app/service/roleService.go
    • Line 19: warning: exported type RoleService should have comment or be unexported (golint)
    • Line 23: warning: exported type RoleList should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method RoleService.UpdateOrCreateById should be of the form "UpdateOrCreateById ..." (golint)
    • Line 59: warning: exported method RoleService.GetList should have comment or be unexported (golint)
    • Line 85: warning: comment on exported function GetRoleListToMenus should be of the form "GetRoleListToMenus ..." (golint)
    • Line 87: warning: don't use underscores in Go names; var menu_ids should be menuIds (golint)
    • Line 164: warning: comment on exported method RoleService.GetPermissionIdsByTree should be of the form "GetPermissionIdsByTree ..." (golint)
    • Line 166: warning: don't use underscores in Go names; var permission_ids should be permissionIds (golint)
    • go-funny-cms/pkg/schedule/cron_worker.go
    • Line 17: warning: exported method CronWorker.Process should have comment or be unexported (golint)
    • Line 38: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 81: warning: exported method CronWorker.Start should have comment or be unexported (golint)
    • Line 85: warning: exported method CronWorker.Stop should have comment or be unexported (golint)
    • Line 89: warning: exported method CronWorker.Initialize should have comment or be unexported (golint)
    • go-funny-cms/wrap/context.go
    • Line 14: warning: exported type JSONWriter should have comment or be unexported (golint)
    • Line 18: warning: exported type QueryReader should have comment or be unexported (golint)
    • Line 23: warning: exported type PathParamReader should have comment or be unexported (golint)
    • Line 27: warning: exported type Writer should have comment or be unexported (golint)
    • Line 31: warning: exported type Reader should have comment or be unexported (golint)
    • Line 37: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 39: warning: comment on exported type ContextWrapper should be of the form "ContextWrapper ..." (with optional leading article) (golint)
    • Line 47: warning: exported function Context should have comment or be unexported (golint)
    • Line 53: warning: exported method ContextWrapper.ResponseJson should have comment or be unexported (golint)
    • Line 57: warning: exported method ContextWrapper.ResponseString should have comment or be unexported (golint)
    • Line 61: warning: exported method ContextWrapper.Unauthorized should have comment or be unexported (golint)
    • Line 65: warning: exported method ContextWrapper.Forbidden should have comment or be unexported (golint)
    • Line 69: warning: exported method ContextWrapper.Query should have comment or be unexported (golint)
    • Line 73: warning: exported method ContextWrapper.DefaultQuery should have comment or be unexported (golint)
    • Line 77: warning: exported method ContextWrapper.Param should have comment or be unexported (golint)
    • Line 81: warning: exported method ContextWrapper.JSON should have comment or be unexported (golint)
    • Line 85: warning: exported method ContextWrapper.BindJSON should have comment or be unexported (golint)
    • Line 89: warning: exported method ContextWrapper.ShouldBind should have comment or be unexported (golint)
    • Line 93: warning: exported method ContextWrapper.ShouldBindQuery should have comment or be unexported (golint)
    • Line 97: warning: exported method ContextWrapper.GetQueryArray should have comment or be unexported (golint)
    • Line 101: warning: exported method ContextWrapper.PostForm should have comment or be unexported (golint)
    • go-funny-cms/pkg/mail/model.go
    • Line 11: warning: exported type MailerModel should have comment or be unexported (golint)
    • Line 25: warning: exported method MailerModel.TableName should have comment or be unexported (golint)
    • Line 29: warning: exported type Recipient should have comment or be unexported (golint)
    • Line 33: warning: exported method Recipient.Value should have comment or be unexported (golint)
    • Line 38: warning: exported method Recipient.Scan should have comment or be unexported (golint)
    • Line 38: warning: receiver name v should be consistent with previous receiver name that for Recipient (golint)
    • go-funny-cms/pkg/help/help.go
    • Line 22: warning: comment on exported function GetEnv should be of the form "GetEnv ..." (golint)
    • Line 42: warning: comment on exported function Md5V should be of the form "Md5V ..." (golint)
    • Line 50: warning: comment on exported function GetOffset should be of the form "GetOffset ..." (golint)
    • Line 55: warning: comment on exported function GetCurrentTimestamp should be of the form "GetCurrentTimestamp ..." (golint)
    • Line 60: warning: exported function StructMap should have comment or be unexported (golint)
    • Line 71: warning: exported function StructsMap should have comment or be unexported (golint)
    • Line 81: warning: comment on exported function GetDefaultParam should be of the form "GetDefaultParam ..." (golint)
    • Line 89: warning: exported function Enctrypt should have comment or be unexported (golint)
    • Line 100: warning: exported function Dectrypt should have comment or be unexported (golint)
    • Line 111: warning: exported function ToJson should have comment or be unexported (golint)
    • Line 116: warning: exported function GetUrl should have comment or be unexported (golint)
    • Line 140: warning: exported function CheckFileIsExist should have comment or be unexported (golint)
    • Line 148: warning: exported function WriteFileToTemp should have comment or be unexported (golint)
    • Line 157: warning: exported function Now should have comment or be unexported (golint)
    • Line 162: warning: exported function ParseTime should have comment or be unexported (golint)
    • go-funny-cms/pkg/auth/rabc/filter.go
    • Line 5: warning: exported type FilterPermission should have comment or be unexported (golint)
    • Line 10: warning: exported var FilterPermissions should have comment or be unexported (golint)
    • Line 36: warning: exported function Filter should have comment or be unexported (golint)
    • go-funny-cms/app/models/menu/menu.go
    • Line 7: warning: exported type MenuModel should have comment or be unexported (golint)
    • Line 21: warning: exported type MenuRouter should have comment or be unexported (golint)
    • Line 31: warning: exported method MenuModel.TableName should have comment or be unexported (golint)
    • go-funny-cms/app/validates/validate/validate.go
    • Line 9: warning: comment on exported type Validatable should be of the form "Validatable ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported function Validate should be of the form "Validate ..." (golint)
    • Line 24: warning: comment on exported function WithDefaultResponse should be of the form "WithDefaultResponse ..." (golint)
    • Line 38: warning: comment on exported function WithResponseMsg should be of the form "WithResponseMsg ..." (golint)
    • Line 63: warning: comment on exported function WithResponse should be of the form "WithResponse ..." (golint)
    • go-funny-cms/pkg/logger/channel.go
    • Line 15: warning: exported function Info should have comment or be unexported (golint)
    • Line 20: warning: exported function Error should have comment or be unexported (golint)
    • Line 24: warning: exported function Debug should have comment or be unexported (golint)
    • go-funny-cms/app/service/mail.go
    • Line 7: warning: exported type MailService should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method MailService.CalcuateDelayByNow should be of the form "CalcuateDelayByNow ..." (golint)
    • go-funny-cms/pkg/schedule/schedule.go
    • Line 13: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Scheduler.Launch should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method Scheduler.RegisterTask should be of the form "RegisterTask ..." (golint)
    • Line 37: warning: exported method Scheduler.AddTask should have comment or be unexported (golint)
    • Line 41: warning: exported method Scheduler.QueryTaskByName should have comment or be unexported (golint)
    • Line 45: warning: exported method Scheduler.StopTask should have comment or be unexported (golint)
    • Line 49: warning: exported method Scheduler.StartTask should have comment or be unexported (golint)
    • Line 53: warning: exported method Scheduler.QueryTaskById should have comment or be unexported (golint)
    • Line 57: warning: exported method Scheduler.QueryAllTask should have comment or be unexported (golint)
    • go-funny-cms/app/http/admin/controllers/role.go
    • Line 14: warning: exported type RoleController should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method RoleController.Index should be of the form "Index ..." (golint)
    • Line 28: warning: comment on exported method RoleController.Store should be of the form "Store ..." (golint)
    • Line 40: warning: comment on exported method RoleController.Show should be of the form "Show ..." (golint)
    • Line 56: warning: comment on exported method RoleController.Save should be of the form "Save ..." (golint)
    • Line 70: warning: comment on exported method RoleController.Destory should be of the form "Destory ..." (golint)
    • go-funny-cms/app/models/user/user.go
    • Line 7: warning: exported type UserModel should have comment or be unexported (golint)
    • Line 9: warning: comment on exported type AuthUser should be of the form "AuthUser ..." (with optional leading article) (golint)
    • Line 16: warning: exported method AuthUser.TableName should have comment or be unexported (golint)
    • go-funny-cms/pkg/mail/mail_express.go
    • Line 19: warning: exported type Express should have comment or be unexported (golint)
    • Line 36: warning: comment on exported function NewExpress should be of the form "NewExpress ..." (golint)
    • Line 171: warning: exported method Express.GetAttachments should have comment or be unexported (golint)
    • Line 176: warning: exported method Express.HandleAttachments should have comment or be unexported (golint)
    • Line 216: warning: exported method Express.Send should have comment or be unexported (golint)
    • go-funny-cms/app/http/admin/controllers/permission.go
    • Line 15: warning: exported type PermissionController should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method PermissionController.Index should be of the form "Index ..." (golint)
    • Line 29: warning: comment on exported method PermissionController.Store should be of the form "Store ..." (golint)
    • Line 43: warning: comment on exported method PermissionController.Save should be of the form "Save ..." (golint)
    • Line 56: warning: comment on exported method PermissionController.Destory should be of the form "Destory ..." (golint)
    • Line 69: warning: don't use underscores in Go names; var is_clear should be isClear (golint)
    • Line 82: warning: comment on exported method PermissionController.Show should be of the form "Show ..." (golint)
    • Line 101: warning: comment on exported method PermissionController.Tree should be of the form "Tree ..." (golint)
    • go-funny-cms/pkg/auth/jwt.go
    • Line 15: warning: exported type JwtAction should have comment or be unexported (golint)
    • Line 22: warning: comment on exported method JwtAction.GetToken should be of the form "GetToken ..." (golint)
    • Line 32: warning: comment on exported method JwtAction.ParseToken should be of the form "ParseToken ..." (golint)
    • Line 48: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • go-funny-cms/app/models/base/baseModel.go
    • Line 20: warning: exported type Result should have comment or be unexported (golint)
    • Line 27: warning: exported type TimeAt should have comment or be unexported (golint)
    • Line 29: warning: exported method TimeAt.UnmarshalJSON should have comment or be unexported (golint)
    • Line 43: warning: exported method TimeAt.MarshalJSON should have comment or be unexported (golint)
    • Line 48: warning: exported method TimeAt.Value should have comment or be unexported (golint)
    • Line 53: warning: exported method TimeAt.Scan should have comment or be unexported (golint)
    • Line 68: warning: exported type IntJson should have comment or be unexported (golint)
    • Line 70: warning: exported method IntJson.Value should have comment or be unexported (golint)
    • Line 74: warning: exported method IntJson.Scan should have comment or be unexported (golint)
    • go-funny-cms/app/service/admin.go
    • Line 15: warning: exported type AdminService should have comment or be unexported (golint)
    • Line 29: warning: exported method AdminService.GetList should have comment or be unexported (golint)
    • Line 66: warning: comment on exported method AdminService.Create should be of the form "Create ..." (golint)
    • Line 76: warning: comment on exported method AdminService.Update should be of the form "Update ..." (golint)
    • go-funny-cms/pkg/mail/mailer.go
    • Line 11: warning: comment on exported type Mailer should be of the form "Mailer ..." (with optional leading article) (golint)
    • Line 21: warning: comment on exported method Mailer.LoadConfig should be of the form "LoadConfig ..." (golint)
    • Line 39: warning: comment on exported function NewMailer should be of the form "NewMailer ..." (golint)
    • Line 56: warning: comment on exported method Mailer.ForUsername should be of the form "ForUsername ..." (golint)
    • Line 62: warning: comment on exported method Mailer.ForPassword should be of the form "ForPassword ..." (golint)
    • Line 67: warning: comment on exported method Mailer.ForHost should be of the form "ForHost ..." (golint)
    • Line 72: warning: comment on exported method Mailer.ForPort should be of the form "ForPort ..." (golint)
    • Line 77: warning: exported method Mailer.Value should have comment or be unexported (golint)
    • Line 81: warning: exported method Mailer.Scan should have comment or be unexported (golint)
    • Line 81: warning: receiver name v should be consistent with previous receiver name that for Mailer (golint)
    • go-funny-cms/pkg/casbin/casbin.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported function Initialize should have comment or be unexported (golint)
    • go-funny-cms/pkg/schedule/redis_task_broker.go
    • Line 23: warning: exported function NewRedisTaskBroker should have comment or be unexported (golint)
    • Line 31: warning: exported method RedisTaskBroker.Launch should have comment or be unexported (golint)
    • Line 38: warning: exported method RedisTaskBroker.StartConsuming should have comment or be unexported (golint)
    • Line 85: warning: exported method RedisTaskBroker.AddTask should have comment or be unexported (golint)
    • Line 105: warning: exported method RedisTaskBroker.UpdateTask should have comment or be unexported (golint)
    • Line 118: warning: exported method RedisTaskBroker.RestoreTask should have comment or be unexported (golint)
    • Line 157: warning: exported method RedisTaskBroker.StopTask should have comment or be unexported (golint)
    • Line 174: warning: exported method RedisTaskBroker.StartTask should have comment or be unexported (golint)
    • Line 190: warning: exported method RedisTaskBroker.QueryTaskByState should have comment or be unexported (golint)
    • Line 201: warning: exported method RedisTaskBroker.QueryTaskById should have comment or be unexported (golint)
    • Line 217: warning: exported method RedisTaskBroker.QueryTaskByName should have comment or be unexported (golint)
    • Line 221: warning: exported method RedisTaskBroker.QueryAllTask should have comment or be unexported (golint)
    • go-funny-cms/app/service/permission.go
    • Line 11: warning: exported type PermissionService should have comment or be unexported (golint)
    • Line 12: warning: exported type PermissionList should have comment or be unexported (golint)
    • Line 40: warning: exported method PermissionService.GetList should have comment or be unexported (golint)
    • Line 75: warning: comment on exported method PermissionService.GetPermisstionTree should be of the form "GetPermisstionTree ..." (golint)
    • go-funny-cms/pkg/response/common.go
    • Line 20: warning: exported type JsonResponse should have comment or be unexported (golint)
    • Line 26: warning: exported function SuccessResponse should have comment or be unexported (golint)
    • Line 38: warning: exported function ErrorResponse should have comment or be unexported (golint)
    • Line 46: warning: comment on exported method JsonResponse.WriteTo should be of the form "WriteTo ..." (golint)
    • go-funny-cms/app/service/setting.go
    • Line 3: warning: exported type SettingService should have comment or be unexported (golint)
    • Line 5: warning: comment on exported method SettingService.ToBindEmail should be of the form "ToBindEmail ..." (golint)
    • go-funny-cms/pkg/config/router.go
    • Line 3: warning: comment on exported function GetCurrentRoute should be of the form "GetCurrentRoute ..." (golint)
    • Line 16: warning: comment on exported function GetAllRoutes should be of the form "GetAllRoutes ..." (golint)
    • go-funny-cms/pkg/schedule/mysql_task_broker.go
    • Line 3: warning: exported type MySQLTaskBroker should have comment or be unexported (golint)
    • Line 7: warning: exported method MySQLTaskBroker.Launch should have comment or be unexported (golint)
    • Line 11: warning: exported method MySQLTaskBroker.RestoreTask should have comment or be unexported (golint)
    • Line 15: warning: exported method MySQLTaskBroker.StartConsuming should have comment or be unexported (golint)
    • Line 24: warning: exported method MySQLTaskBroker.UpdateTask should have comment or be unexported (golint)
    • Line 28: warning: exported method MySQLTaskBroker.StopTask should have comment or be unexported (golint)
    • Line 32: warning: exported method MySQLTaskBroker.StartTask should have comment or be unexported (golint)
    • Line 36: warning: exported method MySQLTaskBroker.AddTask should have comment or be unexported (golint)
    • Line 40: warning: exported method MySQLTaskBroker.QueryAllTask should have comment or be unexported (golint)
    • Line 44: warning: exported method MySQLTaskBroker.QueryTaskByState should have comment or be unexported (golint)
    • Line 48: warning: exported method MySQLTaskBroker.QueryTaskByName should have comment or be unexported (golint)
    • Line 52: warning: exported method MySQLTaskBroker.QueryTaskById should have comment or be unexported (golint)
    • go-funny-cms/wrap/errors.go
    • Line 3: warning: exported type Error should have comment or be unexported (golint)
    • Line 13: warning: exported var UnknownError should have comment or be unexported (golint)
    • go-funny-cms/pkg/auth/sign.go
    • Line 14: warning: comment on exported function GerateSign should be of the form "GerateSign ..." (golint)
    • Line 21: warning: comment on exported function GerateAdminUser should be of the form "GerateAdminUser ..." (golint)
    • Line 40: warning: comment on exported function CreatePassword should be of the form "CreatePassword ..." (golint)
    • Line 48: warning: comment on exported function ValidatePassword should be of the form "ValidatePassword ..." (golint)
    • Line 59: warning: comment on exported function ValidateToken should be of the form "ValidateToken ..." (golint)
    • go-funny-cms/pkg/schedule/backup/handler.go
    • Line 14: warning: exported var SCHEDULE_KEY should have comment or be unexported (golint)
    • Line 22: warning: exported type Process should have comment or be unexported (golint)
    • Line 32: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 52: warning: exported function DispatchTestProcess should have comment or be unexported (golint)
    • Line 102: warning: don't use underscores in Go names; var entry_id should be entryID (golint)
    • Line 118: warning: comment on exported method Schedule.StartJob should be of the form "StartJob ..." (golint)
    • Line 121: warning: don't use underscores in Go names; var entry_id should be entryID (golint)
    • Line 126: warning: comment on exported method Schedule.DingTalk should be of the form "DingTalk ..." (golint)
    • Line 133: warning: comment on exported function Dispatch should be of the form "Dispatch ..." (golint)
    • go-funny-cms/app/http/admin/controllers/admin.go
    • Line 15: warning: exported type AdminController should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method AdminController.Index should be of the form "Index ..." (golint)
    • Line 28: warning: comment on exported method AdminController.Store should be of the form "Store ..." (golint)
    • Line 41: warning: comment on exported method AdminController.Save should be of the form "Save ..." (golint)
    • Line 54: warning: comment on exported method AdminController.Destory should be of the form "Destory ..." (golint)
    • Line 65: warning: comment on exported method AdminController.Show should be of the form "Show ..." (golint)
    • Line 76: warning: comment on exported method AdminController.Tree should be of the form "Tree ..." (golint)
    • go-funny-cms/app/models/admin/admin.go
    • Line 13: warning: exported type Admin should have comment or be unexported (golint)
    • Line 26: warning: comment on exported type AuthAdmin should be of the form "AuthAdmin ..." (with optional leading article) (golint)
    • Line 40: warning: exported var AuthUser should have comment or be unexported (golint)
    • Line 42: warning: exported method Admin.TableName should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function GetAuthAdmin should be of the form "GetAuthAdmin ..." (golint)
    • Line 75: warning: don't use underscores in Go names; var menu_ids should be menuIds (golint)
    • Line 101: warning: exported function GetMenuTreeRouter should have comment or be unexported (golint)
    • go-funny-cms/pkg/config/config.go
    • Line 31: warning: exported function Initialize should have comment or be unexported (golint)
    • Line 33: warning: comment on exported function InitViper should be of the form "InitViper ..." (golint)
    • Line 56: warning: comment on exported function GetEnvFile should be of the form "GetEnvFile ..." (golint)
    • Line 61: warning: comment on exported function Env should be of the form "Env ..." (golint)
    • Line 69: warning: comment on exported function Get should be of the form "Get ..." (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 81: warning: comment on exported function Add should be of the form "Add ..." (golint)
    • Line 86: warning: comment on exported function GetString should be of the form "GetString ..." (golint)
    • go-funny-cms/pkg/config/database.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported type DataBase should have comment or be unexported (golint)
    • Line 19: warning: exported function InitDatabase should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function RedisClient should be of the form "RedisClient ..." (golint)
    • Line 73: warning: exported method DataBase.Where should have comment or be unexported (golint)
    • Line 79: warning: exported method DataBase.WhereCombOr should have comment or be unexported (golint)
    • go-funny-cms/pkg/schedule/task.go
    • Line 11: warning: exported type TaskState should have comment or be unexported (golint)
    • Line 42: warning: comment on exported type TaskType should be of the form "TaskType ..." (with optional leading article) (golint)
    • Line 45: warning: comment on exported type TaskHandleFunc should be of the form "TaskHandleFunc ..." (with optional leading article) (golint)
    • Line 63: warning: comment on exported method ExecuteInfo.CreateNow should be of the form "CreateNow ..." (golint)
    • Line 68: warning: comment on exported method ExecuteInfo.StopNow should be of the form "StopNow ..." (golint)
    • Line 73: warning: comment on exported method ExecuteInfo.ExecuteNow should be of the form "ExecuteNow ..." (golint)
    • Line 79: warning: comment on exported method ExecuteInfo.SuccessNow should be of the form "SuccessNow ..." (golint)
    • Line 86: warning: comment on exported method ExecuteInfo.FailNow should be of the form "FailNow ..." (golint)
    • Line 126: warning: comment on exported function NewTask should be of the form "NewTask ..." (golint)
    • Line 140: warning: comment on exported method Task.StateName should be of the form "StateName ..." (golint)
    • Line 145: warning: exported method Task.Context should have comment or be unexported (golint)
    • Line 149: warning: exported method Task.Log should have comment or be unexported (golint)
    • Line 160: warning: comment on exported method Task.ChangeState should be of the form "ChangeState ..." (golint)
    • Line 176: warning: comment on exported method Task.StateInChange should be of the form "StateInChange ..." (golint)
    • Line 202: warning: exported method TaskResult.Log should have comment or be unexported (golint)
    • Line 218: warning: exported method TaskHandleFuncMap.SetHandleFunc should have comment or be unexported (golint)
    • Line 226: warning: exported method TaskHandleFuncMap.GetHandleFunc should have comment or be unexported (golint)
    • go-funny-cms/app/http/admin/controllers/menu.go
    • Line 12: warning: exported type MenuController should have comment or be unexported (golint)
    • Line 13: warning: exported type MenuList should have comment or be unexported (golint)
    • Line 28: warning: exported var MenuModel should have comment or be unexported (golint)
    • Line 30: warning: exported method MenuController.Index should have comment or be unexported (golint)
    • Line 45: warning: exported method MenuController.Show should have comment or be unexported (golint)
    • Line 56: warning: exported method MenuController.Store should have comment or be unexported (golint)
    • Line 68: warning: exported method MenuController.Save should have comment or be unexported (golint)
    • Line 80: warning: exported method MenuController.Destory should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method MenuController.Tree should be of the form "Tree ..." (golint)
    • Line 99: warning: exported function GetMenuTree should have comment or be unexported (golint)
    • go-funny-cms/pkg/config/mail.go
    • Line 3: warning: exported function GetAllMailers should have comment or be unexported (golint)
    • Line 17: warning: exported function GetMailerLabels should have comment or be unexported (golint)
    • Line 20: warning: should omit 2nd value from range; this loop is equivalent to `for label := range ...` (golint)
    • go-funny-cms/app/http/admin/controllers/auth.go
    • Line 13: warning: exported type AuthController should have comment or be unexported (golint)
    • Line 19: warning: exported method AuthController.Login should have comment or be unexported (golint)
    • Line 51: warning: comment on exported method AuthController.Me should be of the form "Me ..." (golint)
    • Line 58: warning: comment on exported method AuthController.Logout should be of the form "Logout ..." (golint)
    • go-funny-cms/app/http/admin/controllers/notification.go
    • Line 16: warning: exported type NotificationController should have comment or be unexported (golint)
    • Line 18: warning: exported method NotificationController.List should have comment or be unexported (golint)
    • Line 35: warning: exported method NotificationController.Store should have comment or be unexported (golint)
    • Line 48: warning: don't use underscores in Go names; var follow_ids should be followIds (golint)
    • Line 74: warning: exported method NotificationController.Readed should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell90%

Misspell Finds commonly misspelled English words

    • go-funny-cms/pkg/mail/task.go
    • Line 17: warning: "RUNING" is a misspelling of "RUNNING" (misspell)
    • Line 80: warning: "conditon" is a misspelling of "condition" (misspell)
    • Line 83: warning: "runing" is a misspelling of "running" (misspell)
    • Line 84: warning: "conditon" is a misspelling of "condition" (misspell)