Preparing report...

Report for github.com/Trendyol/gaos

A    Great!    Found 12 issues across 12 files

Tweet

gofmt91%

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!


gocyclo100%

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.

No problems detected. Good job!


golint0%

Golint is a linter for Go source code.

    • gaos/executor/executor.go
    • Line 24: warning: exported const DOCKER should have comment or be unexported (golint)
    • Line 25: warning: exported const K8S should have comment or be unexported (golint)
    • Line 27: warning: exported type Executor should have comment or be unexported (golint)
    • Line 32: warning: exported function NewExecutor should have comment or be unexported (golint)
    • gaos/executor/kubernetes.go
    • Line 38: warning: exported type Kubernetes should have comment or be unexported (golint)
    • Line 51: warning: exported function NewKubernetes should have comment or be unexported (golint)
    • Line 73: warning: exported method Kubernetes.Initialize should have comment or be unexported (golint)
    • Line 116: warning: exported method Kubernetes.Run should have comment or be unexported (golint)
    • gaos/main.go
    • Line 31: warning: exported var LOG should have comment or be unexported (golint)
    • gaos/logger/loggers.go
    • Line 46: warning: exported const FATAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 56: warning: exported type ILoggers should have comment or be unexported (golint)
    • Line 67: warning: exported type Loggers should have comment or be unexported (golint)
    • Line 71: warning: exported function NewLoggers should have comment or be unexported (golint)
    • Line 77: warning: exported function Debug should have comment or be unexported (golint)
    • Line 81: warning: exported method Loggers.Debug should have comment or be unexported (golint)
    • Line 85: warning: exported function Info should have comment or be unexported (golint)
    • Line 89: warning: exported method Loggers.Info should have comment or be unexported (golint)
    • Line 93: warning: exported function Warn should have comment or be unexported (golint)
    • Line 97: warning: exported method Loggers.Warn should have comment or be unexported (golint)
    • Line 101: warning: exported function Error should have comment or be unexported (golint)
    • Line 109: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 114: warning: exported method Loggers.Fatal should have comment or be unexported (golint)
    • Line 118: warning: exported function Trace should have comment or be unexported (golint)
    • Line 122: warning: exported method Loggers.Trace should have comment or be unexported (golint)
    • Line 126: warning: exported function Log should have comment or be unexported (golint)
    • Line 130: warning: exported method Loggers.Log should have comment or be unexported (golint)
    • Line 146: warning: exported function Spinner should have comment or be unexported (golint)
    • Line 150: warning: exported method Loggers.Spinner should have comment or be unexported (golint)
    • gaos/examples/example.go
    • Line 11: warning: exported type WorldTime should have comment or be unexported (golint)
    • Line 15: warning: exported var Port should have comment or be unexported (golint)
    • Line 17: warning: exported function HTTPHandler should have comment or be unexported (golint)
    • gaos/executor/config.go
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 40: warning: exported method Config.GetMyConfig should have comment or be unexported (golint)
    • gaos/executor/docker.go
    • Line 53: warning: exported type Docker should have comment or be unexported (golint)
    • Line 64: warning: exported function NewDocker should have comment or be unexported (golint)
    • Line 87: warning: exported method Docker.Initialize should have comment or be unexported (golint)
    • Line 106: warning: exported method Docker.Run should have comment or be unexported (golint)
    • gaos/runner/errors.go
    • Line 24: warning: exported type GaosError should have comment or be unexported (golint)
    • Line 33: warning: exported function WrapGaosError should have comment or be unexported (golint)
    • gaos/runner/runner.go
    • Line 36: warning: exported const BANNER should have comment or be unexported (golint)
    • Line 48: warning: exported const VERSION should have comment or be unexported (golint)
    • Line 51: warning: exported const ResultTypeStatic should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported const FileResultTypeJson should have comment (or a comment on this block) or be unexported (golint)
    • Line 60: warning: exported type Executable should have comment or be unexported (golint)
    • Line 62: warning: exported type Done should have comment or be unexported (golint)
    • Line 64: warning: exported type Runner should have comment or be unexported (golint)
    • Line 71: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 76: warning: exported type Service should have comment or be unexported (golint)
    • Line 81: warning: exported type Path should have comment or be unexported (golint)
    • Line 86: warning: exported type Action should have comment or be unexported (golint)
    • Line 93: warning: exported type Result should have comment or be unexported (golint)
    • Line 98: warning: exported type FileResult should have comment or be unexported (golint)
    • Line 103: warning: exported type RedirectResult should have comment or be unexported (golint)
    • Line 107: warning: exported type Scenario should have comment or be unexported (golint)
    • Line 122: warning: exported type Method should have comment or be unexported (golint)
    • Line 127: warning: exported function New should have comment or be unexported (golint)
    • Line 150: warning: exported method Runner.Run should have comment or be unexported (golint)
    • Line 313: warning: exported method Runner.ErrorHandler should have comment or be unexported (golint)
    • Line 339: warning: exported method Method.Handler should have comment or be unexported (golint)
    • Line 376: warning: exported method Method.Execute should have comment or be unexported (golint)
    • Line 406: warning: exported method Action.Execute should have comment or be unexported (golint)
    • Line 500: warning: exported method Metrics.GetEndpointCallCount should have comment or be unexported (golint)
    • gaos/runner/scenario.go
    • Line 24: warning: exported type Limit should have comment or be unexported (golint)
    • Line 30: warning: exported function NewLimit should have comment or be unexported (golint)
    • Line 38: warning: exported method Limit.Execute should have comment or be unexported (golint)
    • Line 49: warning: exported type Rate should have comment or be unexported (golint)
    • Line 55: warning: exported function NewRate should have comment or be unexported (golint)
    • Line 63: warning: exported method Rate.Execute should have comment or be unexported (golint)
    • Line 75: warning: exported type Duration should have comment or be unexported (golint)
    • Line 80: warning: exported function NewDuration should have comment or be unexported (golint)
    • Line 88: warning: exported method Duration.Execute should have comment or be unexported (golint)
    • Line 101: warning: exported type Latency should have comment or be unexported (golint)
    • Line 106: warning: exported function NewLatency should have comment or be unexported (golint)
    • Line 114: warning: exported method Latency.Execute should have comment or be unexported (golint)
    • Line 121: warning: exported type Span should have comment or be unexported (golint)
    • Line 127: warning: exported function NewSpan should have comment or be unexported (golint)
    • Line 148: warning: exported method Span.Execute should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!