Preparing report...

Report for github.com/apigee/apigee-remote-service-envoy

A+    Excellent!    Found 17 issues across 33 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!


gocyclo72%

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.


golint66%

Golint is a linter for Go source code.

    • apigee-remote-service-envoy/loadtest/target/main.go
    • Line 54: warning: exported type TestServer should have comment or be unexported (golint)
    • Line 59: warning: exported method TestServer.Handler should have comment or be unexported (golint)
    • Line 67: warning: exported method TestServer.Close should have comment or be unexported (golint)
    • Line 69: warning: exported method TestServer.URL should have comment or be unexported (golint)
    • apigee-remote-service-envoy/server/kube_health.go
    • Line 28: warning: exported function NewKubeHealth should have comment or be unexported (golint)
    • Line 42: warning: exported type KubeHealth should have comment or be unexported (golint)
    • Line 67: warning: comment on exported method KubeHealth.HandlerFunc should be of the form "HandlerFunc ..." (golint)
    • apigee-remote-service-envoy/testutil/jwt.go
    • Line 53: warning: exported function GenerateJWT should have comment or be unexported (golint)
    • Line 76: warning: exported type MockJWTVerifier should have comment or be unexported (golint)
    • Line 79: warning: exported method MockJWTVerifier.Start should have comment or be unexported (golint)
    • Line 82: warning: exported method MockJWTVerifier.Stop should have comment or be unexported (golint)
    • Line 85: warning: exported method MockJWTVerifier.AddProvider should have comment or be unexported (golint)
    • Line 88: warning: exported method MockJWTVerifier.EnsureProvidersLoaded should have comment or be unexported (golint)
    • Line 92: warning: exported method MockJWTVerifier.Parse should have comment or be unexported (golint)
    • apigee-remote-service-envoy/loadtest/apigee/main.go
    • Line 44: warning: exported const ENV_NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 104: warning: exported type TestServer should have comment or be unexported (golint)
    • Line 113: warning: exported type JWKS should have comment or be unexported (golint)
    • Line 118: warning: exported method TestServer.Config should have comment or be unexported (golint)
    • Line 131: warning: exported method TestServer.Handler should have comment or be unexported (golint)
    • Line 273: warning: exported method TestServer.Close should have comment or be unexported (golint)
    • Line 275: warning: exported method TestServer.URL should have comment or be unexported (golint)
    • apigee-remote-service-envoy/config/config.go
    • Line 59: warning: comment on exported const EnvironmentVariablePrefix should be of the form "EnvironmentVariablePrefix ..." (golint)
    • Line 62: warning: exported const RemoteServiceKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 198: warning: exported method Tenant.IsMultitenant should have comment or be unexported (golint)
    • apigee-remote-service-envoy/config/env_spec.go
    • Line 334: warning: comment on exported type AuthenticationRequirements should be of the form "AuthenticationRequirements ..." (with optional leading article) (golint)
    • Line 529: warning: comment on exported type Query should be of the form "Query ..." (with optional leading article) (golint)
    • Line 534: warning: comment on exported type Header should be of the form "Header ..." (with optional leading article) (golint)
    • apigee-remote-service-envoy/config/env_spec_request.go
    • Line 31: warning: exported const TruncateDebugRequestValuesAt should have comment or be unexported (golint)
    • Line 80: warning: exported method EnvironmentSpecRequest.GetAPISpec should have comment or be unexported (golint)
    • Line 251: warning: receiver name req should be consistent with previous receiver name e for EnvironmentSpecRequest (golint)
    • Line 265: warning: exported method EnvironmentSpecRequest.GetHTTPRequestTransformations should have comment or be unexported (golint)
    • Line 265: warning: receiver name req should be consistent with previous receiver name e for EnvironmentSpecRequest (golint)
    • Line 310: warning: receiver name req should be consistent with previous receiver name e for EnvironmentSpecRequest (golint)
    • Line 321: warning: receiver name req should be consistent with previous receiver name e for EnvironmentSpecRequest (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!


misspell93%

Misspell Finds commonly misspelled English words