Preparing report...

Report for github.com/qiniu/logkit

A    Great!    Found 221 issues across 338 files

Tweet

gofmt96%

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!


gocyclo80%

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.

    • logkit/reader/socket/socket.go
    • Line 131: warning: cyclomatic complexity 23 of function (*streamSocketReader).packetAndLineRead() is high (> 15) (gocyclo)
    • Line 441: warning: cyclomatic complexity 20 of function (*Reader).Start() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 19 of function (*streamSocketReader).jsonRead() is high (> 15) (gocyclo)
    • logkit/metric/system/procstat.go
    • Line 430: warning: cyclomatic complexity 43 of function (*Procstat).collectMetrics() is high (> 15) (gocyclo)
    • Line 630: warning: cyclomatic complexity 24 of function (*Procstat).findPids() is high (> 15) (gocyclo)
    • logkit/sender/fault_tolerant.go
    • Line 730: warning: cyclomatic complexity 24 of function (*FtSender).handleSendError() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 16 of function (*FtSender).Send() is high (> 15) (gocyclo)
    • logkit/reader/dirx/dirx.go
    • Line 224: warning: cyclomatic complexity 27 of function (*Reader).statLogPath() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 16 of function (*Reader).Start() is high (> 15) (gocyclo)
    • logkit/mgr/metric_runner.go
    • Line 77: warning: cyclomatic complexity 34 of function NewMetricRunner() is high (> 15) (gocyclo)
    • Line 249: warning: cyclomatic complexity 30 of function (*MetricRunner).Run() is high (> 15) (gocyclo)
    • Line 382: warning: cyclomatic complexity 20 of function (*MetricRunner).trySend() is high (> 15) (gocyclo)
    • logkit/sender/pandora/pandora.go
    • Line 803: warning: cyclomatic complexity 26 of function validSchema() is high (> 15) (gocyclo)
    • Line 147: warning: cyclomatic complexity 21 of function NewSender() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 20 of function newPandoraSender() is high (> 15) (gocyclo)
    • Line 883: warning: cyclomatic complexity 19 of function (*Sender).generatePoint() is high (> 15) (gocyclo)
    • logkit/reader/tailx/tailx.go
    • Line 698: warning: cyclomatic complexity 48 of function (*Reader).statLogPath() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 38 of function (*ActiveReader).Run() is high (> 15) (gocyclo)
    • Line 894: warning: cyclomatic complexity 21 of function (*Reader).Start() is high (> 15) (gocyclo)
    • logkit/reader/mssql/mssql.go
    • Line 263: warning: cyclomatic complexity 19 of function (*MssqlReader).execReadDB() is high (> 15) (gocyclo)
    • Line 89: warning: cyclomatic complexity 17 of function NewMssqlReader() is high (> 15) (gocyclo)
    • logkit/reader/mysql/mysql.go
    • Line 116: warning: cyclomatic complexity 34 of function NewMysqlReader() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 27 of function (*MysqlReader).execReadDB() is high (> 15) (gocyclo)
    • Line 524: warning: cyclomatic complexity 22 of function (*MysqlReader).run() is high (> 15) (gocyclo)
    • Line 872: warning: cyclomatic complexity 21 of function (*MysqlReader).checkExit() is high (> 15) (gocyclo)
    • Line 416: warning: cyclomatic complexity 17 of function (*MysqlReader).SyncMeta() is high (> 15) (gocyclo)
    • Line 1210: warning: cyclomatic complexity 16 of function (*MysqlReader).execReadSql() is high (> 15) (gocyclo)
    • logkit/mgr/runner_test.go
    • Line 223: warning: cyclomatic complexity 26 of function Test_RunForEnvTag() is high (> 15) (gocyclo)
    • Line 380: warning: cyclomatic complexity 25 of function Test_RunForErrData() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 24 of function Test_QiniulogRun() is high (> 15) (gocyclo)
    • Line 58: warning: cyclomatic complexity 23 of function Test_Run() is high (> 15) (gocyclo)
    • logkit/mgr/mgr.go
    • Line 103: warning: cyclomatic complexity 19 of function NewCustomManager() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 17 of function (*Manager).ForkRunner() is high (> 15) (gocyclo)
    • logkit/mgr/runner.go
    • Line 210: warning: cyclomatic complexity 44 of function NewLogExportRunner() is high (> 15) (gocyclo)
    • Line 912: warning: cyclomatic complexity 32 of function (*LogExportRunner).Run() is high (> 15) (gocyclo)
    • Line 760: warning: cyclomatic complexity 23 of function (*LogExportRunner).readLines() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 22 of function (*LogExportRunner).trySend() is high (> 15) (gocyclo)
    • Line 415: warning: cyclomatic complexity 22 of function (*LogExportRunner).tryRawSend() is high (> 15) (gocyclo)
    • Line 695: warning: cyclomatic complexity 16 of function (*LogExportRunner).rawReadLines() is high (> 15) (gocyclo)
    • logkit/reader/tailx/tailx_test.go
    • Line 594: warning: cyclomatic complexity 17 of function multiReaderSyncMetaOneLineTest() is high (> 15) (gocyclo)
    • Line 733: warning: cyclomatic complexity 17 of function multiReaderSyncMetaMutilineTest() is high (> 15) (gocyclo)
    • logkit/reader/sql/dataconvert.go
    • Line 315: warning: cyclomatic complexity 29 of function ConvertScanArgs() is high (> 15) (gocyclo)
    • Line 214: warning: cyclomatic complexity 26 of function ConvertString() is high (> 15) (gocyclo)
    • Line 86: warning: cyclomatic complexity 23 of function ConvertFloat() is high (> 15) (gocyclo)
    • Line 19: warning: cyclomatic complexity 22 of function ConvertLong() is high (> 15) (gocyclo)
    • logkit/parser/grok/grok.go
    • Line 259: warning: cyclomatic complexity 25 of function (*Parser).parse() is high (> 15) (gocyclo)
    • Line 171: warning: cyclomatic complexity 17 of function (*Parser).Parse() is high (> 15) (gocyclo)
    • logkit/parser/csv/csv.go
    • Line 555: warning: cyclomatic complexity 23 of function (*Parser).parse() is high (> 15) (gocyclo)
    • Line 665: warning: cyclomatic complexity 18 of function (*Parser).Parse() is high (> 15) (gocyclo)
    • logkit/reader/postgres/postgres.go
    • Line 93: warning: cyclomatic complexity 31 of function NewPostgresReader() is high (> 15) (gocyclo)
    • Line 630: warning: cyclomatic complexity 21 of function (*PostgresReader).checkExit() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 19 of function (*PostgresReader).execReadDB() is high (> 15) (gocyclo)
    • logkit/reader/seqfile/seqfile.go
    • Line 310: warning: cyclomatic complexity 23 of function (*SeqFile).Read() is high (> 15) (gocyclo)
    • Line 442: warning: cyclomatic complexity 16 of function (*SeqFile).getNextFileCondition() is high (> 15) (gocyclo)
    • logkit/reader/snmp/snmp.go
    • Line 768: warning: cyclomatic complexity 44 of function fieldConvert() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 29 of function (Table).Build() is high (> 15) (gocyclo)
    • Line 657: warning: cyclomatic complexity 26 of function (*Reader).getConnection() is high (> 15) (gocyclo)
    • Line 998: warning: cyclomatic complexity 17 of function snmpTranslateCall() is high (> 15) (gocyclo)
    • Line 103: warning: cyclomatic complexity 16 of function NewReader() is high (> 15) (gocyclo)
    • logkit/reader/dirx/dirx_test.go
    • Line 409: warning: cyclomatic complexity 16 of function multiReaderSyncMetaMutilineTest() is high (> 15) (gocyclo)
    • Line 277: warning: cyclomatic complexity 16 of function multiReaderSyncMetaOneLineTest() is high (> 15) (gocyclo)

golint40%

Golint is a linter for Go source code.

    • logkit/sender/csv/csv.go
    • Line 16: warning: should not use dot imports (golint)
    • Line 143: warning: exported type Sender should have comment or be unexported (golint)
    • Line 150: warning: exported function NewSender should have comment or be unexported (golint)
    • Line 180: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 185: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 189: warning: exported method Sender.Close should have comment or be unexported (golint)
    • logkit/sender/sender.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 9: warning: should not use dot imports (golint)
    • Line 31: warning: exported type StatsSender should have comment or be unexported (golint)
    • Line 41: warning: comment on exported type Registry should be of the form "Registry ..." (with optional leading article) (golint)
    • Line 46: warning: exported type Constructor should have comment or be unexported (golint)
    • Line 56: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 68: warning: exported method Registry.RegisterSender should have comment or be unexported (golint)
    • Line 77: warning: exported method Registry.NewSender should have comment or be unexported (golint)
    • Line 106: warning: exported type TokenRefreshable should have comment or be unexported (golint)
    • Line 110: warning: exported function ConvertDatas should have comment or be unexported (golint)
    • Line 118: warning: exported function ConvertDatasBack should have comment or be unexported (golint)
    • logkit/sender/open_falcon/transfer.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 19: warning: should not use dot imports (golint)
    • Line 20: warning: should not use dot imports (golint)
    • Line 24: warning: exported type TransferSender should have comment or be unexported (golint)
    • Line 38: warning: exported type TransferData should have comment or be unexported (golint)
    • Line 48: warning: exported type RespData should have comment or be unexported (golint)
    • Line 55: warning: exported type TransferResponse should have comment or be unexported (golint)
    • Line 61: warning: exported const CounterTypeGauge should have comment (or a comment on this block) or be unexported (golint)
    • Line 69: warning: exported function NewSender should have comment or be unexported (golint)
    • Line 123: warning: exported method TransferSender.Name should have comment or be unexported (golint)
    • Line 127: warning: exported method TransferSender.Send should have comment or be unexported (golint)
    • Line 276: warning: exported method TransferSender.Close should have comment or be unexported (golint)
    • logkit/transforms/mutate/concat.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 19: warning: exported type Concat should have comment or be unexported (golint)
    • Line 31: warning: exported method Concat.Init should have comment or be unexported (golint)
    • Line 46: warning: exported method Concat.RawTransform should have comment or be unexported (golint)
    • Line 50: warning: exported method Concat.Transform should have comment or be unexported (golint)
    • Line 107: warning: exported method Concat.Description should have comment or be unexported (golint)
    • Line 112: warning: exported method Concat.Type should have comment or be unexported (golint)
    • Line 116: warning: exported method Concat.SampleConfig should have comment or be unexported (golint)
    • Line 125: warning: exported method Concat.ConfigOptions should have comment or be unexported (golint)
    • Line 143: warning: exported method Concat.Stage should have comment or be unexported (golint)
    • Line 147: warning: exported method Concat.Stats should have comment or be unexported (golint)
    • Line 151: warning: exported method Concat.SetStats should have comment or be unexported (golint)
    • logkit/reader/mongo/mongo.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 23: warning: should not use dot imports (golint)
    • Line 40: warning: exported const DefaultOffsetKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 45: warning: exported const Release should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type Reader should have comment or be unexported (golint)
    • Line 86: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 181: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 185: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 207: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 242: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 246: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 260: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 287: warning: exported method Reader.Close should have comment or be unexported (golint)
    • logkit/queue/disk.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 85: warning: exported type NewDiskQueueOptions should have comment or be unexported (golint)
    • Line 103: warning: comment on exported function NewDiskQueue should be of the form "NewDiskQueue ..." (golint)
    • logkit/metric/system/kernel_vmstat_linux.go
    • Line 13: warning: should not use dot imports (golint)
    • Line 17: warning: exported const TypeMetricKernelVmstat should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type KernelVmstat should have comment or be unexported (golint)
    • Line 25: warning: exported method KernelVmstat.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method KernelVmstat.Usages should have comment or be unexported (golint)
    • Line 33: warning: exported method KernelVmstat.Tags should have comment or be unexported (golint)
    • Line 37: warning: exported method KernelVmstat.Config should have comment or be unexported (golint)
    • Line 45: warning: exported method KernelVmstat.Collect should have comment or be unexported (golint)
    • logkit/reader/script/script.go
    • Line 19: warning: should not use dot imports (golint)
    • Line 21: warning: should not use dot imports (golint)
    • Line 33: warning: exported var MinTimeout should have comment or be unexported (golint)
    • Line 41: warning: exported type Reader should have comment or be unexported (golint)
    • Line 75: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 166: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 175: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 197: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 233: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 237: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 251: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 257: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 259: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 340: warning: exported type CmdResult should have comment or be unexported (golint)
    • Line 345: warning: exported function CmdRunWithTimeout should have comment or be unexported (golint)
    • logkit/transforms/mutate/timestamp.go
    • Line 12: warning: should not use dot imports (golint)
    • Line 22: warning: exported const Seconds should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type Timestamp should have comment or be unexported (golint)
    • Line 44: warning: exported method Timestamp.Init should have comment or be unexported (golint)
    • Line 72: warning: exported method Timestamp.RawTransform should have comment or be unexported (golint)
    • Line 76: warning: exported method Timestamp.Transform should have comment or be unexported (golint)
    • Line 133: warning: exported method Timestamp.Description should have comment or be unexported (golint)
    • Line 138: warning: exported method Timestamp.Type should have comment or be unexported (golint)
    • Line 142: warning: exported method Timestamp.SampleConfig should have comment or be unexported (golint)
    • Line 151: warning: exported method Timestamp.ConfigOptions should have comment or be unexported (golint)
    • Line 181: warning: exported method Timestamp.Stage should have comment or be unexported (golint)
    • Line 185: warning: exported method Timestamp.Stats should have comment or be unexported (golint)
    • Line 189: warning: exported method Timestamp.SetStats should have comment or be unexported (golint)
    • logkit/reader/sql/compare.go
    • Line 11: warning: comment on exported function CompareTime should be of the form "CompareTime ..." (golint)
    • Line 50: warning: comment on exported function EqualTime should be of the form "EqualTime ..." (golint)
    • Line 84: warning: exported function CompareRemainStr should have comment or be unexported (golint)
    • Line 113: warning: exported function GetRemainStr should have comment or be unexported (golint)
    • Line 126: warning: comment on exported function CompareWithStartTimeInt should be of the form "CompareWithStartTimeInt ..." (golint)
    • Line 139: warning: comment on exported function CompareWithStartTime should be of the form "CompareWithStartTime ..." (golint)
    • Line 152: warning: comment on exported function CompareWithStartTimeStr should be of the form "CompareWithStartTimeStr ..." (golint)
    • logkit/metric/rest_metrics_models.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 9: warning: exported function GetMetricTypeKey should have comment or be unexported (golint)
    • Line 21: warning: exported function GetMetricUsages should have comment or be unexported (golint)
    • Line 42: warning: exported function GetMetricOptions should have comment or be unexported (golint)
    • Line 54: warning: exported function GetMetricTags should have comment or be unexported (golint)
    • logkit/parser/logfmt/logfmt.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 10: warning: should not use dot imports (golint)
    • Line 23: warning: exported type Parser should have comment or be unexported (golint)
    • Line 33: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 57: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • Line 148: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 152: warning: exported method Parser.Type should have comment or be unexported (golint)
    • logkit/queue/direct.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 11: warning: exported const StatusInit should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function NewDirectQueue should have comment or be unexported (golint)
    • logkit/reader/dirx/dirx.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 24: warning: should not use dot imports (golint)
    • Line 44: warning: exported type Reader should have comment or be unexported (golint)
    • Line 84: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 191: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 195: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 344: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 408: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 412: warning: comment on exported method Reader.ReadLine should be of the form "ReadLine ..." (golint)
    • Line 425: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 457: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 479: warning: exported method Reader.Reset should have comment or be unexported (golint)
    • logkit/metric/system/net.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 15: warning: exported const TypeMetricNet should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported const KeyNetBytesSent should be of the form "KeyNetBytesSent ..." (golint)
    • Line 53: warning: exported type CollectInfo should have comment or be unexported (golint)
    • Line 61: warning: exported type NetIOStats should have comment or be unexported (golint)
    • Line 71: warning: exported method NetIOStats.Name should have comment or be unexported (golint)
    • Line 75: warning: exported method NetIOStats.Usages should have comment or be unexported (golint)
    • Line 79: warning: exported method NetIOStats.Tags should have comment or be unexported (golint)
    • Line 83: warning: exported method NetIOStats.Config should have comment or be unexported (golint)
    • Line 111: warning: exported method NetIOStats.Collect should have comment or be unexported (golint)
    • logkit/utils/utils.go
    • Line 30: warning: exported var JSONTool should have comment or be unexported (golint)
    • Line 33: warning: exported const Mb should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported function IsDir should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function GetParseTestData should be of the form "GetParseTestData ..." (golint)
    • Line 64: warning: exported function DeepCopyByJSON should have comment or be unexported (golint)
    • Line 78: warning: exported function DeepCopyByGob should have comment or be unexported (golint)
    • Line 93: warning: exported function BatchFullOrTimeout should have comment or be unexported (golint)
    • Line 122: warning: exported function CheckNotExistFile should have comment or be unexported (golint)
    • Line 136: warning: exported function UpdateExpireMap should have comment or be unexported (golint)
    • Line 158: warning: comment on exported function GetFiles should be of the form "GetFiles ..." (golint)
    • Line 188: warning: comment on exported function IsGzipped should be of the form "IsGzipped ..." (golint)
    • Line 196: warning: exported function WriteZipToFile should have comment or be unexported (golint)
    • Line 214: warning: exported function GetKeyOfNotEmptyValueInMap should have comment or be unexported (golint)
    • logkit/transforms/mutate/pandorakey_convert.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 16: warning: exported type PandoraKeyConvert should have comment or be unexported (golint)
    • Line 23: warning: exported method PandoraKeyConvert.Init should have comment or be unexported (golint)
    • Line 32: warning: exported method PandoraKeyConvert.RawTransform should have comment or be unexported (golint)
    • Line 36: warning: exported method PandoraKeyConvert.Transform should have comment or be unexported (golint)
    • Line 92: warning: exported method PandoraKeyConvert.Description should have comment or be unexported (golint)
    • Line 97: warning: exported method PandoraKeyConvert.Type should have comment or be unexported (golint)
    • Line 101: warning: exported method PandoraKeyConvert.SampleConfig should have comment or be unexported (golint)
    • Line 107: warning: exported method PandoraKeyConvert.ConfigOptions should have comment or be unexported (golint)
    • Line 111: warning: exported method PandoraKeyConvert.Stage should have comment or be unexported (golint)
    • Line 115: warning: exported method PandoraKeyConvert.Stats should have comment or be unexported (golint)
    • Line 119: warning: exported method PandoraKeyConvert.SetStats should have comment or be unexported (golint)
    • logkit/self/logrunner.go
    • Line 24: warning: should not use dot imports (golint)
    • Line 28: warning: should not use dot imports (golint)
    • Line 32: warning: exported const DefaultSendTime should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported type LogRunner should have comment or be unexported (golint)
    • Line 105: warning: exported function NewLogRunner should have comment or be unexported (golint)
    • Line 164: warning: exported function NewLogRunnerWithService should have comment or be unexported (golint)
    • Line 180: warning: exported method LogRunner.Run should have comment or be unexported (golint)
    • Line 231: warning: exported method LogRunner.Stop should have comment or be unexported (golint)
    • Line 271: warning: exported method LogRunner.Name should have comment or be unexported (golint)
    • Line 337: warning: exported method LogRunner.TokenRefresh should have comment or be unexported (golint)
    • Line 347: warning: exported method LogRunner.GetReaderConfig should have comment or be unexported (golint)
    • Line 351: warning: exported method LogRunner.GetParserConfig should have comment or be unexported (golint)
    • Line 355: warning: exported method LogRunner.GetTransformerConfig should have comment or be unexported (golint)
    • Line 359: warning: exported method LogRunner.GetSenderConfig should have comment or be unexported (golint)
    • Line 363: warning: exported function SetReaderConfig should have comment or be unexported (golint)
    • Line 399: warning: exported function SetSenderConfig should have comment or be unexported (golint)
    • Line 434: warning: exported function GetReaderConfig should have comment or be unexported (golint)
    • Line 438: warning: exported function GetParserConfig should have comment or be unexported (golint)
    • Line 442: warning: exported function GetSenderConfig should have comment or be unexported (golint)
    • logkit/mgr/api_cleaner.go
    • Line 9: warning: comment on exported method RestService.GetCleanerKeyOptions should be of the form "GetCleanerKeyOptions ..." (golint)
    • logkit/transforms/mutate/keyvalue.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 19: warning: exported var OptionKVSplitter should have comment or be unexported (golint)
    • Line 32: warning: exported type KV should have comment or be unexported (golint)
    • Line 45: warning: exported method KV.Init should have comment or be unexported (golint)
    • Line 67: warning: exported method KV.Description should have comment or be unexported (golint)
    • Line 71: warning: exported method KV.SampleConfig should have comment or be unexported (golint)
    • Line 78: warning: exported method KV.ConfigOptions should have comment or be unexported (golint)
    • Line 100: warning: exported method KV.Type should have comment or be unexported (golint)
    • Line 104: warning: exported method KV.Stage should have comment or be unexported (golint)
    • Line 108: warning: exported method KV.Stats should have comment or be unexported (golint)
    • Line 112: warning: exported method KV.SetStats should have comment or be unexported (golint)
    • Line 117: warning: exported method KV.RawTransform should have comment or be unexported (golint)
    • Line 121: warning: exported method KV.Transform should have comment or be unexported (golint)
    • logkit/parser/mysql/mysql.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 12: warning: should not use dot imports (golint)
    • Line 19: warning: exported type Parser should have comment or be unexported (golint)
    • Line 29: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 53: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 57: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 86: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • Line 171: warning: exported method Parser.Flush should have comment or be unexported (golint)
    • logkit/router/rest_router_models.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 7: warning: exported function GetRouterOption should have comment or be unexported (golint)
    • Line 41: warning: exported function GetRouterMatchTypeUsage should have comment or be unexported (golint)
    • logkit/audit/audit.go
    • Line 17: warning: exported type Message should have comment or be unexported (golint)
    • Line 27: warning: exported type Audit should have comment or be unexported (golint)
    • Line 37: warning: exported function NewAuditLogger should have comment or be unexported (golint)
    • Line 108: warning: exported method Audit.Log should have comment or be unexported (golint)
    • logkit/sender/mongodb/mongodb.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 19: warning: should not use dot imports (golint)
    • Line 24: warning: comment on exported type Sender should be of the form "Sender ..." (with optional leading article) (golint)
    • Line 42: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 149: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 156: warning: exported method Sender.Close should have comment or be unexported (golint)
    • Line 185: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • logkit/transforms/apps/redis.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 12: warning: exported const KeyRedis should have comment or be unexported (golint)
    • Line 19: warning: exported var OptionRedisKey should have comment or be unexported (golint)
    • Line 32: warning: exported type Redis should have comment or be unexported (golint)
    • Line 40: warning: exported method Redis.Init should have comment or be unexported (golint)
    • Line 51: warning: exported method Redis.Description should have comment or be unexported (golint)
    • Line 55: warning: exported method Redis.SampleConfig should have comment or be unexported (golint)
    • Line 62: warning: exported method Redis.ConfigOptions should have comment or be unexported (golint)
    • Line 68: warning: exported method Redis.Type should have comment or be unexported (golint)
    • Line 72: warning: exported method Redis.RawTransform should have comment or be unexported (golint)
    • Line 76: warning: exported method Redis.Stage should have comment or be unexported (golint)
    • Line 80: warning: exported method Redis.Stats should have comment or be unexported (golint)
    • Line 84: warning: exported method Redis.SetStats should have comment or be unexported (golint)
    • Line 89: warning: exported method Redis.Transform should have comment or be unexported (golint)
    • logkit/transforms/service/k8stag.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 15: warning: exported const K8sTagType should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type K8sTag should have comment or be unexported (golint)
    • Line 34: warning: exported method K8sTag.Init should have comment or be unexported (golint)
    • Line 43: warning: exported method K8sTag.RawTransform should have comment or be unexported (golint)
    • Line 47: warning: exported method K8sTag.Transform should have comment or be unexported (golint)
    • Line 103: warning: exported method K8sTag.Description should have comment or be unexported (golint)
    • Line 108: warning: exported method K8sTag.Type should have comment or be unexported (golint)
    • Line 112: warning: exported method K8sTag.SampleConfig should have comment or be unexported (golint)
    • Line 119: warning: exported method K8sTag.ConfigOptions should have comment or be unexported (golint)
    • Line 135: warning: exported method K8sTag.Stage should have comment or be unexported (golint)
    • Line 139: warning: exported method K8sTag.Stats should have comment or be unexported (golint)
    • Line 143: warning: exported method K8sTag.SetStats should have comment or be unexported (golint)
    • logkit/mgr/metric_runner.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 27: warning: should not use dot imports (golint)
    • Line 31: warning: exported const KeyMetricType should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type MetricConfig should have comment or be unexported (golint)
    • Line 49: warning: exported type MetricRunner should have comment or be unexported (golint)
    • Line 70: warning: exported function NewMetric should have comment or be unexported (golint)
    • Line 77: warning: exported function NewMetricRunner should have comment or be unexported (golint)
    • Line 245: warning: exported method MetricRunner.Name should have comment or be unexported (golint)
    • Line 249: warning: exported method MetricRunner.Run should have comment or be unexported (golint)
    • Line 249: warning: receiver name r should be consistent with previous receiver name mr for MetricRunner (golint)
    • Line 382: warning: receiver name r should be consistent with previous receiver name mr for MetricRunner (golint)
    • Line 461: warning: exported method MetricRunner.Stop should have comment or be unexported (golint)
    • Line 492: warning: exported method MetricRunner.Reset should have comment or be unexported (golint)
    • Line 511: warning: exported method MetricRunner.Delete should have comment or be unexported (golint)
    • Line 530: warning: exported method MetricRunner.Cleaner should have comment or be unexported (golint)
    • Line 546: warning: exported method MetricRunner.Status should have comment or be unexported (golint)
    • Line 583: warning: exported method MetricRunner.TokenRefresh should have comment or be unexported (golint)
    • Line 595: warning: exported method MetricRunner.StatusRestore should have comment or be unexported (golint)
    • Line 630: warning: exported method MetricRunner.StatusBackup should have comment or be unexported (golint)
    • logkit/parser/config/config.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 102: warning: exported var OptionTimezoneOffset should have comment or be unexported (golint)
    • Line 170: warning: exported var ModeKeyOptions should have comment or be unexported (golint)
    • logkit/reader/http/http.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 23: warning: should not use dot imports (golint)
    • Line 32: warning: exported const DefaultSyncEvery should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type Details should have comment or be unexported (golint)
    • Line 47: warning: exported type Reader should have comment or be unexported (golint)
    • Line 64: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 101: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 105: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 109: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 138: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 142: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 160: warning: exported method Reader.FetchInitError should have comment or be unexported (golint)
    • Line 166: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 168: warning: exported method Reader.Close should have comment or be unexported (golint)
    • logkit/rateio/controller.go
    • Line 1: warning: package comment should be of the form "Package rateio ..." (golint)
    • Line 10: warning: exported var Window should have comment or be unexported (golint)
    • Line 22: warning: exported function NewController should have comment or be unexported (golint)
    • Line 39: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 52: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 66: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 83: warning: exported method Controller.Close should have comment or be unexported (golint)
    • Line 83: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 90: warning: exported method Controller.Reader should have comment or be unexported (golint)
    • Line 90: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 97: warning: exported method Controller.Writer should have comment or be unexported (golint)
    • Line 97: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 104: warning: exported method Controller.GetRateLimit should have comment or be unexported (golint)
    • Line 104: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • logkit/sender/file/file.go
    • Line 18: warning: should not use dot imports (golint)
    • Line 19: warning: should not use dot imports (golint)
    • Line 27: warning: exported type Sender should have comment or be unexported (golint)
    • Line 90: warning: exported function NewSender should have comment or be unexported (golint)
    • Line 112: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 116: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • Line 118: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 189: warning: exported method Sender.Close should have comment or be unexported (golint)
    • logkit/metric/system/kernel_linux.go
    • Line 13: warning: should not use dot imports (golint)
    • Line 26: warning: exported const TypeMetricKernel should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported const KernelInterrupts should be of the form "KernelInterrupts ..." (golint)
    • Line 48: warning: exported type Kernel should have comment or be unexported (golint)
    • Line 52: warning: exported method Kernel.Name should have comment or be unexported (golint)
    • Line 56: warning: exported method Kernel.Usages should have comment or be unexported (golint)
    • Line 60: warning: exported method Kernel.Tags should have comment or be unexported (golint)
    • Line 64: warning: exported method Kernel.Config should have comment or be unexported (golint)
    • Line 72: warning: exported method Kernel.Collect should have comment or be unexported (golint)
    • logkit/metric/system/linux_sysctl_fs.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 14: warning: comment on exported type SysctlFS should be of the form "SysctlFS ..." (with optional leading article) (golint)
    • Line 20: warning: exported const TypeLinuxSysctlFs should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported var KeySysctlFsFieldNameMap should have comment or be unexported (golint)
    • Line 58: warning: exported var KeyLinuxSysctlFsUsage should have comment or be unexported (golint)
    • Line 76: warning: exported method SysctlFS.Name should have comment or be unexported (golint)
    • Line 80: warning: exported method SysctlFS.Usages should have comment or be unexported (golint)
    • Line 84: warning: exported method SysctlFS.Tags should have comment or be unexported (golint)
    • Line 88: warning: exported method SysctlFS.Config should have comment or be unexported (golint)
    • Line 136: warning: exported method SysctlFS.Collect should have comment or be unexported (golint)
    • logkit/transforms/ip/ip.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 12: warning: exported const Name should have comment or be unexported (golint)
    • Line 15: warning: exported const Region should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type Transformer should have comment or be unexported (golint)
    • Line 58: warning: exported method Transformer.Init should have comment or be unexported (golint)
    • Line 109: warning: exported method Transformer.RawTransform should have comment or be unexported (golint)
    • Line 113: warning: exported method Transformer.Transform should have comment or be unexported (golint)
    • Line 177: warning: comment on exported method Transformer.SetMapValue should be of the form "SetMapValue ..." (golint)
    • Line 211: warning: exported method Transformer.Description should have comment or be unexported (golint)
    • Line 216: warning: exported method Transformer.Type should have comment or be unexported (golint)
    • Line 220: warning: exported method Transformer.SampleConfig should have comment or be unexported (golint)
    • Line 229: warning: exported method Transformer.ConfigOptions should have comment or be unexported (golint)
    • Line 296: warning: exported method Transformer.Stage should have comment or be unexported (golint)
    • Line 300: warning: exported method Transformer.Stats should have comment or be unexported (golint)
    • Line 304: warning: exported method Transformer.SetStats should have comment or be unexported (golint)
    • Line 309: warning: exported method Transformer.Close should have comment or be unexported (golint)
    • Line 316: warning: exported method Transformer.ServerConfig should have comment or be unexported (golint)
    • logkit/metric/registry.go
    • Line 8: warning: exported const ConfigTypeBool should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported type CollectorService should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type ExtCollector should be of the form "ExtCollector ..." (with optional leading article) (golint)
    • Line 44: warning: exported type Creator should have comment or be unexported (golint)
    • Line 46: warning: exported var Collectors should have comment or be unexported (golint)
    • Line 48: warning: exported function Add should have comment or be unexported (golint)
    • logkit/cleaner/cleaner.go
    • Line 16: warning: should not use dot imports (golint)
    • Line 19: warning: exported type Cleaner should have comment or be unexported (golint)
    • Line 31: warning: exported type CleanSignal should have comment or be unexported (golint)
    • Line 39: warning: exported const KeyCleanEnable should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: comment on exported function NewCleaner should be of the form "NewCleaner ..." (golint)
    • Line 101: warning: exported method Cleaner.Run should have comment or be unexported (golint)
    • Line 124: warning: exported method Cleaner.Close should have comment or be unexported (golint)
    • Line 136: warning: exported method Cleaner.Name should have comment or be unexported (golint)
    • Line 182: warning: exported method Cleaner.Clean should have comment or be unexported (golint)
    • Line 240: warning: exported method Cleaner.LogDir should have comment or be unexported (golint)
    • logkit/parser/nginx/nginx.go
    • Line 18: warning: should not use dot imports (golint)
    • Line 20: warning: should not use dot imports (golint)
    • Line 27: warning: exported type Parser should have comment or be unexported (golint)
    • Line 37: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 41: warning: exported function NewNginxAccParser should have comment or be unexported (golint)
    • Line 110: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 114: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 118: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • logkit/parser/csv/csv.go
    • Line 20: warning: should not use dot imports (golint)
    • Line 22: warning: should not use dot imports (golint)
    • Line 25: warning: exported const MaxParserSchemaErrOutput should have comment or be unexported (golint)
    • Line 33: warning: exported type Parser should have comment or be unexported (golint)
    • Line 70: warning: exported type Fields should have comment or be unexported (golint)
    • Line 76: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 509: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 513: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 639: warning: exported function Rename should have comment or be unexported (golint)
    • Line 647: warning: exported function RenameData should have comment or be unexported (golint)
    • Line 656: warning: exported function HasSpace should have comment or be unexported (golint)
    • Line 665: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • logkit/transforms/ip/locator.go
    • Line 10: warning: exported const Null should have comment or be unexported (golint)
    • Line 12: warning: exported var ErrInvalidIP should have comment or be unexported (golint)
    • Line 14: warning: exported type ErrInvalidFile should have comment or be unexported (golint)
    • logkit/mgr/api_parser.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 12: warning: should not use dot imports (golint)
    • Line 17: warning: exported type Service should have comment or be unexported (golint)
    • Line 21: warning: exported var KeySampleLog should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method RestService.PostParse should be of the form "PostParse ..." (golint)
    • Line 49: warning: comment on exported method RestService.GetParserUsages should be of the form "GetParserUsages ..." (golint)
    • Line 57: warning: comment on exported method RestService.GetParserTooltips should be of the form "GetParserTooltips ..." (golint)
    • Line 65: warning: comment on exported method RestService.GetParserKeyOptions should be of the form "GetParserKeyOptions ..." (golint)
    • Line 72: warning: comment on exported method RestService.GetParserSampleLogs should be of the form "GetParserSampleLogs ..." (golint)
    • Line 79: warning: comment on exported method RestService.PostParserCheck should be of the form "PostParserCheck ..." (golint)
    • logkit/mgr/rest.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 26: warning: exported var DEFAULT_PORT should have comment or be unexported (golint)
    • Line 29: warning: exported const StatsShell should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type RestService should have comment or be unexported (golint)
    • Line 40: warning: exported function NewRestService should have comment or be unexported (golint)
    • Line 195: warning: exported function GetMySlaveUrl should have comment or be unexported (golint)
    • Line 227: warning: exported function RespError should have comment or be unexported (golint)
    • Line 235: warning: exported function RespSuccess should have comment or be unexported (golint)
    • Line 245: warning: comment on exported method RestService.Status should be of the form "Status ..." (golint)
    • Line 260: warning: comment on exported method RestService.GetErrors should be of the form "GetErrors ..." (golint)
    • Line 267: warning: comment on exported method RestService.GetError should be of the form "GetError ..." (golint)
    • Line 284: warning: comment on exported method RestService.GetRunners should be of the form "GetRunners ..." (golint)
    • Line 297: warning: comment on exported method RestService.GetConfigs should be of the form "GetConfigs ..." (golint)
    • Line 308: warning: comment on exported method RestService.GetConfig should be of the form "GetConfig ..." (golint)
    • Line 345: warning: comment on exported method RestService.PostConfig should be of the form "PostConfig ..." (golint)
    • Line 366: warning: comment on exported method RestService.PutConfig should be of the form "PutConfig ..." (golint)
    • Line 387: warning: comment on exported method RestService.PostConfigReset should be of the form "PostConfigReset ..." (golint)
    • Line 402: warning: comment on exported method RestService.PostConfigStart should be of the form "PostConfigStart ..." (golint)
    • Line 417: warning: comment on exported method RestService.PostConfigStop should be of the form "PostConfigStop ..." (golint)
    • Line 432: warning: comment on exported method RestService.DeleteConfig should be of the form "DeleteConfig ..." (golint)
    • Line 447: warning: comment on exported method RestService.GetErrorCodeHumanize should be of the form "GetErrorCodeHumanize ..." (golint)
    • Line 454: warning: exported type Version should have comment or be unexported (golint)
    • Line 458: warning: exported method RestService.GetVersion should have comment or be unexported (golint)
    • Line 464: warning: exported method RestService.Register should have comment or be unexported (golint)
    • logkit/utils/models/models.go
    • Line 16: warning: exported const B should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported const CheckPattern should have comment (or a comment on this block) or be unexported (golint)
    • Line 97: warning: exported var MaxProcs should have comment or be unexported (golint)
    • Line 103: warning: comment on exported var ModifierRe should be of the form "ModifierRe ..." (golint)
    • Line 109: warning: comment on exported var PatternOnlyRe should be of the form "PatternOnlyRe ..." (golint)
    • Line 126: warning: exported type Option should have comment or be unexported (golint)
    • Line 149: warning: exported type GrokLabel should have comment or be unexported (golint)
    • Line 154: warning: exported function NewGrokLabel should have comment or be unexported (golint)
    • Line 161: warning: exported type KeyValue should have comment or be unexported (golint)
    • Line 170: warning: exported type AuthTokens should have comment or be unexported (golint)
    • Line 176: warning: exported type Pandora should have comment or be unexported (golint)
    • Line 185: warning: exported type LagInfo should have comment or be unexported (golint)
    • Line 192: warning: exported type StatsError should have comment or be unexported (golint)
    • Line 201: warning: exported type StatsInfo should have comment or be unexported (golint)
    • Line 210: warning: exported type ErrorStatistic should have comment or be unexported (golint)
    • Line 222: warning: exported method ErrorStatistic.IsNewVersion should have comment or be unexported (golint)
    • Line 229: warning: exported method ErrorStatistic.GetMaxSize should have comment or be unexported (golint)
    • Line 236: warning: exported method StatsError.AddSuccess should have comment or be unexported (golint)
    • Line 243: warning: exported method StatsError.AddSuccessNum should have comment or be unexported (golint)
    • Line 250: warning: exported method StatsError.AddErrors should have comment or be unexported (golint)
    • Line 257: warning: exported method StatsError.AddErrorsNum should have comment or be unexported (golint)
    • Line 271: warning: exported method StatsError.ErrorIndexIn should have comment or be unexported (golint)
    • Line 280: warning: exported type KeyValueSlice should have comment or be unexported (golint)
    • logkit/transforms/mutate/split.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 18: warning: exported type Spliter should have comment or be unexported (golint)
    • Line 29: warning: exported method Spliter.Init should have comment or be unexported (golint)
    • Line 43: warning: exported method Spliter.RawTransform should have comment or be unexported (golint)
    • Line 47: warning: exported method Spliter.Transform should have comment or be unexported (golint)
    • Line 109: warning: exported method Spliter.Description should have comment or be unexported (golint)
    • Line 114: warning: exported method Spliter.Type should have comment or be unexported (golint)
    • Line 118: warning: exported method Spliter.SampleConfig should have comment or be unexported (golint)
    • Line 127: warning: exported method Spliter.ConfigOptions should have comment or be unexported (golint)
    • Line 154: warning: exported method Spliter.Stage should have comment or be unexported (golint)
    • Line 158: warning: exported method Spliter.Stats should have comment or be unexported (golint)
    • Line 162: warning: exported method Spliter.SetStats should have comment or be unexported (golint)
    • logkit/parser/empty/empty.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 7: warning: should not use dot imports (golint)
    • Line 14: warning: exported type Parser should have comment or be unexported (golint)
    • Line 18: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 25: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • logkit/reader/utils.go
    • Line 21: warning: exported var ErrStopped should have comment or be unexported (golint)
    • Line 22: warning: exported var ErrNoFileChosen should have comment or be unexported (golint)
    • Line 23: warning: exported var ErrMetaFileRead should have comment or be unexported (golint)
    • Line 24: warning: exported var ErrFileNotRegular should have comment or be unexported (golint)
    • Line 25: warning: exported var ErrFileNotDir should have comment or be unexported (golint)
    • Line 27: warning: exported var WaitNoSuchFile should have comment or be unexported (golint)
    • Line 76: warning: exported function AndCondition should have comment or be unexported (golint)
    • Line 82: warning: exported function OrCondition should have comment or be unexported (golint)
    • Line 88: warning: exported function NotCondition should have comment or be unexported (golint)
    • Line 94: warning: exported function HeadPatternMode should have comment or be unexported (golint)
    • Line 121: warning: exported function ParseLoopDuration should have comment or be unexported (golint)
    • Line 146: warning: exported function CompressedFile should have comment or be unexported (golint)
    • Line 187: warning: exported type RunTime should have comment or be unexported (golint)
    • Line 192: warning: exported method RunTime.Equal should have comment or be unexported (golint)
    • Line 196: warning: exported method RunTime.GreaterThanStart should have comment or be unexported (golint)
    • Line 200: warning: exported method RunTime.LessThanEnd should have comment or be unexported (golint)
    • Line 208: warning: exported function ParseRunTime should have comment or be unexported (golint)
    • Line 238: warning: exported function ParseTime should have comment or be unexported (golint)
    • Line 262: warning: exported function ParseNumber should have comment or be unexported (golint)
    • Line 274: warning: exported function InRunTime should have comment or be unexported (golint)
    • Line 298: warning: exported function ParseRunTimeWithMode should have comment or be unexported (golint)
    • logkit/metric/system/disk.go
    • Line 13: warning: should not use dot imports (golint)
    • Line 17: warning: exported const TypeMetricDisk should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported const KeyDiskPath should be of the form "KeyDiskPath ..." (golint)
    • Line 32: warning: comment on exported const ConfigDiskIgnoreFs should be of the form "ConfigDiskIgnoreFs ..." (golint)
    • Line 59: warning: exported type DiskStats should have comment or be unexported (golint)
    • Line 66: warning: exported method DiskStats.Name should have comment or be unexported (golint)
    • Line 70: warning: exported method DiskStats.Usages should have comment or be unexported (golint)
    • Line 74: warning: exported method DiskStats.Tags should have comment or be unexported (golint)
    • Line 78: warning: exported method DiskStats.Config should have comment or be unexported (golint)
    • Line 98: warning: exported method DiskStats.Collect should have comment or be unexported (golint)
    • Line 133: warning: exported const TypeMetricDiskio should have comment (or a comment on this block) or be unexported (golint)
    • Line 136: warning: comment on exported const KeyDiskioReads should be of the form "KeyDiskioReads ..." (golint)
    • Line 160: warning: comment on exported const ConfigDiskioDevices should be of the form "ConfigDiskioDevices ..." (golint)
    • Line 201: warning: exported type DiskioCollectInfo should have comment or be unexported (golint)
    • Line 214: warning: exported type DiskIOStats should have comment or be unexported (golint)
    • Line 226: warning: exported method DiskIOStats.Name should have comment or be unexported (golint)
    • Line 230: warning: exported method DiskIOStats.Usages should have comment or be unexported (golint)
    • Line 234: warning: exported method DiskIOStats.Tags should have comment or be unexported (golint)
    • Line 238: warning: exported method DiskIOStats.Config should have comment or be unexported (golint)
    • Line 270: warning: exported method DiskIOStats.Collect should have comment or be unexported (golint)
    • logkit/transforms/mutate/case.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 13: warning: exported const ModeUpper should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported var OptionCaseKey should have comment or be unexported (golint)
    • Line 47: warning: exported type Case should have comment or be unexported (golint)
    • Line 57: warning: exported method Case.Init should have comment or be unexported (golint)
    • Line 67: warning: exported method Case.Description should have comment or be unexported (golint)
    • Line 71: warning: exported method Case.SampleConfig should have comment or be unexported (golint)
    • Line 79: warning: exported method Case.ConfigOptions should have comment or be unexported (golint)
    • Line 87: warning: exported method Case.Type should have comment or be unexported (golint)
    • Line 91: warning: exported method Case.RawTransform should have comment or be unexported (golint)
    • Line 148: warning: exported method Case.Stage should have comment or be unexported (golint)
    • Line 155: warning: exported method Case.Stats should have comment or be unexported (golint)
    • Line 159: warning: exported method Case.SetStats should have comment or be unexported (golint)
    • Line 164: warning: exported method Case.Transform should have comment or be unexported (golint)
    • logkit/metric/system/utils/pgrep.go
    • Line 11: warning: exported type PID should have comment or be unexported (golint)
    • Line 13: warning: exported var ExecCommand should have comment or be unexported (golint)
    • Line 15: warning: exported type PIDFinder should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type Pgrep should be of the form "Pgrep ..." (with optional leading article) (golint)
    • Line 27: warning: exported function NewPgrep should have comment or be unexported (golint)
    • Line 35: warning: exported method Pgrep.PidFile should have comment or be unexported (golint)
    • Line 50: warning: exported method Pgrep.Pattern should have comment or be unexported (golint)
    • Line 55: warning: exported method Pgrep.Uid should have comment or be unexported (golint)
    • Line 60: warning: exported method Pgrep.FullPattern should have comment or be unexported (golint)
    • Line 81: warning: exported function ParseOutput should have comment or be unexported (golint)
    • logkit/cli/upgrade.go
    • Line 18: warning: should not use dot imports (golint)
    • Line 23: warning: exported const Logkit should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: comment on exported var LatestVersionUrl should be of the form "LatestVersionUrl ..." (golint)
    • Line 38: warning: exported type ReleaseInfo should have comment or be unexported (golint)
    • Line 50: warning: exported type CliVersion should have comment or be unexported (golint)
    • Line 301: warning: exported function CheckAndUpgrade should have comment or be unexported (golint)
    • logkit/router/sender_router.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 14: warning: comment on exported const RouterKeyName should be of the form "RouterKeyName ..." (golint)
    • Line 16: warning: exported const RouterMatchType should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported const RouterDefaultIndex should be of the form "RouterDefaultIndex ..." (golint)
    • Line 26: warning: exported type RouterConfig should have comment or be unexported (golint)
    • Line 33: warning: exported type Router should have comment or be unexported (golint)
    • Line 40: warning: exported method Router.GetSenderIndex should have comment or be unexported (golint)
    • Line 51: warning: exported function NewSenderRouter should have comment or be unexported (golint)
    • Line 89: warning: exported type MatchType should have comment or be unexported (golint)
    • Line 91: warning: exported var MatchTypeRegistry should have comment or be unexported (golint)
    • Line 120: warning: comment on exported type MTypeEqual should be of the form "MTypeEqual ..." (with optional leading article) (golint)
    • Line 138: warning: comment on exported type MTypeContains should be of the form "MTypeContains ..." (with optional leading article) (golint)
    • logkit/transforms/ua/ua.go
    • Line 15: warning: should not use dot imports (golint)
    • Line 18: warning: exported const Name should have comment or be unexported (golint)
    • Line 47: warning: exported method UATransformer.Init should have comment or be unexported (golint)
    • Line 71: warning: exported method UATransformer.RawTransform should have comment or be unexported (golint)
    • Line 126: warning: exported method UATransformer.Transform should have comment or be unexported (golint)
    • Line 184: warning: exported method UATransformer.Description should have comment or be unexported (golint)
    • Line 189: warning: exported method UATransformer.Type should have comment or be unexported (golint)
    • Line 193: warning: exported method UATransformer.SampleConfig should have comment or be unexported (golint)
    • Line 201: warning: exported method UATransformer.ConfigOptions should have comment or be unexported (golint)
    • Line 257: warning: exported method UATransformer.Stage should have comment or be unexported (golint)
    • Line 261: warning: exported method UATransformer.Stats should have comment or be unexported (golint)
    • Line 265: warning: exported method UATransformer.SetStats should have comment or be unexported (golint)
    • logkit/sender/config/config.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 28: warning: exported var OptionSaveLogPath should have comment or be unexported (golint)
    • Line 178: warning: exported var ModeKeyOptions should have comment or be unexported (golint)
    • logkit/transforms/mutate/copy.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 21: warning: exported type Copy should have comment or be unexported (golint)
    • Line 33: warning: exported method Copy.Init should have comment or be unexported (golint)
    • Line 44: warning: exported method Copy.RawTransform should have comment or be unexported (golint)
    • Line 48: warning: exported method Copy.Transform should have comment or be unexported (golint)
    • Line 105: warning: exported method Copy.Description should have comment or be unexported (golint)
    • Line 110: warning: exported method Copy.Type should have comment or be unexported (golint)
    • Line 114: warning: exported method Copy.SampleConfig should have comment or be unexported (golint)
    • Line 123: warning: exported method Copy.ConfigOptions should have comment or be unexported (golint)
    • Line 131: warning: exported method Copy.Stage should have comment or be unexported (golint)
    • Line 135: warning: exported method Copy.Stats should have comment or be unexported (golint)
    • Line 139: warning: exported method Copy.SetStats should have comment or be unexported (golint)
    • logkit/transforms/mutate/discard.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 17: warning: exported type Discarder should have comment or be unexported (golint)
    • Line 27: warning: exported method Discarder.Init should have comment or be unexported (golint)
    • Line 42: warning: exported method Discarder.RawTransform should have comment or be unexported (golint)
    • Line 58: warning: exported method Discarder.Transform should have comment or be unexported (golint)
    • Line 72: warning: exported method Discarder.Description should have comment or be unexported (golint)
    • Line 77: warning: exported method Discarder.Type should have comment or be unexported (golint)
    • Line 81: warning: exported method Discarder.SampleConfig should have comment or be unexported (golint)
    • Line 89: warning: exported method Discarder.ConfigOptions should have comment or be unexported (golint)
    • Line 95: warning: exported method Discarder.Stage should have comment or be unexported (golint)
    • Line 102: warning: exported method Discarder.Stats should have comment or be unexported (golint)
    • Line 106: warning: exported method Discarder.SetStats should have comment or be unexported (golint)
    • logkit/parser/json/json.go
    • Line 15: warning: should not use dot imports (golint)
    • Line 16: warning: should not use dot imports (golint)
    • Line 25: warning: exported type Parser should have comment or be unexported (golint)
    • Line 34: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 61: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 65: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 69: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • logkit/parser/qiniu/qiniu.go
    • Line 12: warning: should not use dot imports (golint)
    • Line 14: warning: should not use dot imports (golint)
    • Line 22: warning: exported const LogHeadPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const LogFilePattern should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported type Parser should have comment or be unexported (golint)
    • Line 69: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 105: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 109: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 113: warning: exported method Parser.GetParser should have comment or be unexported (golint)
    • Line 348: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • logkit/metric/system/procstat.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 28: warning: exported const TypeMetricProcstat should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: comment on exported const KeyProcstatProcessName should be of the form "KeyProcstatProcessName ..." (golint)
    • Line 95: warning: exported const GoOSMac should have comment (or a comment on this block) or be unexported (golint)
    • Line 114: warning: exported type ProcessInfo should have comment or be unexported (golint)
    • Line 121: warning: comment on exported method ProcessInfo.Name should be of the form "Name ..." (golint)
    • Line 127: warning: exported type Procstat should have comment or be unexported (golint)
    • Line 166: warning: exported const MemRelated should have comment (or a comment on this block) or be unexported (golint)
    • Line 350: warning: exported method Procstat.Name should have comment or be unexported (golint)
    • Line 354: warning: exported method Procstat.Usages should have comment or be unexported (golint)
    • Line 358: warning: exported method Procstat.Config should have comment or be unexported (golint)
    • Line 372: warning: exported method Procstat.SyncConfig should have comment or be unexported (golint)
    • Line 401: warning: exported method Procstat.Tags should have comment or be unexported (golint)
    • Line 405: warning: exported method Procstat.Collect should have comment or be unexported (golint)
    • Line 830: warning: exported method Procstat.PCpuTop10 should have comment or be unexported (golint)
    • Line 844: warning: exported method Procstat.PMemTop10 should have comment or be unexported (golint)
    • Line 857: warning: exported method Procstat.SupervisordStat should have comment or be unexported (golint)
    • Line 1004: warning: exported function NewCreator should have comment or be unexported (golint)
    • logkit/sender/discard/discard.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 7: warning: should not use dot imports (golint)
    • Line 12: warning: comment on exported type Sender should be of the form "Sender ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 37: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 42: warning: exported method Sender.Close should have comment or be unexported (golint)
    • Line 45: warning: exported method Sender.SendCount should have comment or be unexported (golint)
    • Line 49: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • logkit/transforms/mutate/urlconvert.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 13: warning: exported const ModeDecode should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var OptionURLMode should have comment or be unexported (golint)
    • Line 33: warning: exported type URLConvert should have comment or be unexported (golint)
    • Line 43: warning: exported method URLConvert.Init should have comment or be unexported (golint)
    • Line 53: warning: exported method URLConvert.Description should have comment or be unexported (golint)
    • Line 57: warning: exported method URLConvert.SampleConfig should have comment or be unexported (golint)
    • Line 65: warning: exported method URLConvert.ConfigOptions should have comment or be unexported (golint)
    • Line 73: warning: exported method URLConvert.Type should have comment or be unexported (golint)
    • Line 77: warning: exported method URLConvert.RawTransform should have comment or be unexported (golint)
    • Line 134: warning: exported method URLConvert.Stage should have comment or be unexported (golint)
    • Line 141: warning: exported method URLConvert.Stats should have comment or be unexported (golint)
    • Line 145: warning: exported method URLConvert.SetStats should have comment or be unexported (golint)
    • Line 150: warning: exported method URLConvert.Transform should have comment or be unexported (golint)
    • logkit/mgr/api_reader.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 10: warning: should not use dot imports (golint)
    • Line 15: warning: comment on exported method RestService.GetReaderUsages should be of the form "GetReaderUsages ..." (golint)
    • Line 23: warning: comment on exported method RestService.GetReaderTooltips should be of the form "GetReaderTooltips ..." (golint)
    • Line 31: warning: comment on exported method RestService.GetReaderKeyOptions should be of the form "GetReaderKeyOptions ..." (golint)
    • Line 38: warning: comment on exported method RestService.PostRead should be of the form "PostRead ..." (golint)
    • Line 54: warning: comment on exported method RestService.PostReaderCheck should be of the form "PostReaderCheck ..." (golint)
    • logkit/mgr/runner.go
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 29: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 31: warning: should not use dot imports (golint)
    • Line 34: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 40: warning: should not use dot imports (golint)
    • Line 43: warning: exported type CleanInfo should have comment or be unexported (golint)
    • Line 49: warning: exported const SpeedUp should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported type Runner should have comment or be unexported (golint)
    • Line 65: warning: exported type RunnerErrors should have comment or be unexported (golint)
    • Line 69: warning: exported type TokenRefreshable should have comment or be unexported (golint)
    • Line 73: warning: exported type StatusPersistable should have comment or be unexported (golint)
    • Line 84: warning: exported type LogExportRunner should have comment or be unexported (golint)
    • Line 119: warning: exported function NewCustomRunner should have comment or be unexported (golint)
    • Line 136: warning: exported function NewRunnerWithService should have comment or be unexported (golint)
    • Line 141: warning: exported function NewLogExportRunnerWithService should have comment or be unexported (golint)
    • Line 210: warning: exported function NewLogExportRunner should have comment or be unexported (golint)
    • Line 912: warning: exported method LogExportRunner.Run should have comment or be unexported (golint)
    • Line 1192: warning: exported method LogExportRunner.Name should have comment or be unexported (golint)
    • Line 1196: warning: exported method LogExportRunner.Reset should have comment or be unexported (golint)
    • Line 1221: warning: exported method LogExportRunner.Delete should have comment or be unexported (golint)
    • Line 1225: warning: exported method LogExportRunner.Cleaner should have comment or be unexported (golint)
    • Line 1235: warning: exported method LogExportRunner.LagStats should have comment or be unexported (golint)
    • Line 1255: warning: exported method LogExportRunner.GetErrors should have comment or be unexported (golint)
    • Line 1274: warning: exported method LogExportRunner.Status should have comment or be unexported (golint)
    • Line 1397: warning: exported method LogExportRunner.TokenRefresh should have comment or be unexported (golint)
    • Line 1591: warning: exported function MergeExtraInfoTags should have comment or be unexported (golint)
    • logkit/transforms/mutate/script.go
    • Line 16: warning: should not use dot imports (golint)
    • Line 41: warning: exported method Script.Init should have comment or be unexported (golint)
    • Line 97: warning: exported method Script.Transform should have comment or be unexported (golint)
    • Line 177: warning: exported method Script.RawTransform should have comment or be unexported (golint)
    • Line 181: warning: exported method Script.Description should have comment or be unexported (golint)
    • Line 186: warning: exported method Script.Type should have comment or be unexported (golint)
    • Line 190: warning: exported method Script.SampleConfig should have comment or be unexported (golint)
    • Line 198: warning: exported method Script.ConfigOptions should have comment or be unexported (golint)
    • Line 232: warning: exported method Script.Stage should have comment or be unexported (golint)
    • Line 236: warning: exported method Script.Stats should have comment or be unexported (golint)
    • Line 240: warning: exported method Script.SetStats should have comment or be unexported (golint)
    • logkit/sender/influxdb/influxdb.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 22: warning: should not use dot imports (golint)
    • Line 48: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 106: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 110: warning: exported method Sender.Close should have comment or be unexported (golint)
    • Line 114: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 166: warning: exported function CreateInfluxdbDatabase should have comment or be unexported (golint)
    • Line 172: warning: exported function CreateInfluxdbRetention should have comment or be unexported (golint)
    • Line 256: warning: exported type Point should have comment or be unexported (golint)
    • Line 263: warning: exported type Points should have comment or be unexported (golint)
    • Line 265: warning: exported method Points.Buffer should have comment or be unexported (golint)
    • Line 277: warning: exported type Tags should have comment or be unexported (golint)
    • Line 333: warning: exported method Point.Key should have comment or be unexported (golint)
    • Line 337: warning: exported method Point.GetFields should have comment or be unexported (golint)
    • Line 496: warning: exported var Codes should have comment or be unexported (golint)
    • Line 512: warning: exported function UnescapeString should have comment or be unexported (golint)
    • Line 519: warning: exported function String should have comment or be unexported (golint)
    • Line 526: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • logkit/transforms/aws/cloudtrail.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 20: warning: exported type CloudTrail should have comment or be unexported (golint)
    • Line 25: warning: exported method CloudTrail.Init should have comment or be unexported (golint)
    • Line 34: warning: exported method CloudTrail.RawTransform should have comment or be unexported (golint)
    • Line 38: warning: exported method CloudTrail.Transform should have comment or be unexported (golint)
    • Line 151: warning: exported function AddExtraField should have comment or be unexported (golint)
    • Line 161: warning: exported method CloudTrail.Description should have comment or be unexported (golint)
    • Line 166: warning: exported method CloudTrail.Type should have comment or be unexported (golint)
    • Line 170: warning: exported method CloudTrail.SampleConfig should have comment or be unexported (golint)
    • Line 176: warning: exported method CloudTrail.ConfigOptions should have comment or be unexported (golint)
    • Line 180: warning: exported method CloudTrail.Stage should have comment or be unexported (golint)
    • Line 184: warning: exported method CloudTrail.Stats should have comment or be unexported (golint)
    • Line 188: warning: exported method CloudTrail.SetStats should have comment or be unexported (golint)
    • logkit/transforms/mutate/pick.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 11: warning: exported const TYPE should have comment or be unexported (golint)
    • Line 19: warning: exported type Pick should have comment or be unexported (golint)
    • Line 28: warning: exported method Pick.Init should have comment or be unexported (golint)
    • Line 38: warning: exported method Pick.RawTransform should have comment or be unexported (golint)
    • Line 50: warning: exported method Pick.Transform should have comment or be unexported (golint)
    • Line 115: warning: exported method Pick.Description should have comment or be unexported (golint)
    • Line 120: warning: exported method Pick.Type should have comment or be unexported (golint)
    • Line 124: warning: exported method Pick.SampleConfig should have comment or be unexported (golint)
    • Line 132: warning: exported method Pick.ConfigOptions should have comment or be unexported (golint)
    • Line 138: warning: exported method Pick.Stage should have comment or be unexported (golint)
    • Line 145: warning: exported method Pick.Stats should have comment or be unexported (golint)
    • Line 149: warning: exported method Pick.SetStats should have comment or be unexported (golint)
    • logkit/transforms/mutate/rename.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 16: warning: exported type Rename should have comment or be unexported (golint)
    • Line 27: warning: exported method Rename.Init should have comment or be unexported (golint)
    • Line 40: warning: exported method Rename.RawTransform should have comment or be unexported (golint)
    • Line 44: warning: exported method Rename.Transform should have comment or be unexported (golint)
    • Line 70: warning: exported method Rename.Description should have comment or be unexported (golint)
    • Line 75: warning: exported method Rename.Type should have comment or be unexported (golint)
    • Line 79: warning: exported method Rename.SampleConfig should have comment or be unexported (golint)
    • Line 87: warning: exported method Rename.ConfigOptions should have comment or be unexported (golint)
    • Line 94: warning: exported method Rename.Stage should have comment or be unexported (golint)
    • Line 98: warning: exported method Rename.Stats should have comment or be unexported (golint)
    • Line 102: warning: exported method Rename.SetStats should have comment or be unexported (golint)
    • logkit/reader/redis/redis.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 18: warning: should not use dot imports (golint)
    • Line 31: warning: exported type Reader should have comment or be unexported (golint)
    • Line 56: warning: exported type Options should have comment or be unexported (golint)
    • Line 69: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 129: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 133: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 265: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 306: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 310: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 324: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 330: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 332: warning: exported method Reader.Close should have comment or be unexported (golint)
    • logkit/reader/singlefile/singlefile.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 25: warning: exported type SingleFile should have comment or be unexported (golint)
    • Line 41: warning: exported function NewSingleFile should have comment or be unexported (golint)
    • Line 206: warning: exported method SingleFile.Name should have comment or be unexported (golint)
    • Line 210: warning: exported method SingleFile.Source should have comment or be unexported (golint)
    • Line 214: warning: exported method SingleFile.Close should have comment or be unexported (golint)
    • Line 263: warning: exported method SingleFile.Reopen should have comment or be unexported (golint)
    • Line 379: warning: exported method SingleFile.SyncMeta should have comment or be unexported (golint)
    • Line 392: warning: exported method SingleFile.Lag should have comment or be unexported (golint)
    • logkit/transforms/rest_transforms_models.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 12: warning: exported const General should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported function GetTransformerUsages should have comment or be unexported (golint)
    • Line 31: warning: exported function GetTransformerOptions should have comment or be unexported (golint)
    • Line 40: warning: exported function SetStatsInfo should have comment or be unexported (golint)
    • Line 51: warning: exported function SetError should have comment or be unexported (golint)
    • logkit/transforms/mutate/xml.go
    • Line 12: warning: should not use dot imports (golint)
    • Line 21: warning: exported type Xml should have comment or be unexported (golint)
    • Line 38: warning: exported method Xml.Init should have comment or be unexported (golint)
    • Line 67: warning: exported method Xml.Transform should have comment or be unexported (golint)
    • Line 128: warning: exported method Xml.RawTransform should have comment or be unexported (golint)
    • Line 136: warning: exported method Xml.Description should have comment or be unexported (golint)
    • Line 141: warning: exported method Xml.Type should have comment or be unexported (golint)
    • Line 145: warning: exported method Xml.SampleConfig should have comment or be unexported (golint)
    • Line 154: warning: exported method Xml.ConfigOptions should have comment or be unexported (golint)
    • Line 185: warning: exported method Xml.Stage should have comment or be unexported (golint)
    • Line 189: warning: exported method Xml.Stats should have comment or be unexported (golint)
    • Line 193: warning: exported method Xml.SetStats should have comment or be unexported (golint)
    • logkit/utils/mongo.go
    • Line 19: warning: exported type MongoConfig should have comment or be unexported (golint)
    • Line 27: warning: exported type Collection should have comment or be unexported (golint)
    • Line 31: warning: exported method Collection.CloseSession should have comment or be unexported (golint)
    • Line 36: warning: comment on exported function MongoDail should be of the form "MongoDail ..." (golint)
    • Line 53: warning: exported function SetMode should have comment or be unexported (golint)
    • logkit/mgr/api_transformer.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 12: warning: comment on exported method RestService.GetTransformerUsages should be of the form "GetTransformerUsages ..." (golint)
    • Line 19: warning: comment on exported method RestService.GetTransformerOptions should be of the form "GetTransformerOptions ..." (golint)
    • Line 26: warning: comment on exported method RestService.GetTransformerSampleConfigs should be of the form "GetTransformerSampleConfigs ..." (golint)
    • Line 38: warning: comment on exported method RestService.PostTransform should be of the form "PostTransform ..." (golint)
    • Line 59: warning: comment on exported method RestService.PostTransformerCheck should be of the form "PostTransformerCheck ..." (golint)
    • logkit/transforms/mutate/substring.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 11: warning: exported const KeySubStart should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported var OptionSubStart should have comment or be unexported (golint)
    • Line 46: warning: exported type Sub should have comment or be unexported (golint)
    • Line 60: warning: exported method Sub.Init should have comment or be unexported (golint)
    • Line 78: warning: exported method Sub.Description should have comment or be unexported (golint)
    • Line 82: warning: exported method Sub.SampleConfig should have comment or be unexported (golint)
    • Line 91: warning: exported method Sub.ConfigOptions should have comment or be unexported (golint)
    • Line 101: warning: exported method Sub.Type should have comment or be unexported (golint)
    • Line 105: warning: exported method Sub.RawTransform should have comment or be unexported (golint)
    • Line 128: warning: exported method Sub.Stage should have comment or be unexported (golint)
    • Line 135: warning: exported method Sub.Stats should have comment or be unexported (golint)
    • Line 139: warning: exported method Sub.SetStats should have comment or be unexported (golint)
    • Line 144: warning: exported method Sub.Transform should have comment or be unexported (golint)
    • logkit/parser/parser.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 11: warning: should not use dot imports (golint)
    • Line 14: warning: exported type Parser should have comment or be unexported (golint)
    • Line 20: warning: exported type ServerParser should have comment or be unexported (golint)
    • Line 24: warning: exported type ParserType should have comment or be unexported (golint)
    • Line 28: warning: exported type Flushable should have comment or be unexported (golint)
    • Line 32: warning: exported type ParseInfo should have comment or be unexported (golint)
    • Line 37: warning: exported type ParseResult should have comment or be unexported (golint)
    • Line 45: warning: exported type ParseResultSlice should have comment or be unexported (golint)
    • Line 59: warning: exported type Constructor should have comment or be unexported (golint)
    • Line 69: warning: exported type Registry should have comment or be unexported (golint)
    • Line 73: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 85: warning: exported method Registry.RegisterParser should have comment or be unexported (golint)
    • Line 94: warning: exported method Registry.NewLogParser should have comment or be unexported (golint)
    • Line 106: warning: exported function ParseLine should have comment or be unexported (golint)
    • Line 132: warning: exported function ParseLineDataSlice should have comment or be unexported (golint)
    • logkit/reader/bufreader/linecache.go
    • Line 7: warning: exported type LineCache should have comment or be unexported (golint)
    • Line 12: warning: exported function NewLineCache should have comment or be unexported (golint)
    • Line 19: warning: exported method LineCache.Size should have comment or be unexported (golint)
    • Line 25: warning: exported method LineCache.Set should have comment or be unexported (golint)
    • Line 31: warning: exported method LineCache.Append should have comment or be unexported (golint)
    • Line 37: warning: exported method LineCache.TotalLen should have comment or be unexported (golint)
    • Line 47: warning: exported method LineCache.Combine should have comment or be unexported (golint)
    • logkit/metric/system/mock_PS.go
    • Line 14: warning: exported type MockPS should have comment or be unexported (golint)
    • Line 19: warning: exported type MockPSDisk should have comment or be unexported (golint)
    • Line 28: warning: exported method MockPS.LoadAvg should have comment or be unexported (golint)
    • Line 37: warning: exported method MockPS.CPUTimes should have comment or be unexported (golint)
    • Line 46: warning: exported method MockPS.DiskUsage should have comment or be unexported (golint)
    • Line 56: warning: exported method MockPS.NetIO should have comment or be unexported (golint)
    • Line 65: warning: exported method MockPS.NetProto should have comment or be unexported (golint)
    • Line 74: warning: exported method MockPS.DiskIO should have comment or be unexported (golint)
    • Line 83: warning: exported method MockPS.VMStat should have comment or be unexported (golint)
    • Line 92: warning: exported method MockPS.SwapStat should have comment or be unexported (golint)
    • Line 101: warning: exported method MockPS.NetConnections should have comment or be unexported (golint)
    • logkit/reader/mysql/mysql.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 23: warning: should not use dot imports (golint)
    • Line 37: warning: exported var MysqlSystemDB should have comment or be unexported (golint)
    • Line 39: warning: exported const MysqlTimeFormat should have comment or be unexported (golint)
    • Line 45: warning: exported type MysqlReader should have comment or be unexported (golint)
    • Line 116: warning: exported function NewMysqlReader should have comment or be unexported (golint)
    • Line 324: warning: exported method MysqlReader.Name should have comment or be unexported (golint)
    • Line 328: warning: exported method MysqlReader.SetMode should have comment or be unexported (golint)
    • Line 350: warning: exported method MysqlReader.Start should have comment or be unexported (golint)
    • Line 386: warning: exported method MysqlReader.Source should have comment or be unexported (golint)
    • Line 391: warning: exported method MysqlReader.ReadLine should have comment or be unexported (golint)
    • Line 395: warning: exported method MysqlReader.ReadData should have comment or be unexported (golint)
    • Line 409: warning: exported method MysqlReader.Status should have comment or be unexported (golint)
    • Line 485: warning: exported method MysqlReader.Close should have comment or be unexported (golint)
    • Line 791: 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 1054: warning: exported method MysqlReader.Lag should have comment or be unexported (golint)
    • logkit/sender/sqlfile/sqlfile.go
    • Line 19: warning: should not use dot imports (golint)
    • Line 154: warning: exported type Sender should have comment or be unexported (golint)
    • Line 161: warning: exported function NewSender should have comment or be unexported (golint)
    • Line 186: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 191: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 195: warning: exported method Sender.Close should have comment or be unexported (golint)
    • logkit/transforms/mutate/label.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 17: warning: exported type Label should have comment or be unexported (golint)
    • Line 28: warning: exported method Label.Init should have comment or be unexported (golint)
    • Line 38: warning: exported method Label.RawTransform should have comment or be unexported (golint)
    • Line 42: warning: exported method Label.Transform should have comment or be unexported (golint)
    • Line 99: warning: exported method Label.Description should have comment or be unexported (golint)
    • Line 104: warning: exported method Label.Type should have comment or be unexported (golint)
    • Line 108: warning: exported method Label.SampleConfig should have comment or be unexported (golint)
    • Line 117: warning: exported method Label.ConfigOptions should have comment or be unexported (golint)
    • Line 132: warning: exported method Label.Stage should have comment or be unexported (golint)
    • Line 136: warning: exported method Label.Stats should have comment or be unexported (golint)
    • Line 140: warning: exported method Label.SetStats should have comment or be unexported (golint)
    • logkit/queue/proto.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 36: warning: exported const FromNone should have comment (or a comment on this block) or be unexported (golint)
    • logkit/reader/seqfile/seqfile.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 108: warning: exported function NewSeqFile should have comment or be unexported (golint)
    • Line 235: warning: exported method SeqFile.Name should have comment or be unexported (golint)
    • Line 239: warning: exported method SeqFile.Source should have comment or be unexported (golint)
    • Line 243: warning: exported method SeqFile.Close should have comment or be unexported (golint)
    • Line 299: warning: exported method SeqFile.NewSourceIndex should have comment or be unexported (golint)
    • Line 657: warning: exported method SeqFile.SyncMeta should have comment or be unexported (golint)
    • Line 669: warning: exported method SeqFile.Lag should have comment or be unexported (golint)
    • Line 706: warning: exported method SeqFile.IsNewOpen should have comment or be unexported (golint)
    • Line 713: warning: exported method SeqFile.SetSkipped should have comment or be unexported (golint)
    • Line 717: warning: exported type LineSkipper should have comment or be unexported (golint)
    • logkit/reader/postgres/time.go
    • Line 9: warning: exported var PostgresTimeFormat should have comment or be unexported (golint)
    • Line 11: warning: exported const PgtimeFormat should have comment or be unexported (golint)
    • Line 13: warning: exported function ParsePostgresDatetime should have comment or be unexported (golint)
    • logkit/sender/http/http.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 22: warning: should not use dot imports (golint)
    • Line 27: warning: exported type Sender should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 98: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 102: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 127: warning: exported method Sender.Close should have comment or be unexported (golint)
    • Line 134: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 308: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • logkit/rateio/reader.go
    • Line 10: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 20: warning: exported function NewRateReader should have comment or be unexported (golint)
    • logkit/metric/system/memory.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 11: warning: exported const TypeMetricMem should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported const KeyMemTotal should be of the form "KeyMemTotal ..." (golint)
    • Line 41: warning: exported type MemStats should have comment or be unexported (golint)
    • Line 45: warning: exported method MemStats.Name should have comment or be unexported (golint)
    • Line 49: warning: exported method MemStats.Usages should have comment or be unexported (golint)
    • Line 53: warning: exported method MemStats.Tags should have comment or be unexported (golint)
    • Line 57: warning: exported method MemStats.Config should have comment or be unexported (golint)
    • Line 65: warning: exported method MemStats.Collect should have comment or be unexported (golint)
    • Line 88: warning: exported const TypeMetricSwap should have comment (or a comment on this block) or be unexported (golint)
    • Line 91: warning: comment on exported const KeySwapTotal should be of the form "KeySwapTotal ..." (golint)
    • Line 110: warning: exported type SwapStats should have comment or be unexported (golint)
    • Line 114: warning: exported method SwapStats.Name should have comment or be unexported (golint)
    • Line 118: warning: exported method SwapStats.Usages should have comment or be unexported (golint)
    • Line 122: warning: exported method SwapStats.Tags should have comment or be unexported (golint)
    • Line 126: warning: exported method SwapStats.Config should have comment or be unexported (golint)
    • Line 134: warning: exported method SwapStats.Collect should have comment or be unexported (golint)
    • logkit/reader/config/models.go
    • Line 3: warning: exported var DefaultIgnoreFileSuffixes should have comment or be unexported (golint)
    • Line 236: warning: exported const SocketRulePacket should have comment (or a comment on this block) or be unexported (golint)
    • Line 347: warning: exported const ReadModeHeadPatternString should have comment (or a comment on this block) or be unexported (golint)
    • Line 361: warning: exported const Loop should have comment (or a comment on this block) or be unexported (golint)
    • Line 365: warning: exported const StatusInit should have comment (or a comment on this block) or be unexported (golint)
    • logkit/metric/system/netstat.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 12: warning: exported const TypeMetricNetstat should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported const KeyNetstatTcpEstablished should be of the form "KeyNetstatTcpEstablished ..." (golint)
    • Line 48: warning: exported type NetStats should have comment or be unexported (golint)
    • Line 52: warning: exported method NetStats.Name should have comment or be unexported (golint)
    • Line 56: warning: exported method NetStats.Usages should have comment or be unexported (golint)
    • Line 60: warning: exported method NetStats.Tags should have comment or be unexported (golint)
    • Line 64: warning: exported method NetStats.Config should have comment or be unexported (golint)
    • Line 72: warning: exported method NetStats.Collect should have comment or be unexported (golint)
    • logkit/utils/parse/syslog/syslog.go
    • Line 15: warning: exported const DetectedRFC3164 should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported const TypeRFC3164 should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var MessageFacilities should have comment or be unexported (golint)
    • Line 54: warning: exported var MessageSeverities should have comment or be unexported (golint)
    • Line 65: warning: exported type Parser should have comment or be unexported (golint)
    • Line 72: warning: exported type Format should have comment or be unexported (golint)
    • Line 94: warning: exported function DetectType should have comment or be unexported (golint)
    • Line 121: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 128: warning: exported function GetFormat should have comment or be unexported (golint)
    • Line 140: warning: exported type RFC6587 should have comment or be unexported (golint)
    • Line 142: warning: exported method RFC6587.GetParser should have comment or be unexported (golint)
    • Line 146: warning: exported method RFC6587.IsNewLine should have comment or be unexported (golint)
    • Line 162: warning: exported type RFC5424 should have comment or be unexported (golint)
    • Line 164: warning: exported method RFC5424.GetParser should have comment or be unexported (golint)
    • Line 168: warning: exported method RFC5424.IsNewLine should have comment or be unexported (golint)
    • Line 189: warning: exported type RFC3164 should have comment or be unexported (golint)
    • Line 193: warning: exported method RFC3164.GetParser should have comment or be unexported (golint)
    • Line 197: warning: exported method RFC3164.WithOption should have comment or be unexported (golint)
    • Line 200: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 205: warning: exported method RFC3164.Apply should have comment or be unexported (golint)
    • Line 209: warning: exported method RFC3164.IsNewLine should have comment or be unexported (golint)
    • Line 225: warning: exported type Automatic should have comment or be unexported (golint)
    • Line 229: warning: exported method Automatic.GetParser should have comment or be unexported (golint)
    • Line 246: warning: exported method Automatic.IsNewLine should have comment or be unexported (golint)
    • logkit/transforms/mutate/trim.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 14: warning: exported const Prefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type Trim should have comment or be unexported (golint)
    • Line 36: warning: exported method Trim.Init should have comment or be unexported (golint)
    • Line 46: warning: exported method Trim.Transform should have comment or be unexported (golint)
    • Line 88: warning: exported method Trim.RawTransform should have comment or be unexported (golint)
    • Line 92: warning: exported method Trim.Description should have comment or be unexported (golint)
    • Line 96: warning: exported method Trim.Type should have comment or be unexported (golint)
    • Line 100: warning: exported method Trim.SampleConfig should have comment or be unexported (golint)
    • Line 109: warning: exported method Trim.ConfigOptions should have comment or be unexported (golint)
    • Line 135: warning: exported method Trim.Stage should have comment or be unexported (golint)
    • Line 139: warning: exported method Trim.Stats should have comment or be unexported (golint)
    • Line 143: warning: exported method Trim.SetStats should have comment or be unexported (golint)
    • logkit/sender/elasticsearch/elasticsearch.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 23: warning: should not use dot imports (golint)
    • Line 28: warning: comment on exported type Sender should be of the form "Sender ..." (with optional leading article) (golint)
    • Line 54: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 542: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • logkit/reader/sql/meta.go
    • Line 19: warning: exported function RestoreMeta should have comment or be unexported (golint)
    • Line 46: warning: exported function RestoreSqls should have comment or be unexported (golint)
    • Line 65: warning: exported function RestoreTimestampIntOffset should have comment or be unexported (golint)
    • Line 92: warning: exported function RestoreTimestampOffset should have comment or be unexported (golint)
    • Line 120: warning: exported function RestoreTimestampStrOffset should have comment or be unexported (golint)
    • Line 144: warning: exported function WriteCacheMap should have comment or be unexported (golint)
    • Line 166: warning: exported function WriteTimestampOffset should have comment or be unexported (golint)
    • logkit/transforms/ip/number2ip.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 19: warning: exported type Number2Ip should have comment or be unexported (golint)
    • Line 30: warning: exported method Number2Ip.Init should have comment or be unexported (golint)
    • Line 42: warning: exported method Number2Ip.Transform should have comment or be unexported (golint)
    • Line 99: warning: exported method Number2Ip.RawTransform should have comment or be unexported (golint)
    • Line 112: warning: exported method Number2Ip.Description should have comment or be unexported (golint)
    • Line 116: warning: exported method Number2Ip.Type should have comment or be unexported (golint)
    • Line 120: warning: exported method Number2Ip.SampleConfig should have comment or be unexported (golint)
    • Line 128: warning: exported method Number2Ip.ConfigOptions should have comment or be unexported (golint)
    • Line 135: warning: exported method Number2Ip.Stage should have comment or be unexported (golint)
    • Line 139: warning: exported method Number2Ip.Stats should have comment or be unexported (golint)
    • Line 143: warning: exported method Number2Ip.SetStats should have comment or be unexported (golint)
    • logkit/transforms/mutate/urlparam.go
    • Line 12: warning: should not use dot imports (golint)
    • Line 26: warning: exported type UrlParam should have comment or be unexported (golint)
    • Line 37: warning: exported method UrlParam.Init should have comment or be unexported (golint)
    • Line 118: warning: exported method UrlParam.RawTransform should have comment or be unexported (golint)
    • Line 122: warning: exported method UrlParam.Transform should have comment or be unexported (golint)
    • Line 177: warning: exported method UrlParam.Description should have comment or be unexported (golint)
    • Line 182: warning: exported method UrlParam.Type should have comment or be unexported (golint)
    • Line 186: warning: exported method UrlParam.SampleConfig should have comment or be unexported (golint)
    • Line 193: warning: exported method UrlParam.ConfigOptions should have comment or be unexported (golint)
    • Line 210: warning: exported method UrlParam.Stage should have comment or be unexported (golint)
    • Line 214: warning: exported method UrlParam.Stats should have comment or be unexported (golint)
    • Line 218: warning: exported method UrlParam.SetStats should have comment or be unexported (golint)
    • logkit/parser/linuxaudit/audit.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 9: warning: should not use dot imports (golint)
    • Line 13: warning: exported type Parser should have comment or be unexported (golint)
    • Line 24: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 40: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • Line 130: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 134: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 142: warning: exported method Parser.ServerConfig should have comment or be unexported (golint)
    • Line 142: warning: receiver name t should be consistent with previous receiver name p for Parser (golint)
    • logkit/metric/system/processes.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 25: warning: exported const TypeMetricProcesses should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported const KeyProcessesBlocked should be of the form "KeyProcessesBlocked ..." (golint)
    • Line 59: warning: exported type Processes should have comment or be unexported (golint)
    • Line 67: warning: exported method Processes.Name should have comment or be unexported (golint)
    • Line 71: warning: exported method Processes.Usages should have comment or be unexported (golint)
    • Line 75: warning: exported method Processes.Tags should have comment or be unexported (golint)
    • Line 79: warning: exported method Processes.Config should have comment or be unexported (golint)
    • Line 87: warning: exported method Processes.Collect should have comment or be unexported (golint)
    • logkit/sender/kafka/kafka.go
    • Line 20: warning: should not use dot imports (golint)
    • Line 21: warning: should not use dot imports (golint)
    • Line 27: warning: exported type Sender should have comment or be unexported (golint)
    • Line 58: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 156: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 156: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 160: warning: exported method Sender.RawSend should have comment or be unexported (golint)
    • Line 160: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 210: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 210: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 309: warning: exported method Sender.Close should have comment or be unexported (golint)
    • Line 309: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 316: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • logkit/reader/sql/dataconvert.go
    • Line 19: warning: exported function ConvertLong should have comment or be unexported (golint)
    • Line 86: warning: exported function ConvertFloat should have comment or be unexported (golint)
    • Line 156: warning: exported function ConvertDate should have comment or be unexported (golint)
    • Line 186: warning: exported function ConvertUUID should have comment or be unexported (golint)
    • Line 214: warning: exported function ConvertString should have comment or be unexported (golint)
    • Line 292: warning: exported function ConvertBool should have comment or be unexported (golint)
    • Line 315: warning: exported function ConvertScanArgs should have comment or be unexported (golint)
    • logkit/utils/parse/linuxaudit/linuxaudit.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 13: warning: exported const DefaultCheckKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 73: warning: exported function SetData should have comment or be unexported (golint)
    • Line 100: warning: exported function Parse should have comment or be unexported (golint)
    • logkit/utils/parse/mutate/keyvalue.go
    • Line 19: warning: exported type Parser should have comment or be unexported (golint)
    • Line 24: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • Line 78: warning: exported type Decoder should have comment or be unexported (golint)
    • Line 85: warning: exported function NewDecoder should have comment or be unexported (golint)
    • Line 91: warning: exported method Decoder.ScanValue should have comment or be unexported (golint)
    • Line 139: warning: exported method Decoder.Value should have comment or be unexported (golint)
    • Line 143: warning: exported method Decoder.Key should have comment or be unexported (golint)
    • logkit/transforms/mutate/filter.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 20: warning: exported type Filter should have comment or be unexported (golint)
    • Line 35: warning: exported const Keep should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported method Filter.Init should have comment or be unexported (golint)
    • Line 68: warning: exported method Filter.RawTransform should have comment or be unexported (golint)
    • Line 72: warning: exported method Filter.Transform should have comment or be unexported (golint)
    • Line 138: warning: exported method Filter.Description should have comment or be unexported (golint)
    • Line 143: warning: exported method Filter.Type should have comment or be unexported (golint)
    • Line 147: warning: exported method Filter.SampleConfig should have comment or be unexported (golint)
    • Line 155: warning: exported method Filter.ConfigOptions should have comment or be unexported (golint)
    • Line 185: warning: exported method Filter.Stage should have comment or be unexported (golint)
    • Line 189: warning: exported method Filter.Stats should have comment or be unexported (golint)
    • Line 193: warning: exported method Filter.SetStats should have comment or be unexported (golint)
    • logkit/transforms/mutate/mapreplace.go
    • Line 15: warning: should not use dot imports (golint)
    • Line 24: warning: exported type MapReplacer should have comment or be unexported (golint)
    • Line 38: warning: exported method MapReplacer.Init should have comment or be unexported (golint)
    • Line 78: warning: exported method MapReplacer.Transform should have comment or be unexported (golint)
    • Line 137: warning: exported method MapReplacer.RawTransform should have comment or be unexported (golint)
    • Line 141: warning: exported method MapReplacer.Description should have comment or be unexported (golint)
    • Line 146: warning: exported method MapReplacer.Type should have comment or be unexported (golint)
    • Line 150: warning: exported method MapReplacer.SampleConfig should have comment or be unexported (golint)
    • Line 160: warning: exported method MapReplacer.ConfigOptions should have comment or be unexported (golint)
    • Line 190: warning: exported method MapReplacer.Stage should have comment or be unexported (golint)
    • Line 195: warning: exported method MapReplacer.Stats should have comment or be unexported (golint)
    • Line 199: warning: exported method MapReplacer.SetStats should have comment or be unexported (golint)
    • logkit/metric/system/system.go
    • Line 12: warning: should not use dot imports (golint)
    • Line 16: warning: exported const TypeMetricSystem should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: comment on exported const KeySystemLoad1 should be of the form "KeySystemLoad1 ..." (golint)
    • Line 46: warning: exported type SystemStats should have comment or be unexported (golint)
    • Line 49: warning: exported method SystemStats.Name should have comment or be unexported (golint)
    • Line 53: warning: exported method SystemStats.Usages should have comment or be unexported (golint)
    • Line 57: warning: exported method SystemStats.Tags should have comment or be unexported (golint)
    • Line 61: warning: exported method SystemStats.Config should have comment or be unexported (golint)
    • Line 69: warning: exported method SystemStats.Collect should have comment or be unexported (golint)
    • logkit/sender/mockpandora/mockpandora.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 101: warning: exported type PostReposReq should have comment or be unexported (golint)
    • Line 106: warning: don't use underscores in Go names; method PostRepos_ should be PostRepos (golint)
    • Line 120: warning: don't use underscores in Go names; method PostRepos_Data should be PostReposData (golint)
    • Line 220: warning: exported type GetRepoResult should have comment or be unexported (golint)
    • Line 227: warning: don't use underscores in Go names; method GetRepos_ should be GetRepos (golint)
    • Line 241: warning: don't use underscores in Go names; method PutRepos_ should be PutRepos (golint)
    • logkit/transforms/mutate/arrayexpand.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 20: warning: exported type ArrayExpand should have comment or be unexported (golint)
    • Line 28: warning: exported method ArrayExpand.Init should have comment or be unexported (golint)
    • Line 148: warning: exported method ArrayExpand.RawTransform should have comment or be unexported (golint)
    • Line 152: warning: exported method ArrayExpand.Transform should have comment or be unexported (golint)
    • Line 209: warning: exported method ArrayExpand.Description should have comment or be unexported (golint)
    • Line 214: warning: exported method ArrayExpand.Type should have comment or be unexported (golint)
    • Line 218: warning: exported method ArrayExpand.SampleConfig should have comment or be unexported (golint)
    • Line 225: warning: exported method ArrayExpand.ConfigOptions should have comment or be unexported (golint)
    • Line 231: warning: exported method ArrayExpand.Stage should have comment or be unexported (golint)
    • Line 235: warning: exported method ArrayExpand.Stats should have comment or be unexported (golint)
    • Line 239: warning: exported method ArrayExpand.SetStats should have comment or be unexported (golint)
    • logkit/mgr/api_sender.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 9: warning: should not use dot imports (golint)
    • Line 14: warning: exported const KeySendConfig should have comment or be unexported (golint)
    • Line 15: warning: exported const KeyRouterConfig should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method RestService.GetSenderUsages should be of the form "GetSenderUsages ..." (golint)
    • Line 25: warning: comment on exported method RestService.GetSenderKeyOptions should be of the form "GetSenderKeyOptions ..." (golint)
    • Line 32: warning: comment on exported method RestService.GetSenderRouterOption should be of the form "GetSenderRouterOption ..." (golint)
    • Line 40: warning: comment on exported method RestService.GetSenderRouterUsage should be of the form "GetSenderRouterUsage ..." (golint)
    • Line 48: warning: comment on exported method RestService.PostSend should be of the form "PostSend ..." (golint)
    • Line 65: warning: comment on exported method RestService.PostSenderCheck should be of the form "PostSenderCheck ..." (golint)
    • logkit/reader/sql/utils.go
    • Line 14: warning: exported function OpenSql should have comment or be unexported (golint)
    • Line 26: warning: exported function SchemaCheck should have comment or be unexported (golint)
    • Line 52: warning: exported function UpdateSqls should have comment or be unexported (golint)
    • Line 65: warning: exported function Contains should have comment or be unexported (golint)
    • Line 74: warning: exported function GetInitScans should have comment or be unexported (golint)
    • Line 159: warning: exported function GetOffsetIndex should have comment or be unexported (golint)
    • Line 183: warning: exported function GetOffsetIndexWithTimeStamp should have comment or be unexported (golint)
    • logkit/utils/backoff.go
    • Line 8: warning: exported type Backoff should have comment or be unexported (golint)
    • Line 15: warning: exported function NewBackoff should have comment or be unexported (golint)
    • Line 24: warning: exported method Backoff.Duration should have comment or be unexported (golint)
    • Line 30: warning: exported method Backoff.ForAttempt should have comment or be unexported (golint)
    • Line 63: warning: exported method Backoff.Reset should have comment or be unexported (golint)
    • Line 67: warning: exported method Backoff.Attempt should have comment or be unexported (golint)
    • logkit/reader/sql/records.go
    • Line 14: warning: exported type DBRecords should have comment or be unexported (golint)
    • Line 16: warning: exported type TableInfo should have comment or be unexported (golint)
    • Line 21: warning: exported type TableRecords should have comment or be unexported (golint)
    • Line 26: warning: exported method TableRecords.Set should have comment or be unexported (golint)
    • Line 44: warning: exported method TableRecords.SetTableInfo should have comment or be unexported (golint)
    • Line 56: warning: exported method TableRecords.GetTableInfo should have comment or be unexported (golint)
    • Line 65: warning: exported method TableRecords.GetTable should have comment or be unexported (golint)
    • Line 74: warning: exported method TableRecords.Reset should have comment or be unexported (golint)
    • Line 78: warning: exported method TableRecords.RestoreTableDone should have comment or be unexported (golint)
    • Line 101: warning: exported method DBRecords.Set should have comment or be unexported (golint)
    • Line 108: warning: exported method DBRecords.SetTableRecords should have comment or be unexported (golint)
    • Line 115: warning: exported method DBRecords.SetTableInfo should have comment or be unexported (golint)
    • Line 124: warning: exported method DBRecords.GetTableRecords should have comment or be unexported (golint)
    • Line 131: warning: exported method DBRecords.Reset should have comment or be unexported (golint)
    • Line 135: warning: exported type SyncDBRecords should have comment or be unexported (golint)
    • Line 140: warning: exported method SyncDBRecords.SetTableRecords should have comment or be unexported (golint)
    • Line 146: warning: exported method SyncDBRecords.SetTableInfo should have comment or be unexported (golint)
    • Line 152: warning: exported method SyncDBRecords.GetTableRecords should have comment or be unexported (golint)
    • Line 159: warning: exported method SyncDBRecords.CheckDoneRecords should have comment or be unexported (golint)
    • Line 174: warning: exported method SyncDBRecords.GetDBRecords should have comment or be unexported (golint)
    • Line 181: warning: exported method SyncDBRecords.Reset should have comment or be unexported (golint)
    • Line 187: warning: exported method SyncDBRecords.RestoreRecordsFile should have comment or be unexported (golint)
    • Line 187: warning: receiver name dbRecords should be consistent with previous receiver name syncDBRecords for SyncDBRecords (golint)
    • logkit/reader/tailx/tailx.go
    • Line 26: warning: should not use dot imports (golint)
    • Line 30: warning: should not use dot imports (golint)
    • Line 47: warning: exported type Reader should have comment or be unexported (golint)
    • Line 85: warning: exported type ActiveReader should have comment or be unexported (golint)
    • Line 107: warning: exported type Result should have comment or be unexported (golint)
    • Line 112: warning: exported function NewActiveReader should have comment or be unexported (golint)
    • Line 180: warning: exported method ActiveReader.Start should have comment or be unexported (golint)
    • Line 208: warning: exported method ActiveReader.Stop should have comment or be unexported (golint)
    • Line 218: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 237: warning: exported method ActiveReader.ResetFileMeta should have comment or be unexported (golint)
    • Line 272: warning: exported method ActiveReader.Run should have comment or be unexported (golint)
    • Line 427: warning: exported method ActiveReader.Close should have comment or be unexported (golint)
    • Line 435: warning: exported method ActiveReader.CloseNoSync should have comment or be unexported (golint)
    • Line 465: warning: exported method ActiveReader.Status should have comment or be unexported (golint)
    • Line 471: warning: exported method ActiveReader.Lag should have comment or be unexported (golint)
    • Line 475: warning: comment on exported method ActiveReader.SyncMeta should be of the form "SyncMeta ..." (golint)
    • Line 483: warning: exported method ActiveReader.ReadDone should have comment or be unexported (golint)
    • Line 517: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 621: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 625: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 636: warning: exported method Reader.SetRunTime should have comment or be unexported (golint)
    • Line 894: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 985: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 989: warning: comment on exported method Reader.ReadLine should be of the form "ReadLine ..." (golint)
    • Line 1005: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 1019: warning: exported method Reader.Lag should have comment or be unexported (golint)
    • Line 1079: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 1101: warning: exported method Reader.SyncMetaClose should have comment or be unexported (golint)
    • Line 1152: warning: exported method Reader.Reset should have comment or be unexported (golint)
    • logkit/utils/reqid/reqid.go
    • Line 89: warning: comment on exported function Gen should be of the form "Gen ..." (golint)
    • Line 100: warning: exported type Info should have comment or be unexported (golint)
    • Line 107: warning: exported function Parse should have comment or be unexported (golint)
    • logkit/sender/pandora/pandora.go
    • Line 27: warning: should not use dot imports (golint)
    • Line 29: warning: should not use dot imports (golint)
    • Line 36: warning: exported const SendTypeRaw should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: comment on exported type Sender should be of the form "Sender ..." (with optional leading article) (golint)
    • Line 61: warning: exported type Tokens should have comment or be unexported (golint)
    • Line 146: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 409: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 418: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 427: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 436: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 451: warning: exported method Sender.TokenRefresh should have comment or be unexported (golint)
    • Line 456: 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 679: warning: exported method Sender.UpdateSchemas should have comment or be unexported (golint)
    • Line 730: warning: exported const PandoraTypeLong should have comment (or a comment on this block) or be unexported (golint)
    • Line 956: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 1221: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 1228: warning: exported method Sender.Close should have comment or be unexported (golint)
    • logkit/metric/telegraf/telegraf.go
    • Line 19: warning: exported method Accumulator.AddFields should have comment or be unexported (golint)
    • Line 30: warning: exported method Accumulator.AddGauge should have comment or be unexported (golint)
    • Line 37: warning: exported method Accumulator.AddCounter should have comment or be unexported (golint)
    • Line 44: warning: exported method Accumulator.AddSummary should have comment or be unexported (golint)
    • Line 51: warning: exported method Accumulator.AddHistogram should have comment or be unexported (golint)
    • Line 58: warning: exported method Accumulator.SetPrecision should have comment or be unexported (golint)
    • Line 58: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 62: warning: exported method Accumulator.AddError should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method Accumulator.AddMetric should be of the form "AddMetric ..." (golint)
    • Line 73: warning: comment on exported method Accumulator.WithTracking should be of the form "WithTracking ..." (golint)
    • Line 141: warning: exported method Collector.Name should have comment or be unexported (golint)
    • Line 145: warning: exported method Collector.Tags should have comment or be unexported (golint)
    • Line 149: warning: exported method Collector.Usages should have comment or be unexported (golint)
    • Line 153: warning: exported method Collector.Config should have comment or be unexported (golint)
    • Line 157: warning: exported method Collector.Collect should have comment or be unexported (golint)
    • logkit/parser/config/models.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 36: warning: comment on exported type DataType should be of the form "DataType ..." (with optional leading article) (golint)
    • Line 40: warning: exported const TypeFloat should have comment (or a comment on this block) or be unexported (golint)
    • logkit/utils/os/utils_common.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 11: warning: exported type OSInfo should have comment or be unexported (golint)
    • Line 23: warning: exported function GetExtraInfo should have comment or be unexported (golint)
    • Line 35: warning: exported function GetLocalIP should have comment or be unexported (golint)
    • logkit/utils/os/utils_unix.go
    • Line 24: warning: exported function GetIdentifyIDByPath should have comment or be unexported (golint)
    • Line 33: warning: exported function GetIdentifyIDByFile should have comment or be unexported (golint)
    • logkit/mgr/mgr.go
    • Line 25: warning: should not use dot imports (golint)
    • Line 30: warning: should not use dot imports (golint)
    • Line 34: warning: exported var DIR_NOT_EXIST_SLEEP_TIME should have comment or be unexported (golint)
    • Line 35: warning: exported var DEFAULT_LOGKIT_REST_DIR should have comment or be unexported (golint)
    • Line 37: warning: exported type ManagerConfig should have comment or be unexported (golint)
    • Line 51: warning: exported type CollectLog should have comment or be unexported (golint)
    • Line 65: warning: exported type Manager should have comment or be unexported (golint)
    • Line 96: warning: exported function NewManager should have comment or be unexported (golint)
    • Line 103: warning: exported function NewCustomManager should have comment or be unexported (golint)
    • Line 184: warning: exported method Manager.UpdateReaderRegister should have comment or be unexported (golint)
    • Line 188: warning: exported method Manager.UpdateSenderRegister should have comment or be unexported (golint)
    • Line 192: warning: exported method Manager.Stop should have comment or be unexported (golint)
    • Line 220: warning: exported method Manager.RemoveWithConfig should have comment or be unexported (golint)
    • Line 258: warning: exported method Manager.Remove should have comment or be unexported (golint)
    • Line 302: warning: exported method Manager.Add should have comment or be unexported (golint)
    • Line 342: warning: exported method Manager.ForkRunner should have comment or be unexported (golint)
    • Line 425: warning: exported method Manager.IsRunning should have comment or be unexported (golint)
    • Line 637: warning: exported method Manager.Watch should have comment or be unexported (golint)
    • Line 648: warning: exported method Manager.RestoreWebDir should have comment or be unexported (golint)
    • Line 666: warning: exported method Manager.Status should have comment or be unexported (golint)
    • Line 687: warning: exported method Manager.Errors should have comment or be unexported (golint)
    • Line 721: warning: exported method Manager.Configs should have comment or be unexported (golint)
    • Line 736: warning: exported method Manager.StatusAndConfig should have comment or be unexported (golint)
    • Line 874: warning: exported method Manager.UpdateToken should have comment or be unexported (golint)
    • Line 909: warning: exported method Manager.AddRunner should have comment or be unexported (golint)
    • Line 928: warning: exported method Manager.UpdateRunner should have comment or be unexported (golint)
    • Line 958: warning: exported method Manager.StartRunner should have comment or be unexported (golint)
    • Line 982: warning: exported method Manager.StartRunnerWithFilename should have comment or be unexported (golint)
    • Line 997: warning: exported method Manager.StopRunner should have comment or be unexported (golint)
    • Line 1018: warning: exported method Manager.StopRunnerWithFilename should have comment or be unexported (golint)
    • Line 1084: warning: exported method Manager.DeleteRunner should have comment or be unexported (golint)
    • Line 1122: warning: exported method Manager.GetRunnerNames should have comment or be unexported (golint)
    • Line 1136: warning: exported method Manager.GetRunnerPath should have comment or be unexported (golint)
    • logkit/utils/models/utils.go
    • Line 36: warning: exported type File should have comment or be unexported (golint)
    • Line 76: warning: exported function TrimeList should have comment or be unexported (golint)
    • Line 87: warning: exported function GetLogFiles should have comment or be unexported (golint)
    • Line 116: warning: exported type SchemaErr should have comment or be unexported (golint)
    • Line 121: warning: exported method SchemaErr.Output should have comment or be unexported (golint)
    • Line 165: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 169: warning: exported function NewErrorResponse should have comment or be unexported (golint)
    • Line 173: warning: exported function IsJsonString should have comment or be unexported (golint)
    • Line 186: warning: exported function ExtractField should have comment or be unexported (golint)
    • Line 205: warning: exported function AddHttpProtocal should have comment or be unexported (golint)
    • Line 212: warning: exported function RemoveHttpProtocal should have comment or be unexported (golint)
    • Line 224: warning: exported type HashSet should have comment or be unexported (golint)
    • Line 229: warning: exported function NewHashSet should have comment or be unexported (golint)
    • Line 236: warning: exported method HashSet.Add should have comment or be unexported (golint)
    • Line 242: warning: exported method HashSet.AddStringArray should have comment or be unexported (golint)
    • Line 248: warning: exported method HashSet.Remove should have comment or be unexported (golint)
    • Line 254: warning: exported method HashSet.Clear should have comment or be unexported (golint)
    • Line 260: warning: exported method HashSet.IsIn should have comment or be unexported (golint)
    • Line 266: warning: exported method HashSet.IsEmpty should have comment or be unexported (golint)
    • Line 275: warning: exported method HashSet.Len should have comment or be unexported (golint)
    • Line 281: warning: exported method HashSet.Elements should have comment or be unexported (golint)
    • Line 291: warning: comment on exported function LogDirAndPattern should be of the form "LogDirAndPattern ..." (golint)
    • Line 442: warning: comment on exported function SetMapValue should be of the form "SetMapValue ..." (golint)
    • Line 478: warning: exported function SetExtractMapValue should have comment or be unexported (golint)
    • Line 515: warning: comment on exported function SetMapValueExistWithPrefix should be of the form "SetMapValueExistWithPrefix ..." (golint)
    • Line 549: warning: exported function KeyExist should have comment or be unexported (golint)
    • Line 577: warning: comment on exported function DeleteMapValue should be of the form "DeleteMapValue ..." (golint)
    • Line 601: warning: exported function PickMapValue should have comment or be unexported (golint)
    • Line 642: warning: comment on exported function GetKeys should be of the form "GetKeys ..." (golint)
    • Line 652: warning: comment on exported function GetCmd should be of the form "GetCmd ..." (golint)
    • Line 658: warning: exported function IsSpace should have comment or be unexported (golint)
    • Line 662: warning: comment on exported function GetMapValue should be of the form "GetMapValue ..." (golint)
    • Line 717: warning: exported function CheckFileMode should have comment or be unexported (golint)
    • Line 733: warning: exported function Hash should have comment or be unexported (golint)
    • Line 751: warning: exported function DecodeString should have comment or be unexported (golint)
    • Line 767: warning: exported function EncodeString should have comment or be unexported (golint)
    • Line 776: warning: exported function Bool2String should have comment or be unexported (golint)
    • Line 783: warning: exported function ConvertDate should have comment or be unexported (golint)
    • Line 839: warning: exported function FormatWithUserOption should have comment or be unexported (golint)
    • Line 854: warning: exported function ReadFileContent should have comment or be unexported (golint)
    • Line 868: warning: exported function GetMapList should have comment or be unexported (golint)
    • Line 887: warning: comment on exported function CheckPandoraKey should be of the form "CheckPandoraKey ..." (golint)
    • Line 898: warning: exported function DeepConvertKey should have comment or be unexported (golint)
    • Line 916: warning: comment on exported function DeepConvertKeyWithCache should be of the form "DeepConvertKeyWithCache ..." (golint)
    • Line 940: warning: exported function CheckErr should have comment or be unexported (golint)
    • Line 959: warning: exported type KeyInfo should have comment or be unexported (golint)
    • Line 964: warning: exported function TruncateStrSize should have comment or be unexported (golint)
    • Line 973: warning: exported function IsSubMetaExpire should have comment or be unexported (golint)
    • Line 977: warning: exported function IsSubmetaExpireValid should have comment or be unexported (golint)
    • Line 981: warning: exported function TrimInvalidSpace should have comment or be unexported (golint)
    • Line 1009: warning: exported function ParseTimeZoneOffset should have comment or be unexported (golint)
    • Line 1031: warning: exported function GetGrokLabels should have comment or be unexported (golint)
    • Line 1051: warning: exported function IsFileModified should have comment or be unexported (golint)
    • Line 1073: warning: exported function IsSelfRunner should have comment or be unexported (golint)
    • Line 1103: warning: exported function AddTagsToData should have comment or be unexported (golint)
    • Line 1117: warning: exported function CheckPath should have comment or be unexported (golint)
    • Line 1131: warning: exported function GetTime should have comment or be unexported (golint)
    • Line 1146: warning: exported function CheckLogPath should have comment or be unexported (golint)
    • logkit/transforms/mutate/json.go
    • Line 13: warning: should not use dot imports (golint)
    • Line 22: warning: exported type Json should have comment or be unexported (golint)
    • Line 36: warning: exported method Json.Init should have comment or be unexported (golint)
    • Line 53: warning: exported method Json.Transform should have comment or be unexported (golint)
    • Line 110: warning: exported method Json.RawTransform should have comment or be unexported (golint)
    • Line 123: warning: exported method Json.Description should have comment or be unexported (golint)
    • Line 128: warning: exported method Json.Type should have comment or be unexported (golint)
    • Line 132: warning: exported method Json.SampleConfig should have comment or be unexported (golint)
    • Line 141: warning: exported method Json.ConfigOptions should have comment or be unexported (golint)
    • Line 160: warning: exported method Json.Stage should have comment or be unexported (golint)
    • Line 164: warning: exported method Json.Stats should have comment or be unexported (golint)
    • Line 168: warning: exported method Json.SetStats should have comment or be unexported (golint)
    • logkit/metric/curl/http.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 21: warning: exported const TypeMetricHttp should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: comment on exported const ConfigHttpDatas should be of the form "ConfigHttpDatas ..." (golint)
    • Line 61: warning: exported type HttpStats should have comment or be unexported (golint)
    • Line 67: warning: exported method HttpStats.Name should have comment or be unexported (golint)
    • Line 71: warning: exported method HttpStats.Usages should have comment or be unexported (golint)
    • Line 75: warning: exported method HttpStats.Tags should have comment or be unexported (golint)
    • Line 79: warning: exported method HttpStats.Config should have comment or be unexported (golint)
    • Line 99: warning: exported type HttpDataReq should have comment or be unexported (golint)
    • Line 108: warning: exported method HttpStats.Collect should have comment or be unexported (golint)
    • Line 222: warning: error should be the last type when returning multiple items (golint)
    • logkit/reader/mssql/mssql.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 22: warning: should not use dot imports (golint)
    • Line 38: warning: exported type MssqlReader should have comment or be unexported (golint)
    • Line 89: warning: exported function NewMssqlReader should have comment or be unexported (golint)
    • Line 382: warning: exported method MssqlReader.Name should have comment or be unexported (golint)
    • Line 386: warning: exported method MssqlReader.SetMode should have comment or be unexported (golint)
    • Line 563: warning: exported method MssqlReader.Start should have comment or be unexported (golint)
    • Line 599: warning: exported method MssqlReader.Source should have comment or be unexported (golint)
    • Line 612: warning: exported method MssqlReader.Status should have comment or be unexported (golint)
    • Line 618: warning: exported method MssqlReader.ReadLine should have comment or be unexported (golint)
    • Line 622: warning: exported method MssqlReader.ReadData should have comment or be unexported (golint)
    • Line 679: warning: exported method MssqlReader.Close should have comment or be unexported (golint)
    • Line 747: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • logkit/samples/sender.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 18: warning: exported function NewMySender should have comment or be unexported (golint)
    • Line 27: warning: exported method CustomSender.Name should have comment or be unexported (golint)
    • Line 31: warning: exported method CustomSender.Send should have comment or be unexported (golint)
    • Line 41: warning: exported method CustomSender.Close should have comment or be unexported (golint)
    • logkit/reader/socket/socket.go
    • Line 26: warning: should not use dot imports (golint)
    • Line 27: warning: should not use dot imports (golint)
    • Line 315: warning: exported type Reader should have comment or be unexported (golint)
    • Line 340: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 405: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 409: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 441: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 519: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 523: warning: exported method Reader.FetchInitError should have comment or be unexported (golint)
    • Line 529: warning: comment on exported method Reader.ReadLine should be of the form "ReadLine ..." (golint)
    • Line 560: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 564: warning: exported method Reader.Close should have comment or be unexported (golint)
    • logkit/reader/sql/magic.go
    • Line 11: warning: comment on exported function ConvertMagicIndex should be of the form "ConvertMagicIndex ..." (golint)
    • Line 37: warning: exported type MagicRes should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function GoMagicIndex should be of the form "GoMagicIndex ..." (golint)
    • Line 103: warning: comment on exported function RemoveWildcards should be of the form "RemoveWildcards ..." (golint)
    • Line 111: warning: exported function CheckMagic should have comment or be unexported (golint)
    • logkit/metric/telegraf/docker/docker.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 20: warning: exported const MetricName should have comment or be unexported (golint)
    • Line 23: warning: exported var ConfigEndpoint should have comment or be unexported (golint)
    • Line 55: warning: comment on exported var StatsActiveAnon should be of the form "StatsActiveAnon ..." (golint)
    • Line 96: warning: comment on exported var StatsTasksRunning should be of the form "StatsTasksRunning ..." (golint)
    • Line 100: warning: comment on exported var StatsUsageTotal should be of the form "StatsUsageTotal ..." (golint)
    • Line 111: warning: comment on exported var StatsRxDropped should be of the form "StatsRxDropped ..." (golint)
    • Line 121: warning: comment on exported var StatsIOTimeRecursive should be of the form "StatsIOTimeRecursive ..." (golint)
    • logkit/parser/kafkarest/kafkarest.go
    • Line 14: warning: should not use dot imports (golint)
    • Line 16: warning: should not use dot imports (golint)
    • Line 20: warning: exported const KEY_SRC_IP should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type Parser should have comment or be unexported (golint)
    • Line 45: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 49: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 53: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • Line 177: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 207: warning: exported method Parser.ParseIp should have comment or be unexported (golint)
    • Line 214: warning: exported method Parser.ParseMethod should have comment or be unexported (golint)
    • Line 221: warning: exported method Parser.ParseTopic should have comment or be unexported (golint)
    • Line 232: warning: exported method Parser.ParseCode should have comment or be unexported (golint)
    • Line 243: warning: exported method Parser.ParseDuration should have comment or be unexported (golint)
    • Line 254: warning: exported method Parser.ParseRespCL should have comment or be unexported (golint)
    • Line 265: warning: exported method Parser.ParseLogTime should have comment or be unexported (golint)
    • logkit/conf/load_conf.go
    • Line 16: warning: exported var NL should have comment or be unexported (golint)
    • Line 25: warning: exported var ErrHomeNotFound should have comment or be unexported (golint)
    • Line 37: warning: exported function GetConfigDir should have comment or be unexported (golint)
    • Line 49: warning: exported function Init should have comment or be unexported (golint)
    • Line 54: warning: exported function Load should have comment or be unexported (golint)
    • Line 96: warning: exported function LoadEx should have comment or be unexported (golint)
    • Line 110: warning: exported function LoadFile should have comment or be unexported (golint)
    • logkit/reader/cloudwatch/cloudwatch.go
    • Line 25: warning: should not use dot imports (golint)
    • Line 26: warning: should not use dot imports (golint)
    • Line 41: warning: exported type Reader should have comment or be unexported (golint)
    • Line 70: warning: exported type Metric should have comment or be unexported (golint)
    • Line 75: warning: exported type Dimension should have comment or be unexported (golint)
    • Line 80: warning: exported type MetricCache should have comment or be unexported (golint)
    • Line 96: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 199: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 203: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 219: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 249: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 253: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 257: warning: exported method Reader.ReadData should have comment or be unexported (golint)
    • Line 271: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 273: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 298: warning: exported function SelectMetrics should have comment or be unexported (golint)
    • Line 360: warning: exported method Reader.Gather should have comment or be unexported (golint)
    • Line 522: warning: comment on exported method MetricCache.IsValid should be of the form "IsValid ..." (golint)
    • Line 569: warning: exported type CredentialConfig should have comment or be unexported (golint)
    • Line 579: warning: exported method CredentialConfig.Credentials should have comment or be unexported (golint)
    • logkit/mgr/models.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 91: warning: exported type RunnerInfo should have comment or be unexported (golint)
    • Line 113: warning: exported type ErrorsList should have comment or be unexported (golint)
    • Line 120: warning: exported type ErrorsResult should have comment or be unexported (golint)
    • Line 127: warning: comment on exported type CompatibleErrorResult should be of the form "CompatibleErrorResult ..." (with optional leading article) (golint)
    • Line 135: warning: exported function NewErrorsList should have comment or be unexported (golint)
    • Line 194: warning: exported method ErrorsList.HasReadErr should have comment or be unexported (golint)
    • Line 201: warning: exported method ErrorsList.HasParseErr should have comment or be unexported (golint)
    • Line 208: warning: exported method ErrorsList.HasSendErr should have comment or be unexported (golint)
    • Line 220: warning: exported method ErrorsList.HasTransformErr should have comment or be unexported (golint)
    • logkit/mgr/dataflow.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 30: warning: should not use dot imports (golint)
    • Line 34: warning: exported const DefaultTryTimes should have comment (or a comment on this block) or be unexported (golint)
    • Line 143: warning: comment on exported function ParseData should be of the form "ParseData ..." (golint)
    • Line 172: warning: exported function TransformData should have comment or be unexported (golint)
    • Line 212: warning: exported function SendData should have comment or be unexported (golint)
    • logkit/reader/snmp/snmp.go
    • Line 25: warning: should not use dot imports (golint)
    • Line 26: warning: should not use dot imports (golint)
    • Line 103: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 205: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 209: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 225: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 257: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 261: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 265: warning: exported method Reader.ReadData should have comment or be unexported (golint)
    • Line 279: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 281: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 297: warning: exported type Table should have comment or be unexported (golint)
    • Line 334: warning: exported type Field should have comment or be unexported (golint)
    • Line 360: warning: exported type RTable should have comment or be unexported (golint)
    • Line 366: warning: exported type RTableRow should have comment or be unexported (golint)
    • Line 371: warning: exported type NestedError should have comment or be unexported (golint)
    • Line 380: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 387: warning: exported method Reader.StoreData should have comment or be unexported (golint)
    • Line 404: warning: exported method Reader.Gather should have comment or be unexported (golint)
    • Line 511: warning: exported method Table.Build should have comment or be unexported (golint)
    • logkit/reader/sql/time.go
    • Line 15: warning: comment on exported function QueryNumber should be of the form "QueryNumber ..." (golint)
    • Line 43: warning: exported function GetTimeIntFromArgs should have comment or be unexported (golint)
    • Line 55: warning: exported function GetTimeFromArgs should have comment or be unexported (golint)
    • Line 95: warning: exported function GetTimeIntFromData should have comment or be unexported (golint)
    • Line 107: warning: exported function GetTimeStrFromData should have comment or be unexported (golint)
    • Line 119: warning: exported function GetTimeFromData should have comment or be unexported (golint)
    • logkit/sender/fault_tolerant.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 24: warning: should not use dot imports (golint)
    • Line 62: warning: exported type FtOption should have comment or be unexported (golint)
    • Line 213: warning: exported method FtSender.Name should have comment or be unexported (golint)
    • Line 216: warning: exported method FtSender.RawSend should have comment or be unexported (golint)
    • Line 279: warning: exported method FtSender.Send should have comment or be unexported (golint)
    • Line 359: warning: exported method FtSender.Stats should have comment or be unexported (golint)
    • Line 365: warning: exported method FtSender.Restore should have comment or be unexported (golint)
    • Line 371: warning: exported method FtSender.Reset should have comment or be unexported (golint)
    • Line 379: warning: exported method FtSender.Close should have comment or be unexported (golint)
    • Line 398: warning: exported method FtSender.TokenRefresh should have comment or be unexported (golint)
    • Line 971: warning: exported method FtSender.SkipDeepCopy should have comment or be unexported (golint)
    • Line 979: warning: comment on exported function SplitData should be of the form "SplitData ..." (golint)
    • Line 1012: warning: exported function SplitDataWithSplitSize should have comment or be unexported (golint)
    • logkit/queuev2/kafka.go
    • Line 16: warning: exported const Topic should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function NewKafkaQueue should have comment or be unexported (golint)
    • logkit/sender/config/models.go
    • Line 6: warning: should not use dot imports (golint)
    • Line 104: warning: comment on exported const KeyAuthUsername should be of the form "KeyAuthUsername ..." (golint)
    • Line 106: warning: exported const KeyAuthPassword should have comment (or a comment on this block) or be unexported (golint)
    • Line 113: warning: comment on exported const KeyElasticHost should be of the form "KeyElasticHost ..." (golint)
    • Line 137: warning: comment on exported const KeylocalTimezone should be of the form "KeylocalTimezone ..." (golint)
    • Line 144: warning: comment on exported const KeyFtSyncEvery should be of the form "KeyFtSyncEvery ..." (golint)
    • Line 158: warning: comment on exported const KeyMaxDiskUsedBytes should be of the form "KeyMaxDiskUsedBytes ..." (golint)
    • Line 162: warning: comment on exported const KeyFtStrategyBackupOnly should be of the form "KeyFtStrategyBackupOnly ..." (golint)
    • Line 170: warning: comment on exported const DefaultFtSyncEvery should be of the form "DefaultFtSyncEvery ..." (golint)
    • Line 173: warning: comment on exported const KeyFileSenderPath should be of the form "KeyFileSenderPath ..." (golint)
    • Line 181: warning: comment on exported const KeyHttpSenderUrl should be of the form "KeyHttpSenderUrl ..." (golint)
    • Line 195: warning: comment on exported const KeyInfluxdbHost should be of the form "KeyInfluxdbHost ..." (golint)
    • Line 208: warning: comment on exported const KeyKafkaCompressionNone should be of the form "KeyKafkaCompressionNone ..." (golint)
    • Line 219: warning: comment on exported const KeyKafkaRetryMax should be of the form "KeyKafkaRetryMax ..." (golint)
    • Line 233: warning: comment on exported const KeyMongodbHost should be of the form "KeyMongodbHost ..." (golint)
    • Line 239: warning: comment on exported const KeyMongodbUpdateKey should be of the form "KeyMongodbUpdateKey ..." (golint)
    • Line 257: warning: comment on exported const KeyOpenFalconTransferHost should be of the form "KeyOpenFalconTransferHost ..." (golint)
    • Line 265: warning: comment on exported var ErrNotAsyncSender should be of the form "ErrNotAsyncSender ..." (golint)
    • Line 269: warning: exported const MaxBytesPerFile should have comment (or a comment on this block) or be unexported (golint)
    • logkit/reader/sql/sortdata.go
    • Line 18: warning: exported type ByJson should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function SortByJson should be of the form "SortByJson ..." (golint)
    • logkit/times/times.go
    • Line 92: warning: exported function GetTimeZone should have comment or be unexported (golint)
    • Line 102: warning: exported function StrToTimeLocation should have comment or be unexported (golint)
    • Line 118: warning: exported function StrToTime should have comment or be unexported (golint)
    • logkit/reader/postgres/postgres.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 22: warning: should not use dot imports (golint)
    • Line 38: warning: exported type PostgresReader should have comment or be unexported (golint)
    • Line 93: warning: exported function NewPostgresReader should have comment or be unexported (golint)
    • Line 297: warning: exported method PostgresReader.Name should have comment or be unexported (golint)
    • Line 301: warning: exported method PostgresReader.SetMode should have comment or be unexported (golint)
    • Line 323: warning: exported method PostgresReader.Start should have comment or be unexported (golint)
    • Line 359: warning: exported method PostgresReader.Source should have comment or be unexported (golint)
    • Line 364: warning: exported method PostgresReader.ReadLine should have comment or be unexported (golint)
    • Line 368: warning: exported method PostgresReader.ReadData should have comment or be unexported (golint)
    • Line 382: warning: exported method PostgresReader.Status should have comment or be unexported (golint)
    • Line 446: warning: exported method PostgresReader.Close should have comment or be unexported (golint)
    • logkit/sender/mock/mock.go
    • Line 12: warning: should not use dot imports (golint)
    • Line 13: warning: should not use dot imports (golint)
    • Line 18: warning: comment on exported type Sender should be of the form "Sender ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported function NewSender should be of the form "NewSender ..." (golint)
    • Line 58: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 80: warning: exported method Sender.Close should have comment or be unexported (golint)
    • Line 83: warning: exported method Sender.SendCount should have comment or be unexported (golint)
    • Line 89: warning: exported method Sender.SkipDeepCopy should have comment or be unexported (golint)
    • logkit/reader/sql/models.go
    • Line 6: warning: exported const SqlOffsetConnector should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: comment on exported const TABLE should be of the form "TABLE ..." (golint)
    • Line 25: warning: comment on exported const DATABASE should be of the form "DATABASE ..." (golint)
    • Line 27: warning: comment on exported const COUNT should be of the form "COUNT ..." (golint)
    • Line 32: warning: comment on exported const COUNTFUNC should be of the form "COUNTFUNC ..." (golint)
    • Line 34: warning: comment on exported const READFUNC should be of the form "READFUNC ..." (golint)
    • Line 39: warning: exported const YEAR should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported type ReadInfo should have comment or be unexported (golint)
    • logkit/transforms/registry.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 8: warning: exported const TransformAt should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported const StageBeforeParser should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type ServerTansformer should have comment or be unexported (golint)
    • Line 44: warning: comment on exported type Initializer should be of the form "Initializer ..." (with optional leading article) (golint)
    • Line 49: warning: exported type Creator should have comment or be unexported (golint)
    • Line 51: warning: exported var Transformers should have comment or be unexported (golint)
    • Line 53: warning: exported function Add should have comment or be unexported (golint)
    • Line 58: warning: exported var KeyStage should have comment or be unexported (golint)
    • Line 154: warning: exported type TransformInfo should have comment or be unexported (golint)
    • Line 159: warning: exported type TransformResult should have comment or be unexported (golint)
    • Line 167: warning: exported type TransformResultSlice should have comment or be unexported (golint)
    • Line 181: warning: exported type RawTransformInfo should have comment or be unexported (golint)
    • Line 186: warning: exported type RawTransformResult should have comment or be unexported (golint)
    • Line 193: warning: exported type RawTransformResultSlice should have comment or be unexported (golint)
    • logkit/conf/map_conf.go
    • Line 28: warning: exported type AliasKey should have comment or be unexported (golint)
    • Line 33: warning: exported function ErrConfMissingKey should have comment or be unexported (golint)
    • Line 37: warning: exported function ErrConfKeyType should have comment or be unexported (golint)
    • Line 41: warning: exported function ErrMissConfigAliasMap should have comment or be unexported (golint)
    • Line 45: warning: exported method MapConf.Get should have comment or be unexported (golint)
    • Line 53: warning: exported method MapConf.GetStringOr should have comment or be unexported (golint)
    • Line 61: warning: exported method MapConf.GetString should have comment or be unexported (golint)
    • Line 79: warning: exported method MapConf.GetIntOr should have comment or be unexported (golint)
    • Line 87: warning: exported method MapConf.GetInt should have comment or be unexported (golint)
    • Line 99: warning: exported method MapConf.GetInt32Or should have comment or be unexported (golint)
    • Line 107: warning: exported method MapConf.GetInt32 should have comment or be unexported (golint)
    • Line 119: warning: exported method MapConf.GetInt64Or should have comment or be unexported (golint)
    • Line 127: warning: exported method MapConf.GetInt64 should have comment or be unexported (golint)
    • Line 139: warning: exported method MapConf.GetBoolOr should have comment or be unexported (golint)
    • Line 147: warning: exported method MapConf.GetBool should have comment or be unexported (golint)
    • Line 159: warning: exported method MapConf.GetStringListOr should have comment or be unexported (golint)
    • Line 167: warning: exported method MapConf.GetStringList should have comment or be unexported (golint)
    • Line 179: warning: exported method MapConf.GetAliasList should have comment or be unexported (golint)
    • Line 179: warning: receiver name c should be consistent with previous receiver name conf for MapConf (golint)
    • Line 199: warning: exported method MapConf.GetAliasMapOr should have comment or be unexported (golint)
    • Line 207: warning: exported method MapConf.GetAliasMap should have comment or be unexported (golint)
    • Line 240: warning: exported method MapConf.GetPasswordEnvString should have comment or be unexported (golint)
    • Line 258: warning: exported method MapConf.GetPasswordEnvStringOr should have comment or be unexported (golint)
    • Line 276: warning: exported function GetStringList should have comment or be unexported (golint)
    • Line 288: warning: comment on exported function GetEnv should be of the form "GetEnv ..." (golint)
    • Line 306: warning: exported function GetEnvValue should have comment or be unexported (golint)
    • Line 313: 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 318: warning: exported function IsEnv should have comment or be unexported (golint)
    • Line 327: warning: exported function DeepCopy should have comment or be unexported (golint)
    • logkit/parser/raw/raw.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 10: warning: should not use dot imports (golint)
    • Line 17: warning: exported type Parser should have comment or be unexported (golint)
    • Line 26: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 53: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 57: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 61: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • logkit/samples/parser.go
    • Line 8: warning: should not use dot imports (golint)
    • Line 11: warning: comment on exported type CustomParser should be of the form "CustomParser ..." (with optional leading article) (golint)
    • Line 19: warning: exported function NewMyParser should have comment or be unexported (golint)
    • Line 31: warning: exported method CustomParser.Name should have comment or be unexported (golint)
    • Line 35: warning: exported method CustomParser.Parse should have comment or be unexported (golint)
    • logkit/transforms/apps/tode.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 14: warning: exported const KeyTode should have comment or be unexported (golint)
    • Line 21: warning: exported var OptionTodeKey should have comment or be unexported (golint)
    • Line 34: warning: exported type Tode should have comment or be unexported (golint)
    • Line 42: warning: exported method Tode.Init should have comment or be unexported (golint)
    • Line 53: warning: exported method Tode.Description should have comment or be unexported (golint)
    • Line 57: warning: exported method Tode.SampleConfig should have comment or be unexported (golint)
    • Line 64: warning: exported method Tode.ConfigOptions should have comment or be unexported (golint)
    • Line 70: warning: exported method Tode.Type should have comment or be unexported (golint)
    • Line 74: warning: exported method Tode.RawTransform should have comment or be unexported (golint)
    • Line 78: warning: exported method Tode.Stage should have comment or be unexported (golint)
    • Line 82: warning: exported method Tode.Stats should have comment or be unexported (golint)
    • Line 86: warning: exported method Tode.SetStats should have comment or be unexported (golint)
    • Line 91: warning: exported method Tode.Transform should have comment or be unexported (golint)
    • logkit/utils/timetracker.go
    • Line 8: warning: exported type Stage should have comment or be unexported (golint)
    • Line 13: warning: exported type Tracker should have comment or be unexported (golint)
    • Line 18: warning: exported function NewTracker should have comment or be unexported (golint)
    • Line 25: warning: exported method Tracker.Track should have comment or be unexported (golint)
    • Line 32: warning: exported method Tracker.Print should have comment or be unexported (golint)
    • Line 41: warning: exported method Tracker.Reset should have comment or be unexported (golint)
    • logkit/transforms/mutate/replace.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 18: warning: exported type Replacer should have comment or be unexported (golint)
    • Line 33: warning: exported method Replacer.Init should have comment or be unexported (golint)
    • Line 58: warning: exported method Replacer.Transform should have comment or be unexported (golint)
    • Line 90: warning: exported method Replacer.RawTransform should have comment or be unexported (golint)
    • Line 99: warning: exported method Replacer.Description should have comment or be unexported (golint)
    • Line 104: warning: exported method Replacer.Type should have comment or be unexported (golint)
    • Line 108: warning: exported method Replacer.SampleConfig should have comment or be unexported (golint)
    • Line 119: warning: exported method Replacer.ConfigOptions should have comment or be unexported (golint)
    • Line 156: warning: exported method Replacer.Stage should have comment or be unexported (golint)
    • Line 163: warning: exported method Replacer.Stats should have comment or be unexported (golint)
    • Line 167: warning: exported method Replacer.SetStats should have comment or be unexported (golint)
    • logkit/mgr/cluster.go
    • Line 14: warning: should not use dot imports (golint)
    • Line 20: warning: exported type ClusterConfig should have comment or be unexported (golint)
    • Line 28: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 35: warning: exported type Slave should have comment or be unexported (golint)
    • Line 42: warning: exported type ClusterStatus should have comment or be unexported (golint)
    • Line 48: warning: exported type SlaveConfig should have comment or be unexported (golint)
    • Line 75: warning: exported const StatusOK should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported const DefaultMyTag should have comment or be unexported (golint)
    • Line 82: warning: exported function NewCluster should have comment or be unexported (golint)
    • Line 93: warning: exported method Cluster.RunRegisterLoop should have comment or be unexported (golint)
    • Line 108: warning: exported method Cluster.AddSlave should have comment or be unexported (golint)
    • Line 124: warning: exported method Cluster.UpdateSlaveStatus should have comment or be unexported (golint)
    • Line 144: warning: comment on exported method RestService.Ping should be of the form "Ping ..." (golint)
    • Line 152: warning: comment on exported method RestService.IsMaster should be of the form "IsMaster ..." (golint)
    • Line 164: warning: comment on exported method RestService.Slaves should be of the form "Slaves ..." (golint)
    • Line 180: warning: comment on exported method RestService.GetClusterRunners should be of the form "GetClusterRunners ..." (golint)
    • Line 205: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 222: warning: comment on exported method RestService.ClusterStatus should be of the form "ClusterStatus ..." (golint)
    • Line 272: warning: comment on exported method RestService.GetClusterConfig should be of the form "GetClusterConfig ..." (golint)
    • Line 310: warning: comment on exported method RestService.GetClusterConfigs should be of the form "GetClusterConfigs ..." (golint)
    • Line 360: warning: exported type RegisterReq should have comment or be unexported (golint)
    • Line 365: warning: comment on exported method RestService.PostRegister should be of the form "PostRegister ..." (golint)
    • Line 383: warning: exported type TagReq should have comment or be unexported (golint)
    • Line 387: warning: comment on exported method RestService.PostTag should be of the form "PostTag ..." (golint)
    • Line 409: warning: comment on exported method RestService.PostClusterConfig should be of the form "PostClusterConfig ..." (golint)
    • Line 432: warning: comment on exported method RestService.PutClusterConfig should be of the form "PutClusterConfig ..." (golint)
    • Line 455: warning: comment on exported method RestService.DeleteClusterConfig should be of the form "DeleteClusterConfig ..." (golint)
    • Line 478: warning: comment on exported method RestService.PostClusterConfigStop should be of the form "PostClusterConfigStop ..." (golint)
    • Line 501: warning: comment on exported method RestService.PostClusterConfigStart should be of the form "PostClusterConfigStart ..." (golint)
    • Line 524: warning: comment on exported method RestService.PostClusterConfigReset should be of the form "PostClusterConfigReset ..." (golint)
    • Line 547: warning: comment on exported method RestService.DeleteSlaves should be of the form "DeleteSlaves ..." (golint)
    • Line 570: warning: comment on exported method RestService.PostSlaveTag should be of the form "PostSlaveTag ..." (golint)
    • Line 684: warning: exported function Register should have comment or be unexported (golint)
    • logkit/logkit.go
    • Line 24: warning: should not use dot imports (golint)
    • Line 48: warning: exported const NextVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 107: warning: exported type MatchFile should have comment or be unexported (golint)
    • Line 112: warning: exported type MatchFiles should have comment or be unexported (golint)
    • logkit/parser/grok/grok.go
    • Line 19: warning: should not use dot imports (golint)
    • Line 21: warning: should not use dot imports (golint)
    • Line 25: warning: exported const ModeMulti should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported const MaxGrokMultiLineBuffer should have comment or be unexported (golint)
    • Line 34: warning: exported type Parser should have comment or be unexported (golint)
    • Line 74: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 163: warning: exported method Parser.Name should have comment or be unexported (golint)
    • Line 167: warning: exported method Parser.Type should have comment or be unexported (golint)
    • Line 171: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • logkit/reader/kafka/kafka.go
    • Line 18: warning: should not use dot imports (golint)
    • Line 19: warning: should not use dot imports (golint)
    • Line 32: warning: exported type Reader should have comment or be unexported (golint)
    • Line 55: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 155: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 159: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 169: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 173: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 208: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 214: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 219: warning: exported method Reader.Lag should have comment or be unexported (golint)
    • Line 243: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 284: warning: exported method Reader.Close should have comment or be unexported (golint)
    • logkit/rateio/writer.go
    • Line 10: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 28: warning: exported function NewRateWriter should have comment or be unexported (golint)
    • logkit/reader/httpfetch/http_fetch.go
    • Line 25: warning: should not use dot imports (golint)
    • Line 26: warning: should not use dot imports (golint)
    • Line 44: warning: exported type Reader should have comment or be unexported (golint)
    • Line 78: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 188: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 192: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 214: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 249: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 260: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 275: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 281: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 287: warning: exported method Reader.Close should have comment or be unexported (golint)
    • logkit/utils/models/code.go
    • Line 6: warning: exported var ErrNotSupport should have comment or be unexported (golint)
    • Line 12: warning: comment on exported const ErrNothing should be of the form "ErrNothing ..." (golint)
    • Line 15: warning: comment on exported const ErrConfigName should be of the form "ErrConfigName ..." (golint)
    • Line 17: warning: exported const ErrRunnerAdd should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported const ErrReadRead should be of the form "ErrReadRead ..." (golint)
    • Line 27: warning: comment on exported const ErrParseParse should be of the form "ErrParseParse ..." (golint)
    • Line 29: warning: comment on exported const ErrTransformTransform should be of the form "ErrTransformTransform ..." (golint)
    • Line 31: warning: comment on exported const ErrSendSend should be of the form "ErrSendSend ..." (golint)
    • Line 34: warning: comment on exported const ErrClusterSlaves should be of the form "ErrClusterSlaves ..." (golint)
    • Line 41: warning: comment on exported const ErrClusterTag should be of the form "ErrClusterTag ..." (golint)
    • Line 44: warning: comment on exported const ErrClusterRunnerAdd should be of the form "ErrClusterRunnerAdd ..." (golint)
    • Line 55: warning: exported var ErrorCodeHumanize should have comment or be unexported (golint)
    • Line 88: warning: exported function IsNotExist should have comment or be unexported (golint)
    • Line 92: warning: exported function IsNotSupport should have comment or be unexported (golint)
    • logkit/metric/system/utils/process.go
    • Line 11: warning: exported type Process should have comment or be unexported (golint)
    • Line 26: warning: exported type Proc should have comment or be unexported (golint)
    • Line 32: warning: exported function NewProc should have comment or be unexported (golint)
    • Line 46: warning: exported method Proc.Tags should have comment or be unexported (golint)
    • Line 50: warning: exported method Proc.PID should have comment or be unexported (golint)
    • Line 54: warning: exported method Proc.Percent should have comment or be unexported (golint)
    • logkit/parser/utils.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 11: warning: should not use dot imports (golint)
    • Line 14: warning: exported const SECOND_PER_DAY should have comment or be unexported (golint)
    • Line 15: warning: exported const SECOND_PER_5MIN should have comment or be unexported (golint)
    • Line 17: warning: exported function Time1Day should have comment or be unexported (golint)
    • Line 21: warning: exported function Time1DayInt should have comment or be unexported (golint)
    • Line 25: warning: exported function Time5Min should have comment or be unexported (golint)
    • Line 29: warning: exported function Time5MinInt should have comment or be unexported (golint)
    • Line 37: warning: exported function ConvertWebParserConfig should have comment or be unexported (golint)
    • logkit/parser/syslog/syslog.go
    • Line 14: warning: should not use dot imports (golint)
    • Line 15: warning: should not use dot imports (golint)
    • Line 23: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 66: warning: exported type SyslogParser should have comment or be unexported (golint)
    • Line 84: warning: exported method SyslogParser.Name should have comment or be unexported (golint)
    • Line 88: warning: exported method SyslogParser.Type should have comment or be unexported (golint)
    • Line 92: warning: exported method SyslogParser.Parse should have comment or be unexported (golint)
    • Line 226: warning: exported method SyslogParser.Flush should have comment or be unexported (golint)
    • logkit/reader/elastic/elastic.go
    • Line 29: warning: should not use dot imports (golint)
    • Line 32: warning: should not use dot imports (golint)
    • Line 43: warning: exported const KeyMetaFileName should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type Record should have comment or be unexported (golint)
    • Line 51: warning: exported type Reader should have comment or be unexported (golint)
    • Line 105: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 283: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 331: warning: exported method Reader.SetMode should have comment or be unexported (golint)
    • Line 568: warning: exported method Reader.Start should have comment or be unexported (golint)
    • Line 602: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 614: warning: exported method Reader.ReadLine should have comment or be unexported (golint)
    • Line 634: warning: exported method Reader.Status should have comment or be unexported (golint)
    • Line 640: warning: exported method Reader.Reset should have comment or be unexported (golint)
    • Line 659: warning: exported method Reader.Close should have comment or be unexported (golint)
    • logkit/transforms/mutate/convert.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 26: warning: exported type Converter should have comment or be unexported (golint)
    • Line 36: warning: exported method Converter.Init should have comment or be unexported (golint)
    • Line 55: warning: exported method Converter.RawTransform should have comment or be unexported (golint)
    • Line 59: warning: exported method Converter.Transform should have comment or be unexported (golint)
    • Line 121: warning: exported method Converter.Description should have comment or be unexported (golint)
    • Line 126: warning: exported method Converter.Type should have comment or be unexported (golint)
    • Line 130: warning: exported method Converter.SampleConfig should have comment or be unexported (golint)
    • Line 137: warning: exported method Converter.ConfigOptions should have comment or be unexported (golint)
    • Line 152: warning: exported method Converter.Stage should have comment or be unexported (golint)
    • Line 156: warning: exported method Converter.Stats should have comment or be unexported (golint)
    • Line 160: warning: exported method Converter.SetStats should have comment or be unexported (golint)
    • Line 171: warning: exported type DslSchemaEntry should have comment or be unexported (golint)
    • Line 262: warning: exported function ParseDsl should have comment or be unexported (golint)
    • logkit/reader/cloudtrail/cloudtrail.go
    • Line 26: warning: should not use dot imports (golint)
    • Line 29: warning: should not use dot imports (golint)
    • Line 38: warning: exported function GetDefaultSyncDir should have comment or be unexported (golint)
    • Line 50: warning: exported function GetDefaultMetaStore should have comment or be unexported (golint)
    • Line 70: warning: exported type Reader should have comment or be unexported (golint)
    • Line 75: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 108: warning: exported method Reader.Reset should have comment or be unexported (golint)
    • Line 123: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 159: warning: exported function GetS3UserInfo should have comment or be unexported (golint)
    • logkit/reader/extract/reader.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 20: warning: comment on exported type Reader should be of the form "Reader ..." (with optional leading article) (golint)
    • Line 29: warning: exported type Opts should have comment or be unexported (golint)
    • Line 91: warning: exported method Reader.Name should have comment or be unexported (golint)
    • Line 95: warning: exported method Reader.Source should have comment or be unexported (golint)
    • Line 99: warning: exported method Reader.NewSourceIndex should have comment or be unexported (golint)
    • Line 114: warning: exported method Reader.Close should have comment or be unexported (golint)
    • Line 118: warning: exported method Reader.SyncMeta should have comment or be unexported (golint)
    • Line 126: warning: exported method Reader.Lag should have comment or be unexported (golint)
    • Line 130: warning: exported method Reader.ReadDone should have comment or be unexported (golint)
    • Line 142: warning: exported type SourceReader should have comment or be unexported (golint)
    • Line 149: warning: exported type Tar should have comment or be unexported (golint)
    • Line 163: warning: exported function NewTarGz should have comment or be unexported (golint)
    • Line 188: warning: exported function NewTar should have comment or be unexported (golint)
    • Line 267: warning: exported method Tar.Close should have comment or be unexported (golint)
    • Line 271: warning: exported method Tar.Source should have comment or be unexported (golint)
    • Line 277: warning: exported method Tar.NewSourceIndex should have comment or be unexported (golint)
    • Line 281: warning: exported method Tar.Lag should have comment or be unexported (golint)
    • Line 294: warning: exported type GZ should have comment or be unexported (golint)
    • Line 303: warning: exported function NewGZ should have comment or be unexported (golint)
    • Line 332: warning: exported method GZ.Close should have comment or be unexported (golint)
    • Line 340: warning: exported method GZ.Source should have comment or be unexported (golint)
    • Line 344: warning: exported method GZ.Lag should have comment or be unexported (golint)
    • Line 348: warning: exported method GZ.NewSourceIndex should have comment or be unexported (golint)
    • Line 352: warning: exported type ZIP should have comment or be unexported (golint)
    • Line 365: warning: exported function NewZIP should have comment or be unexported (golint)
    • Line 450: warning: exported method ZIP.Close should have comment or be unexported (golint)
    • Line 457: warning: exported method ZIP.Source should have comment or be unexported (golint)
    • Line 463: warning: exported method ZIP.NewSourceIndex should have comment or be unexported (golint)
    • Line 467: warning: exported method ZIP.Lag should have comment or be unexported (golint)
    • logkit/reader/reader.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 11: warning: should not use dot imports (golint)
    • Line 30: warning: exported type RunTimeReader should have comment or be unexported (golint)
    • Line 53: warning: comment on exported type LagReader should be of the form "LagReader ..." (with optional leading article) (golint)
    • Line 58: warning: exported type OnceReader should have comment or be unexported (golint)
    • Line 71: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 76: warning: comment on exported function NewFileBufReader should be of the form "NewFileBufReader ..." (golint)
    • Line 82: warning: exported type Constructor should have comment or be unexported (golint)
    • Line 97: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 109: warning: exported method Registry.RegisterReader should have comment or be unexported (golint)
    • Line 118: warning: exported method Registry.NewReader should have comment or be unexported (golint)
    • Line 127: warning: exported method Registry.NewReaderWithMeta should have comment or be unexported (golint)
    • Line 161: warning: exported type SourceIndex should have comment or be unexported (golint)
    • Line 166: warning: exported type NewSourceRecorder should have comment or be unexported (golint)
    • logkit/transforms/date/date.go
    • Line 9: warning: should not use dot imports (golint)
    • Line 18: warning: exported type Transformer should have comment or be unexported (golint)
    • Line 30: warning: exported method Transformer.Init should have comment or be unexported (golint)
    • Line 40: warning: exported method Transformer.RawTransform should have comment or be unexported (golint)
    • Line 44: warning: exported method Transformer.Transform should have comment or be unexported (golint)
    • Line 101: warning: exported method Transformer.Description should have comment or be unexported (golint)
    • Line 106: warning: exported method Transformer.Type should have comment or be unexported (golint)
    • Line 110: warning: exported method Transformer.SampleConfig should have comment or be unexported (golint)
    • Line 120: warning: exported method Transformer.ConfigOptions should have comment or be unexported (golint)
    • Line 144: warning: exported method Transformer.Stage should have comment or be unexported (golint)
    • Line 148: warning: exported method Transformer.Stats should have comment or be unexported (golint)
    • Line 152: warning: exported method Transformer.SetStats should have comment or be unexported (golint)
    • logkit/mgr/api_metric.go
    • Line 8: warning: comment on exported method RestService.GetMetricKeys should be of the form "GetMetricKeys ..." (golint)
    • Line 15: warning: comment on exported method RestService.GetMetricUsages should be of the form "GetMetricUsages ..." (golint)
    • Line 22: warning: comment on exported method RestService.GetMetricOptions should be of the form "GetMetricOptions ..." (golint)
    • logkit/reader/bufreader/bufreader.go
    • Line 5: warning: package comment should be of the form "Package bufreader ..." (golint)
    • Line 28: warning: should not use dot imports (golint)
    • Line 32: warning: should not use dot imports (golint)
    • Line 36: warning: exported const DefaultBufSize should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported var ErrInvalidUnreadByte should have comment or be unexported (golint)
    • Line 49: warning: exported type LastSync should have comment or be unexported (golint)
    • Line 172: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 183: warning: exported method BufReader.SetMode should have comment or be unexported (golint)
    • Line 192: warning: exported method BufReader.SetRunTime should have comment or be unexported (golint)
    • Line 432: warning: comment on exported method BufReader.ReadPattern should be of the form "ReadPattern ..." (golint)
    • Line 475: warning: exported method BufReader.FormMutiLine should have comment or be unexported (golint)
    • Line 530: warning: exported method BufReader.Name should have comment or be unexported (golint)
    • Line 534: warning: exported method BufReader.Source should have comment or be unexported (golint)
    • Line 544: warning: exported method BufReader.Close should have comment or be unexported (golint)
    • Line 549: warning: exported method BufReader.Status should have comment or be unexported (golint)
    • Line 561: warning: exported method BufReader.Lag should have comment or be unexported (golint)
    • Line 570: warning: exported method BufReader.ReadDone should have comment or be unexported (golint)
    • Line 578: warning: exported method BufReader.SyncMeta should have comment or be unexported (golint)
    • Line 629: warning: exported function NewFileDirReader should have comment or be unexported (golint)
    • Line 655: warning: exported function NewSingleFileReader should have comment or be unexported (golint)
    • logkit/metric/system/cpu.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 11: warning: exported const TypeMetricCpu should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported const CpuTimeUser should be of the form "CpuTimeUser ..." (golint)
    • Line 28: warning: comment on exported const CpuUsageUser should be of the form "CpuUsageUser ..." (golint)
    • Line 41: warning: comment on exported const CpuConfigPerCpu should be of the form "CpuConfigPerCpu ..." (golint)
    • Line 83: warning: exported type CPUStats should have comment or be unexported (golint)
    • Line 92: warning: exported method CPUStats.Name should have comment or be unexported (golint)
    • Line 96: warning: exported method CPUStats.Usages should have comment or be unexported (golint)
    • Line 100: warning: exported method CPUStats.Tags should have comment or be unexported (golint)
    • Line 104: warning: exported method CPUStats.Config should have comment or be unexported (golint)
    • logkit/sender/mysql/mysql.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 17: warning: should not use dot imports (golint)
    • Line 104: warning: exported type Sender should have comment or be unexported (golint)
    • Line 111: warning: exported function NewSender should have comment or be unexported (golint)
    • Line 144: warning: exported method Sender.Send should have comment or be unexported (golint)
    • Line 155: warning: exported method Sender.Name should have comment or be unexported (golint)
    • Line 159: warning: exported method Sender.Close should have comment or be unexported (golint)
    • logkit/reader/config/config.go
    • Line 7: warning: should not use dot imports (golint)
    • Line 57: warning: exported var OptionMetaPath should have comment or be unexported (golint)
    • Line 309: warning: exported const HideOptions should have comment (or a comment on this block) or be unexported (golint)
    • Line 315: warning: exported var ModeKeyOptions should have comment or be unexported (golint)
    • logkit/utils/equeue/queue.go
    • Line 10: warning: exported const DefaultErrorsListCap should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: comment on exported type ErrorQueue should be of the form "ErrorQueue ..." (with optional leading article) (golint)
    • Line 22: warning: exported type ErrorInfo should have comment or be unexported (golint)
    • Line 28: warning: exported function NewError should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 45: warning: comment on exported method ErrorQueue.Put should be of the form "Put ..." (golint)
    • Line 74: warning: comment on exported method ErrorQueue.Append should be of the form "Append ..." (golint)
    • Line 81: warning: comment on exported method ErrorQueue.End should be of the form "End ..." (golint)
    • Line 90: warning: comment on exported method ErrorQueue.Front should be of the form "Front ..." (golint)
    • Line 99: warning: comment on exported method ErrorQueue.GetN should be of the form "GetN ..." (golint)
    • Line 113: warning: exported method ErrorQueue.Size should have comment or be unexported (golint)
    • Line 117: warning: exported method ErrorQueue.Empty should have comment or be unexported (golint)
    • Line 130: warning: comment on exported method ErrorQueue.List should be of the form "List ..." (golint)
    • Line 145: warning: comment on exported method ErrorQueue.GetMaxSize should be of the form "GetMaxSize ..." (golint)
    • Line 150: warning: comment on exported method ErrorQueue.Clone should be of the form "Clone ..." (golint)
    • Line 176: warning: comment on exported method ErrorQueue.EqualLast should be of the form "EqualLast ..." (golint)
    • Line 186: warning: exported function EqualErrors should have comment or be unexported (golint)
    • logkit/reader/meta.go
    • Line 21: warning: should not use dot imports (golint)
    • Line 23: warning: should not use dot imports (golint)
    • Line 29: warning: exported const DoneFileName should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported const DefautFileRetention should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type Statistic should have comment or be unexported (golint)
    • Line 59: warning: exported type Meta should have comment or be unexported (golint)
    • Line 106: warning: exported function NewMetaWithRunnerName should have comment or be unexported (golint)
    • Line 115: warning: exported function NewMeta should have comment or be unexported (golint)
    • Line 165: warning: exported function NewMetaWithConf should have comment or be unexported (golint)
    • Line 209: warning: exported method Meta.AddSubMeta should have comment or be unexported (golint)
    • Line 223: warning: exported method Meta.RemoveSubMeta should have comment or be unexported (golint)
    • Line 305: warning: exported method Meta.IsExist should have comment or be unexported (golint)
    • Line 309: warning: exported method Meta.IsValid should have comment or be unexported (golint)
    • Line 340: warning: exported method Meta.CacheLineFile should have comment or be unexported (golint)
    • Line 344: warning: exported method Meta.ReadCacheLine should have comment or be unexported (golint)
    • Line 348: warning: exported method Meta.WriteCacheLine should have comment or be unexported (golint)
    • Line 352: warning: exported method Meta.ReadBufMeta should have comment or be unexported (golint)
    • Line 362: warning: exported method Meta.ReadBuf should have comment or be unexported (golint)
    • Line 371: warning: exported method Meta.WriteBuf should have comment or be unexported (golint)
    • Line 519: warning: exported method Meta.SyncDoneFileInode should have comment or be unexported (golint)
    • Line 541: warning: exported method Meta.GetDoneFileContent should have comment or be unexported (golint)
    • Line 562: warning: exported function JoinFileInode should have comment or be unexported (golint)
    • Line 566: warning: exported method Meta.GetDoneFileInode should have comment or be unexported (golint)
    • Line 613: warning: exported method Meta.AppendDeleteFile should have comment or be unexported (golint)
    • Line 640: warning: exported method Meta.IsStatisticFileExist should have comment or be unexported (golint)
    • Line 644: warning: comment on exported method Meta.IsStatisticFileNotExist should be of the form "IsStatisticFileNotExist ..." (golint)
    • Line 661: warning: exported method Meta.LogPath should have comment or be unexported (golint)
    • Line 670: warning: exported method Meta.DeleteDoneFile should have comment or be unexported (golint)
    • Line 689: warning: exported method Meta.GetDoneFiles should have comment or be unexported (golint)
    • Line 751: warning: exported method Meta.GetMode should have comment or be unexported (golint)
    • Line 755: warning: exported method Meta.IsFileMode should have comment or be unexported (golint)
    • Line 759: warning: exported method Meta.GetDataSourceTag should have comment or be unexported (golint)
    • Line 763: warning: exported method Meta.GetEncodeTag should have comment or be unexported (golint)
    • Line 767: warning: exported method Meta.GetTagFile should have comment or be unexported (golint)
    • Line 771: warning: exported method Meta.GetTags should have comment or be unexported (golint)
    • Line 775: warning: exported method Meta.Reset should have comment or be unexported (golint)
    • Line 783: warning: exported method Meta.Delete should have comment or be unexported (golint)
    • Line 802: warning: exported method Meta.ReadStatistic should have comment or be unexported (golint)
    • Line 811: warning: exported method Meta.WriteStatistic should have comment or be unexported (golint)
    • Line 819: warning: exported method Meta.ExtraInfo should have comment or be unexported (golint)
    • Line 834: warning: exported function GetLogPathAbs should have comment or be unexported (golint)
    • Line 853: warning: exported function GetMetaOption should have comment or be unexported (golint)
    • logkit/reader/test/test.go
    • Line 10: warning: should not use dot imports (golint)
    • Line 14: warning: exported var Dir should have comment or be unexported (golint)
    • Line 62: warning: comment on exported function AppendFiles should be of the form "AppendFiles ..." (golint)
    • Line 84: warning: exported function CreateFileForTest should have comment or be unexported (golint)
    • Line 89: warning: exported function CreateSeqFile should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • logkit/parser/csv/csv_test.go
    • Line 177: warning: ineffectual assignment to err (ineffassign)
    • Line 179: warning: ineffectual assignment to datas (ineffassign)
    • Line 186: warning: ineffectual assignment to err (ineffassign)
    • Line 205: warning: ineffectual assignment to err (ineffassign)
    • Line 254: warning: ineffectual assignment to err (ineffassign)
    • Line 272: warning: ineffectual assignment to err (ineffassign)
    • Line 285: warning: ineffectual assignment to err (ineffassign)
    • Line 299: warning: ineffectual assignment to err (ineffassign)
    • Line 312: warning: ineffectual assignment to err (ineffassign)
    • Line 331: warning: ineffectual assignment to err (ineffassign)

misspell99%

Misspell Finds commonly misspelled English words