Preparing report...

Report for github.com/octu0/example-envoy-xds

A    Great!    Found 10 issues across 13 files

Tweet

gofmt76%

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!


gocyclo92%

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.


golint23%

Golint is a linter for Go source code.

    • example-envoy-xds/xds.go
    • Line 14: warning: exported const BootstrapXdsClusterName should have comment (or a comment on this block) or be unexported (golint)
    • example-envoy-xds/rds.go
    • Line 15: warning: exported type RDSConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type RDSClusterConfig should have comment or be unexported (golint)
    • Line 27: warning: exported type RDSClusterWeightConfig should have comment or be unexported (golint)
    • Line 32: warning: exported type RDSActionConfig should have comment or be unexported (golint)
    • Line 38: warning: exported method RDSActionConfig.TimeoutSecond should have comment or be unexported (golint)
    • Line 42: warning: exported method RDSActionConfig.IdleTimeoutSecond should have comment or be unexported (golint)
    • Line 61: warning: exported function RdsRetryBackOffIntervalBase should have comment or be unexported (golint)
    • Line 67: warning: exported function RdsRetryBackOffIntervalMax should have comment or be unexported (golint)
    • Line 73: warning: exported function RdsRetryPerTryTimeout should have comment or be unexported (golint)
    • Line 79: warning: exported function RdsRetryHostSelectionAttempts should have comment or be unexported (golint)
    • example-envoy-xds/server.go
    • Line 37: warning: exported function XdsListenAddr should have comment or be unexported (golint)
    • Line 43: warning: exported function AlsListenAddr should have comment or be unexported (golint)
    • Line 49: warning: exported function MaxConcurrentStreams should have comment or be unexported (golint)
    • Line 75: warning: exported function NewServer should have comment or be unexported (golint)
    • example-envoy-xds/watch.go
    • Line 26: warning: exported function WatchCdsConfigFile should have comment or be unexported (golint)
    • Line 32: warning: exported function WatchEdsConfigFile should have comment or be unexported (golint)
    • Line 38: warning: exported function WatchRdsConfigFile should have comment or be unexported (golint)
    • Line 44: warning: exported function WatchLdsConfigFile should have comment or be unexported (golint)
    • Line 50: warning: exported type WatchFile should have comment or be unexported (golint)
    • Line 61: warning: exported function NewWatchFile should have comment or be unexported (golint)
    • Line 80: warning: exported method WatchFile.Cache should have comment or be unexported (golint)
    • Line 84: warning: exported method WatchFile.Watch should have comment or be unexported (golint)
    • Line 358: warning: comment on exported method WatchFile.ReloadAll should be of the form "ReloadAll ..." (golint)
    • example-envoy-xds/lds.go
    • Line 22: warning: exported type LDSConfig should have comment or be unexported (golint)
    • Line 29: warning: exported type LDSListenConfig should have comment or be unexported (golint)
    • Line 35: warning: exported method LDSListenConfig.Address should have comment or be unexported (golint)
    • Line 60: warning: exported type LDSServerConfig should have comment or be unexported (golint)
    • Line 67: warning: exported type LDSTimeoutConfig should have comment or be unexported (golint)
    • Line 74: warning: exported method LDSTimeoutConfig.RequestTimeoutSecond should have comment or be unexported (golint)
    • Line 78: warning: exported method LDSTimeoutConfig.DrainTimeoutSecond should have comment or be unexported (golint)
    • Line 82: warning: exported method LDSTimeoutConfig.IdleTimeoutSecond should have comment or be unexported (golint)
    • Line 86: warning: exported method LDSTimeoutConfig.MaxDurationSecond should have comment or be unexported (golint)
    • Line 90: warning: exported type LDSAccessLogConfig should have comment or be unexported (golint)
    • Line 96: warning: exported method LDSAccessLogConfig.FlushIntervalSecond should have comment or be unexported (golint)
    • Line 106: warning: exported function LdsStatPrefix should have comment or be unexported (golint)
    • example-envoy-xds/als.go
    • Line 16: warning: exported const ACCESSLOG_LF should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function JSTLocation should have comment or be unexported (golint)
    • Line 33: warning: exported type AccessLog should have comment or be unexported (golint)
    • Line 52: warning: comment on exported method AccessLog.WriteTo should be of the form "WriteTo ..." (golint)
    • example-envoy-xds/cds.go
    • Line 18: warning: exported type CDSConfig should have comment or be unexported (golint)
    • Line 24: warning: exported type CDSHealthCheckConfig should have comment or be unexported (golint)
    • Line 34: warning: exported method CDSHealthCheckConfig.TimeoutSecond should have comment or be unexported (golint)
    • Line 38: warning: exported method CDSHealthCheckConfig.IntervalSecond should have comment or be unexported (golint)
    • Line 74: warning: exported function CdsClusterConnectionTimeout should have comment or be unexported (golint)
    • Line 80: warning: exported function CdsClusterUpstreamKeepAliveIntervalSeconds should have comment or be unexported (golint)
    • Line 86: warning: exported function CdsClusterUpstreamKeepAliveTimeSeconds should have comment or be unexported (golint)
    • Line 92: warning: exported function CdsClusterRefreshIntervalBase should have comment or be unexported (golint)
    • Line 98: warning: exported function CdsClusterRefreshIntervalMax should have comment or be unexported (golint)
    • Line 104: warning: exported function CdsHealthCheckInitialJitter should have comment or be unexported (golint)
    • Line 110: warning: exported function CdsHealthCheckInitialIntervalOnAddCluster should have comment or be unexported (golint)
    • Line 116: warning: exported function CdsOutlierConsecutiveCount5xx should have comment or be unexported (golint)
    • Line 122: warning: exported function CdsOutlierConsecutiveGatewayFailure should have comment or be unexported (golint)
    • Line 128: warning: exported function CdsOutlierInterval should have comment or be unexported (golint)
    • Line 134: warning: exported function CdsOutlierBaseEjectionTime should have comment or be unexported (golint)
    • Line 140: warning: exported function CdsOutlierSuccessRateMinHosts should have comment or be unexported (golint)
    • example-envoy-xds/eds.go
    • Line 14: warning: exported type EDSConfig should have comment or be unexported (golint)
    • Line 20: warning: exported type EDSInstanceConfig should have comment or be unexported (golint)
    • Line 29: warning: exported method EDSInstanceConfig.Address should have comment or be unexported (golint)
    • Line 67: warning: exported function EdsLoadBalancingWeight should have comment or be unexported (golint)
    • Line 73: warning: exported function EdsLbEndpointHealthStatus 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!