Preparing report...

Report for github.com/movio/bramble

A+    Excellent!    Found 15 issues across 43 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!


gocyclo88%

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.

    • bramble/plan.go
    • Line 117: warning: cyclomatic complexity 29 of function extractSelectionSet() is high (> 15) (gocyclo)
    • Line 236: warning: cyclomatic complexity 18 of function routeSelectionSet() is high (> 15) (gocyclo)
    • bramble/auth.go
    • Line 155: warning: cyclomatic complexity 19 of function filterDefinition() is high (> 15) (gocyclo)
    • bramble/execution.go
    • Line 302: warning: cyclomatic complexity 39 of function (*ExecutableSchema).resolveType() is high (> 15) (gocyclo)
    • Line 719: warning: cyclomatic complexity 30 of function (*QueryExecution).executeChildStep() is high (> 15) (gocyclo)
    • Line 139: warning: cyclomatic complexity 20 of function (*ExecutableSchema).ExecuteQuery() is high (> 15) (gocyclo)
    • Line 1024: warning: cyclomatic complexity 16 of function buildInsertionSlice() is high (> 15) (gocyclo)
    • bramble/format.go
    • Line 213: warning: cyclomatic complexity 38 of function marshalResult() is high (> 15) (gocyclo)
    • Line 146: warning: cyclomatic complexity 16 of function expandAndFormatVariable() is high (> 15) (gocyclo)

golint79%

Golint is a linter for Go source code.

    • bramble/plugins/opentracing.go
    • Line 21: warning: exported type OpenTracingPlugin should have comment or be unexported (golint)
    • Line 26: warning: exported method OpenTracingPlugin.ID should have comment or be unexported (golint)
    • Line 30: warning: exported method OpenTracingPlugin.Configure should have comment or be unexported (golint)
    • Line 48: warning: exported method OpenTracingPlugin.Init should have comment or be unexported (golint)
    • Line 53: warning: exported method OpenTracingPlugin.ApplyMiddlewarePublicMux should have comment or be unexported (golint)
    • bramble/plugins/playground.go
    • Line 14: warning: exported type PlaygroundPlugin should have comment or be unexported (golint)
    • Line 18: warning: exported method PlaygroundPlugin.ID should have comment or be unexported (golint)
    • Line 22: warning: exported method PlaygroundPlugin.SetupPublicMux should have comment or be unexported (golint)
    • bramble/plugins/admin_ui.go
    • Line 29: warning: exported method AdminUIPlugin.ID should have comment or be unexported (golint)
    • Line 33: warning: exported method AdminUIPlugin.Init should have comment or be unexported (golint)
    • Line 44: warning: exported method AdminUIPlugin.SetupPrivateMux should have comment or be unexported (golint)
    • bramble/plugins/auth_jwt.go
    • Line 22: warning: exported function NewJWTPlugin should have comment or be unexported (golint)
    • Line 57: warning: exported type JWTPluginConfig should have comment or be unexported (golint)
    • Line 65: warning: exported type SigningKeyProvider should have comment or be unexported (golint)
    • Line 70: warning: exported method JWTPlugin.ID should have comment or be unexported (golint)
    • Line 74: warning: exported method JWTPlugin.Configure should have comment or be unexported (golint)
    • Line 106: warning: exported type Claims should have comment or be unexported (golint)
    • Line 111: warning: exported method JWTPlugin.ApplyMiddlewarePublicMux should have comment or be unexported (golint)
    • Line 196: warning: exported type ManualSigningKeysProvider should have comment or be unexported (golint)
    • Line 200: warning: exported function NewManualSigningKeysProvider should have comment or be unexported (golint)
    • Line 216: warning: exported method ManualSigningKeysProvider.Name should have comment or be unexported (golint)
    • Line 220: warning: exported method ManualSigningKeysProvider.Keys should have comment or be unexported (golint)
    • Line 224: warning: exported type WellKnownKeyProvider should have comment or be unexported (golint)
    • Line 228: warning: exported function NewWellKnownKeyProvider should have comment or be unexported (golint)
    • Line 234: warning: exported method WellKnownKeyProvider.MarshalJSON should have comment or be unexported (golint)
    • Line 238: warning: exported method WellKnownKeyProvider.UnmarshalJSON should have comment or be unexported (golint)
    • Line 242: warning: exported method WellKnownKeyProvider.Name should have comment or be unexported (golint)
    • Line 246: warning: exported method WellKnownKeyProvider.Keys should have comment or be unexported (golint)
    • bramble/plugins/cors.go
    • Line 17: warning: exported type CorsPlugin should have comment or be unexported (golint)
    • Line 22: warning: exported type CorsPluginConfig should have comment or be unexported (golint)
    • Line 30: warning: exported function NewCorsPlugin should have comment or be unexported (golint)
    • Line 34: warning: exported method CorsPlugin.ID should have comment or be unexported (golint)
    • Line 38: warning: exported method CorsPlugin.Configure should have comment or be unexported (golint)
    • Line 56: warning: exported method CorsPlugin.ApplyMiddlewarePublicMux should have comment or be unexported (golint)
    • Line 60: warning: exported method CorsPlugin.ApplyMiddlewarePrivateMux should have comment or be unexported (golint)
    • bramble/plugins/limits.go
    • Line 16: warning: exported type LimitsPlugin should have comment or be unexported (golint)
    • Line 21: warning: exported type LimitsPluginConfig should have comment or be unexported (golint)
    • Line 27: warning: exported function NewLimitsPlugin should have comment or be unexported (golint)
    • Line 31: warning: exported method LimitsPlugin.ID should have comment or be unexported (golint)
    • Line 35: warning: exported method LimitsPlugin.Init should have comment or be unexported (golint)
    • Line 39: warning: exported method LimitsPlugin.Configure should have comment or be unexported (golint)
    • Line 61: warning: exported method LimitsPlugin.ApplyMiddlewarePublicMux should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • bramble/examples/gqlgen-service/resolver.go
    • Line 14: warning: undeclared name: QueryResolver (ineffassign)
    • Line 20: warning: undeclared name: Service (ineffassign)
    • Line 34: warning: undeclared name: Foo (ineffassign)
    • Line 42: warning: undeclared name: Foo (ineffassign)
    • Line 24: warning: undeclared name: parsedSchema (ineffassign)
    • Line 26: warning: undeclared name: Service (ineffassign)
    • Line 35: warning: undeclared name: Foo (ineffassign)
    • Line 44: warning: undeclared name: Foo (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!