Preparing report...

Report for github.com/rigetti/openapi-cli-generator

A    Great!    Found 13 issues across 30 files

Tweet

gofmt73%

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!


gocyclo90%

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.


golint86%

Golint is a linter for Go source code.

    • openapi-cli-generator/cli/global_flags.go
    • Line 32: warning: exported type GlobalFlag should have comment or be unexported (golint)
    • Line 42: warning: exported type GlobalFlagDefaults should have comment or be unexported (golint)
    • Line 52: warning: exported function NewGlobalFlagDefaults should have comment or be unexported (golint)
    • Line 63: warning: exported function MakeAndParseGlobalFlags should have comment or be unexported (golint)
    • openapi-cli-generator/cli/cli.go
    • Line 92: warning: exported var RunConfig should have comment or be unexported (golint)
    • Line 94: warning: exported function BuildHelpConfigCommand should have comment or be unexported (golint)
    • Line 151: warning: exported function BuildHelpInputCommand should have comment or be unexported (golint)
    • openapi-cli-generator/cli/config.go
    • Line 20: warning: exported type TokenPayload should have comment or be unexported (golint)
    • Line 29: warning: exported method TokenPayload.ToMap should have comment or be unexported (golint)
    • Line 41: warning: exported method TokenPayload.ExpiresAt should have comment or be unexported (golint)
    • Line 55: warning: exported method TokenPayload.Issuer should have comment or be unexported (golint)
    • Line 62: warning: exported method TokenPayload.ClientID should have comment or be unexported (golint)
    • Line 69: warning: exported type Credentials should have comment or be unexported (golint)
    • Line 73: warning: exported type Secrets should have comment or be unexported (golint)
    • Line 77: warning: exported type VerbosityType should have comment or be unexported (golint)
    • Line 79: warning: exported const VerbosityTypePanic should have comment or be unexported (golint)
    • Line 80: warning: exported const VerbosityTypeFatal should have comment or be unexported (golint)
    • Line 81: warning: exported const VerbosityTypeError should have comment or be unexported (golint)
    • Line 82: warning: exported const VerbosityTypeWarn should have comment or be unexported (golint)
    • Line 83: warning: exported const VerbosityTypeInfo should have comment or be unexported (golint)
    • Line 84: warning: exported const VerbosityTypeDebug should have comment or be unexported (golint)
    • Line 86: warning: exported type CLI should have comment or be unexported (golint)
    • Line 93: warning: exported method CLI.ZeroLogLevel should have comment or be unexported (golint)
    • Line 112: warning: exported type AuthServer should have comment or be unexported (golint)
    • Line 120: warning: exported type Applications should have comment or be unexported (golint)
    • Line 124: warning: exported type Profile should have comment or be unexported (golint)
    • Line 131: warning: exported type Settings should have comment or be unexported (golint)
    • Line 140: warning: exported type ClientConfiguration should have comment or be unexported (golint)
    • Line 148: warning: exported method ClientConfiguration.GetProfile should have comment or be unexported (golint)
    • Line 152: warning: exported method ClientConfiguration.GetAuthServer should have comment or be unexported (golint)
    • Line 156: warning: exported method ClientConfiguration.GetCredentials should have comment or be unexported (golint)
    • Line 238: warning: exported function InitConfiguration should have comment or be unexported (golint)
    • Line 277: warning: exported method ClientConfiguration.UpdateCredentialsToken should have comment or be unexported (golint)
    • Line 322: warning: exported function BuildSettingsCommands should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!