Preparing report...

Report for github.com/TalkingData/owl

A+    Excellent!    Found 116 issues across 155 files

Tweet

gofmt98%

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


go_vet100%

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

No problems detected. Good job!


gocyclo96%

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.


golint27%

Golint is a linter for Go source code.

    • owl/common/types/message.go
    • Line 9: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 25: warning: comment on exported const MsgAgentRegister should be of the form "MsgAgentRegister ..." (golint)
    • Line 27: warning: exported const MsgAgentSendMetricInfo should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: comment on exported const MsgCFCSendPluginsList should be of the form "MsgCFCSendPluginsList ..." (golint)
    • Line 38: warning: comment on exported const MsgRepeaterPostTimeSeriesData should be of the form "MsgRepeaterPostTimeSeriesData ..." (golint)
    • Line 42: warning: exported var MsgTextMap should have comment or be unexported (golint)
    • Line 55: warning: exported type AgentPostMetricRequest should have comment or be unexported (golint)
    • Line 60: warning: exported method AgentPostMetricRequest.Encode should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 65: warning: exported type GetPluginResp should have comment or be unexported (golint)
    • Line 70: warning: exported method GetPluginResp.Encode should have comment or be unexported (golint)
    • Line 70: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 75: warning: exported method GetPluginResp.Decode should have comment or be unexported (golint)
    • Line 75: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 79: warning: exported type SyncPluginResponse should have comment or be unexported (golint)
    • Line 85: warning: exported method SyncPluginResponse.Encode should have comment or be unexported (golint)
    • Line 90: warning: exported method SyncPluginResponse.Decode should have comment or be unexported (golint)
    • Line 94: warning: exported type SyncPluginRequest should have comment or be unexported (golint)
    • Line 99: warning: exported method SyncPluginRequest.Encode should have comment or be unexported (golint)
    • Line 104: warning: exported method SyncPluginRequest.Decode should have comment or be unexported (golint)
    • Line 108: warning: exported type MetricConfig should have comment or be unexported (golint)
    • Line 113: warning: exported method MetricConfig.Encode should have comment or be unexported (golint)
    • Line 118: warning: exported method MetricConfig.Decode should have comment or be unexported (golint)
    • owl/common/types/panel.go
    • Line 7: warning: exported type Panel should have comment or be unexported (golint)
    • Line 18: warning: exported method Panel.TableName should have comment or be unexported (golint)
    • owl/inspector/config.go
    • Line 6: warning: exported const CONFIG_FILE_PATH should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported var GlobalConfig should have comment or be unexported (golint)
    • Line 23: warning: exported type Config should have comment or be unexported (golint)
    • Line 38: warning: exported function InitGlobalConfig should have comment or be unexported (golint)
    • owl/api/data.go
    • Line 96: warning: exported function Tags2String should have comment or be unexported (golint)
    • owl/common/types/tsdb.go
    • Line 15: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported type Client should have comment or be unexported (golint)
    • Line 26: warning: exported function NewTsdbClient should have comment or be unexported (golint)
    • Line 44: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 49: warning: exported type Query should have comment or be unexported (golint)
    • Line 56: warning: exported type QueryParams should have comment or be unexported (golint)
    • Line 71: warning: exported type Result should have comment or be unexported (golint)
    • Line 78: warning: exported type InnerError should have comment or be unexported (golint)
    • Line 84: warning: exported type ErrorResp should have comment or be unexported (golint)
    • Line 88: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 92: warning: exported function NewQueryParams should have comment or be unexported (golint)
    • Line 95: warning: don't use underscores in Go names; var tags_pairs should be tagsPairs (golint)
    • Line 96: warning: don't use underscores in Go names; range var tag_pair should be tagPair (golint)
    • Line 97: warning: don't use underscores in Go names; var tag_k_v should be tagKV (golint)
    • Line 105: warning: exported method Client.Query should have comment or be unexported (golint)
    • Line 137: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 138: warning: don't use underscores in Go names; var err_resp should be errResp (golint)
    • owl/client/host.go
    • Line 14: warning: don't use underscores in Go names; const uuid_file should be uuidFile (golint)
    • Line 15: warning: don't use underscores in Go names; const uptime_file should be uptimeFile (golint)
    • owl/common/types/action.go
    • Line 4: warning: exported const ACTION_ALARM should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported const ACTION_NOTIFY should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Action should have comment or be unexported (golint)
    • Line 29: warning: exported type ActionResult should have comment or be unexported (golint)
    • Line 48: warning: exported function NewActionResult should have comment or be unexported (golint)
    • Line 49: warning: don't use underscores in Go names; func parameter strategy_event_id should be strategyEventID (golint)
    • Line 50: warning: don't use underscores in Go names; func parameter action_id should be actionID (golint)
    • Line 50: warning: don't use underscores in Go names; func parameter action_type should be actionType (golint)
    • Line 50: warning: don't use underscores in Go names; func parameter action_kind should be actionKind (golint)
    • Line 50: warning: don't use underscores in Go names; func parameter script_id should be scriptID (golint)
    • Line 50: warning: don't use underscores in Go names; func parameter user_id should be userID (golint)
    • Line 51: warning: don't use underscores in Go names; func parameter user_name should be userName (golint)
    • Line 72: warning: exported type Script should have comment or be unexported (golint)
    • owl/common/tsdb/kairosdb.go
    • Line 16: warning: exported type KairosDbClient should have comment or be unexported (golint)
    • Line 20: warning: exported function NewKairosDbClient should have comment or be unexported (golint)
    • Line 59: warning: exported method KairosDbClient.Query should have comment or be unexported (golint)
    • owl/common/tsdb/opentsdb.go
    • Line 15: warning: exported type OpenTsdbClient should have comment or be unexported (golint)
    • Line 21: warning: exported function NewOpenTsdbClient should have comment or be unexported (golint)
    • Line 39: warning: exported method OpenTsdbClient.Close should have comment or be unexported (golint)
    • Line 44: warning: exported type Query should have comment or be unexported (golint)
    • Line 51: warning: exported type QueryParams should have comment or be unexported (golint)
    • Line 64: warning: exported type InnerError should have comment or be unexported (golint)
    • Line 70: warning: exported type ErrorResp should have comment or be unexported (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 94: warning: exported method OpenTsdbClient.Query should have comment or be unexported (golint)
    • owl/client/config.go
    • Line 12: warning: exported const DefaultCfcAddr should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported var GlobalConfig should have comment or be unexported (golint)
    • Line 31: warning: exported type Config should have comment or be unexported (golint)
    • Line 50: warning: exported function InitGlobalConfig should have comment or be unexported (golint)
    • owl/controller/controller.go
    • Line 15: warning: exported type Controller should have comment or be unexported (golint)
    • Line 26: warning: exported function InitController should have comment or be unexported (golint)
    • owl/client/builtin/net.go
    • Line 12: warning: exported var IfaceNamePrefix should have comment or be unexported (golint)
    • Line 15: warning: exported function NetMetrics should have comment or be unexported (golint)
    • Line 123: warning: exported function NameNotAvalid should have comment or be unexported (golint)
    • owl/common/tsdb/go-kairosdb/builder/errors.go
    • Line 20: warning: comment on exported var ErrorMetricNameInvalid should be of the form "ErrorMetricNameInvalid ..." (golint)
    • Line 22: warning: exported var ErrorTagNameInvalid should have comment or be unexported (golint)
    • Line 26: warning: comment on exported var ErrorDataPointInt64 should be of the form "ErrorDataPointInt64 ..." (golint)
    • Line 30: warning: comment on exported var ErrorQMetricNameInvalid should be of the form "ErrorQMetricNameInvalid ..." (golint)
    • Line 36: warning: comment on exported var ErrorAbsRelativeStartSet should be of the form "ErrorAbsRelativeStartSet ..." (golint)
    • owl/common/types/strategy.go
    • Line 4: warning: exported const PRIORITY_HIGH_LEVEL should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type Strategy should have comment or be unexported (golint)
    • owl/inspector/compute.go
    • Line 16: warning: exported const MAX_METHOD should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 47: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 51: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 67: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 86: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 90: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 110: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 117: warning: don't use underscores in Go names; var start_time should be startTime (golint)
    • Line 117: warning: don't use underscores in Go names; var end_time should be endTime (golint)
    • Line 118: warning: don't use underscores in Go names; var results_ago should be resultsAgo (golint)
    • Line 132: warning: don't use underscores in Go names; var data_ago should be dataAgo (golint)
    • Line 134: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 140: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 160: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 176: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 179: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 190: warning: don't use underscores in Go names; var one_result should be oneResult (golint)
    • Line 215: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 231: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 234: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 245: warning: don't use underscores in Go names; var one_result should be oneResult (golint)
    • Line 270: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 281: warning: don't use underscores in Go names; var value_times should be valueTimes (golint)
    • Line 282: warning: don't use underscores in Go names; range var value_time should be valueTime (golint)
    • Line 287: warning: don't use underscores in Go names; range var value_time should be valueTime (golint)
    • Line 290: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 293: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 304: warning: don't use underscores in Go names; var one_result should be oneResult (golint)
    • Line 325: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 343: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 346: warning: don't use underscores in Go names; var value_tmp should be valueTmp (golint)
    • Line 359: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 375: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 383: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 423: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 437: warning: don't use underscores in Go names; var current_threshold should be currentThreshold (golint)
    • Line 441: warning: don't use underscores in Go names; var trigger_result should be triggerResult (golint)
    • Line 474: warning: don't use underscores in Go names; func result start_time should be startTime (golint)
    • Line 474: warning: don't use underscores in Go names; func result end_time should be endTime (golint)
    • owl/common/types/user.go
    • Line 4: warning: exported const USER should have comment (or a comment on this block) or be unexported (golint)
    • Line 8: warning: exported type User should have comment or be unexported (golint)
    • Line 19: warning: exported method User.IsAdmin should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • owl/api/charts.go
    • Line 11: warning: exported type Chart should have comment or be unexported (golint)
    • Line 22: warning: exported type ChartElement should have comment or be unexported (golint)
    • owl/common/types/tsdbstore.go
    • Line 5: warning: exported type TimeSeriesDataStore should have comment or be unexported (golint)
    • Line 10: warning: exported function NewTimeSeriesDataStore should have comment or be unexported (golint)
    • Line 17: warning: exported method TimeSeriesDataStore.Add should have comment or be unexported (golint)
    • Line 23: warning: exported method TimeSeriesDataStore.Get should have comment or be unexported (golint)
    • Line 30: warning: exported method TimeSeriesDataStore.Remove should have comment or be unexported (golint)
    • Line 36: warning: exported method TimeSeriesDataStore.GetAll should have comment or be unexported (golint)
    • owl/controller/pool.go
    • Line 12: warning: exported var ErrTaskPoolFull should have comment or be unexported (golint)
    • Line 17: warning: exported type TaskPool should have comment or be unexported (golint)
    • Line 21: warning: exported function NewTaskPool should have comment or be unexported (golint)
    • Line 89: warning: exported type ResultPool should have comment or be unexported (golint)
    • Line 93: warning: exported function NewResultPool should have comment or be unexported (golint)
    • Line 97: warning: exported method ResultPool.PutResults 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 109: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 119: warning: exported type NodePool should have comment or be unexported (golint)
    • Line 124: warning: exported function NewNodePool should have comment or be unexported (golint)
    • Line 128: warning: exported type EventPool should have comment or be unexported (golint)
    • Line 131: warning: don't use underscores in Go names; struct field update_time should be updateTime (golint)
    • Line 135: warning: exported function NewEventPool should have comment or be unexported (golint)
    • owl/common/types/host.go
    • Line 8: warning: exported type Host should have comment or be unexported (golint)
    • Line 22: warning: exported method Host.SetMetadata should have comment or be unexported (golint)
    • Line 26: warning: exported method Host.MSetMetadata should have comment or be unexported (golint)
    • Line 32: warning: exported method Host.GetMetadata should have comment or be unexported (golint)
    • Line 36: warning: exported method Host.HasMetadata should have comment or be unexported (golint)
    • Line 41: warning: exported method Host.DeleteMetadata should have comment or be unexported (golint)
    • Line 45: warning: exported method Host.CleanMetadata should have comment or be unexported (golint)
    • Line 49: warning: exported method Host.Encode should have comment or be unexported (golint)
    • Line 49: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 54: warning: exported method Host.Decode should have comment or be unexported (golint)
    • Line 54: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 58: warning: exported method Host.IsAlive should have comment or be unexported (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 62: warning: exported method Host.IsMute should have comment or be unexported (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • owl/common/types/plugin.go
    • Line 14: warning: exported var ErrPluginPathIsBlank should have comment or be unexported (golint)
    • Line 18: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 37: warning: exported method Plugin.Encode should have comment or be unexported (golint)
    • Line 42: warning: exported method Plugin.Decode should have comment or be unexported (golint)
    • Line 58: warning: exported method Plugin.Equal should have comment or be unexported (golint)
    • Line 70: warning: exported method Plugin.Validate should have comment or be unexported (golint)
    • Line 80: warning: exported method Plugin.UniqueKey should have comment or be unexported (golint)
    • owl/common/tsdb/go-kairosdb/response/query_response.go
    • Line 19: warning: exported type GroupResult should have comment or be unexported (golint)
    • Line 23: warning: exported type Results should have comment or be unexported (golint)
    • Line 30: warning: exported type Queries should have comment or be unexported (golint)
    • Line 35: warning: exported type QueryResponse should have comment or be unexported (golint)
    • Line 40: warning: exported function NewQueryResponse should have comment or be unexported (golint)
    • owl/common/tsdb/go-kairosdb/builder/aggregator_factory.go
    • Line 22: warning: exported type TrimType should have comment or be unexported (golint)
    • Line 25: warning: exported const TRIM_FIRST should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported function CreateMinAggregator should be of the form "CreateMinAggregator ..." (golint)
    • Line 40: warning: comment on exported function CreateMaxAggregator should be of the form "CreateMaxAggregator ..." (golint)
    • Line 50: warning: comment on exported function CreateAverageAggregator should be of the form "CreateAverageAggregator ..." (golint)
    • Line 60: warning: comment on exported function CreateStandardDeviationAggregator should be of the form "CreateStandardDeviationAggregator ..." (golint)
    • Line 71: warning: comment on exported function CreateSumAggregator should be of the form "CreateSumAggregator ..." (golint)
    • Line 82: warning: comment on exported function CreateCountAggregator should be of the form "CreateCountAggregator ..." (golint)
    • Line 93: warning: comment on exported function CreateLastAggregator should be of the form "CreateLastAggregator ..." (golint)
    • Line 102: warning: comment on exported function CreateFirstAggregator should be of the form "CreateFirstAggregator ..." (golint)
    • Line 111: warning: comment on exported function CreateDataGapsMarkingAggregator should be of the form "CreateDataGapsMarkingAggregator ..." (golint)
    • Line 121: warning: comment on exported function CreateLeastSquaresAggregator should be of the form "CreateLeastSquaresAggregator ..." (golint)
    • Line 131: warning: comment on exported function CreatePercentileAggregator should be of the form "CreatePercentileAggregator ..." (golint)
    • Line 142: warning: comment on exported function CreateDiffAggregator should be of the form "CreateDiffAggregator ..." (golint)
    • Line 149: warning: comment on exported function CreateSamplerAggregator should be of the form "CreateSamplerAggregator ..." (golint)
    • Line 156: warning: comment on exported function CreateRateAggregator should be of the form "CreateRateAggregator ..." (golint)
    • Line 164: warning: comment on exported function CreateDivAggregator should be of the form "CreateDivAggregator ..." (golint)
    • Line 175: warning: comment on exported function CreateScaleAggregator should be of the form "CreateScaleAggregator ..." (golint)
    • Line 186: warning: comment on exported function CreateSaveAsAggregator should be of the form "CreateSaveAsAggregator ..." (golint)
    • Line 197: warning: comment on exported function CreateTrimAggregator should be of the form "CreateTrimAggregator ..." (golint)
    • owl/cfc/config.go
    • Line 6: warning: exported const ConfigFilePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported var GlobalConfig should have comment or be unexported (golint)
    • Line 26: warning: exported type Config should have comment or be unexported (golint)
    • Line 52: warning: exported function InitGlobalConfig should have comment or be unexported (golint)
    • owl/common/tcp/session.go
    • Line 17: warning: exported const READCHAN_SIZE should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var ErrSessionClosing should have comment or be unexported (golint)
    • Line 26: warning: exported type Session should have comment or be unexported (golint)
    • Line 37: warning: exported method Session.Serve should have comment or be unexported (golint)
    • Line 121: warning: exported method Session.Send should have comment or be unexported (golint)
    • Line 133: warning: exported method Session.Close should have comment or be unexported (golint)
    • Line 143: warning: exported method Session.IsClosed should have comment or be unexported (golint)
    • Line 147: warning: exported method Session.LocalAddr should have comment or be unexported (golint)
    • Line 151: warning: exported method Session.RemoteAddr should have comment or be unexported (golint)
    • Line 155: warning: exported method Session.RemoteIPAddr should have comment or be unexported (golint)
    • owl/common/tcp/session_bucket.go
    • Line 7: warning: exported type SessionBucket should have comment or be unexported (golint)
    • Line 12: warning: exported method SessionBucket.Add should have comment or be unexported (golint)
    • Line 18: warning: exported method SessionBucket.Get should have comment or be unexported (golint)
    • Line 27: warning: exported method SessionBucket.Delete should have comment or be unexported (golint)
    • Line 33: warning: exported method SessionBucket.All should have comment or be unexported (golint)
    • owl/controller/cache/cache.go
    • Line 11: warning: exported const NoExpiration should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Item should have comment or be unexported (golint)
    • Line 21: warning: exported method Item.Expired should have comment or be unexported (golint)
    • Line 29: warning: exported type Cache should have comment or be unexported (golint)
    • Line 283: warning: exported function New should have comment or be unexported (golint)
    • owl/cfc/mysql.go
    • Line 15: warning: exported type Storage should have comment or be unexported (golint)
    • Line 19: warning: exported function InitMysqlConnPool should have comment or be unexported (golint)
    • owl/common/tsdb/go-kairosdb/client/http_client.go
    • Line 29: warning: don't use underscores in Go names; var api_version should be apiVersion (golint)
    • Line 30: warning: don't use underscores in Go names; var datapoints_ep should be datapointsEp (golint)
    • Line 31: warning: don't use underscores in Go names; var deldatapoints_ep should be deldatapointsEp (golint)
    • Line 32: warning: don't use underscores in Go names; var query_ep should be queryEp (golint)
    • Line 33: warning: don't use underscores in Go names; var health_ep should be healthEp (golint)
    • Line 34: warning: don't use underscores in Go names; var delmetric_ep should be delmetricEp (golint)
    • Line 35: warning: don't use underscores in Go names; var metricnames_ep should be metricnamesEp (golint)
    • Line 36: warning: don't use underscores in Go names; var tagnames_ep should be tagnamesEp (golint)
    • Line 37: warning: don't use underscores in Go names; var tagvalues_ep should be tagvaluesEp (golint)
    • Line 38: warning: don't use underscores in Go names; var version_ep should be versionEp (golint)
    • Line 46: warning: exported function NewHttpClient should have comment or be unexported (golint)
    • Line 136: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 177: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • owl/cfc/log.go
    • Line 13: warning: exported function InitLog should have comment or be unexported (golint)
    • owl/repeater/config.go
    • Line 10: warning: exported const ConfigFilePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported var RetryPolicy should have comment or be unexported (golint)
    • Line 30: warning: exported var GlobalConfig should have comment or be unexported (golint)
    • Line 32: warning: exported type Config should have comment or be unexported (golint)
    • Line 54: warning: exported function InitGlobalConfig should have comment or be unexported (golint)
    • owl/controller/queue.go
    • Line 11: warning: comment on exported var ErrEmptyQueue should be of the form "ErrEmptyQueue ..." (golint)
    • Line 13: warning: comment on exported var ErrFullQueue should be of the form "ErrFullQueue ..." (golint)
    • Line 24: warning: exported type Queue should have comment or be unexported (golint)
    • Line 31: warning: don't use underscores in Go names; struct field update_time should be updateTime (golint)
    • Line 34: warning: comment on exported function NewQueue should be of the form "NewQueue ..." (golint)
    • Line 105: warning: comment on exported method Queue.GetNoWait should be of the form "GetNoWait ..." (golint)
    • Line 110: warning: comment on exported method Queue.Get should be of the form "Get ..." (golint)
    • Line 152: warning: comment on exported method Queue.PutNoWait should be of the form "PutNoWait ..." (golint)
    • Line 157: warning: comment on exported method Queue.Put should be of the form "Put ..." (golint)
    • Line 205: warning: comment on exported method Queue.Size should be of the form "Size ..." (golint)
    • Line 216: warning: comment on exported method Queue.IsEmpty should be of the form "IsEmpty ..." (golint)
    • Line 227: warning: comment on exported method Queue.IsFull should be of the form "IsFull ..." (golint)
    • Line 234: warning: exported method Queue.Clear should have comment or be unexported (golint)
    • owl/api/hosts.go
    • Line 13: warning: exported type Host should have comment or be unexported (golint)
    • Line 27: warning: exported type WarpHost should have comment or be unexported (golint)
    • owl/common/types/timeseries.go
    • Line 12: warning: exported var MetricReg should have comment or be unexported (golint)
    • Line 17: warning: exported type TimeSeriesDataV4 should have comment or be unexported (golint)
    • Line 24: warning: exported method TimeSeriesDataV4.ToV5 should have comment or be unexported (golint)
    • Line 37: warning: exported type TimeSeriesData should have comment or be unexported (golint)
    • Line 46: warning: exported method TimeSeriesData.Validate should have comment or be unexported (golint)
    • Line 67: warning: exported method TimeSeriesData.Encode should have comment or be unexported (golint)
    • Line 67: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 72: warning: exported method TimeSeriesData.Decode should have comment or be unexported (golint)
    • Line 72: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 76: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 87: warning: exported method TimeSeriesData.Tags2String should have comment or be unexported (golint)
    • Line 87: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 106: warning: exported method TimeSeriesData.PK should have comment or be unexported (golint)
    • Line 106: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 110: warning: exported method TimeSeriesData.GetMetric should have comment or be unexported (golint)
    • Line 110: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 118: warning: exported method TimeSeriesData.AddTags should have comment or be unexported (golint)
    • Line 118: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 128: warning: exported method TimeSeriesData.AddTag should have comment or be unexported (golint)
    • Line 128: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 132: warning: exported method TimeSeriesData.HasTag should have comment or be unexported (golint)
    • Line 132: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 137: warning: exported method TimeSeriesData.RemoveTag should have comment or be unexported (golint)
    • Line 137: warning: receiver name tsd should be consistent with previous receiver name m for TimeSeriesData (golint)
    • Line 144: warning: comment on exported function ParseTags should be of the form "ParseTags ..." (golint)
    • owl/proxy/config.go
    • Line 6: warning: exported const ConfigFilePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported var GlobalConfig should have comment or be unexported (golint)
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 34: warning: exported function InitGlobalConfig should have comment or be unexported (golint)
    • owl/controller/mysql.go
    • Line 18: warning: exported function InitMysqlConnPool should have comment or be unexported (golint)
    • Line 32: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: don't use underscores in Go names; method parameter product_id should be productID (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: don't use underscores in Go names; method parameter strategy_id should be strategyID (golint)
    • Line 72: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 72: warning: don't use underscores in Go names; method parameter strategy_id should be strategyID (golint)
    • Line 81: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 81: warning: don't use underscores in Go names; method parameter group_id should be groupID (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 90: warning: don't use underscores in Go names; method parameter strategy_id should be strategyID (golint)
    • Line 109: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 109: warning: don't use underscores in Go names; method parameter strategy_id should be strategyID (golint)
    • Line 109: warning: don't use underscores in Go names; method parameter action_type should be actionType (golint)
    • Line 118: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 118: warning: don't use underscores in Go names; method parameter strategy_id should be strategyID (golint)
    • Line 127: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 127: warning: don't use underscores in Go names; method parameter strategy_event should be strategyEvent (golint)
    • Line 127: warning: don't use underscores in Go names; method parameter trigger_events should be triggerEvents (golint)
    • Line 160: warning: don't use underscores in Go names; var last_id should be lastID (golint)
    • Line 166: warning: don't use underscores in Go names; range var trigger_event should be triggerEvent (golint)
    • Line 167: warning: don't use underscores in Go names; var stmt_insert should be stmtInsert (golint)
    • Line 195: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 204: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 204: warning: don't use underscores in Go names; method parameter strategy_event should be strategyEvent (golint)
    • Line 204: warning: don't use underscores in Go names; method parameter trigger_events should be triggerEvents (golint)
    • Line 236: warning: don't use underscores in Go names; var stmt_delete should be stmtDelete (golint)
    • Line 242: warning: don't use underscores in Go names; range var trigger_event should be triggerEvent (golint)
    • Line 243: warning: don't use underscores in Go names; var stmt_insert should be stmtInsert (golint)
    • Line 272: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 272: warning: don't use underscores in Go names; method parameter strategy_id should be strategyID (golint)
    • Line 272: warning: don't use underscores in Go names; method parameter host_id should be hostID (golint)
    • Line 273: warning: don't use underscores in Go names; var strategy_event should be strategyEvent (golint)
    • Line 284: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 284: warning: don't use underscores in Go names; method parameter strategy_event_id should be strategyEventID (golint)
    • Line 285: warning: don't use underscores in Go names; var trigger_events should be triggerEvents (golint)
    • Line 293: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 293: warning: don't use underscores in Go names; method parameter action_id should be actionID (golint)
    • Line 302: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 302: warning: don't use underscores in Go names; method parameter action_id should be actionID (golint)
    • Line 311: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 311: warning: don't use underscores in Go names; method parameter action_result should be actionResult (golint)
    • Line 340: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 340: warning: don't use underscores in Go names; method parameter strategy_event should be strategyEvent (golint)
    • Line 340: warning: don't use underscores in Go names; method parameter trigger_events should be triggerEvents (golint)
    • Line 373: warning: don't use underscores in Go names; range var trigger_event should be triggerEvent (golint)
    • Line 374: warning: don't use underscores in Go names; var stmt_insert should be stmtInsert (golint)
    • Line 404: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 404: warning: don't use underscores in Go names; method parameter script_id should be scriptID (golint)
    • Line 413: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 413: warning: don't use underscores in Go names; method parameter strategy_id should be strategyID (golint)
    • Line 413: warning: don't use underscores in Go names; method parameter host_id should be hostID (golint)
    • Line 422: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 422: warning: don't use underscores in Go names; method parameter strategy_event_id should be strategyEventID (golint)
    • Line 422: warning: don't use underscores in Go names; method parameter strategy_event_status should be strategyEventStatus (golint)
    • Line 422: warning: don't use underscores in Go names; method parameter process_user should be processUser (golint)
    • Line 422: warning: don't use underscores in Go names; method parameter process_comments should be processComments (golint)
    • Line 422: warning: don't use underscores in Go names; method parameter process_time should be processTime (golint)
    • owl/api/users.go
    • Line 20: warning: exported const LocalUser should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type User should have comment or be unexported (golint)
    • Line 47: warning: exported function SyncUsers should have comment or be unexported (golint)
    • Line 268: warning: exported function Login should have comment or be unexported (golint)
    • Line 313: warning: exported function Logout should have comment or be unexported (golint)
    • owl/common/tcp/server.go
    • Line 12: warning: exported type Server should have comment or be unexported (golint)
    • Line 23: warning: exported type Handler should have comment or be unexported (golint)
    • Line 29: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 42: warning: exported method Server.ListenAndServe should have comment or be unexported (golint)
    • Line 54: warning: exported method Server.Serve should have comment or be unexported (golint)
    • Line 104: warning: exported method Server.Connect should have comment or be unexported (golint)
    • Line 112: warning: comment on exported method Server.SetMaxPacketSize should be of the form "SetMaxPacketSize ..." (golint)
    • owl/common/tsdb/tsdb.go
    • Line 3: warning: exported type TsdbClient should have comment or be unexported (golint)
    • Line 4: warning: don't use underscores in Go names; interface method parameter is_relative should be isRelative (golint)
    • owl/inspector/pool.go
    • Line 9: warning: exported type TaskPool should have comment or be unexported (golint)
    • Line 13: warning: exported function NewTaskPool should have comment or be unexported (golint)
    • Line 17: warning: exported method TaskPool.PutTasks should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: exported type ResultPool should have comment or be unexported (golint)
    • Line 37: warning: exported function NewResultPool should have comment or be unexported (golint)
    • Line 41: warning: exported method ResultPool.PutResult should have comment or be unexported (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • owl/proxy/proxy.go
    • Line 15: warning: exported type CFCProxy should have comment or be unexported (golint)
    • Line 23: warning: exported function InitCfcProxy should have comment or be unexported (golint)
    • Line 48: warning: exported method CFCProxy.DialCFC should have comment or be unexported (golint)
    • owl/api/token.go
    • Line 39: warning: exported function GenerateToken should have comment or be unexported (golint)
    • Line 55: warning: exported function ValidateToken should have comment or be unexported (golint)
    • owl/common/tsdb/go-kairosdb/builder/utils/relative_time.go
    • Line 19: warning: exported type RelativeTime should have comment or be unexported (golint)
    • Line 24: warning: exported function NewRelativeTime should have comment or be unexported (golint)
    • Line 31: warning: exported method RelativeTime.Value should have comment or be unexported (golint)
    • Line 35: warning: exported method RelativeTime.Unit should have comment or be unexported (golint)
    • Line 39: warning: exported method RelativeTime.RelativeTimeTo should have comment or be unexported (golint)
    • owl/common/types/chart.go
    • Line 7: warning: exported type Chart should have comment or be unexported (golint)
    • Line 20: warning: exported type ChartElement should have comment or be unexported (golint)
    • Line 28: warning: exported method Chart.TableName should have comment or be unexported (golint)
    • Line 32: warning: exported method ChartElement.TableName should have comment or be unexported (golint)
    • owl/api/host_groups.go
    • Line 13: warning: exported type HostGroup should have comment or be unexported (golint)
    • Line 22: warning: exported type WarpHostGroup should have comment or be unexported (golint)
    • owl/common/types/swtich.go
    • Line 27: warning: exported const H3C_CPU_OID should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type Counter should have comment or be unexported (golint)
    • Line 54: warning: exported type Switch should have comment or be unexported (golint)
    • Line 71: warning: exported type SnmpConfig should have comment or be unexported (golint)
    • Line 78: warning: exported type Interface should have comment or be unexported (golint)
    • Line 91: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 95: warning: exported method Switch.Do should have comment or be unexported (golint)
    • Line 95: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 114: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 236: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 360: warning: exported method Switch.BuildInterfaceIndex should have comment or be unexported (golint)
    • Line 360: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 381: warning: exported method Switch.CollectInterfaceName should have comment or be unexported (golint)
    • Line 381: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 402: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 439: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 476: warning: exported method Switch.CollectIfaceSpeed should have comment or be unexported (golint)
    • Line 476: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 502: warning: exported method Switch.CollectTraffic should have comment or be unexported (golint)
    • Line 502: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 527: warning: exported method Switch.CollectPerformanceData should have comment or be unexported (golint)
    • Line 527: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 594: warning: exported method Switch.IsLegalPrefix should have comment or be unexported (golint)
    • Line 594: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 603: warning: exported method Switch.GetHostname should have comment or be unexported (golint)
    • Line 603: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 612: warning: exported method Switch.GetVendor should have comment or be unexported (golint)
    • Line 612: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 630: warning: exported method Switch.IsInit should have comment or be unexported (golint)
    • Line 630: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 637: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • owl/repeater/server.go
    • Line 16: warning: exported type Repeater should have comment or be unexported (golint)
    • Line 22: warning: exported function InitRepeater should have comment or be unexported (golint)
    • Line 57: warning: exported method Repeater.Forward should have comment or be unexported (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • owl/common/tsdb/go-kairosdb/builder/datapoint.go
    • Line 22: warning: comment on exported type DataPoint should be of the form "DataPoint ..." (with optional leading article) (golint)
    • Line 28: warning: exported function NewDataPoint should have comment or be unexported (golint)
    • Line 35: warning: exported method DataPoint.Timestamp should have comment or be unexported (golint)
    • Line 39: warning: exported method DataPoint.Int64Value should have comment or be unexported (golint)
    • Line 52: warning: exported method DataPoint.Float64Value should have comment or be unexported (golint)
    • Line 60: warning: exported method DataPoint.MarshalJSON should have comment or be unexported (golint)
    • Line 65: warning: exported method DataPoint.UnmarshalJSON should have comment or be unexported (golint)
    • owl/common/types/alarm.go
    • Line 21: warning: comment on exported var AlarmMessageTypeText should be of the form "AlarmMessageTypeText ..." (golint)
    • Line 29: warning: comment on exported type AlarmMessage should be of the form "AlarmMessage ..." (with optional leading article) (golint)
    • Line 44: warning: exported type AlarmTask should have comment or be unexported (golint)
    • Line 51: warning: exported function NewAlarmTask should have comment or be unexported (golint)
    • Line 56: warning: exported type AlarmTasks should have comment or be unexported (golint)
    • Line 60: warning: exported method AlarmTasks.Encode should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 68: warning: exported method AlarmTasks.Decode should have comment or be unexported (golint)
    • Line 68: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 72: warning: exported type Node should have comment or be unexported (golint)
    • Line 78: warning: exported method Node.MarshalJSON should have comment or be unexported (golint)
    • Line 78: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: exported method Node.Encode should have comment or be unexported (golint)
    • Line 89: 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 type HeartBeat should have comment or be unexported (golint)
    • Line 102: warning: exported function NewHeartBeat should have comment or be unexported (golint)
    • Line 106: warning: exported method HeartBeat.Encode should have comment or be unexported (golint)
    • Line 106: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 114: warning: exported method HeartBeat.Decode should have comment or be unexported (golint)
    • Line 114: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 118: warning: exported type AlarmResults should have comment or be unexported (golint)
    • Line 122: warning: exported type StrategyResult should have comment or be unexported (golint)
    • Line 131: warning: exported method StrategyResult.Encode should have comment or be unexported (golint)
    • Line 131: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 139: warning: exported method StrategyResult.Decode should have comment or be unexported (golint)
    • Line 139: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 143: warning: exported type TriggerResultSet should have comment or be unexported (golint)
    • Line 148: warning: exported type TriggerResult should have comment or be unexported (golint)
    • Line 156: warning: exported function NewStrategyResult should have comment or be unexported (golint)
    • Line 156: warning: don't use underscores in Go names; func parameter task_id should be taskID (golint)
    • Line 156: warning: don't use underscores in Go names; func parameter trigger_results should be triggerResults (golint)
    • Line 156: warning: don't use underscores in Go names; func parameter error_message should be errorMessage (golint)
    • Line 156: warning: don't use underscores in Go names; func parameter create_time should be createTime (golint)
    • Line 160: warning: exported function NewTriggerResult should have comment or be unexported (golint)
    • Line 160: warning: don't use underscores in Go names; func parameter aggregate_tags should be aggregateTags (golint)
    • Line 160: warning: don't use underscores in Go names; func parameter current_threshold should be currentThreshold (golint)
    • Line 161: warning: don't use underscores in Go names; var merged_tags should be mergedTags (golint)
    • owl/controller/notify.go
    • Line 14: warning: exported var STRATEGY_STATUS_MAPPING should have comment or be unexported (golint)
    • Line 15: warning: exported var STRATEGY_PRIORITY_MAPPING should have comment or be unexported (golint)
    • Line 94: warning: don't use underscores in Go names; func parameter strategy_event should be strategyEvent (golint)
    • Line 94: warning: don't use underscores in Go names; func parameter trigger_events should be triggerEvents (golint)
    • Line 111: warning: don't use underscores in Go names; func parameter strategy_event should be strategyEvent (golint)
    • Line 111: warning: don't use underscores in Go names; func parameter trigger_events should be triggerEvents (golint)
    • Line 127: warning: don't use underscores in Go names; func parameter trigger_events should be triggerEvents (golint)
    • Line 127: warning: don't use underscores in Go names; func parameter action_type should be actionType (golint)
    • Line 128: warning: don't use underscores in Go names; var new_trigger_events should be newTriggerEvents (golint)
    • Line 131: warning: don't use underscores in Go names; range var trigger_event should be triggerEvent (golint)
    • Line 137: warning: don't use underscores in Go names; range var trigger_event should be triggerEvent (golint)
    • Line 146: warning: don't use underscores in Go names; func parameter strategy_event should be strategyEvent (golint)
    • Line 171: warning: don't use underscores in Go names; var users_obj_from_group should be usersObjFromGroup (golint)
    • Line 185: warning: don't use underscores in Go names; var user_info should be userInfo (golint)
    • Line 200: warning: don't use underscores in Go names; var action_result should be actionResult (golint)
    • Line 235: warning: don't use underscores in Go names; var action_result should be actionResult (golint)
    • Line 255: warning: don't use underscores in Go names; func parameter file_path should be filePath (golint)
    • Line 281: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 292: warning: don't use underscores in Go names; func parameter raw_template should be rawTemplate (golint)
    • Line 292: warning: don't use underscores in Go names; func parameter template_obj should be templateObj (golint)
    • Line 293: warning: don't use underscores in Go names; var filled_template should be filledTemplate (golint)
    • Line 308: warning: don't use underscores in Go names; func parameter strategy_event should be strategyEvent (golint)
    • Line 308: warning: don't use underscores in Go names; func parameter trigger_events should be triggerEvents (golint)
    • Line 319: warning: don't use underscores in Go names; range var trigger_event should be triggerEvent (golint)
    • owl/api/auth.go
    • Line 15: warning: exported function AuthIAM should have comment or be unexported (golint)
    • Line 56: warning: exported function AuthMySQL should have comment or be unexported (golint)
    • Line 87: warning: exported function JudgePermission should have comment or be unexported (golint)
    • owl/client/agent.go
    • Line 25: warning: exported type Agent should have comment or be unexported (golint)
    • Line 40: warning: exported function InitAgent should have comment or be unexported (golint)
    • Line 168: warning: exported method Agent.StartTimer should have comment or be unexported (golint)
    • Line 194: warning: exported method Agent.SendTSD2Repeater should have comment or be unexported (golint)
    • owl/inspector/inspector.go
    • Line 16: warning: exported type Inspector should have comment or be unexported (golint)
    • Line 24: warning: exported function GetHostName should have comment or be unexported (golint)
    • Line 32: warning: exported function InitInspector should have comment or be unexported (golint)
    • Line 46: warning: exported method Inspector.Dial should have comment or be unexported (golint)
    • Line 46: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 66: warning: exported method Inspector.DialForever should have comment or be unexported (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 75: warning: exported method Inspector.HeartBeatForever should have comment or be unexported (golint)
    • Line 75: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 93: warning: exported method Inspector.GetInspectorTasksForever should have comment or be unexported (golint)
    • Line 93: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 107: warning: exported method Inspector.SendResultForever should have comment or be unexported (golint)
    • Line 107: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 148: warning: exported method Inspector.ProcessInspectorTasksForever should have comment or be unexported (golint)
    • Line 148: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 155: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 167: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 168: warning: don't use underscores in Go names; var triggers_results should be triggersResults (golint)
    • Line 170: warning: don't use underscores in Go names; var host_id should be hostID (golint)
    • Line 171: warning: don't use underscores in Go names; var error_message should be errorMessage (golint)
    • Line 173: warning: don't use underscores in Go names; var trigger_result_set should be triggerResultSet (golint)
    • Line 200: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 218: warning: don't use underscores in Go names; var compute_result should be computeResult (golint)
    • Line 225: warning: don't use underscores in Go names; var strategy_result should be strategyResult (golint)
    • owl/controller/result.go
    • Line 10: warning: exported const NEW_ALARM should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type QueueEvent should have comment or be unexported (golint)
    • Line 17: warning: don't use underscores in Go names; struct field strategy_event should be strategyEvent (golint)
    • Line 18: warning: don't use underscores in Go names; struct field trigger_events should be triggerEvents (golint)
    • Line 168: warning: don't use underscores in Go names; func parameter strategy_id should be strategyID (golint)
    • Line 168: warning: don't use underscores in Go names; func parameter host_id should be hostID (golint)
    • Line 173: warning: don't use underscores in Go names; func parameter strategy_event should be strategyEvent (golint)
    • Line 173: warning: don't use underscores in Go names; func parameter strategy_result should be strategyResult (golint)
    • Line 173: warning: don't use underscores in Go names; func result merged_strategy_event should be mergedStrategyEvent (golint)
    • Line 173: warning: don't use underscores in Go names; func result merged_trigger_events should be mergedTriggerEvents (golint)
    • Line 197: warning: don't use underscores in Go names; range var trigger_result_set should be triggerResultSet (golint)
    • Line 199: warning: don't use underscores in Go names; range var trigger_result should be triggerResult (golint)
    • owl/plugins/check_redis/key.go
    • Line 4: warning: exported const COUNTER should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Metric should have comment or be unexported (golint)
    • owl/common/types/event.go
    • Line 9: warning: exported var DEFAULT_TIME should have comment or be unexported (golint)
    • Line 12: warning: exported const EVENT_NEW should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type StrategyEvent should have comment or be unexported (golint)
    • Line 39: warning: exported function NewStrategyEvent should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; func parameter product_id should be productID (golint)
    • Line 41: warning: don't use underscores in Go names; func parameter strategy_id should be strategyID (golint)
    • Line 42: warning: don't use underscores in Go names; func parameter strategy_name should be strategyName (golint)
    • Line 45: warning: don't use underscores in Go names; func parameter alarm_count should be alarmCount (golint)
    • Line 47: warning: don't use underscores in Go names; func parameter create_time should be createTime (golint)
    • Line 48: warning: don't use underscores in Go names; func parameter host_id should be hostID (golint)
    • Line 49: warning: don't use underscores in Go names; func parameter host_name should be hostName (golint)
    • Line 51: warning: don't use underscores in Go names; func parameter error_message should be errorMessage (golint)
    • Line 71: warning: exported type TriggerEvent should have comment or be unexported (golint)
    • Line 86: warning: exported function NewTriggerEvent should have comment or be unexported (golint)
    • Line 86: warning: don't use underscores in Go names; func parameter strategy_event_id should be strategyEventID (golint)
    • Line 86: warning: don't use underscores in Go names; func parameter aggregate_tags should be aggregateTags (golint)
    • Line 86: warning: don't use underscores in Go names; func parameter current_threshold should be currentThreshold (golint)
    • Line 101: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • owl/netcollect/server.go
    • Line 18: warning: exported type NetCollect should have comment or be unexported (golint)
    • Line 27: warning: exported function InitNetCollect should have comment or be unexported (golint)
    • Line 91: warning: exported function InitIpRange should have comment or be unexported (golint)
    • Line 195: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 218: warning: exported method NetCollect.SendHeartbeat2CFC should have comment or be unexported (golint)
    • Line 218: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 254: warning: exported method NetCollect.SendMetri2CFC should have comment or be unexported (golint)
    • Line 276: warning: exported method NetCollect.SendTSD2Repeater should have comment or be unexported (golint)
    • owl/api/server.go
    • Line 10: warning: exported var Engine should have comment or be unexported (golint)
    • Line 12: warning: exported function InitServer should have comment or be unexported (golint)
    • owl/client/task.go
    • Line 21: warning: exported type Task should have comment or be unexported (golint)
    • Line 30: warning: exported type TaskList should have comment or be unexported (golint)
    • owl/netcollect/config.go
    • Line 11: warning: exported const ConfigFilePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var GlobalConfig should have comment or be unexported (golint)
    • Line 29: warning: exported type Config should have comment or be unexported (golint)
    • Line 51: warning: exported function InitGlobalConfig should have comment or be unexported (golint)
    • owl/common/tsdb/go-kairosdb/response/response.go
    • Line 17: warning: exported type Response should have comment or be unexported (golint)
    • Line 22: warning: exported method Response.SetStatusCode should have comment or be unexported (golint)
    • Line 26: warning: exported method Response.GetStatusCode should have comment or be unexported (golint)
    • Line 30: warning: exported method Response.GetErrors should have comment or be unexported (golint)
    • owl/common/types/group.go
    • Line 3: warning: exported type Group should have comment or be unexported (golint)
    • Line 8: warning: exported method Group.TableName should have comment or be unexported (golint)
    • owl/client/builtin/disk.go
    • Line 11: warning: exported var Cycle should have comment or be unexported (golint)
    • Line 14: warning: exported function DiskMetrics should have comment or be unexported (golint)
    • owl/plugins/check_mysql/key.go
    • Line 4: warning: exported const COUNTER should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type Metric should have comment or be unexported (golint)
    • owl/common/tsdb/go-kairosdb/builder/query_metric.go
    • Line 34: warning: exported type OrderType should have comment or be unexported (golint)
    • Line 37: warning: exported const ASCENDING should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type QueryMetric should have comment or be unexported (golint)
    • Line 76: warning: exported type GroupBy should have comment or be unexported (golint)
    • Line 81: warning: exported function NewQueryMetric should have comment or be unexported (golint)
    • owl/controller/config.go
    • Line 8: warning: exported const CONFIG_FILE_PATH should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported var GlobalConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type Config should have comment or be unexported (golint)
    • Line 73: warning: exported function InitGlobalConfig should have comment or be unexported (golint)
    • owl/common/types/trigger.go
    • Line 3: warning: exported type Trigger should have comment or be unexported (golint)
    • Line 16: warning: exported method Trigger.TableName should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell96%

Misspell Finds commonly misspelled English words