Preparing report...

Report for github.com/trustbloc/hub-auth

A+    Excellent!    Found 8 issues across 37 files

Tweet

gofmt94%

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!


gocyclo97%

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.


golint83%

Golint is a linter for Go source code.

    • hub-auth/test/bdd/pkg/login/mock_wallet.go
    • Line 32: warning: exported type MockWallet should have comment or be unexported (golint)
    • Line 50: warning: exported method MockWallet.RequestUserAuthentication should have comment or be unexported (golint)
    • Line 69: warning: exported method MockWallet.FetchBootstrapData should have comment or be unexported (golint)
    • Line 105: warning: exported method MockWallet.UpdateBootstrapData should have comment or be unexported (golint)
    • Line 144: warning: exported method MockWallet.CreateAndPushSecretToHubAuth should have comment or be unexported (golint)
    • Line 250: warning: exported function NewMockWallet should have comment or be unexported (golint)
    • hub-auth/test/bdd/pkg/login/steps.go
    • Line 25: warning: exported const HUB_AUTH_HOST should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: comment on exported type UserClaims should be of the form "UserClaims ..." (with optional leading article) (golint)
    • Line 57: warning: exported function NewSteps should have comment or be unexported (golint)
    • Line 61: warning: exported type Steps should have comment or be unexported (golint)
    • Line 68: warning: exported method Steps.RegisterSteps should have comment or be unexported (golint)
    • hub-auth/test/bdd/pkg/bootstrap/steps.go
    • Line 30: warning: exported type Steps should have comment or be unexported (golint)
    • Line 38: warning: exported function NewSteps should have comment or be unexported (golint)
    • Line 42: warning: exported method Steps.RegisterSteps should have comment or be unexported (golint)
    • hub-auth/test/bdd/mock/loginconsent/server.go
    • Line 67: warning: exported type AuthConfigRequest should have comment or be unexported (golint)
    • Line 72: warning: exported type ConsentConfigRequest should have comment or be unexported (golint)
    • Line 77: warning: comment on exported type UserClaims should be of the form "UserClaims ..." (with optional leading article) (golint)
    • hub-auth/test/bdd/pkg/secrets/mock_key_server.go
    • Line 19: warning: exported function NewMockKeyServer should have comment or be unexported (golint)
    • Line 26: warning: exported type MockKeyServer should have comment or be unexported (golint)
    • Line 32: warning: exported method MockKeyServer.FetchSecretShare should have comment or be unexported (golint)
    • hub-auth/test/bdd/pkg/secrets/steps.go
    • Line 24: warning: exported function NewSteps should have comment or be unexported (golint)
    • Line 31: warning: exported type Steps should have comment or be unexported (golint)
    • Line 38: warning: exported method Steps.RegisterSteps 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!