Preparing report...

Report for github.com/okta/okta-idx-golang

A    Great!    Found 7 issues across 9 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.


golint22%

Golint is a linter for Go source code.

    • okta-idx-golang/option.go
    • Line 34: warning: exported type Remediation should have comment or be unexported (golint)
    • Line 39: warning: exported type Token should have comment or be unexported (golint)
    • Line 47: warning: comment on exported type Option should be of the form "Option ..." (with optional leading article) (golint)
    • Line 66: warning: exported type FormValue should have comment or be unexported (golint)
    • Line 80: warning: exported type Form should have comment or be unexported (golint)
    • Line 84: warning: exported type FormOptions should have comment or be unexported (golint)
    • Line 91: warning: exported method FormOptions.UnmarshalJSON should have comment or be unexported (golint)
    • Line 109: warning: exported type FormOptionsValue should have comment or be unexported (golint)
    • Line 113: warning: exported type FormOptionsValueString should have comment or be unexported (golint)
    • Line 117: warning: exported type FormOptionsValueObject should have comment or be unexported (golint)
    • Line 123: warning: exported type FormOptionsValueForm should have comment or be unexported (golint)
    • Line 127: warning: exported type RemediationOption should have comment or be unexported (golint)
    • Line 271: warning: exported type SuccessOption should have comment or be unexported (golint)
    • Line 273: warning: comment on exported method SuccessOption.ExchangeCode should be of the form "ExchangeCode ..." (golint)
    • Line 324: warning: exported type RecoverOption should have comment or be unexported (golint)
    • Line 326: warning: exported type CurrentAuthenticatorEnrollment should have comment or be unexported (golint)
    • okta-idx-golang/response.go
    • Line 30: warning: exported type Response should have comment or be unexported (golint)
    • Line 43: warning: exported type Message should have comment or be unexported (golint)
    • Line 48: warning: exported type MessageValue should have comment or be unexported (golint)
    • Line 56: warning: exported method Response.UnmarshalJSON should have comment or be unexported (golint)
    • Line 65: warning: comment on exported method Response.Cancel should be of the form "Cancel ..." (golint)
    • Line 98: warning: comment on exported method Response.Raw should be of the form "Raw ..." (golint)
    • Line 103: warning: comment on exported method Response.LoginSuccess should be of the form "LoginSuccess ..." (golint)
    • okta-idx-golang/config.go
    • Line 50: warning: exported type ConfigSetter should have comment or be unexported (golint)
    • Line 52: warning: exported function WithClientID should have comment or be unexported (golint)
    • Line 58: warning: exported function WithClientSecret should have comment or be unexported (golint)
    • Line 64: warning: exported function WithIssuer should have comment or be unexported (golint)
    • Line 70: warning: exported function WithScopes should have comment or be unexported (golint)
    • Line 76: warning: exported function WithRedirectURI should have comment or be unexported (golint)
    • okta-idx-golang/error.go
    • Line 25: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 38: warning: exported method ErrorResponse.UnmarshalJSON should have comment or be unexported (golint)
    • okta-idx-golang/idx.go
    • Line 43: warning: exported type Client should have comment or be unexported (golint)
    • Line 48: warning: exported type Context should have comment or be unexported (golint)
    • Line 54: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.WithHTTPClient should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.ClientSecret should have comment or be unexported (golint)
    • Line 84: warning: exported method Context.CodeVerifier should have comment or be unexported (golint)
    • Line 88: warning: exported method Context.InteractionHandle should have comment or be unexported (golint)
    • Line 92: warning: exported method Context.State should have comment or be unexported (golint)
    • Line 138: warning: exported method Client.Interact should have comment or be unexported (golint)
    • Line 200: warning: exported method Client.Introspect 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!