Preparing report...

Report for github.com/itzmanish/go-loganalyzer

A+    Excellent!    Found 25 issues across 40 files

Tweet

gofmt100%

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

No problems detected. Good job!


go_vet100%

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

No problems detected. Good job!


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.


golint37%

Golint is a linter for Go source code.

    • go-loganalyzer/tool/helpers.go
    • Line 10: warning: exported function FilterFileWatcher should have comment or be unexported (golint)
    • Line 22: warning: exported function GetSeekInfo should have comment or be unexported (golint)
    • go-loganalyzer/internal/store/store.go
    • Line 7: warning: exported type Store should have comment or be unexported (golint)
    • Line 12: warning: exported var Stores should have comment or be unexported (golint)
    • Line 19: warning: exported function Get should have comment or be unexported (golint)
    • Line 23: warning: exported function Set should have comment or be unexported (golint)
    • Line 27: warning: exported function Delete should have comment or be unexported (golint)
    • Line 31: warning: exported function Close should have comment or be unexported (golint)
    • Line 35: warning: exported function String should have comment or be unexported (golint)
    • go-loganalyzer/internal/client/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • Line 18: warning: exported function WithAddress should have comment or be unexported (golint)
    • Line 24: warning: exported function WithMaxRetries should have comment or be unexported (golint)
    • Line 30: warning: exported function WithTimeout should have comment or be unexported (golint)
    • Line 36: warning: exported function WithCodec should have comment or be unexported (golint)
    • go-loganalyzer/internal/store/options.go
    • Line 3: warning: exported type Options should have comment or be unexported (golint)
    • Line 30: warning: exported type Option should have comment or be unexported (golint)
    • Line 32: warning: exported function WithDirectory should have comment or be unexported (golint)
    • Line 38: warning: exported function WithS3Endpoint should have comment or be unexported (golint)
    • Line 44: warning: exported function WithAWSAccessKey should have comment or be unexported (golint)
    • Line 50: warning: exported function WithAWSSecretAccessKey should have comment or be unexported (golint)
    • Line 56: warning: exported function WithPathStyleAddressing should have comment or be unexported (golint)
    • go-loganalyzer/config/config.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 12: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 17: warning: exported type Watchers should have comment or be unexported (golint)
    • Line 19: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 30: warning: exported type AgentConfig should have comment or be unexported (golint)
    • Line 38: warning: exported function Init should have comment or be unexported (golint)
    • Line 42: warning: exported function Get should have comment or be unexported (golint)
    • Line 46: warning: exported function Scan should have comment or be unexported (golint)
    • Line 50: warning: exported function Set should have comment or be unexported (golint)
    • Line 54: warning: exported function Load should have comment or be unexported (golint)
    • Line 58: warning: exported function String should have comment or be unexported (golint)
    • Line 62: warning: exported function NewConfig should have comment or be unexported (golint)
    • go-loganalyzer/internal/server/options.go
    • Line 5: warning: exported type Options should have comment or be unexported (golint)
    • Line 12: warning: exported type Option should have comment or be unexported (golint)
    • Line 14: warning: exported function WithHost should have comment or be unexported (golint)
    • Line 20: warning: exported function WithPort should have comment or be unexported (golint)
    • Line 26: warning: exported function WithHandler should have comment or be unexported (golint)
    • Line 32: warning: exported function WithCodec should have comment or be unexported (golint)
    • go-loganalyzer/internal/logger/logger.go
    • Line 3: warning: exported type Logger should have comment or be unexported (golint)
    • Line 24: warning: exported var DefaultLogger should have comment or be unexported (golint)
    • Line 26: warning: exported function Init should have comment or be unexported (golint)
    • Line 30: warning: exported function Log should have comment or be unexported (golint)
    • Line 33: warning: exported function Logf should have comment or be unexported (golint)
    • Line 36: warning: exported function Info should have comment or be unexported (golint)
    • Line 39: warning: exported function Debug should have comment or be unexported (golint)
    • Line 42: warning: exported function Warn should have comment or be unexported (golint)
    • Line 45: warning: exported function Trace should have comment or be unexported (golint)
    • Line 48: warning: exported function Error should have comment or be unexported (golint)
    • Line 51: warning: exported function Panic should have comment or be unexported (golint)
    • Line 54: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 57: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 60: warning: exported function Tracef should have comment or be unexported (golint)
    • Line 63: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 66: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 69: warning: exported function Infof should have comment or be unexported (golint)
    • Line 72: warning: exported function Panicf should have comment or be unexported (golint)
    • Line 75: warning: exported function Fatalf should have comment or be unexported (golint)
    • Line 78: warning: exported function String should have comment or be unexported (golint)
    • go-loganalyzer/internal/codec/codec.go
    • Line 13: warning: exported var ErrInvalidMessage should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type NewCodec should be of the form "NewCodec ..." (with optional leading article) (golint)
    • Line 19: warning: exported type Codec should have comment or be unexported (golint)
    • Line 27: warning: exported type Reader should have comment or be unexported (golint)
    • Line 31: warning: exported type Writer should have comment or be unexported (golint)
    • go-loganalyzer/config/options.go
    • Line 5: warning: exported type ConfigOption should have comment or be unexported (golint)
    • Line 12: warning: exported type Option should have comment or be unexported (golint)
    • Line 14: warning: exported function WithConfigPath should have comment or be unexported (golint)
    • go-loganalyzer/config/viper.go
    • Line 91: warning: exported function NewViperConfig should have comment or be unexported (golint)
    • Line 106: warning: exported function WithCobraCmd should have comment or be unexported (golint)
    • go-loganalyzer/cmd/agent.go
    • Line 33: warning: exported function RunAgent should have comment or be unexported (golint)
    • Line 68: warning: exported function SendLogs should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words