Preparing report...

Report for github.com/summer-solutions/orm

A+    Excellent!    Found 36 issues across 70 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


golint55%

Golint is a linter for Go source code.

    • orm/tools/redis_streams_status.go
    • Line 11: warning: exported type RedisStreamStatistics should have comment or be unexported (golint)
    • Line 21: warning: exported type RedisStreamGroupStatistics should have comment or be unexported (golint)
    • Line 39: warning: exported type RedisStreamConsumerStatistics should have comment or be unexported (golint)
    • Line 44: warning: exported function GetRedisStreamsStatistics should have comment or be unexported (golint)
    • orm/event_broker.go
    • Line 22: warning: exported type EventAsMap should have comment or be unexported (golint)
    • Line 24: warning: exported type Event should have comment or be unexported (golint)
    • Line 70: warning: exported type EventBroker should have comment or be unexported (golint)
    • Line 77: warning: exported type EventFlusher should have comment or be unexported (golint)
    • Line 145: warning: exported method Engine.GetEventBroker should have comment or be unexported (golint)
    • Line 178: warning: exported type EventConsumerHandler should have comment or be unexported (golint)
    • Line 180: warning: exported type EventsConsumer should have comment or be unexported (golint)
    • orm/redis_search.go
    • Line 25: warning: exported type RedisSearch should have comment or be unexported (golint)
    • Line 32: warning: exported type RedisSearchIndex should have comment or be unexported (golint)
    • Line 54: warning: exported method RedisSearchIndex.AddTextField should have comment or be unexported (golint)
    • Line 65: warning: exported method RedisSearchIndex.AddNumericField should have comment or be unexported (golint)
    • Line 74: warning: exported method RedisSearchIndex.AddGeoField should have comment or be unexported (golint)
    • Line 83: warning: exported method RedisSearchIndex.AddTagField should have comment or be unexported (golint)
    • Line 93: warning: exported type RedisSearchIndexField should have comment or be unexported (golint)
    • Line 103: warning: exported type RedisSearchIndexAlter should have comment or be unexported (golint)
    • Line 113: warning: exported type RedisSearchIndexInfoOptions should have comment or be unexported (golint)
    • Line 120: warning: exported type RedisSearchIndexInfo should have comment or be unexported (golint)
    • Line 145: warning: exported type RedisSearchIndexInfoDefinition should have comment or be unexported (golint)
    • Line 155: warning: exported type RedisSearchIndexInfoField should have comment or be unexported (golint)
    • Line 165: warning: exported type RedisSearchQuery should have comment or be unexported (golint)
    • Line 192: warning: exported type RedisSearchResult should have comment or be unexported (golint)
    • Line 200: warning: exported method RedisSearchResult.Value should have comment or be unexported (golint)
    • Line 209: warning: exported method RedisSearchQuery.Query should have comment or be unexported (golint)
    • Line 222: warning: exported method RedisSearchQuery.FilterIntMinMax should have comment or be unexported (golint)
    • Line 226: warning: exported method RedisSearchQuery.FilterInt should have comment or be unexported (golint)
    • Line 230: warning: exported method RedisSearchQuery.FilterIntNull should have comment or be unexported (golint)
    • Line 234: warning: exported method RedisSearchQuery.FilterIntGreaterEqual should have comment or be unexported (golint)
    • Line 238: warning: exported method RedisSearchQuery.FilterIntGreater should have comment or be unexported (golint)
    • Line 242: warning: exported method RedisSearchQuery.FilterIntLessEqual should have comment or be unexported (golint)
    • Line 246: warning: exported method RedisSearchQuery.FilterIntLess should have comment or be unexported (golint)
    • Line 250: warning: exported method RedisSearchQuery.FilterFloatMinMax should have comment or be unexported (golint)
    • Line 255: warning: exported method RedisSearchQuery.FilterFloat should have comment or be unexported (golint)
    • Line 259: warning: exported method RedisSearchQuery.FilterFloatGreaterEqual should have comment or be unexported (golint)
    • Line 263: warning: exported method RedisSearchQuery.FilterFloatGreater should have comment or be unexported (golint)
    • Line 267: warning: exported method RedisSearchQuery.FilterFloatLessEqual should have comment or be unexported (golint)
    • Line 271: warning: exported method RedisSearchQuery.FilterFloatLess should have comment or be unexported (golint)
    • Line 275: warning: exported method RedisSearchQuery.FilterFloatNull should have comment or be unexported (golint)
    • Line 279: warning: exported method RedisSearchQuery.FilterDateMinMax should have comment or be unexported (golint)
    • Line 283: warning: exported method RedisSearchQuery.FilterDate should have comment or be unexported (golint)
    • Line 288: warning: exported method RedisSearchQuery.FilterDateNull should have comment or be unexported (golint)
    • Line 292: warning: exported method RedisSearchQuery.FilterDateGreaterEqual should have comment or be unexported (golint)
    • Line 296: warning: exported method RedisSearchQuery.FilterDateGreater should have comment or be unexported (golint)
    • Line 300: warning: exported method RedisSearchQuery.FilterDateLessEqual should have comment or be unexported (golint)
    • Line 304: warning: exported method RedisSearchQuery.FilterDateLess should have comment or be unexported (golint)
    • Line 308: warning: exported method RedisSearchQuery.FilterDateTimeMinMax should have comment or be unexported (golint)
    • Line 312: warning: exported method RedisSearchQuery.FilterDateTime should have comment or be unexported (golint)
    • Line 317: warning: exported method RedisSearchQuery.FilterDateTimeNull should have comment or be unexported (golint)
    • Line 321: warning: exported method RedisSearchQuery.FilterDateTimeGreaterEqual should have comment or be unexported (golint)
    • Line 325: warning: exported method RedisSearchQuery.FilterDateTimeGreater should have comment or be unexported (golint)
    • Line 329: warning: exported method RedisSearchQuery.FilterDateTimeLessEqual should have comment or be unexported (golint)
    • Line 333: warning: exported method RedisSearchQuery.FilterDateTimeLess should have comment or be unexported (golint)
    • Line 337: warning: exported method RedisSearchQuery.FilterTag should have comment or be unexported (golint)
    • Line 352: warning: exported method RedisSearchQuery.FilterBool should have comment or be unexported (golint)
    • Line 359: warning: exported method RedisSearchQuery.FilterGeo should have comment or be unexported (golint)
    • Line 367: warning: exported method RedisSearchQuery.Sort should have comment or be unexported (golint)
    • Line 373: warning: exported method RedisSearchQuery.Verbatim should have comment or be unexported (golint)
    • Line 378: warning: exported method RedisSearchQuery.NoStopWords should have comment or be unexported (golint)
    • Line 383: warning: exported method RedisSearchQuery.WithScores should have comment or be unexported (golint)
    • Line 388: warning: exported method RedisSearchQuery.WithPayLoads should have comment or be unexported (golint)
    • Line 393: warning: exported method RedisSearchQuery.InKeys should have comment or be unexported (golint)
    • Line 400: warning: exported method RedisSearchQuery.InFields should have comment or be unexported (golint)
    • Line 407: warning: exported method RedisSearchQuery.Return should have comment or be unexported (golint)
    • Line 414: warning: exported method RedisSearchQuery.Slop should have comment or be unexported (golint)
    • Line 422: warning: exported method RedisSearchQuery.InOrder should have comment or be unexported (golint)
    • Line 427: warning: exported method RedisSearchQuery.ExplainScore should have comment or be unexported (golint)
    • Line 432: warning: exported method RedisSearchQuery.Lang should have comment or be unexported (golint)
    • Line 437: warning: exported method RedisSearchQuery.Highlight should have comment or be unexported (golint)
    • Line 447: warning: exported method RedisSearchQuery.HighlightTags should have comment or be unexported (golint)
    • Line 453: warning: exported method RedisSearchQuery.Summarize should have comment or be unexported (golint)
    • Line 463: warning: exported method RedisSearchQuery.SummarizeOptions should have comment or be unexported (golint)
    • Line 470: warning: exported method RedisSearch.ForceReindex should have comment or be unexported (golint)
    • Line 478: warning: exported method RedisSearch.SearchRaw should have comment or be unexported (golint)
    • Line 482: warning: exported method RedisSearch.Search should have comment or be unexported (golint)
    • Line 516: warning: exported method RedisSearch.SearchKeys should have comment or be unexported (golint)
    • Line 754: warning: exported method RedisSearch.ListIndices should have comment or be unexported (golint)
    • Line 785: warning: exported method RedisSearch.Info should have comment or be unexported (golint)
    • orm/clickhouse.go
    • Line 17: warning: exported type ClickHouseConfig should have comment or be unexported (golint)
    • Line 23: warning: exported type ClickHouse should have comment or be unexported (golint)
    • Line 30: warning: exported method ClickHouse.Exec should have comment or be unexported (golint)
    • Line 46: warning: exported method ClickHouse.Queryx should have comment or be unexported (golint)
    • Line 60: warning: exported method ClickHouse.Begin should have comment or be unexported (golint)
    • Line 73: warning: exported method ClickHouse.Commit should have comment or be unexported (golint)
    • Line 86: warning: exported method ClickHouse.Rollback should have comment or be unexported (golint)
    • Line 99: warning: exported type PreparedStatement should have comment or be unexported (golint)
    • Line 105: warning: exported method PreparedStatement.Exec should have comment or be unexported (golint)
    • Line 115: warning: exported method ClickHouse.Prepare should have comment or be unexported (golint)
    • orm/db.go
    • Line 12: warning: exported type DBConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type ExecResult should have comment or be unexported (golint)
    • Line 147: warning: exported type SQLRows should have comment or be unexported (golint)
    • Line 155: warning: exported type Rows should have comment or be unexported (golint)
    • Line 180: warning: exported type SQLRow should have comment or be unexported (golint)
    • Line 184: warning: exported type DB should have comment or be unexported (golint)
    • Line 194: warning: exported method DB.GetDatabaseName should have comment or be unexported (golint)
    • Line 198: warning: exported method DB.GetPoolCode should have comment or be unexported (golint)
    • Line 202: warning: exported method DB.Begin should have comment or be unexported (golint)
    • Line 212: warning: exported method DB.Commit should have comment or be unexported (golint)
    • Line 243: warning: exported method DB.Rollback should have comment or be unexported (golint)
    • Line 256: warning: exported method DB.Exec should have comment or be unexported (golint)
    • Line 268: warning: exported method DB.QueryRow should have comment or be unexported (golint)
    • Line 290: warning: exported method DB.Query should have comment or be unexported (golint)
    • orm/local_cache.go
    • Line 14: warning: exported type LocalCacheConfig should have comment or be unexported (golint)
    • Line 20: warning: exported type LocalCache should have comment or be unexported (golint)
    • Line 32: warning: exported method LocalCache.GetSet should have comment or be unexported (golint)
    • Line 46: warning: exported method LocalCache.Get should have comment or be unexported (golint)
    • Line 62: warning: exported method LocalCache.MGet should have comment or be unexported (golint)
    • Line 83: warning: exported method LocalCache.Set should have comment or be unexported (golint)
    • Line 93: warning: exported method LocalCache.MSet should have comment or be unexported (golint)
    • Line 106: warning: exported method LocalCache.HMget should have comment or be unexported (golint)
    • Line 135: warning: exported method LocalCache.HMset should have comment or be unexported (golint)
    • Line 153: warning: exported method LocalCache.Remove should have comment or be unexported (golint)
    • Line 165: warning: exported method LocalCache.GetObjectsCount should have comment or be unexported (golint)
    • Line 172: warning: exported method LocalCache.Clear should have comment or be unexported (golint)
    • orm/where.go
    • Line 8: warning: exported type Where should have comment or be unexported (golint)
    • Line 17: warning: exported method Where.GetParameters should have comment or be unexported (golint)
    • Line 21: warning: exported method Where.Append should have comment or be unexported (golint)
    • Line 27: warning: exported function NewWhere should have comment or be unexported (golint)
    • orm/async_consumer.go
    • Line 16: warning: exported type LogQueueValue should have comment or be unexported (golint)
    • Line 27: warning: exported type AsyncConsumer should have comment or be unexported (golint)
    • Line 38: warning: exported function NewAsyncConsumer should have comment or be unexported (golint)
    • Line 42: warning: exported method AsyncConsumer.DisableLoop should have comment or be unexported (golint)
    • Line 46: warning: exported method AsyncConsumer.RegisterErrorHandler should have comment or be unexported (golint)
    • Line 50: warning: exported method AsyncConsumer.SetHeartBeat should have comment or be unexported (golint)
    • Line 55: warning: exported method AsyncConsumer.SetLogLogger should have comment or be unexported (golint)
    • Line 59: warning: exported method AsyncConsumer.Digest should have comment or be unexported (golint)
    • orm/locker.go
    • Line 26: warning: exported type Locker should have comment or be unexported (golint)
    • Line 32: warning: exported method Locker.Obtain should have comment or be unexported (golint)
    • Line 81: warning: exported type Lock should have comment or be unexported (golint)
    • Line 91: warning: exported method Lock.Release should have comment or be unexported (golint)
    • Line 107: warning: exported method Lock.TTL should have comment or be unexported (golint)
    • Line 117: warning: exported method Lock.Refresh should have comment or be unexported (golint)
    • orm/pager.go
    • Line 3: warning: exported type Pager should have comment or be unexported (golint)
    • Line 8: warning: exported function NewPager should have comment or be unexported (golint)
    • Line 15: warning: exported method Pager.GetPageSize should have comment or be unexported (golint)
    • Line 19: warning: exported method Pager.GetCurrentPage should have comment or be unexported (golint)
    • Line 23: warning: exported method Pager.IncrementPage should have comment or be unexported (golint)
    • orm/redis_cache.go
    • Line 16: warning: exported type RedisCache should have comment or be unexported (golint)
    • Line 24: warning: exported type GetSetProvider should have comment or be unexported (golint)
    • Line 26: warning: exported method RedisCache.RateLimit should have comment or be unexported (golint)
    • Line 40: warning: exported method RedisCache.GetSet should have comment or be unexported (golint)
    • Line 53: warning: exported method RedisCache.PipeLine should have comment or be unexported (golint)
    • Line 57: warning: exported method RedisCache.Info should have comment or be unexported (golint)
    • Line 68: warning: exported method RedisCache.Get should have comment or be unexported (golint)
    • Line 87: warning: exported method RedisCache.Eval should have comment or be unexported (golint)
    • Line 97: warning: exported method RedisCache.EvalSha should have comment or be unexported (golint)
    • Line 107: warning: exported method RedisCache.ScriptLoad should have comment or be unexported (golint)
    • Line 117: warning: exported method RedisCache.Set should have comment or be unexported (golint)
    • Line 127: warning: exported method RedisCache.LPush should have comment or be unexported (golint)
    • Line 138: warning: exported method RedisCache.RPush should have comment or be unexported (golint)
    • Line 149: warning: exported method RedisCache.LLen should have comment or be unexported (golint)
    • Line 160: warning: exported method RedisCache.Exists should have comment or be unexported (golint)
    • Line 171: warning: exported method RedisCache.Type should have comment or be unexported (golint)
    • Line 182: warning: exported method RedisCache.LRange should have comment or be unexported (golint)
    • Line 193: warning: exported method RedisCache.LSet should have comment or be unexported (golint)
    • Line 203: warning: exported method RedisCache.RPop should have comment or be unexported (golint)
    • Line 224: warning: exported method RedisCache.LRem should have comment or be unexported (golint)
    • Line 234: warning: exported method RedisCache.Ltrim should have comment or be unexported (golint)
    • Line 244: warning: exported method RedisCache.HSet should have comment or be unexported (golint)
    • Line 254: warning: exported method RedisCache.HDel should have comment or be unexported (golint)
    • Line 264: warning: exported method RedisCache.HMget should have comment or be unexported (golint)
    • Line 282: warning: exported method RedisCache.HGetAll should have comment or be unexported (golint)
    • Line 293: warning: exported method RedisCache.HGet should have comment or be unexported (golint)
    • Line 309: warning: exported method RedisCache.HLen should have comment or be unexported (golint)
    • Line 320: warning: exported method RedisCache.HIncrBy should have comment or be unexported (golint)
    • Line 331: warning: exported method RedisCache.IncrBy should have comment or be unexported (golint)
    • Line 342: warning: exported method RedisCache.Incr should have comment or be unexported (golint)
    • Line 353: warning: exported method RedisCache.Expire should have comment or be unexported (golint)
    • Line 364: warning: exported method RedisCache.ZAdd should have comment or be unexported (golint)
    • Line 375: warning: exported method RedisCache.ZRevRange should have comment or be unexported (golint)
    • Line 386: warning: exported method RedisCache.ZRevRangeWithScores should have comment or be unexported (golint)
    • Line 397: warning: exported method RedisCache.ZRangeWithScores should have comment or be unexported (golint)
    • Line 408: warning: exported method RedisCache.ZCard should have comment or be unexported (golint)
    • Line 419: warning: exported method RedisCache.ZCount should have comment or be unexported (golint)
    • Line 430: warning: exported method RedisCache.ZScore should have comment or be unexported (golint)
    • Line 441: warning: exported method RedisCache.MSet should have comment or be unexported (golint)
    • Line 451: warning: exported method RedisCache.MGet should have comment or be unexported (golint)
    • Line 470: warning: exported method RedisCache.SAdd should have comment or be unexported (golint)
    • Line 481: warning: exported method RedisCache.SCard should have comment or be unexported (golint)
    • Line 492: warning: exported method RedisCache.SPop should have comment or be unexported (golint)
    • Line 508: warning: exported method RedisCache.SPopN should have comment or be unexported (golint)
    • Line 519: warning: exported method RedisCache.Del should have comment or be unexported (golint)
    • Line 529: warning: exported method RedisCache.XTrim should have comment or be unexported (golint)
    • Line 545: warning: exported method RedisCache.XRange should have comment or be unexported (golint)
    • Line 556: warning: exported method RedisCache.XRevRange should have comment or be unexported (golint)
    • Line 567: warning: exported method RedisCache.XInfoStream should have comment or be unexported (golint)
    • Line 578: warning: exported method RedisCache.XInfoGroups should have comment or be unexported (golint)
    • Line 596: warning: exported method RedisCache.XGroupCreate should have comment or be unexported (golint)
    • Line 614: warning: exported method RedisCache.XGroupCreateMkStream should have comment or be unexported (golint)
    • Line 631: warning: exported method RedisCache.XGroupDestroy should have comment or be unexported (golint)
    • Line 642: warning: exported method RedisCache.XRead should have comment or be unexported (golint)
    • Line 656: warning: exported method RedisCache.XDel should have comment or be unexported (golint)
    • Line 667: warning: exported method RedisCache.XGroupDelConsumer should have comment or be unexported (golint)
    • Line 678: warning: exported method RedisCache.XReadGroup should have comment or be unexported (golint)
    • Line 693: warning: exported method RedisCache.XPending should have comment or be unexported (golint)
    • Line 704: warning: exported method RedisCache.XPendingExt should have comment or be unexported (golint)
    • Line 728: warning: exported method RedisCache.XLen should have comment or be unexported (golint)
    • Line 739: warning: exported method RedisCache.XClaim should have comment or be unexported (golint)
    • Line 750: warning: exported method RedisCache.XClaimJustID should have comment or be unexported (golint)
    • Line 761: warning: exported method RedisCache.XAck should have comment or be unexported (golint)
    • Line 772: warning: exported method RedisCache.FlushDB should have comment or be unexported (golint)
    • orm/table_schema.go
    • Line 14: warning: exported type CachedQuery should have comment or be unexported (golint)
    • Line 24: warning: exported type Enum should have comment or be unexported (golint)
    • Line 32: warning: exported type EnumModel should have comment or be unexported (golint)
    • Line 38: warning: exported method EnumModel.GetFields should have comment or be unexported (golint)
    • Line 42: warning: exported method EnumModel.GetMapping should have comment or be unexported (golint)
    • Line 46: warning: exported method EnumModel.GetDefault should have comment or be unexported (golint)
    • Line 50: warning: exported method EnumModel.Has should have comment or be unexported (golint)
    • Line 67: warning: exported type TableSchema should have comment or be unexported (golint)
    • orm/tools/redis_search_status.go
    • Line 10: warning: exported type RedisSearchStatistics should have comment or be unexported (golint)
    • Line 18: warning: exported type RedisSearchStatisticsIndexVersion should have comment or be unexported (golint)
    • Line 23: warning: exported function GetRedisSearchStatistics should have comment or be unexported (golint)
    • orm/fast_engine.go
    • Line 8: warning: exported type FastEngine should have comment or be unexported (golint)
    • Line 13: warning: exported type FastEntity should have comment or be unexported (golint)
    • orm/query_logger.go
    • Line 13: warning: exported type QueryLoggerSource should have comment or be unexported (golint)
    • Line 16: warning: exported const QueryLoggerSourceDB should have comment (or a comment on this block) or be unexported (golint)
    • orm/redis_pipeline.go
    • Line 13: warning: exported type RedisPipeLine should have comment or be unexported (golint)
    • Line 23: warning: exported method RedisPipeLine.Del should have comment or be unexported (golint)
    • Line 28: warning: exported method RedisPipeLine.Get should have comment or be unexported (golint)
    • Line 33: warning: exported method RedisPipeLine.Set should have comment or be unexported (golint)
    • Line 38: warning: exported method RedisPipeLine.Expire should have comment or be unexported (golint)
    • Line 43: warning: exported method RedisPipeLine.HIncrBy should have comment or be unexported (golint)
    • Line 48: warning: exported method RedisPipeLine.HSet should have comment or be unexported (golint)
    • Line 53: warning: exported method RedisPipeLine.HDel should have comment or be unexported (golint)
    • Line 58: warning: exported method RedisPipeLine.XAdd should have comment or be unexported (golint)
    • Line 63: warning: exported method RedisPipeLine.Exec should have comment or be unexported (golint)
    • Line 79: warning: exported method RedisPipeLine.Executed should have comment or be unexported (golint)
    • Line 83: warning: exported type PipeLineGet should have comment or be unexported (golint)
    • Line 88: warning: exported method PipeLineGet.Result should have comment or be unexported (golint)
    • Line 97: warning: exported type PipeLineString should have comment or be unexported (golint)
    • Line 102: warning: exported method PipeLineString.Result should have comment or be unexported (golint)
    • Line 107: warning: exported type PipeLineInt should have comment or be unexported (golint)
    • Line 112: warning: exported method PipeLineInt.Result should have comment or be unexported (golint)
    • Line 117: warning: exported type PipeLineBool should have comment or be unexported (golint)
    • Line 122: warning: exported method PipeLineBool.Result should have comment or be unexported (golint)
    • Line 127: warning: exported type PipeLineStatus should have comment or be unexported (golint)
    • Line 132: warning: exported method PipeLineStatus.Result should have comment or be unexported (golint)
    • orm/registry.go
    • Line 24: warning: exported type Registry should have comment or be unexported (golint)
    • Line 40: warning: exported method Registry.Validate should have comment or be unexported (golint)
    • Line 194: warning: exported method Registry.SetDefaultEncoding should have comment or be unexported (golint)
    • Line 198: warning: exported method Registry.RegisterEntity should have comment or be unexported (golint)
    • Line 211: warning: exported method Registry.RegisterRedisSearchIndex should have comment or be unexported (golint)
    • Line 223: warning: exported method Registry.RegisterElasticIndex should have comment or be unexported (golint)
    • Line 237: warning: exported method Registry.RegisterEnumStruct should have comment or be unexported (golint)
    • Line 245: warning: exported method Registry.RegisterEnumSlice should have comment or be unexported (golint)
    • Line 259: warning: exported method Registry.RegisterEnumMap should have comment or be unexported (golint)
    • Line 275: warning: exported method Registry.RegisterMySQLPool should have comment or be unexported (golint)
    • Line 279: warning: exported method Registry.RegisterElastic should have comment or be unexported (golint)
    • Line 283: warning: exported method Registry.RegisterElasticWithTraceLog should have comment or be unexported (golint)
    • Line 287: warning: exported method Registry.RegisterLocalCache should have comment or be unexported (golint)
    • Line 298: warning: exported method Registry.RegisterRedis should have comment or be unexported (golint)
    • Line 307: warning: exported method Registry.RegisterRedisSentinel should have comment or be unexported (golint)
    • Line 317: warning: exported method Registry.RegisterRedisStream should have comment or be unexported (golint)
    • Line 337: warning: exported method Registry.RegisterLocker should have comment or be unexported (golint)
    • Line 375: warning: exported method Registry.RegisterClickHouse should have comment or be unexported (golint)
    • Line 420: warning: exported type RedisCacheConfig should have comment or be unexported (golint)
    • Line 426: warning: exported type ElasticConfig should have comment or be unexported (golint)
    • orm/flush.go
    • Line 19: warning: exported type Bind should have comment or be unexported (golint)
    • Line 21: warning: exported type DuplicatedKeyError should have comment or be unexported (golint)
    • Line 30: warning: exported type ForeignKeyError should have comment or be unexported (golint)
    • orm/redis_search_indexer.go
    • Line 12: warning: exported type RedisSearchIndexer should have comment or be unexported (golint)
    • Line 19: warning: exported function NewRedisSearchIndexer should have comment or be unexported (golint)
    • Line 23: warning: exported method RedisSearchIndexer.DisableLoop should have comment or be unexported (golint)
    • Line 27: warning: exported method RedisSearchIndexer.SetHeartBeat should have comment or be unexported (golint)
    • Line 32: warning: exported method RedisSearchIndexer.Run should have comment or be unexported (golint)
    • Line 117: warning: exported type RedisSearchIndexPusher should have comment or be unexported (golint)
    • Line 123: warning: exported type RedisSearchIndexerFunc should have comment or be unexported (golint)
    • orm/engine.go
    • Line 19: warning: exported type Engine should have comment or be unexported (golint)
    • Line 58: warning: exported method Engine.Log should have comment or be unexported (golint)
    • Line 65: warning: exported method Engine.EnableRequestCache should have comment or be unexported (golint)
    • Line 77: warning: exported method Engine.EnableLogger should have comment or be unexported (golint)
    • Line 89: warning: exported method Engine.EnableDebug should have comment or be unexported (golint)
    • Line 96: warning: exported method Engine.AddQueryLogger should have comment or be unexported (golint)
    • Line 131: warning: exported method Engine.EnableQueryDebug should have comment or be unexported (golint)
    • Line 135: warning: exported method Engine.SetLogMetaData should have comment or be unexported (golint)
    • Line 144: warning: exported method Engine.GetMysql should have comment or be unexported (golint)
    • Line 168: warning: exported method Engine.GetLocalCache should have comment or be unexported (golint)
    • Line 200: warning: exported method Engine.GetRedis should have comment or be unexported (golint)
    • Line 227: warning: exported method Engine.GetRedisSearch should have comment or be unexported (golint)
    • Line 255: warning: exported method Engine.GetClickHouse should have comment or be unexported (golint)
    • Line 278: warning: exported method Engine.GetElastic should have comment or be unexported (golint)
    • Line 301: warning: exported method Engine.GetLocker should have comment or be unexported (golint)
    • Line 325: warning: exported method Engine.NewFlusher should have comment or be unexported (golint)
    • Line 329: warning: exported method Engine.NewFastEngine should have comment or be unexported (golint)
    • Line 333: warning: exported method Engine.NewRedisFlusher should have comment or be unexported (golint)
    • Line 337: warning: exported method Engine.Flush should have comment or be unexported (golint)
    • Line 341: warning: exported method Engine.FlushLazy should have comment or be unexported (golint)
    • Line 345: warning: exported method Engine.FlushMany should have comment or be unexported (golint)
    • Line 349: warning: exported method Engine.FlushLazyMany should have comment or be unexported (golint)
    • Line 353: warning: exported method Engine.FlushWithCheck should have comment or be unexported (golint)
    • Line 357: warning: exported method Engine.FlushWithCheckMany should have comment or be unexported (golint)
    • Line 381: warning: exported method Engine.Delete should have comment or be unexported (golint)
    • Line 386: warning: exported method Engine.ForceDelete should have comment or be unexported (golint)
    • Line 391: warning: exported method Engine.DeleteMany should have comment or be unexported (golint)
    • Line 398: warning: exported method Engine.GetRegistry should have comment or be unexported (golint)
    • Line 402: warning: exported method Engine.SearchWithCount should have comment or be unexported (golint)
    • Line 406: warning: exported method Engine.Search should have comment or be unexported (golint)
    • Line 410: warning: exported method Engine.SearchIDsWithCount should have comment or be unexported (golint)
    • Line 414: warning: exported method Engine.SearchIDs should have comment or be unexported (golint)
    • Line 419: warning: exported method Engine.SearchOne should have comment or be unexported (golint)
    • Line 424: warning: exported method Engine.CachedSearchOne should have comment or be unexported (golint)
    • Line 428: warning: exported method Engine.CachedSearchOneWithReferences should have comment or be unexported (golint)
    • Line 432: warning: exported method Engine.CachedSearch should have comment or be unexported (golint)
    • Line 437: warning: exported method Engine.CachedSearchIDs should have comment or be unexported (golint)
    • Line 441: warning: exported method Engine.CachedSearchCount should have comment or be unexported (golint)
    • Line 446: warning: exported method Engine.CachedSearchWithReferences should have comment or be unexported (golint)
    • Line 452: warning: exported method Engine.ClearByIDs should have comment or be unexported (golint)
    • Line 456: warning: exported method Engine.LoadByID should have comment or be unexported (golint)
    • Line 461: warning: exported method Engine.Load should have comment or be unexported (golint)
    • Line 476: warning: exported method Engine.LoadByIDs should have comment or be unexported (golint)
    • Line 481: warning: exported method Engine.GetAlters should have comment or be unexported (golint)
    • Line 485: warning: exported method Engine.GetRedisSearchIndexAlters should have comment or be unexported (golint)
    • Line 489: warning: exported method Engine.GetElasticIndexAlters should have comment or be unexported (golint)
    • orm/orm.go
    • Line 13: warning: exported type Entity should have comment or be unexported (golint)
    • Line 26: warning: exported type ORM should have comment or be unexported (golint)
    • Line 45: warning: exported method ORM.GetID should have comment or be unexported (golint)
    • Line 66: warning: exported method ORM.Loaded should have comment or be unexported (golint)
    • Line 70: warning: exported method ORM.SetOnDuplicateKeyUpdate should have comment or be unexported (golint)
    • Line 74: warning: exported method ORM.SetEntityLogMeta should have comment or be unexported (golint)
    • Line 81: warning: exported method ORM.IsDirty should have comment or be unexported (golint)
    • Line 89: warning: exported method ORM.GetDirtyBind should have comment or be unexported (golint)
    • Line 118: warning: exported method ORM.SetField should have comment or be unexported (golint)
    • orm/tools/redis_statistics.go
    • Line 9: warning: exported type RedisStatistics should have comment or be unexported (golint)
    • Line 14: warning: exported function GetRedisStatistics should have comment or be unexported (golint)
    • orm/dirty_event.go
    • Line 7: warning: exported type DirtyEntityEvent should have comment or be unexported (golint)
    • Line 15: warning: exported function EventDirtyEntity should have comment or be unexported (golint)
    • orm/elastic.go
    • Line 17: warning: exported type ElasticIndexDefinition should have comment or be unexported (golint)
    • Line 22: warning: exported type ElasticIndexAlter should have comment or be unexported (golint)
    • Line 35: warning: exported type SearchOptions should have comment or be unexported (golint)
    • Line 40: warning: exported method SearchOptions.AddSort should have comment or be unexported (golint)
    • Line 48: warning: exported method SearchOptions.AddAggregation should have comment or be unexported (golint)
    • Line 65: warning: exported type Elastic should have comment or be unexported (golint)
    • Line 71: warning: exported method Elastic.Client should have comment or be unexported (golint)
    • Line 75: warning: exported method Elastic.Search should have comment or be unexported (golint)
    • Line 129: warning: exported method Elastic.DropIndex should have comment or be unexported (golint)
    • Line 142: warning: exported method Elastic.CreateIndex should have comment or be unexported (golint)

gocyclo81%

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.

    • orm/registry.go
    • Line 40: warning: cyclomatic complexity 37 of function (*Registry).Validate() is high (> 15) (gocyclo)
    • orm/table_schema.go
    • Line 241: warning: cyclomatic complexity 97 of function initTableSchema() is high (> 15) (gocyclo)
    • Line 631: warning: cyclomatic complexity 51 of function buildTableFields() is high (> 15) (gocyclo)
    • Line 784: warning: cyclomatic complexity 16 of function extractTags() is high (> 15) (gocyclo)
    • orm/schema.go
    • Line 180: warning: cyclomatic complexity 65 of function getSchemaChanges() is high (> 15) (gocyclo)
    • Line 571: warning: cyclomatic complexity 50 of function checkColumn() is high (> 15) (gocyclo)
    • Line 873: warning: cyclomatic complexity 25 of function convertIntToSchema() is high (> 15) (gocyclo)
    • Line 49: warning: cyclomatic complexity 22 of function getAlters() is high (> 15) (gocyclo)
    • orm/redis_search.go
    • Line 785: warning: cyclomatic complexity 55 of function (*RedisSearch).Info() is high (> 15) (gocyclo)
    • Line 947: warning: cyclomatic complexity 48 of function getRedisSearchAlters() is high (> 15) (gocyclo)
    • Line 525: warning: cyclomatic complexity 39 of function (*RedisSearch).search() is high (> 15) (gocyclo)
    • Line 658: warning: cyclomatic complexity 26 of function (*RedisSearch).createIndexArgs() is high (> 15) (gocyclo)
    • orm/search.go
    • Line 389: warning: cyclomatic complexity 62 of function fillStruct() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 30 of function convertScan() is high (> 15) (gocyclo)
    • Line 25: warning: cyclomatic complexity 19 of function prepareScanForFields() is high (> 15) (gocyclo)
    • orm/load_by_ids.go
    • Line 180: warning: cyclomatic complexity 56 of function warmUpReferences() is high (> 15) (gocyclo)
    • Line 11: warning: cyclomatic complexity 32 of function tryByIDs() is high (> 15) (gocyclo)
    • orm/cached_search.go
    • Line 15: warning: cyclomatic complexity 38 of function cachedSearch() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 16 of function cachedSearchOne() is high (> 15) (gocyclo)
    • orm/flush.go
    • Line 531: warning: cyclomatic complexity 177 of function fillBind() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 103 of function flush() is high (> 15) (gocyclo)
    • orm/orm.go
    • Line 118: warning: cyclomatic complexity 65 of function (*ORM).SetField() is high (> 15) (gocyclo)
    • orm/event_broker.go
    • Line 301: warning: cyclomatic complexity 65 of function (*eventsConsumer).consume() is high (> 15) (gocyclo)
    • Line 572: warning: cyclomatic complexity 22 of function (*eventsConsumer).garbageCollector() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!