Preparing report...

Report for github.com/ICKelin/cframe

A+    Excellent!    Found 44 issues across 74 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!


gocyclo97%

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.


golint43%

Golint is a linter for Go source code.

    • cframe/apiserver/handler/base.go
    • Line 13: warning: exported const CODE_SUCC should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type ResponseBody should have comment or be unexported (golint)
    • Line 23: warning: exported type BaseHandler should have comment or be unexported (golint)
    • Line 27: warning: exported method BaseHandler.BindAndValidate should have comment or be unexported (golint)
    • Line 36: warning: exported method BaseHandler.Response should have comment or be unexported (golint)
    • Line 52: warning: exported method BaseHandler.MidAuth should have comment or be unexported (golint)
    • Line 77: warning: exported method BaseHandler.GetUsername should have comment or be unexported (golint)
    • Line 83: warning: exported method BaseHandler.GetUserId should have comment or be unexported (golint)
    • cframe/apiserver/handler/form.go
    • Line 3: warning: comment on exported type AddEdgeForm should be of the form "AddEdgeForm ..." (with optional leading article) (golint)
    • Line 13: warning: exported type DelEdgeForm should have comment or be unexported (golint)
    • Line 17: warning: exported type GetStatForm should have comment or be unexported (golint)
    • Line 24: warning: comment on exported type SignupForm should be of the form "SignupForm ..." (with optional leading article) (golint)
    • Line 32: warning: exported type SigninForm should have comment or be unexported (golint)
    • Line 37: warning: comment on exported type AddCSPForm should be of the form "AddCSPForm ..." (with optional leading article) (golint)
    • Line 44: warning: exported type DelCSPForm should have comment or be unexported (golint)
    • Line 48: warning: comment on exported type AddRouteForm should be of the form "AddRouteForm ..." (with optional leading article) (golint)
    • Line 55: warning: exported type DelRouteForm should have comment or be unexported (golint)
    • cframe/edge/frame.go
    • Line 5: warning: exported type Frame should have comment or be unexported (golint)
    • Line 6: warning: exported type Packet should have comment or be unexported (golint)
    • Line 8: warning: exported method Frame.Invalid should have comment or be unexported (golint)
    • Line 12: warning: exported method Frame.IsIPV4 should have comment or be unexported (golint)
    • Line 20: warning: exported method Packet.Invalid should have comment or be unexported (golint)
    • Line 24: warning: exported method Packet.Version should have comment or be unexported (golint)
    • Line 28: warning: exported method Packet.Dst should have comment or be unexported (golint)
    • Line 32: warning: exported method Packet.Src should have comment or be unexported (golint)
    • cframe/pkg/routemanager/routemanager.go
    • Line 18: warning: exported type RouteManager should have comment or be unexported (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • Line 34: warning: exported method RouteManager.Watch should have comment or be unexported (golint)
    • Line 79: warning: exported method RouteManager.AddRoute should have comment or be unexported (golint)
    • Line 84: warning: exported method RouteManager.DelRoute should have comment or be unexported (golint)
    • Line 90: warning: exported function AddRoute should have comment or be unexported (golint)
    • Line 97: warning: exported function DelRoute should have comment or be unexported (golint)
    • cframe/apiserver/apiserver.go
    • Line 13: warning: exported type ApiServer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewApiServer should have comment or be unexported (golint)
    • Line 27: warning: exported method ApiServer.Run should have comment or be unexported (golint)
    • Line 58: warning: exported function MidCORS should have comment or be unexported (golint)
    • cframe/usercenter/server.go
    • Line 16: warning: exported type Server should have comment or be unexported (golint)
    • Line 22: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 30: warning: exported method Server.ListenAndServe should have comment or be unexported (golint)
    • Line 42: warning: exported method Server.GetUserBySecret should have comment or be unexported (golint)
    • Line 60: warning: exported method Server.AddUser should have comment or be unexported (golint)
    • Line 106: warning: exported method Server.GetUserInfo should have comment or be unexported (golint)
    • Line 125: warning: exported method Server.Authorize should have comment or be unexported (golint)
    • Line 153: warning: exported method Server.GetUserByToken should have comment or be unexported (golint)
    • cframe/edge/vpc/alivpc.go
    • Line 11: warning: exported type AliVPC should have comment or be unexported (golint)
    • Line 16: warning: exported function NewAliVPC should have comment or be unexported (golint)
    • Line 23: warning: exported method AliVPC.CreateRoute should have comment or be unexported (golint)
    • cframe/controller/models/alarm.go
    • Line 10: warning: exported type AlarmType should have comment or be unexported (golint)
    • Line 13: warning: exported var C_ALARM should have comment or be unexported (golint)
    • Line 17: warning: exported var AlarmHappen should have comment or be unexported (golint)
    • Line 22: warning: exported type Alarm should have comment or be unexported (golint)
    • Line 32: warning: exported type AlarmManager should have comment or be unexported (golint)
    • Line 36: warning: exported function GetAlarmManager should have comment or be unexported (golint)
    • Line 40: warning: exported method AlarmManager.AddAlarm should have comment or be unexported (golint)
    • Line 44: warning: exported method AlarmManager.UpdateAlarm should have comment or be unexported (golint)
    • cframe/usercenter/models/authorize.go
    • Line 12: warning: exported var C_AUTH should have comment or be unexported (golint)
    • Line 15: warning: exported type Auth should have comment or be unexported (golint)
    • Line 22: warning: exported type AuthManager should have comment or be unexported (golint)
    • Line 26: warning: exported function GetAuthManager should have comment or be unexported (golint)
    • Line 30: warning: exported method AuthManager.AddAuth should have comment or be unexported (golint)
    • Line 37: warning: exported method AuthManager.GetAuthByToken should have comment or be unexported (golint)
    • cframe/edge/cframe.go
    • Line 14: warning: exported type Server should have comment or be unexported (golint)
    • Line 43: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 54: warning: exported method Server.SetRegistry should have comment or be unexported (golint)
    • Line 58: warning: exported method Server.SetVPCInstance should have comment or be unexported (golint)
    • Line 64: warning: exported method Server.ListenAndServe should have comment or be unexported (golint)
    • Line 233: warning: exported method Server.AddPeer should have comment or be unexported (golint)
    • Line 277: warning: exported method Server.AddPeers should have comment or be unexported (golint)
    • Line 283: warning: exported method Server.DelPeer should have comment or be unexported (golint)
    • Line 294: warning: exported method Server.AddRoute should have comment or be unexported (golint)
    • Line 301: warning: exported method Server.DelRoute should have comment or be unexported (golint)
    • cframe/pkg/database/mongodb.go
    • Line 8: warning: exported type MongoDB should have comment or be unexported (golint)
    • Line 14: warning: exported type MongoDBClient should have comment or be unexported (golint)
    • Line 18: warning: exported method MongoDBClient.Close should have comment or be unexported (golint)
    • Line 18: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 22: warning: comment on exported function NewMongoDB should be of the form "NewMongoDB ..." (golint)
    • Line 30: warning: exported method MongoDB.MainSession should have comment or be unexported (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 42: warning: comment on exported method MongoDB.NewSession should be of the form "NewSession ..." (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: comment on exported method MongoDB.C should be of the form "C ..." (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • cframe/pkg/etcdstorage/etcdstorage.go
    • Line 12: warning: exported type Etcd should have comment or be unexported (golint)
    • Line 16: warning: exported function NewEtcd should have comment or be unexported (golint)
    • Line 32: warning: exported method Etcd.Set should have comment or be unexported (golint)
    • Line 38: warning: exported method Etcd.SetWithExpiration should have comment or be unexported (golint)
    • Line 51: warning: exported method Etcd.Get should have comment or be unexported (golint)
    • Line 63: warning: exported method Etcd.Del should have comment or be unexported (golint)
    • Line 67: warning: exported method Etcd.DelPrefix should have comment or be unexported (golint)
    • Line 71: warning: exported method Etcd.List should have comment or be unexported (golint)
    • Line 83: warning: exported method Etcd.Watch should have comment or be unexported (golint)
    • cframe/apiserver/handler/route.go
    • Line 13: warning: exported type RouteHandler should have comment or be unexported (golint)
    • Line 18: warning: exported function NewRouteHandler should have comment or be unexported (golint)
    • Line 25: warning: exported method RouteHandler.Run should have comment or be unexported (golint)
    • cframe/controller/config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported type Log should have comment or be unexported (golint)
    • Line 26: warning: exported function ParseConfig should have comment or be unexported (golint)
    • cframe/controller/registry.go
    • Line 20: warning: comment on exported type RegistryServer should be of the form "RegistryServer ..." (with optional leading article) (golint)
    • Line 55: warning: exported type Session should have comment or be unexported (golint)
    • Line 60: warning: exported function NewRegistryServer should have comment or be unexported (golint)
    • Line 73: warning: exported method RegistryServer.ListenAndServe should have comment or be unexported (golint)
    • Line 402: warning: exported method RegistryServer.DelEdge should have comment or be unexported (golint)
    • Line 413: warning: exported method RegistryServer.ModifyEdge should have comment or be unexported (golint)
    • Line 418: warning: exported method RegistryServer.DelRoute should have comment or be unexported (golint)
    • Line 423: warning: exported method RegistryServer.AddRoute should have comment or be unexported (golint)
    • cframe/edge/register.go
    • Line 16: warning: exported type Registry should have comment or be unexported (golint)
    • Line 28: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 38: warning: exported method Registry.Run should have comment or be unexported (golint)
    • cframe/apiserver/handler/csp.go
    • Line 12: warning: exported type CSPHandler should have comment or be unexported (golint)
    • Line 17: warning: exported function NewCSPHandler should have comment or be unexported (golint)
    • Line 24: warning: exported method CSPHandler.Run should have comment or be unexported (golint)
    • cframe/apiserver/handler/user.go
    • Line 12: warning: exported type UserHandler should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUserHandler should have comment or be unexported (golint)
    • Line 22: warning: exported method UserHandler.Run should have comment or be unexported (golint)
    • cframe/edge/vpc/vpc.go
    • Line 10: warning: exported const ALI_VPC should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type IVPC should have comment or be unexported (golint)
    • Line 17: warning: exported function GetVPCInstance should have comment or be unexported (golint)
    • cframe/codec/proto.go
    • Line 17: warning: comment on exported type RegisterReq should be of the form "RegisterReq ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported type Edge should be of the form "Edge ..." (with optional leading article) (golint)
    • Line 31: warning: exported type CSPInfo should have comment or be unexported (golint)
    • Line 37: warning: comment on exported type RegisterReply should be of the form "RegisterReply ..." (with optional leading article) (golint)
    • Line 49: warning: comment on exported type BroadcastOnlineMsg should be of the form "BroadcastOnlineMsg ..." (with optional leading article) (golint)
    • Line 61: warning: comment on exported type BroadcastOfflineMsg should be of the form "BroadcastOfflineMsg ..." (with optional leading article) (golint)
    • Line 73: warning: comment on exported type ReportMsg should be of the form "ReportMsg ..." (with optional leading article) (golint)
    • Line 91: warning: exported type Heartbeat should have comment or be unexported (golint)
    • Line 93: warning: comment on exported type AddRouteMsg should be of the form "AddRouteMsg ..." (with optional leading article) (golint)
    • Line 102: warning: comment on exported type DelRouteMsg should be of the form "DelRouteMsg ..." (with optional leading article) (golint)
    • cframe/controller/models/csp.go
    • Line 12: warning: exported type CSP should have comment or be unexported (golint)
    • Line 21: warning: exported var C_CSP should have comment or be unexported (golint)
    • Line 24: warning: exported type CSPManager should have comment or be unexported (golint)
    • Line 28: warning: exported function GetCSPManager should have comment or be unexported (golint)
    • Line 32: warning: exported method CSPManager.AddCSP should have comment or be unexported (golint)
    • Line 38: warning: exported method CSPManager.GetCSP should have comment or be unexported (golint)
    • Line 51: warning: exported method CSPManager.GetCSPList should have comment or be unexported (golint)
    • Line 60: warning: exported method CSPManager.DelCSP should have comment or be unexported (golint)
    • cframe/usercenter/models/user.go
    • Line 12: warning: exported var C_USER should have comment or be unexported (golint)
    • Line 15: warning: exported type User should have comment or be unexported (golint)
    • Line 24: warning: exported type UserManager should have comment or be unexported (golint)
    • Line 28: warning: exported function GetUserManager should have comment or be unexported (golint)
    • Line 32: warning: exported method UserManager.CreateUser should have comment or be unexported (golint)
    • Line 44: warning: exported method UserManager.GetUserBySecret should have comment or be unexported (golint)
    • Line 57: warning: exported method UserManager.GetUserByName should have comment or be unexported (golint)
    • Line 69: warning: exported method UserManager.GetUserByEmail should have comment or be unexported (golint)
    • Line 81: warning: exported method UserManager.GetUserById should have comment or be unexported (golint)
    • Line 94: warning: exported method UserManager.VerifyUser should have comment or be unexported (golint)
    • cframe/pkg/edgemanager/edage.go
    • Line 10: warning: exported const StatusOffline should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type Edge should have comment or be unexported (golint)
    • cframe/pkg/logs/log.go
    • Line 555: warning: exported function Level should have comment or be unexported (golint)
    • Line 563: warning: exported function Init should have comment or be unexported (golint)
    • cframe/usercenter/config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported type Log should have comment or be unexported (golint)
    • Line 23: warning: exported function ParseConfig should have comment or be unexported (golint)
    • cframe/edge/config.go
    • Line 9: warning: exported type Config should have comment or be unexported (golint)
    • Line 14: warning: exported type Log should have comment or be unexported (golint)
    • Line 20: warning: exported function ParseConfig should have comment or be unexported (golint)
    • cframe/codec/codec.go
    • Line 20: warning: comment on exported const CmdHeartbeat should be of the form "CmdHeartbeat ..." (golint)
    • Line 23: warning: comment on exported const CmdRegister should be of the form "CmdRegister ..." (golint)
    • Line 26: warning: comment on exported const CmdAdd should be of the form "CmdAdd ..." (golint)
    • Line 29: warning: comment on exported const CmdDel should be of the form "CmdDel ..." (golint)
    • Line 32: warning: comment on exported const CmdReport should be of the form "CmdReport ..." (golint)
    • Line 35: warning: comment on exported const CmdAlarm should be of the form "CmdAlarm ..." (golint)
    • Line 38: warning: comment on exported const CmdAddRoute should be of the form "CmdAddRoute ..." (golint)
    • Line 41: warning: comment on exported const CmdDelRoute should be of the form "CmdDelRoute ..." (golint)
    • Line 45: warning: comment on exported type Header should be of the form "Header ..." (with optional leading article) (golint)
    • Line 50: warning: exported method Header.Version should have comment or be unexported (golint)
    • Line 54: warning: exported method Header.Cmd should have comment or be unexported (golint)
    • Line 58: warning: exported method Header.Bodylen should have comment or be unexported (golint)
    • cframe/controller/models/route.go
    • Line 11: warning: exported type Route should have comment or be unexported (golint)
    • Line 20: warning: exported var C_ROUTE should have comment or be unexported (golint)
    • Line 23: warning: exported type RouteManager should have comment or be unexported (golint)
    • Line 27: warning: exported function GetRouteManager should have comment or be unexported (golint)
    • Line 31: warning: exported method RouteManager.GetEdgeRoutes should have comment or be unexported (golint)
    • Line 40: warning: exported method RouteManager.AddRoute should have comment or be unexported (golint)
    • Line 55: warning: exported method RouteManager.DelRoute should have comment or be unexported (golint)
    • Line 66: warning: exported method RouteManager.GetUserRoutes should have comment or be unexported (golint)
    • Line 75: warning: exported method RouteManager.GetOtherRoutes should have comment or be unexported (golint)
    • cframe/controller/models/stat.go
    • Line 11: warning: exported var C_STAT should have comment or be unexported (golint)
    • Line 14: warning: exported type Stat should have comment or be unexported (golint)
    • Line 25: warning: exported type StatManager should have comment or be unexported (golint)
    • Line 29: warning: exported function GetStatManager should have comment or be unexported (golint)
    • Line 33: warning: exported method StatManager.AddStat should have comment or be unexported (golint)
    • Line 39: warning: exported method StatManager.GetUserStat should have comment or be unexported (golint)
    • Line 54: warning: exported method StatManager.RemoveOldStat should have comment or be unexported (golint)
    • cframe/apiserver/handler/edge.go
    • Line 12: warning: exported type EdgeHandler should have comment or be unexported (golint)
    • Line 17: warning: exported function NewEdgeHandler should have comment or be unexported (golint)
    • Line 24: warning: exported method EdgeHandler.Run should have comment or be unexported (golint)
    • cframe/apiserver/config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 18: warning: exported type Log should have comment or be unexported (golint)
    • Line 24: warning: exported function ParseConfig should have comment or be unexported (golint)
    • cframe/edge/stat.go
    • Line 23: warning: exported function AddTrafficIn should have comment or be unexported (golint)
    • Line 27: warning: exported function AddTrafficOut should have comment or be unexported (golint)
    • Line 31: warning: exported function ResetStat should have comment or be unexported (golint)
    • cframe/edge/tun.go
    • Line 11: warning: exported type Interface should have comment or be unexported (golint)
    • Line 15: warning: exported function NewInterface should have comment or be unexported (golint)
    • Line 32: warning: exported method Interface.Up should have comment or be unexported (golint)
    • Line 62: warning: exported method Interface.Close should have comment or be unexported (golint)
    • cframe/pkg/database/model_manager.go
    • Line 10: warning: exported type ModelManager should have comment or be unexported (golint)
    • Line 13: warning: exported function NewModelManager should have comment or be unexported (golint)
    • Line 17: warning: exported method ModelManager.GetMongoDB 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 24: warning: exported method ModelManager.Session should have comment or be unexported (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 30: warning: exported method ModelManager.Insert should have comment or be unexported (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 35: warning: exported method ModelManager.Update should have comment or be unexported (golint)
    • Line 35: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 40: warning: exported method ModelManager.UpdateAll should have comment or be unexported (golint)
    • Line 40: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 45: warning: exported method ModelManager.UpdateWithId should have comment or be unexported (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 50: warning: exported method ModelManager.FindOne should have comment or be unexported (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: exported method ModelManager.FindAll should have comment or be unexported (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 60: warning: exported method ModelManager.Remove should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 65: warning: exported method ModelManager.RemoveWithId should have comment or be unexported (golint)
    • Line 65: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 70: warning: exported method ModelManager.Count should have comment or be unexported (golint)
    • Line 70: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 75: warning: exported method ModelManager.DropCollection should have comment or be unexported (golint)
    • Line 75: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: exported method ModelManager.C should have comment or be unexported (golint)
    • Line 80: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • cframe/edge/vpc/awsvpc.go
    • Line 11: warning: exported type AWSVPC should have comment or be unexported (golint)
    • Line 16: warning: exported function NewAWSVPC should have comment or be unexported (golint)
    • Line 23: warning: exported method AWSVPC.CreateRoute should have comment or be unexported (golint)
    • cframe/controller/models/edge.go
    • Line 11: warning: exported type EdgeInfo should have comment or be unexported (golint)
    • Line 24: warning: exported var C_EDGE should have comment or be unexported (golint)
    • Line 27: warning: exported type EdgeManager should have comment or be unexported (golint)
    • Line 31: warning: exported function GetEdgeManager should have comment or be unexported (golint)
    • Line 35: warning: exported method EdgeManager.AddEdge should have comment or be unexported (golint)
    • Line 43: warning: exported method EdgeManager.GetEdgeList should have comment or be unexported (golint)
    • Line 52: warning: exported method EdgeManager.GetEdgeByName should have comment or be unexported (golint)
    • Line 62: warning: exported method EdgeManager.DelEdge should have comment or be unexported (golint)
    • Line 74: warning: exported method EdgeManager.UpdateActive should have comment or be unexported (golint)
    • cframe/pkg/ip/ipnet.go
    • Line 24: warning: exported type IP4 should have comment or be unexported (golint)
    • Line 26: warning: exported function FromBytes should have comment or be unexported (golint)
    • Line 33: warning: exported function FromIP should have comment or be unexported (golint)
    • Line 37: warning: exported function ParseIP4 should have comment or be unexported (golint)
    • Line 45: warning: exported function MustParseIP4 should have comment or be unexported (golint)
    • Line 53: warning: exported method IP4.Octets should have comment or be unexported (golint)
    • Line 58: warning: exported method IP4.ToIP should have comment or be unexported (golint)
    • Line 62: warning: exported method IP4.NetworkOrder should have comment or be unexported (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 75: warning: exported method IP4.StringSep should have comment or be unexported (golint)
    • Line 80: warning: comment on exported method IP4.MarshalJSON should be of the form "MarshalJSON ..." (golint)
    • Line 85: warning: comment on exported method IP4.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 90: 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)
    • Line 96: warning: comment on exported type IP4Net should be of the form "IP4Net ..." (with optional leading article) (golint)
    • Line 106: warning: exported method IP4Net.StringSep should have comment or be unexported (golint)
    • Line 110: warning: exported method IP4Net.Network should have comment or be unexported (golint)
    • Line 117: warning: exported method IP4Net.Next should have comment or be unexported (golint)
    • Line 124: warning: exported function FromIPNet should have comment or be unexported (golint)
    • Line 132: warning: exported method IP4Net.ToIPNet should have comment or be unexported (golint)
    • Line 139: warning: exported method IP4Net.Overlaps should have comment or be unexported (golint)
    • Line 149: warning: exported method IP4Net.Equal should have comment or be unexported (golint)
    • Line 153: warning: exported method IP4Net.Mask should have comment or be unexported (golint)
    • Line 158: warning: exported method IP4Net.Contains should have comment or be unexported (golint)
    • Line 162: warning: exported method IP4Net.Empty should have comment or be unexported (golint)
    • Line 166: warning: comment on exported method IP4Net.MarshalJSON should be of the form "MarshalJSON ..." (golint)
    • Line 171: warning: comment on exported method IP4Net.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 176: 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)
    • cframe/pkg/edgemanager/edagemanager.go
    • Line 20: warning: exported type EdgeManager should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported method EdgeManager.Watch should have comment or be unexported (golint)
    • Line 82: warning: exported method EdgeManager.AddEdge should have comment or be unexported (golint)
    • Line 90: warning: exported method EdgeManager.DelEdge should have comment or be unexported (golint)
    • Line 95: warning: exported method EdgeManager.GetEdge should have comment or be unexported (golint)
    • Line 105: warning: exported method EdgeManager.GetEdges should have comment or be unexported (golint)
    • Line 126: warning: exported method EdgeManager.VerifyCidr should have comment or be unexported (golint)
    • Line 188: warning: exported function AddEdge should have comment or be unexported (golint)
    • Line 195: warning: exported function DelEdge should have comment or be unexported (golint)
    • Line 202: warning: exported function GetEdge should have comment or be unexported (golint)
    • Line 209: warning: exported function GetEdges should have comment or be unexported (golint)
    • Line 216: warning: exported function VerifyCidr should have comment or be unexported (golint)
    • cframe/controller/rpcserver.go
    • Line 19: warning: exported type RPCServer should have comment or be unexported (golint)
    • Line 27: warning: exported function NewRPCServer should have comment or be unexported (golint)
    • Line 37: warning: exported method RPCServer.ListenAndServe should have comment or be unexported (golint)
    • Line 49: warning: exported method RPCServer.GetEdgeList should have comment or be unexported (golint)
    • Line 82: warning: exported method RPCServer.AddEdge should have comment or be unexported (golint)
    • Line 137: warning: exported method RPCServer.DelEdge should have comment or be unexported (golint)
    • Line 156: warning: exported method RPCServer.GetCSPList should have comment or be unexported (golint)
    • Line 183: warning: exported method RPCServer.AddCSP should have comment or be unexported (golint)
    • Line 218: warning: exported method RPCServer.DelCSP should have comment or be unexported (golint)
    • Line 234: warning: exported method RPCServer.GetStat should have comment or be unexported (golint)
    • Line 271: warning: exported method RPCServer.AddRoute should have comment or be unexported (golint)
    • Line 293: warning: exported method RPCServer.DelRoute should have comment or be unexported (golint)
    • Line 337: warning: exported method RPCServer.GetUserRoutes should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words