Preparing report...

Report for github.com/devfeel/dotweb

A+    Excellent!    Found 47 issues across 99 files

Tweet

gofmt94%

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!


gocyclo94%

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.

    • dotweb/router.go
    • Line 204: warning: cyclomatic complexity 17 of function (*router).ServeHTTP() is high (> 15) (gocyclo)
    • dotweb/dotweb.go
    • Line 535: warning: cyclomatic complexity 16 of function (*DotWeb).initBindMiddleware() is high (> 15) (gocyclo)
    • dotweb/tree.go
    • Line 619: warning: cyclomatic complexity 47 of function (*Node).findCaseInsensitivePathRec() is high (> 15) (gocyclo)
    • Line 463: warning: cyclomatic complexity 34 of function (*Node).getValue() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 27 of function (*Node).addRoute() is high (> 15) (gocyclo)
    • Line 269: warning: cyclomatic complexity 20 of function (*Node).insertChild() is high (> 15) (gocyclo)

golint55%

Golint is a linter for Go source code.

    • dotweb/framework/crypto/des/des.go
    • Line 9: warning: comment on exported function PKCS5Padding should be of the form "PKCS5Padding ..." (golint)
    • Line 16: warning: comment on exported function PKCS5UnPadding should be of the form "PKCS5UnPadding ..." (golint)
    • Line 23: warning: comment on exported function ECBEncrypt should be of the form "ECBEncrypt ..." (golint)
    • Line 44: warning: comment on exported function ECBDecrypt should be of the form "ECBDecrypt ..." (golint)
    • Line 68: warning: comment on exported function TripleEcbDesEncrypt should be of the form "TripleEcbDesEncrypt ..." (golint)
    • Line 98: warning: comment on exported function TripleEcbDesDecrypt should be of the form "TripleEcbDesDecrypt ..." (golint)
    • dotweb/example/bind/main.go
    • Line 47: warning: exported function TestBind should have comment or be unexported (golint)
    • Line 63: warning: exported function GetBind should have comment or be unexported (golint)
    • Line 83: warning: exported function PostJsonBind should have comment or be unexported (golint)
    • Line 99: warning: exported function InitRoute should have comment or be unexported (golint)
    • dotweb/example/main.go
    • Line 103: warning: exported function Index should have comment or be unexported (golint)
    • Line 110: warning: exported function Time should have comment or be unexported (golint)
    • Line 124: warning: exported function OutputTestInfo should have comment or be unexported (golint)
    • Line 128: warning: exported function IndexReg should have comment or be unexported (golint)
    • Line 134: warning: exported function IndexPretty should have comment or be unexported (golint)
    • Line 146: warning: exported function ReadPost should have comment or be unexported (golint)
    • Line 150: warning: exported function IndexParam should have comment or be unexported (golint)
    • Line 155: warning: exported function KeyPost should have comment or be unexported (golint)
    • Line 162: warning: exported function JsonPost should have comment or be unexported (golint)
    • Line 166: warning: exported function DefaultError should have comment or be unexported (golint)
    • Line 173: warning: exported function Redirect should have comment or be unexported (golint)
    • Line 181: warning: exported function ReturnError should have comment or be unexported (golint)
    • Line 185: warning: exported function InitRoute should have comment or be unexported (golint)
    • dotweb/example/middleware/main.go
    • Line 47: warning: exported function Index should have comment or be unexported (golint)
    • Line 55: warning: exported function ShowMiddlewares should have comment or be unexported (golint)
    • Line 60: warning: exported function InitRoute should have comment or be unexported (golint)
    • Line 83: warning: exported function InitModule should have comment or be unexported (golint)
    • Line 105: warning: exported type AccessFmtLog should have comment or be unexported (golint)
    • Line 110: warning: exported method AccessFmtLog.Handle should have comment or be unexported (golint)
    • Line 117: warning: exported function NewAccessFmtLog should have comment or be unexported (golint)
    • Line 121: warning: exported type SimpleAuth should have comment or be unexported (golint)
    • Line 126: warning: exported method SimpleAuth.Handle should have comment or be unexported (golint)
    • Line 138: warning: exported function NewSimpleAuth should have comment or be unexported (golint)
    • Line 142: warning: exported type AGroup should have comment or be unexported (golint)
    • Line 146: warning: exported method AGroup.Handle should have comment or be unexported (golint)
    • Line 152: warning: exported function NewAGroup should have comment or be unexported (golint)
    • Line 156: warning: exported type BGroup should have comment or be unexported (golint)
    • Line 160: warning: exported method BGroup.Handle should have comment or be unexported (golint)
    • Line 166: warning: exported function NewBGroup should have comment or be unexported (golint)
    • Line 170: warning: exported type CGroup should have comment or be unexported (golint)
    • Line 174: warning: exported method CGroup.Handle should have comment or be unexported (golint)
    • Line 180: warning: exported function NewCGroup should have comment or be unexported (golint)
    • dotweb/server.go
    • Line 24: warning: exported const DefaultGzipLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type HttpServer should have comment or be unexported (golint)
    • Line 38: warning: don't use underscores in Go names; struct field lock_session should be lockSession (golint)
    • Line 52: warning: exported type ContextCreater should have comment or be unexported (golint)
    • Line 55: warning: exported function NewHttpServer should have comment or be unexported (golint)
    • Line 105: warning: comment on exported method HttpServer.SetContextCreater should be of the form "SetContextCreater ..." (golint)
    • Line 218: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 302: warning: comment on exported method HttpServer.Any should be of the form "Any ..." (golint)
    • Line 490: warning: exported type LogJson should have comment or be unexported (golint)
    • dotweb/session/store_redis.go
    • Line 15: warning: exported const HystrixErrorCount should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported function NewRedisStore should be of the form "NewRedisStore ..." (golint)
    • Line 157: warning: comment on exported method RedisStore.SessionCount should be of the form "SessionCount ..." (golint)
    • dotweb/consts.go
    • Line 11: warning: don't use underscores in Go names; const LogTarget_Default should be LogTargetDefault (golint)
    • Line 12: warning: don't use underscores in Go names; const LogTarget_HttpRequest should be LogTargetHTTPRequest (golint)
    • Line 13: warning: don't use underscores in Go names; const LogTarget_HttpServer should be LogTargetHTTPServer (golint)
    • Line 14: warning: don't use underscores in Go names; const LogTarget_RequestTimeout should be LogTargetRequestTimeout (golint)
    • Line 16: warning: don't use underscores in Go names; const LogLevel_Debug should be LogLevelDebug (golint)
    • Line 17: warning: don't use underscores in Go names; const LogLevel_Info should be LogLevelInfo (golint)
    • Line 18: warning: don't use underscores in Go names; const LogLevel_Warn should be LogLevelWarn (golint)
    • Line 19: warning: don't use underscores in Go names; const LogLevel_Error should be LogLevelError (golint)
    • Line 29: warning: exported const Windows should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: exported const HeaderRequestID should have comment (or a comment on this block) or be unexported (golint)
    • dotweb/response.go
    • Line 13: warning: exported type Response should have comment or be unexported (golint)
    • Line 29: warning: exported function NewResponse should have comment or be unexported (golint)
    • Line 34: warning: exported method Response.Header should have comment or be unexported (golint)
    • Line 38: warning: exported method Response.QueryHeader should have comment or be unexported (golint)
    • Line 42: warning: exported method Response.Redirect should have comment or be unexported (golint)
    • Line 48: warning: exported method Response.Writer should have comment or be unexported (golint)
    • Line 52: warning: exported method Response.SetWriter should have comment or be unexported (golint)
    • Line 62: warning: exported method Response.Body should have comment or be unexported (golint)
    • Line 66: warning: exported method Response.BodyString should have comment or be unexported (golint)
    • Line 70: warning: exported method Response.SetHeader should have comment or be unexported (golint)
    • Line 74: warning: exported method Response.SetContentType should have comment or be unexported (golint)
    • Line 78: warning: exported method Response.SetStatusCode should have comment or be unexported (golint)
    • dotweb/router.go
    • Line 21: warning: don't use underscores in Go names; const RouteMethod_Any should be RouteMethodAny (golint)
    • Line 21: warning: exported const RouteMethod_Any should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: don't use underscores in Go names; const RouteMethod_GET should be RouteMethodGET (golint)
    • Line 23: warning: don't use underscores in Go names; const RouteMethod_HEAD should be RouteMethodHEAD (golint)
    • Line 24: warning: don't use underscores in Go names; const RouteMethod_OPTIONS should be RouteMethodOPTIONS (golint)
    • Line 25: warning: don't use underscores in Go names; const RouteMethod_POST should be RouteMethodPOST (golint)
    • Line 26: warning: don't use underscores in Go names; const RouteMethod_PUT should be RouteMethodPUT (golint)
    • Line 27: warning: don't use underscores in Go names; const RouteMethod_PATCH should be RouteMethodPATCH (golint)
    • Line 28: warning: don't use underscores in Go names; const RouteMethod_DELETE should be RouteMethodDELETE (golint)
    • Line 29: warning: don't use underscores in Go names; const RouteMethod_HiJack should be RouteMethodHiJack (golint)
    • Line 30: warning: don't use underscores in Go names; const RouteMethod_WebSocket should be RouteMethodWebSocket (golint)
    • Line 38: warning: exported var HttpMethodMap should have comment or be unexported (golint)
    • Line 80: warning: exported type RouterNode should have comment or be unexported (golint)
    • Line 89: warning: exported type ValueNode should have comment or be unexported (golint)
    • Line 127: warning: comment on exported type RouterHandle should be of the form "RouterHandle ..." (with optional leading article) (golint)
    • Line 155: warning: comment on exported function NewRouter should be of the form "NewRouter ..." (golint)
    • Line 519: warning: don't use underscores in Go names; var hijack_err should be hijackErr (golint)
    • dotweb/dotweb_sysgroup.go
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 107: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • dotweb/cache/redis/cache_redis.go
    • Line 10: warning: exported var ZeroInt64 should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method RedisCache.GetString should be of the form "GetString ..." (golint)
    • Line 68: warning: comment on exported method RedisCache.GetInt should be of the form "GetInt ..." (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 84: warning: comment on exported method RedisCache.GetInt64 should be of the form "GetInt64 ..." (golint)
    • Line 90: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dotweb/framework/redis/redisutil.go
    • Line 3: warning: package comment should be of the form "Package redisutil ..." (golint)
    • Line 13: warning: exported type RedisClient should have comment or be unexported (golint)
    • Line 276: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 281: warning: exported method RedisClient.LPushX should have comment or be unexported (golint)
    • Line 288: warning: exported method RedisClient.LRange should have comment or be unexported (golint)
    • Line 295: warning: exported method RedisClient.LRem should have comment or be unexported (golint)
    • Line 302: warning: exported method RedisClient.LSet should have comment or be unexported (golint)
    • Line 309: warning: exported method RedisClient.LTrim should have comment or be unexported (golint)
    • Line 316: warning: exported method RedisClient.RPop should have comment or be unexported (golint)
    • Line 323: warning: exported method RedisClient.RPush should have comment or be unexported (golint)
    • Line 331: warning: exported method RedisClient.RPushX should have comment or be unexported (golint)
    • Line 339: warning: exported method RedisClient.RPopLPush should have comment or be unexported (golint)
    • Line 346: warning: exported method RedisClient.BLPop should have comment or be unexported (golint)
    • Line 362: warning: exported method RedisClient.BRPopLPush should have comment or be unexported (golint)
    • Line 369: warning: exported method RedisClient.LIndex should have comment or be unexported (golint)
    • Line 376: warning: exported method RedisClient.LInsertBefore should have comment or be unexported (golint)
    • Line 383: warning: exported method RedisClient.LInsertAfter should have comment or be unexported (golint)
    • Line 390: warning: exported method RedisClient.LLen should have comment or be unexported (golint)
    • Line 397: warning: exported method RedisClient.LPop should have comment or be unexported (golint)
    • Line 451: warning: exported method RedisClient.SDiff should have comment or be unexported (golint)
    • Line 458: warning: exported method RedisClient.SDiffStore should have comment or be unexported (golint)
    • Line 466: warning: exported method RedisClient.SInter should have comment or be unexported (golint)
    • Line 473: warning: exported method RedisClient.SInterStore should have comment or be unexported (golint)
    • Line 481: warning: exported method RedisClient.SIsMember should have comment or be unexported (golint)
    • Line 488: warning: exported method RedisClient.SMembers should have comment or be unexported (golint)
    • Line 495: warning: comment on exported method RedisClient.SMove should be of the form "SMove ..." (golint)
    • Line 503: warning: exported method RedisClient.SUnion should have comment or be unexported (golint)
    • Line 510: warning: exported method RedisClient.SUnionStore should have comment or be unexported (golint)
    • dotweb/core/state.go
    • Line 62: warning: comment on exported type RequestInfo should be of the form "RequestInfo ..." (with optional leading article) (golint)
    • Line 69: warning: comment on exported type ErrorInfo should be of the form "ErrorInfo ..." (with optional leading article) (golint)
    • Line 76: warning: comment on exported type ServerStateInfo should be of the form "ServerStateInfo ..." (with optional leading article) (golint)
    • Line 98: warning: don't use underscores in Go names; struct field dataChan_Request should be dataChanRequest (golint)
    • Line 99: warning: don't use underscores in Go names; struct field dataChan_Error should be dataChanError (golint)
    • Line 149: warning: comment on exported method ServerStateInfo.ShowHtmlTableData should be of the form "ShowHtmlTableData ..." (golint)
    • dotweb/session/sessionstate.go
    • Line 20: warning: comment on exported type SessionState should be of the form "SessionState ..." (with optional leading article) (golint)
    • Line 29: warning: exported function NewSessionState should have comment or be unexported (golint)
    • Line 63: warning: comment on exported method SessionState.GetString should be of the form "GetString ..." (golint)
    • Line 69: warning: comment on exported method SessionState.GetInt should be of the form "GetInt ..." (golint)
    • Line 75: warning: comment on exported method SessionState.GetInt64 should be of the form "GetInt64 ..." (golint)
    • dotweb/session/store_runtime.go
    • Line 9: warning: comment on exported type RuntimeStore should be of the form "RuntimeStore ..." (with optional leading article) (golint)
    • Line 17: warning: exported function NewRuntimeStore should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; var new_state should be newState (golint)
    • Line 69: warning: don't use underscores in Go names; var new_element should be newElement (golint)
    • Line 112: warning: comment on exported method RuntimeStore.SessionCount should be of the form "SessionCount ..." (golint)
    • dotweb/dotweb.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 35: warning: exported type DotWeb should have comment or be unexported (golint)
    • Line 67: warning: comment on exported type IdGenerate should be of the form "IdGenerate ..." (with optional leading article) (golint)
    • Line 81: warning: exported const DefaultLogPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: don't use underscores in Go names; const RunMode_Development should be RunModeDevelopment (golint)
    • Line 86: warning: don't use underscores in Go names; const RunMode_Production should be RunModeProduction (golint)
    • Line 89: warning: don't use underscores in Go names; const StartMode_New should be StartModeNew (golint)
    • Line 91: warning: don't use underscores in Go names; const StartMode_Classic should be StartModeClassic (golint)
    • Line 538: warning: should omit 2nd value from range; this loop is equivalent to `for fullExpress := range ...` (golint)
    • Line 570: warning: should omit 2nd value from range; this loop is equivalent to `for fullExpress := range ...` (golint)
    • Line 716: warning: exported function DefaultTimeoutHookHandler should have comment or be unexported (golint)
    • dotweb/tree.go
    • Line 42: warning: exported type Node should have comment or be unexported (golint)
    • Line 96: warning: exported method Node.Node should have comment or be unexported (golint)
    • dotweb/config/configs.go
    • Line 102: warning: don't use underscores in Go names; const ConfigType_XML should be ConfigTypeXML (golint)
    • Line 104: warning: don't use underscores in Go names; const ConfigType_JSON should be ConfigTypeJSON (golint)
    • Line 106: warning: don't use underscores in Go names; const ConfigType_Yaml should be ConfigTypeYaml (golint)
    • Line 147: warning: exported function NewAppNode should have comment or be unexported (golint)
    • Line 152: warning: exported function NewServerNode should have comment or be unexported (golint)
    • Line 157: warning: exported function NewSessionNode should have comment or be unexported (golint)
    • Line 162: warning: comment on exported function MustInitConfig should be of the form "MustInitConfig ..." (golint)
    • dotweb/framework/file/file.go
    • Line 10: warning: exported function GetCurrentDirectory should have comment or be unexported (golint)
    • Line 19: warning: comment on exported function Exist should be of the form "Exist ..." (golint)
    • dotweb/test/assert.go
    • Line 11: warning: exported function Contains should have comment or be unexported (golint)
    • Line 29: warning: exported function Equal should have comment or be unexported (golint)
    • Line 37: warning: exported function NotEqual should have comment or be unexported (golint)
    • Line 44: warning: exported function Nil should have comment or be unexported (golint)
    • Line 51: warning: exported function NotNil should have comment or be unexported (golint)
    • dotweb/uploadfile.go
    • Line 16: warning: exported type UploadFile should have comment or be unexported (golint)
    • Line 25: warning: exported function NewUploadFile should have comment or be unexported (golint)
    • dotweb/example/config/main.go
    • Line 43: warning: exported function Index should have comment or be unexported (golint)
    • Line 48: warning: exported function GetAppSet should have comment or be unexported (golint)
    • Line 53: warning: comment on exported function ConfigSet should be of the form "ConfigSet ..." (golint)
    • Line 60: warning: exported function RegisterHandler should have comment or be unexported (golint)
    • dotweb/example/router/main.go
    • Line 38: warning: exported function Index should have comment or be unexported (golint)
    • Line 44: warning: exported function Any should have comment or be unexported (golint)
    • Line 49: warning: exported function HandlerFunc should have comment or be unexported (golint)
    • Line 53: warning: exported function InitRoute should have comment or be unexported (golint)
    • dotweb/core/hideReaddirFS.go
    • Line 8: warning: comment on exported type HideReaddirFS should be of the form "HideReaddirFS ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported method HideReaddirFS.Open should be of the form "Open ..." (golint)
    • dotweb/tools.go
    • Line 8: warning: exported type Tools should have comment or be unexported (golint)
    • Line 11: warning: exported method Tools.PrettyJson should have comment or be unexported (golint)
    • dotweb/framework/hystrix/hystrix.go
    • Line 9: warning: don't use underscores in Go names; const status_Hystrix should be statusHystrix (golint)
    • Line 10: warning: don't use underscores in Go names; const status_Alive should be statusAlive (golint)
    • Line 11: warning: exported const DefaultCheckHystrixInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Hystrix should have comment or be unexported (golint)
    • Line 41: warning: exported type CheckFunc should have comment or be unexported (golint)
    • Line 43: warning: exported type StandHystrix should have comment or be unexported (golint)
    • Line 71: warning: exported method StandHystrix.Do should have comment or be unexported (golint)
    • Line 76: warning: exported method StandHystrix.SetCheckInterval should have comment or be unexported (golint)
    • Line 81: warning: comment on exported method StandHystrix.SetMaxFailedNumber should be of the form "SetMaxFailedNumber ..." (golint)
    • Line 100: warning: exported method StandHystrix.IsHystrix should have comment or be unexported (golint)
    • Line 104: warning: exported method StandHystrix.RegisterAliveCheck should have comment or be unexported (golint)
    • Line 108: warning: exported method StandHystrix.RegisterHystrixCheck should have comment or be unexported (golint)
    • Line 112: warning: exported method StandHystrix.TriggerHystrix should have comment or be unexported (golint)
    • Line 116: warning: exported method StandHystrix.TriggerAlive should have comment or be unexported (golint)
    • Line 170: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dotweb/cache/runtime/cache_runtime.go
    • Line 14: warning: exported var ZeroInt64 should have comment or be unexported (golint)
    • Line 63: warning: comment on exported method RuntimeCache.GetString should be of the form "GetString ..." (golint)
    • Line 69: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 74: warning: comment on exported method RuntimeCache.GetInt should be of the form "GetInt ..." (golint)
    • Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 90: warning: comment on exported method RuntimeCache.GetInt64 should be of the form "GetInt64 ..." (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 203: warning: comment on exported method RuntimeCache.Exists should be of the form "Exists ..." (golint)
    • dotweb/test/util.go
    • Line 9: warning: comment on exported function ToJson should be of the form "ToJson ..." (golint)
    • Line 16: warning: comment on exported function ToXML should be of the form "ToXML ..." (golint)
    • Line 24: warning: comment on exported function ToDefault should be of the form "ToDefault ..." (golint)
    • dotweb/group.go
    • Line 6: warning: exported type Group should have comment or be unexported (golint)
    • Line 27: warning: exported function NewGroup should have comment or be unexported (golint)
    • dotweb/logger/logger.go
    • Line 13: warning: comment on exported const LogLevelRaw should be of the form "LogLevelRaw ..." (golint)
    • Line 25: warning: exported type AppLog should have comment or be unexported (golint)
    • Line 39: warning: exported var DefaultLogPath should have comment or be unexported (golint)
    • Line 44: warning: exported function NewAppLog should have comment or be unexported (golint)
    • dotweb/context.go
    • Line 37: warning: exported type Context should have comment or be unexported (golint)
    • Line 112: warning: exported type HttpContext should have comment or be unexported (golint)
    • Line 135: warning: exported type WebSocket should have comment or be unexported (golint)
    • Line 139: warning: comment on exported type HijackConn should be of the form "HijackConn ..." (with optional leading article) (golint)
    • Line 202: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 212: warning: should not use basic type string as key in context.WithValue (golint)
    • Line 220: warning: exported method HttpContext.Response should have comment or be unexported (golint)
    • Line 224: warning: exported method HttpContext.Request should have comment or be unexported (golint)
    • Line 228: warning: exported method HttpContext.RouterNode should have comment or be unexported (golint)
    • Line 232: warning: exported method HttpContext.WebSocket should have comment or be unexported (golint)
    • Line 236: warning: exported method HttpContext.IsWebSocket should have comment or be unexported (golint)
    • Line 240: warning: exported method HttpContext.IsHijack should have comment or be unexported (golint)
    • Line 244: warning: exported method HttpContext.HijackConn should have comment or be unexported (golint)
    • Line 248: warning: exported method HttpContext.RouterParams should have comment or be unexported (golint)
    • Line 252: warning: exported method HttpContext.Handler should have comment or be unexported (golint)
    • Line 256: warning: exported method HttpContext.SessionID should have comment or be unexported (golint)
    • Line 260: warning: comment on exported method HttpContext.AppItems should be of the form "AppItems ..." (golint)
    • Line 265: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 302: warning: comment on exported method HttpContext.ConfigSet should be of the form "ConfigSet ..." (golint)
    • Line 352: warning: exported method HttpContext.IsEnd should have comment or be unexported (golint)
    • Line 513: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 560: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 576: warning: comment on exported method HttpContext.WriteHtml should be of the form "WriteHtml ..." (golint)
    • Line 600: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dotweb/middleware.go
    • Line 10: warning: don't use underscores in Go names; const middleware_App should be middlewareApp (golint)
    • Line 11: warning: don't use underscores in Go names; const middleware_Group should be middlewareGroup (golint)
    • Line 12: warning: don't use underscores in Go names; const middleware_Router should be middlewareRouter (golint)
    • Line 26: warning: exported type MiddlewareFunc should have comment or be unexported (golint)
    • Line 28: warning: comment on exported type Middleware should be of the form "Middleware ..." (with optional leading article) (golint)
    • Line 58: warning: exported method BaseMiddleware.SetNext should have comment or be unexported (golint)
    • Line 62: warning: exported method BaseMiddleware.Next should have comment or be unexported (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 147: warning: exported type RequestLogMiddleware should have comment or be unexported (golint)
    • Line 151: warning: exported method RequestLogMiddleware.Handle should have comment or be unexported (golint)
    • Line 201: warning: exported type TimeoutHookMiddleware should have comment or be unexported (golint)
    • Line 207: warning: exported method TimeoutHookMiddleware.Handle should have comment or be unexported (golint)
    • dotweb/plugin.go
    • Line 47: warning: don't use underscores in Go names; const notifyPlugin_LoopTime should be notifyPluginLoopTime (golint)
    • Line 49: warning: exported type NotifyPlugin should have comment or be unexported (golint)
    • Line 57: warning: exported method NotifyPlugin.Name should have comment or be unexported (golint)
    • Line 61: warning: exported method NotifyPlugin.IsValidate should have comment or be unexported (golint)
    • Line 65: warning: exported method NotifyPlugin.Run should have comment or be unexported (golint)
    • dotweb/request.go
    • Line 13: warning: exported type Request should have comment or be unexported (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 219: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • dotweb/session/session.go
    • Line 15: warning: exported const DefaultSessionGCLifeTime should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: don't use underscores in Go names; const SessionMode_Runtime should be SessionModeRuntime (golint)
    • Line 20: warning: don't use underscores in Go names; const SessionMode_Redis should be SessionModeRedis (golint)
    • Line 22: warning: don't use underscores in Go names; const LogTarget_Session should be LogTargetSession (golint)
    • Line 26: warning: exported type SessionStore should have comment or be unexported (golint)
    • Line 35: warning: comment on exported type StoreConfig should be of the form "StoreConfig ..." (with optional leading article) (golint)
    • Line 47: warning: exported type SessionManager should have comment or be unexported (golint)
    • Line 154: warning: exported method SessionManager.GetSessionState should have comment or be unexported (golint)
    • dotweb/session/store_runtime_test.go
    • Line 12: warning: don't use underscores in Go names; var runtime_store should be runtimeStore (golint)
    • Line 13: warning: don't use underscores in Go names; var session_state should be sessionState (golint)
    • Line 14: warning: don't use underscores in Go names; var session_states should be sessionStates (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words

    • dotweb/server.go
    • Line 106: warning: "creater" is a misspelling of "creature" (misspell)
    • Line 107: warning: "creater" is a misspelling of "creature" (misspell)