Preparing report...

Report for github.com/admpub/logcool

A    Great!    Found 25 issues across 41 files

Tweet

gofmt90%

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


go_vet100%

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

No problems detected. Good job!


gocyclo97%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint53%

Golint is a linter for Go source code.

    • logcool/input/http/http.go
    • Line 18: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type InputConfig should have comment or be unexported (golint)
    • Line 36: warning: exported function InitHandler should have comment or be unexported (golint)
    • Line 61: warning: exported method InputConfig.Start should have comment or be unexported (golint)
    • Line 66: warning: context.Context should be the first parameter of a function (golint)
    • Line 90: warning: comment on exported method InputConfig.Handler should be of the form "Handler ..." (golint)
    • logcool/input/file/file.go
    • Line 24: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type SinceDBInfo should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type InputConfig should be of the form "InputConfig ..." (with optional leading article) (golint)
    • Line 55: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 78: warning: comment on exported method InputConfig.Start should be of the form "Start ..." (golint)
    • Line 83: warning: comment on exported method InputConfig.LoadSinceData should be of the form "LoadSinceData ..." (golint)
    • Line 113: warning: comment on exported method InputConfig.SaveSinceDBInfos should be of the form "SaveSinceDBInfos ..." (golint)
    • Line 140: warning: comment on exported method InputConfig.CheckSaveSinceDBInfos should be of the form "CheckSaveSinceDBInfos ..." (golint)
    • Line 157: warning: comment on exported method InputConfig.LoopCheckSaveSinceInfos should be of the form "LoopCheckSaveSinceInfos ..." (golint)
    • Line 172: warning: context.Context should be the first parameter of a function (golint)
    • logcool/utils/config.go
    • Line 15: warning: exported const Defaultconfig should have comment or be unexported (golint)
    • Line 61: warning: exported method Config.Init should have comment or be unexported (golint)
    • Line 93: warning: exported function CheckErrorValues should have comment or be unexported (golint)
    • logcool/output/influxdb/influxdb.go
    • Line 17: warning: exported var DefaultBulkSize should have comment or be unexported (golint)
    • Line 22: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 144: warning: exported method OutputConfig.Close should have comment or be unexported (golint)
    • logcool/cmd/cmd.go
    • Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
    • Line 14: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 18: warning: exported const DEFAULTTEMPLATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • logcool/filter/grok/grok.go
    • Line 1: warning: package comment should be of the form "Package grok ..." (golint)
    • Line 12: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported type FilterConfig should be of the form "FilterConfig ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 44: warning: comment on exported method FilterConfig.Event should be of the form "Event ..." (golint)
    • logcool/filter/metrics/metrics.go
    • Line 1: warning: package comment should be of the form "Package metrics ..." (golint)
    • Line 13: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 49: warning: comment on exported method FilterConfig.Event should be of the form "Event ..." (golint)
    • logcool/output/email/email.go
    • Line 13: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: comment on exported type OutputConfig should be of the form "OutputConfig ..." (with optional leading article) (golint)
    • Line 31: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 48: warning: comment on exported method OutputConfig.Event should be of the form "Event ..." (golint)
    • Line 54: warning: exported method OutputConfig.Send should have comment or be unexported (golint)
    • logcool/utils/input.go
    • Line 9: warning: comment on exported type TypeInputConfig should be of the form "TypeInputConfig ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type InputConfig should be of the form "InputConfig ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported function RegistInputHandler should be of the form "RegistInputHandler ..." (golint)
    • Line 32: warning: comment on exported method Config.RunInputs should be of the form "RunInputs ..." (golint)
    • logcool/output/influxdb/msg/message.go
    • Line 7: warning: exported type Message should have comment or be unexported (golint)
    • Line 18: warning: exported method Message.SetByMap should have comment or be unexported (golint)
    • Line 40: warning: exported method Message.ToMap should have comment or be unexported (golint)
    • logcool/filter/split/split.go
    • Line 1: warning: package comment should be of the form "Package split ..." (golint)
    • Line 12: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported type FilterConfig should be of the form "FilterConfig ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 44: warning: comment on exported method FilterConfig.Event should be of the form "Event ..." (golint)
    • logcool/output/redis/redis.go
    • Line 15: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported type OutputConfig should be of the form "OutputConfig ..." (with optional leading article) (golint)
    • Line 36: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 58: warning: comment on exported method OutputConfig.Event should be of the form "Event ..." (golint)
    • logcool/input/collectd/collectd.go
    • Line 24: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type CpuInfo should have comment or be unexported (golint)
    • Line 39: warning: exported type MemoryInfo should have comment or be unexported (golint)
    • Line 44: warning: exported type DiskInfo should have comment or be unexported (golint)
    • Line 50: warning: exported type HostInfo should have comment or be unexported (golint)
    • Line 55: warning: exported type NetInfo should have comment or be unexported (golint)
    • Line 63: warning: exported type ProcessInfo should have comment or be unexported (golint)
    • Line 97: warning: exported type SysInfo should have comment or be unexported (golint)
    • Line 137: warning: context.Context should be the first parameter of a function (golint)
    • Line 172: warning: exported function SystemInfo should have comment or be unexported (golint)
    • Line 183: warning: exported function CpuStat should have comment or be unexported (golint)
    • Line 194: warning: exported function MemStat should have comment or be unexported (golint)
    • Line 206: warning: exported function DiskStat should have comment or be unexported (golint)
    • Line 220: warning: exported function NetStat should have comment or be unexported (golint)
    • Line 245: warning: exported function ProcessStat should have comment or be unexported (golint)
    • Line 286: warning: exported function HostStat should have comment or be unexported (golint)
    • logcool/utils/output.go
    • Line 11: warning: comment on exported type TypeOutputConfig should be of the form "TypeOutputConfig ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type OutputConfig should be of the form "OutputConfig ..." (with optional leading article) (golint)
    • Line 29: warning: comment on exported function RegistOutputHandler should be of the form "RegistOutputHandler ..." (golint)
    • Line 34: warning: comment on exported method Config.RunOutputs should be of the form "RunOutputs ..." (golint)
    • logcool/filter/zeus/zeus.go
    • Line 1: warning: package comment should be of the form "Package zeus ..." (golint)
    • Line 10: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: comment on exported type FilterConfig should be of the form "FilterConfig ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 42: warning: comment on exported method FilterConfig.Event should be of the form "Event ..." (golint)
    • logcool/input/stdin/stdin.go
    • Line 16: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: comment on exported type InputConfig should be of the form "InputConfig ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 51: warning: comment on exported method InputConfig.Start should be of the form "Start ..." (golint)
    • Line 56: warning: context.Context should be the first parameter of a function (golint)
    • logcool/output/lexec/lexec.go
    • Line 12: warning: exported const ModuleName should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: comment on exported type OutputConfig should be of the form "OutputConfig ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported function InitHandler should be of the form "InitHandler ..." (golint)
    • Line 41: warning: comment on exported method OutputConfig.Event should be of the form "Event ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign43%

IneffAssign detects ineffectual assignments in Go code.

    • logcool/output/redis/redis.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/garyburd/redigo/redis (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/garyburd/redigo/redis (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/output/lexec/lexec.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/filter/split/split.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/utils/filter_test.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/filter/zeus (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 13: warning: undeclared name: RegistFilterHandler (ineffassign)
    • Line 17: warning: undeclared name: LoadFromString (ineffassign)
    • Line 27: warning: undeclared name: RegistFilterHandler (ineffassign)
    • Line 9: warning: "github.com/admpub/logcool/utils" imported but not used (ineffassign)
    • logcool/output/influxdb/influxdb.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/influxdata/influxdb/client/v2 (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/webx-top/echo (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/filter/zeus/zeus.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/filter/metrics/metrics.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/main.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 24: warning: cannot find package "." in: (ineffassign)
    • Line 25: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/admpub/logcool/cmd (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/admpub/logcool/filter/grok (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/admpub/logcool/filter/metrics (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/admpub/logcool/filter/split (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/admpub/logcool/filter/zeus (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/admpub/logcool/input/collectd (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/admpub/logcool/input/file (invalid package name: "") (ineffassign)
    • Line 19: warning: could not import github.com/admpub/logcool/input/http (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/admpub/logcool/input/stdin (invalid package name: "") (ineffassign)
    • Line 21: warning: could not import github.com/admpub/logcool/output/email (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/admpub/logcool/output/lexec (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/admpub/logcool/output/redis (invalid package name: "") (ineffassign)
    • Line 24: warning: could not import github.com/admpub/logcool/output/stdout (invalid package name: "") (ineffassign)
    • Line 25: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/output/email/email.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import gopkg.in/gomail.v2 (invalid package name: "") (ineffassign)
    • Line 60: warning: undeclared name: gomail (ineffassign)
    • Line 75: warning: undeclared name: gomail (ineffassign)
    • Line 9: warning: "gopkg.in/gomail.v2" imported but not used (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import gopkg.in/gomail.v2 (invalid package name: "") (ineffassign)
    • Line 60: warning: undeclared name: gomail (ineffassign)
    • Line 75: warning: undeclared name: gomail (ineffassign)
    • Line 9: warning: "gopkg.in/gomail.v2" imported but not used (ineffassign)
    • logcool/cmd/cmd.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/admpub/logcool/utils/logo (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/admpub/logcool/utils/logo (invalid package name: "") (ineffassign)
    • logcool/input/file/file.go
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/fsnotify/fsnotify (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 80: warning: ic.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)
    • Line 17: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/fsnotify/fsnotify (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 80: warning: ic.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)
    • logcool/input/stdin/stdin.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 53: warning: t.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)
    • Line 10: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 53: warning: t.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)
    • logcool/utils/config.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/codegangsta/inject (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 63: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • Line 64: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • Line 68: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • Line 69: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • Line 11: warning: could not import github.com/codegangsta/inject (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 63: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • Line 64: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • Line 68: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • Line 69: warning: c.Map undefined (type *Config has no field or method Map) (ineffassign)
    • logcool/utils/logger.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • logcool/utils/output_test.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/output/stdout (invalid package name: "") (ineffassign)
    • Line 13: warning: undeclared name: RegistOutputHandler (ineffassign)
    • Line 17: warning: undeclared name: LoadFromString (ineffassign)
    • Line 27: warning: undeclared name: RegistOutputHandler (ineffassign)
    • Line 9: warning: "github.com/admpub/logcool/utils" imported but not used (ineffassign)
    • logcool/filter/grok/grok.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/output/stdout/stdout.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • logcool/input/collectd/collectd.go
    • Line 20: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/webx-top/com (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/shirou/gopsutil/v3/cpu (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/shirou/gopsutil/v3/disk (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/shirou/gopsutil/v3/host (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/shirou/gopsutil/v3/mem (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/shirou/gopsutil/v3/net (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/shirou/gopsutil/v3/process (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 133: warning: t.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)
    • Line 10: warning: could not import github.com/webx-top/com (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/shirou/gopsutil/v3/cpu (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/shirou/gopsutil/v3/disk (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/shirou/gopsutil/v3/host (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/shirou/gopsutil/v3/mem (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/shirou/gopsutil/v3/net (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/shirou/gopsutil/v3/process (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 133: warning: t.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)
    • logcool/utils/logevent.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/webx-top/echo (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/webx-top/echo (invalid package name: "") (ineffassign)
    • logcool/utils/input_test.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/admpub/logcool/input/stdin (invalid package name: "") (ineffassign)
    • Line 13: warning: undeclared name: RegistInputHandler (ineffassign)
    • Line 17: warning: undeclared name: LoadFromString (ineffassign)
    • Line 27: warning: undeclared name: RegistInputHandler (ineffassign)
    • Line 9: warning: "github.com/admpub/logcool/utils" imported but not used (ineffassign)
    • logcool/input/http/http.go
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 63: warning: ic.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)
    • Line 11: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/golang/glog (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/admpub/logcool/utils (invalid package name: "") (ineffassign)
    • Line 63: warning: ic.Invoke undefined (type *InputConfig has no field or method Invoke) (ineffassign)

misspell97%

Misspell Finds commonly misspelled English words

    • logcool/cmd/cmd.go
    • Line 46: warning: "tempaltes" is a misspelling of "templates" (misspell)
    • Line 47: warning: "tempaltes" is a misspelling of "templates" (misspell)