Preparing report...

Report for github.com/BlackspaceInc/BlackspacePlatform/src/services/authentication_handler_service

(v0.0.0-20210102093235-99e5d072a259)

A+    Excellent!    Found 39 issues across 54 files

Tweet

gofmt98%

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!


gocyclo94%

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.


golint33%

Golint is a linter for Go source code.

    • blackspaceplatform/src/services/authentication_handler_service/pkg/metrics/metrics.go
    • Line 10: warning: comment on exported var ServiceName should be of the form "ServiceName ..." (golint)
    • Line 13: warning: exported type MetricsEngine should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMetricsEngine should have comment or be unexported (golint)
    • Line 25: warning: exported type CoreMetrics should have comment or be unexported (golint)
    • Line 42: warning: exported function NewCoreMetrics should have comment or be unexported (golint)
    • Line 55: warning: exported function NewHttpRequestCounter should have comment or be unexported (golint)
    • Line 67: warning: exported function NewHttpRequestLatencyCounter should have comment or be unexported (golint)
    • Line 82: warning: exported function NewExtractIdOperationCounter should have comment or be unexported (golint)
    • Line 94: warning: exported function NewRemoteOperationStatusCounter should have comment or be unexported (golint)
    • Line 105: warning: exported function NewRemoteOperationLatencyCounter should have comment or be unexported (golint)
    • Line 120: warning: exported function NewInvalidRequestParametersCounter should have comment or be unexported (golint)
    • Line 131: warning: exported function NewCastingOperationFailureCounter should have comment or be unexported (golint)
    • Line 142: warning: exported function NewDecodeRequestStatusCounter should have comment or be unexported (golint)
    • blackspaceplatform/src/services/authentication_handler_service/pkg/api/mock.go
    • Line 21: warning: exported function NewMockServer should have comment or be unexported (golint)
    • Line 71: warning: exported function InitializeAuthnClient should have comment or be unexported (golint)
    • Line 124: warning: exported function InitializeLoggingEngine should have comment or be unexported (golint)
    • Line 133: warning: exported function InitializeMetricsEngine should have comment or be unexported (golint)
    • Line 139: warning: exported function InitializeTracingEngine should have comment or be unexported (golint)
    • blackspaceplatform/src/services/authentication_handler_service/pkg/api/server.go
    • Line 39: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 61: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 87: warning: exported type Config should have comment or be unexported (golint)
    • Line 115: warning: exported type Server should have comment or be unexported (golint)
    • Line 127: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 204: warning: exported method Server.ListenAndServe should have comment or be unexported (golint)
    • Line 388: warning: exported type ArrayResponse should have comment or be unexported (golint)
    • Line 389: warning: exported type MapResponse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words