Preparing report...

Report for github.com/codyi/grabc

A    Great!    Found 25 issues across 24 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!


gocyclo95%

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.


golint0%

Golint is a linter for Go source code.

    • grabc/grabc.go
    • Line 34: warning: comment on exported function RegisterController should be of the form "RegisterController ..." (golint)
    • Line 41: warning: comment on exported function RegisterUserIdFunc should be of the form "RegisterUserIdFunc ..." (golint)
    • Line 46: warning: comment on exported function SetBeegoController should be of the form "SetBeegoController ..." (golint)
    • Line 51: warning: comment on exported function RegisterUserModel should be of the form "RegisterUserModel ..." (golint)
    • Line 56: warning: comment on exported function AppendIgnoreRoute should be of the form "AppendIgnoreRoute ..." (golint)
    • Line 65: warning: comment on exported function CheckAccess should be of the form "CheckAccess ..." (golint)
    • Line 70: warning: comment on exported function SetLayout should be of the form "SetLayout ..." (golint)
    • Line 77: warning: comment on exported function AddLayoutData should be of the form "AddLayoutData ..." (golint)
    • Line 88: warning: comment on exported function SetViewPath should be of the form "SetViewPath ..." (golint)
    • grabc/models/base.go
    • Line 17: warning: exported type IModel should have comment or be unexported (golint)
    • Line 21: warning: exported type BaseModel should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method BaseModel.IsNewRecord should be of the form "IsNewRecord ..." (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 31: warning: comment on exported method BaseModel.PrepareDelete should be of the form "PrepareDelete ..." (golint)
    • Line 32: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 36: warning: comment on exported method BaseModel.Delete should be of the form "Delete ..." (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/models/role.go
    • Line 9: warning: exported type Role should have comment or be unexported (golint)
    • Line 15: warning: exported method Role.TableName should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: comment on exported method Role.FindById should be of the form "FindById ..." (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: comment on exported method Role.FindByName should be of the form "FindByName ..." (golint)
    • Line 30: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 39: warning: comment on exported method Role.Insert should be of the form "Insert ..." (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 60: warning: comment on exported method Role.Update should be of the form "Update ..." (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: comment on exported method Role.DeleteByName should be of the form "DeleteByName ..." (golint)
    • Line 81: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 95: warning: comment on exported method Role.List should be of the form "List ..." (golint)
    • Line 96: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 110: warning: exported method Role.PrepareDelete should have comment or be unexported (golint)
    • Line 110: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 126: warning: comment on exported method Role.Delete should be of the form "Delete ..." (golint)
    • Line 127: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 132: warning: comment on exported method Role.FindAll should be of the form "FindAll ..." (golint)
    • Line 133: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 141: warning: comment on exported method Role.ListNamesByIds should be of the form "ListNamesByIds ..." (golint)
    • Line 142: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/models/user.go
    • Line 3: warning: comment on exported type IUserModel should be of the form "IUserModel ..." (with optional leading article) (golint)
    • Line 9: warning: exported var UserModel should have comment or be unexported (golint)
    • grabc/controllers/assignment.go
    • Line 10: warning: exported type AssignmentController should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method AssignmentController.Index should be of the form "Index ..." (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: don't use underscores in Go names; var page_index should be pageIndex (golint)
    • Line 37: warning: should omit 2nd value from range; this loop is equivalent to `for id := range ...` (golint)
    • Line 71: warning: comment on exported method AssignmentController.User should be of the form "User ..." (golint)
    • Line 72: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 73: warning: don't use underscores in Go names; var user_id should be userID (golint)
    • Line 79: warning: don't use underscores in Go names; var user_name should be userName (golint)
    • Line 118: warning: exported method AssignmentController.AjaxAdd should have comment or be unexported (golint)
    • Line 118: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 122: warning: don't use underscores in Go names; var param_role should be paramRole (golint)
    • Line 123: warning: don't use underscores in Go names; var int_param_user_id should be intParamUserID (golint)
    • Line 123: warning: don't use underscores in Go names; var user_id_err should be userIDErr (golint)
    • Line 166: warning: exported method AssignmentController.AjaxRemove should have comment or be unexported (golint)
    • Line 166: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 170: warning: don't use underscores in Go names; var param_role should be paramRole (golint)
    • Line 171: warning: don't use underscores in Go names; var int_param_user_id should be intParamUserID (golint)
    • Line 171: warning: don't use underscores in Go names; var user_id_err should be userIDErr (golint)
    • Line 197: warning: don't use underscores in Go names; var is_delete should be isDelete (golint)
    • grabc/controllers/permission.go
    • Line 10: warning: exported type PermissionController should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method PermissionController.Index should be of the form "Index ..." (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: don't use underscores in Go names; var page_index should be pageIndex (golint)
    • Line 41: warning: comment on exported method PermissionController.Add should be of the form "Add ..." (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 63: warning: comment on exported method PermissionController.Put should be of the form "Put ..." (golint)
    • Line 64: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 66: warning: don't use underscores in Go names; var permission_id should be permissionID (golint)
    • Line 91: warning: comment on exported method PermissionController.Assignment should be of the form "Assignment ..." (golint)
    • Line 92: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 150: warning: comment on exported method PermissionController.AjaxAddRoute should be of the form "AjaxAddRoute ..." (golint)
    • Line 151: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 202: warning: comment on exported method PermissionController.AjaxRemoveRoute should be of the form "AjaxRemoveRoute ..." (golint)
    • Line 203: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 207: warning: don't use underscores in Go names; var param_route should be paramRoute (golint)
    • Line 210: warning: don't use underscores in Go names; var int_param_route_id should be intParamRouteID (golint)
    • Line 229: warning: don't use underscores in Go names; var int_param_permission_id should be intParamPermissionID (golint)
    • Line 237: warning: don't use underscores in Go names; var is_delete should be isDelete (golint)
    • Line 255: warning: comment on exported method PermissionController.Delete should be of the form "Delete ..." (golint)
    • Line 256: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 259: warning: don't use underscores in Go names; var permision_id should be permisionID (golint)
    • Line 274: warning: don't use underscores in Go names; var is_delete should be isDelete (golint)
    • grabc/models/permission.go
    • Line 9: warning: exported type Permission should have comment or be unexported (golint)
    • Line 15: warning: exported method Permission.TableName should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: comment on exported method Permission.FindById should be of the form "FindById ..." (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: comment on exported method Permission.FindByName should be of the form "FindByName ..." (golint)
    • Line 30: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 39: warning: comment on exported method Permission.Insert should be of the form "Insert ..." (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 60: warning: comment on exported method Permission.Update should be of the form "Update ..." (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: comment on exported method Permission.List should be of the form "List ..." (golint)
    • Line 81: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 95: warning: comment on exported method Permission.FindAll should be of the form "FindAll ..." (golint)
    • Line 96: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 108: warning: exported method Permission.PrepareDelete should have comment or be unexported (golint)
    • Line 108: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 124: warning: comment on exported method Permission.Delete should be of the form "Delete ..." (golint)
    • Line 125: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/models/route.go
    • Line 10: warning: exported type Route should have comment or be unexported (golint)
    • Line 15: warning: exported method Route.TableName should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: comment on exported method Route.FindById should be of the form "FindById ..." (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: comment on exported method Route.FindByUrl should be of the form "FindByUrl ..." (golint)
    • Line 30: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 39: warning: comment on exported method Route.Insert should be of the form "Insert ..." (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 60: warning: comment on exported method Route.PrepareDelete should be of the form "PrepareDelete ..." (golint)
    • Line 61: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 70: warning: comment on exported method Route.Delete should be of the form "Delete ..." (golint)
    • Line 71: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 76: warning: comment on exported method Route.FindAll should be of the form "FindAll ..." (golint)
    • Line 77: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 85: warning: comment on exported method Route.FindAllByIds should be of the form "FindAllByIds ..." (golint)
    • Line 86: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 99: warning: comment on exported method Route.ListByUserId should be of the form "ListByUserId ..." (golint)
    • Line 100: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 100: warning: don't use underscores in Go names; method parameter user_id should be userID (golint)
    • grabc/controllers/menu.go
    • Line 9: warning: exported type MenuController should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method MenuController.Index should be of the form "Index ..." (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 15: warning: don't use underscores in Go names; var page_index should be pageIndex (golint)
    • Line 41: warning: comment on exported method MenuController.Post should be of the form "Post ..." (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 46: warning: don't use underscores in Go names; var menu_name should be menuName (golint)
    • Line 47: warning: don't use underscores in Go names; var int_menu_order should be intMenuOrder (golint)
    • Line 47: warning: don't use underscores in Go names; var menu_order_err should be menuOrderErr (golint)
    • Line 48: warning: don't use underscores in Go names; var menu_route should be menuRoute (golint)
    • Line 49: warning: don't use underscores in Go names; var int_menu_parent should be intMenuParent (golint)
    • Line 49: warning: don't use underscores in Go names; var menu_parent_err should be menuParentErr (golint)
    • Line 50: warning: don't use underscores in Go names; var menu_icon should be menuIcon (golint)
    • Line 101: warning: comment on exported method MenuController.Put should be of the form "Put ..." (golint)
    • Line 102: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 103: warning: don't use underscores in Go names; var menu_id should be menuID (golint)
    • Line 115: warning: don't use underscores in Go names; var menu_name should be menuName (golint)
    • Line 116: warning: don't use underscores in Go names; var int_menu_order should be intMenuOrder (golint)
    • Line 116: warning: don't use underscores in Go names; var menu_order_err should be menuOrderErr (golint)
    • Line 117: warning: don't use underscores in Go names; var menu_route should be menuRoute (golint)
    • Line 118: warning: don't use underscores in Go names; var int_menu_parent should be intMenuParent (golint)
    • Line 118: warning: don't use underscores in Go names; var menu_parent_err should be menuParentErr (golint)
    • Line 119: warning: don't use underscores in Go names; var menu_icon should be menuIcon (golint)
    • Line 171: warning: comment on exported method MenuController.Delete should be of the form "Delete ..." (golint)
    • Line 172: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 175: warning: don't use underscores in Go names; var menu_id should be menuID (golint)
    • Line 190: warning: don't use underscores in Go names; var is_delete should be isDelete (golint)
    • grabc/libs/alert.go
    • Line 3: warning: exported type Alert should have comment or be unexported (golint)
    • Line 4: warning: don't use underscores in Go names; struct field Error_messages should be ErrorMessages (golint)
    • Line 5: warning: don't use underscores in Go names; struct field Success_messages should be SuccessMessages (golint)
    • Line 6: warning: don't use underscores in Go names; struct field Info_messages should be InfoMessages (golint)
    • Line 7: warning: don't use underscores in Go names; struct field Warning_messages should be WarningMessages (golint)
    • Line 10: warning: exported method Alert.HasError should have comment or be unexported (golint)
    • Line 10: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 13: warning: exported method Alert.AddErrorMessage should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: exported method Alert.AddSuccessMessage should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 21: warning: exported method Alert.AddInfoMessage should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 25: warning: exported method Alert.AddWarningMessage should have comment or be unexported (golint)
    • Line 25: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: exported method Alert.ShowAlert should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/libs/menu.go
    • Line 16: warning: exported type MenuGroup should have comment or be unexported (golint)
    • Line 21: warning: comment on exported function AccessMenus should be of the form "AccessMenus ..." (golint)
    • Line 92: warning: exported function ShowMenu should have comment or be unexported (golint)
    • grabc/libs/template.go
    • Line 3: warning: comment on exported var Template should be of the form "Template ..." (golint)
    • Line 10: warning: exported type GrabcTemplate should have comment or be unexported (golint)
    • Line 16: warning: exported method GrabcTemplate.GlobalCss should have comment or be unexported (golint)
    • Line 16: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: exported method GrabcTemplate.GlobalJs should have comment or be unexported (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/models/assignment_role.go
    • Line 9: warning: exported type AssignmentRole should have comment or be unexported (golint)
    • Line 15: warning: exported method AssignmentRole.TableName should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: comment on exported method AssignmentRole.Insert should be of the form "Insert ..." (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 44: warning: comment on exported method AssignmentRole.FindByRoleIdAndUserId should be of the form "FindByRoleIdAndUserId ..." (golint)
    • Line 45: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 58: warning: comment on exported method AssignmentRole.Delete should be of the form "Delete ..." (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 70: warning: comment on exported method AssignmentRole.FindRoleIdsByUserId should be of the form "FindRoleIdsByUserId ..." (golint)
    • Line 71: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 93: warning: comment on exported method AssignmentRole.DeleteByRoleId should be of the form "DeleteByRoleId ..." (golint)
    • Line 94: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/models/assignment_route.go
    • Line 9: warning: exported type AssignmentRoute should have comment or be unexported (golint)
    • Line 15: warning: exported method AssignmentRoute.TableName should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: comment on exported method AssignmentRoute.FindById should be of the form "FindById ..." (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: comment on exported method AssignmentRoute.Insert should be of the form "Insert ..." (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: comment on exported method AssignmentRoute.Delete should be of the form "Delete ..." (golint)
    • Line 56: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 76: warning: comment on exported method AssignmentRoute.FindAllByPermissionId should be of the form "FindAllByPermissionId ..." (golint)
    • Line 77: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 90: warning: comment on exported method AssignmentRoute.DeleteByPermissionId should be of the form "DeleteByPermissionId ..." (golint)
    • Line 91: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 101: warning: comment on exported method AssignmentRoute.DeleteByRouteId should be of the form "DeleteByRouteId ..." (golint)
    • Line 102: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 112: warning: comment on exported method AssignmentRoute.FindRouteIdsByPerIds should be of the form "FindRouteIdsByPerIds ..." (golint)
    • Line 113: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/libs/breadcrumb.go
    • Line 3: warning: exported type Breadcrumb should have comment or be unexported (golint)
    • Line 8: warning: exported type Breadcrumbs should have comment or be unexported (golint)
    • Line 12: warning: comment on exported method Breadcrumbs.AddBreadcrumbs should be of the form "AddBreadcrumbs ..." (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 25: warning: comment on exported method Breadcrumbs.ShowBreadcrumbs should be of the form "ShowBreadcrumbs ..." (golint)
    • Line 26: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/libs/check_permission.go
    • Line 10: warning: comment on exported var BeegoC should be of the form "BeegoC ..." (golint)
    • Line 13: warning: exported var RegisterUserIdFunc should have comment or be unexported (golint)
    • Line 15: warning: comment on exported var IgnoreRoutes should be of the form "IgnoreRoutes ..." (golint)
    • Line 18: warning: comment on exported function AccessRoutes should be of the form "AccessRoutes ..." (golint)
    • Line 42: warning: comment on exported function CheckAccess should be of the form "CheckAccess ..." (golint)
    • grabc/libs/pagination.go
    • Line 8: warning: exported type Pagination should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function PaginationRender should be of the form "PaginationRender ..." (golint)
    • grabc/libs/route.go
    • Line 10: warning: exported var RegisterControllers should have comment or be unexported (golint)
    • Line 15: warning: exported function ExceptMethodAppend should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function AllRoutes should be of the form "AllRoutes ..." (golint)
    • grabc/models/assignment_permission.go
    • Line 9: warning: exported type AssignmentPermission should have comment or be unexported (golint)
    • Line 15: warning: exported method AssignmentPermission.TableName should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: comment on exported method AssignmentPermission.Insert should be of the form "Insert ..." (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 45: warning: comment on exported method AssignmentPermission.Delete should be of the form "Delete ..." (golint)
    • Line 46: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 66: warning: comment on exported method AssignmentPermission.FindAllByRoleId should be of the form "FindAllByRoleId ..." (golint)
    • Line 67: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: comment on exported method AssignmentPermission.FindPerIdsByRoleIds should be of the form "FindPerIdsByRoleIds ..." (golint)
    • Line 81: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 102: warning: comment on exported method AssignmentPermission.DeleteByPermissionId should be of the form "DeleteByPermissionId ..." (golint)
    • Line 103: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 113: warning: comment on exported method AssignmentPermission.DeleteByRoleId should be of the form "DeleteByRoleId ..." (golint)
    • Line 114: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/models/menu.go
    • Line 9: warning: exported type Menu should have comment or be unexported (golint)
    • Line 19: warning: exported method Menu.TableName should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 23: warning: comment on exported method Menu.FindById should be of the form "FindById ..." (golint)
    • Line 24: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: exported method Menu.GetParentName should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: comment on exported method Menu.FindByName should be of the form "FindByName ..." (golint)
    • Line 44: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 53: warning: comment on exported method Menu.Insert should be of the form "Insert ..." (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 72: warning: comment on exported method Menu.Update should be of the form "Update ..." (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 90: warning: comment on exported method Menu.FindAllParent should be of the form "FindAllParent ..." (golint)
    • Line 91: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 99: warning: comment on exported method Menu.Delete should be of the form "Delete ..." (golint)
    • Line 100: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 118: warning: comment on exported method Menu.List should be of the form "List ..." (golint)
    • Line 119: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 133: warning: comment on exported method Menu.ListAll should be of the form "ListAll ..." (golint)
    • Line 134: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/controllers/base.go
    • Line 11: warning: exported const MESSAGE_TYPE_SUCCESS should have comment or be unexported (golint)
    • Line 12: warning: exported const MESSAGE_TYPE_ERROR should have comment or be unexported (golint)
    • Line 20: warning: exported type HtmlTemplate should have comment or be unexported (golint)
    • Line 24: warning: exported type JsonData should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type BaseController should be of the form "BaseController ..." (with optional leading article) (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: comment on exported method BaseController.Prepare should be of the form "Prepare ..." (golint)
    • Line 56: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 120: warning: comment on exported method BaseController.ShowHtml should be of the form "ShowHtml ..." (golint)
    • Line 121: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 154: warning: comment on exported method BaseController.ShowJSON should be of the form "ShowJSON ..." (golint)
    • Line 155: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 162: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • grabc/controllers/role.go
    • Line 9: warning: exported type RoleController should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method RoleController.Index should be of the form "Index ..." (golint)
    • Line 14: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 15: warning: don't use underscores in Go names; var page_index should be pageIndex (golint)
    • Line 41: warning: comment on exported method RoleController.Post should be of the form "Post ..." (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 63: warning: comment on exported method RoleController.Put should be of the form "Put ..." (golint)
    • Line 64: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 94: warning: comment on exported method RoleController.Assignment should be of the form "Assignment ..." (golint)
    • Line 95: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 144: warning: comment on exported method RoleController.AjaxAssignment should be of the form "AjaxAssignment ..." (golint)
    • Line 145: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 184: warning: comment on exported method RoleController.AjaxUnassignment should be of the form "AjaxUnassignment ..." (golint)
    • Line 185: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 206: warning: don't use underscores in Go names; var is_delete should be isDelete (golint)
    • Line 227: warning: comment on exported method RoleController.Delete should be of the form "Delete ..." (golint)
    • Line 228: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 231: warning: don't use underscores in Go names; var role_id should be roleID (golint)
    • Line 246: warning: don't use underscores in Go names; var is_delete should be isDelete (golint)
    • grabc/controllers/route.go
    • Line 10: warning: exported type RouteController should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method RouteController.Index should be of the form "Index ..." (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: comment on exported method RouteController.AjaxAdd should be of the form "AjaxAdd ..." (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 69: warning: comment on exported method RouteController.AjaxRemove should be of the form "AjaxRemove ..." (golint)
    • Line 70: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!