Preparing report...

Report for github.com/fingcloud/cli

A    Great!    Found 22 issues across 24 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!


gocyclo95%

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.


golint8%

Golint is a linter for Go source code.

    • cli/pkg/cmd/auth/login.go
    • Line 15: warning: exported type LoginOptions should have comment or be unexported (golint)
    • Line 21: warning: exported function NewCmdLogin should have comment or be unexported (golint)
    • Line 44: warning: exported method LoginOptions.Init should have comment or be unexported (golint)
    • Line 59: warning: exported method LoginOptions.Validate should have comment or be unexported (golint)
    • Line 71: warning: exported method LoginOptions.Run should have comment or be unexported (golint)
    • cli/pkg/ui/prompts.go
    • Line 7: warning: exported function PromptInput should have comment or be unexported (golint)
    • Line 15: warning: exported function PromptEmail should have comment or be unexported (golint)
    • Line 19: warning: exported function PromptPassword should have comment or be unexported (golint)
    • Line 27: warning: exported function PromptYesNo should have comment or be unexported (golint)
    • Line 35: warning: exported function PromptSelect should have comment or be unexported (golint)
    • cli/pkg/cmd/logs/logs.go
    • Line 15: warning: exported type LogsOptions should have comment or be unexported (golint)
    • Line 22: warning: exported function NewCmdLogs should have comment or be unexported (golint)
    • Line 45: warning: exported method LogsOptions.Init should have comment or be unexported (golint)
    • Line 57: warning: exported method LogsOptions.Validate should have comment or be unexported (golint)
    • Line 61: warning: exported method LogsOptions.Run should have comment or be unexported (golint)
    • cli/pkg/retry/retry.go
    • Line 5: warning: exported type RetryFunc should have comment or be unexported (golint)
    • Line 7: warning: exported function Retry should have comment or be unexported (golint)
    • Line 18: warning: exported function RetryDelay should have comment or be unexported (golint)
    • cli/pkg/cmd/cmd.go
    • Line 16: warning: exported function NewFingCommand should have comment or be unexported (golint)
    • Line 38: warning: exported function Execute should have comment or be unexported (golint)
    • cli/pkg/api/account.go
    • Line 8: warning: exported type AccountLoginOptions should have comment or be unexported (golint)
    • Line 13: warning: exported type AccountRegisterOptions should have comment or be unexported (golint)
    • Line 20: warning: exported type Auth should have comment or be unexported (golint)
    • Line 25: warning: exported type User should have comment or be unexported (golint)
    • Line 29: warning: exported method Client.AccountLogin should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.AccountRegister should have comment or be unexported (golint)
    • cli/pkg/ui/text.go
    • Line 9: warning: exported function Bold should have comment or be unexported (golint)
    • Line 10: warning: exported function Green should have comment or be unexported (golint)
    • Line 11: warning: exported function Yellow should have comment or be unexported (golint)
    • Line 12: warning: exported function Red should have comment or be unexported (golint)
    • Line 13: warning: exported function Blue should have comment or be unexported (golint)
    • Line 14: warning: exported function Gray should have comment or be unexported (golint)
    • Line 16: warning: exported function Heading should have comment or be unexported (golint)
    • Line 20: warning: exported function Alert should have comment or be unexported (golint)
    • Line 24: warning: exported function Warning should have comment or be unexported (golint)
    • Line 28: warning: exported function Info should have comment or be unexported (golint)
    • Line 32: warning: exported function Details should have comment or be unexported (golint)
    • Line 36: warning: exported function KeyValue should have comment or be unexported (golint)
    • cli/pkg/config/auth.go
    • Line 11: warning: exported type AuthConfig should have comment or be unexported (golint)
    • Line 16: warning: exported function ReadAuthConfig should have comment or be unexported (golint)
    • Line 34: warning: exported function WriteAuthConfig should have comment or be unexported (golint)
    • cli/pkg/api/apps.go
    • Line 12: warning: exported type ListAppsOptions should have comment or be unexported (golint)
    • Line 15: warning: exported type CreateAppOptions should have comment or be unexported (golint)
    • Line 22: warning: exported type EnvItem should have comment or be unexported (golint)
    • Line 27: warning: exported type App should have comment or be unexported (golint)
    • Line 39: warning: exported type AppResource should have comment or be unexported (golint)
    • Line 45: warning: exported type AppLog should have comment or be unexported (golint)
    • Line 51: warning: exported type AppConfig should have comment or be unexported (golint)
    • Line 57: warning: exported type AppLogsOptions should have comment or be unexported (golint)
    • Line 61: warning: exported method Client.AppsList should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.AppsCreate should have comment or be unexported (golint)
    • Line 95: warning: exported type ProgressReader should have comment or be unexported (golint)
    • Line 108: warning: exported method Client.AppsUploadFiles should have comment or be unexported (golint)
    • Line 144: warning: exported method Client.AppLogs should have comment or be unexported (golint)
    • cli/pkg/api/deployments.go
    • Line 10: warning: exported type FileInfo should have comment or be unexported (golint)
    • Line 18: warning: exported type CreateDeploymentOptions should have comment or be unexported (golint)
    • Line 23: warning: exported type Deployment should have comment or be unexported (golint)
    • Line 33: warning: exported type LogsOptions should have comment or be unexported (golint)
    • Line 37: warning: exported type BuildLog should have comment or be unexported (golint)
    • Line 44: warning: exported type BuildLogs should have comment or be unexported (golint)
    • Line 49: warning: exported type DeploymentStatus should have comment or be unexported (golint)
    • Line 52: warning: exported const DeploymentStatusReady should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported method Client.DeployemntCreate should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.DeploymentBuildLogs should have comment or be unexported (golint)
    • Line 99: warning: exported method Client.DeploymentCancel should have comment or be unexported (golint)
    • cli/pkg/cli/context.go
    • Line 10: warning: exported var Version should have comment or be unexported (golint)
    • Line 15: warning: exported type Context should have comment or be unexported (golint)
    • Line 24: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 32: warning: exported method Context.AddFlags should have comment or be unexported (golint)
    • Line 48: warning: exported method Context.SetupClient should have comment or be unexported (golint)
    • cli/pkg/cmd/auth/logout.go
    • Line 13: warning: exported type LogoutOptions should have comment or be unexported (golint)
    • Line 15: warning: exported function NewCmdLogout should have comment or be unexported (golint)
    • Line 34: warning: exported method LogoutOptions.Init should have comment or be unexported (golint)
    • Line 38: warning: exported method LogoutOptions.Validate should have comment or be unexported (golint)
    • Line 42: warning: exported method LogoutOptions.Run should have comment or be unexported (golint)
    • cli/pkg/cmd/version/version.go
    • Line 10: warning: exported type VersionOptions should have comment or be unexported (golint)
    • Line 12: warning: exported function NewCmdVersion should have comment or be unexported (golint)
    • cli/pkg/ui/spinner/spinner.go
    • Line 9: warning: exported type Spinner should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 20: warning: exported method Spinner.Start should have comment or be unexported (golint)
    • Line 29: warning: exported method Spinner.Text should have comment or be unexported (golint)
    • Line 34: warning: exported method Spinner.Stop should have comment or be unexported (golint)
    • cli/pkg/config/config.go
    • Line 11: warning: exported function ReadAppConfig should have comment or be unexported (golint)
    • Line 27: warning: exported function WriteAppConfig should have comment or be unexported (golint)
    • cli/pkg/api/client.go
    • Line 18: warning: exported type Client should have comment or be unexported (golint)
    • Line 27: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 58: warning: exported method Client.NewRequest should have comment or be unexported (golint)
    • Line 108: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 111: warning: exported type Response should have comment or be unexported (golint)
    • Line 122: warning: exported method Response.IsUploadChangesErr should have comment or be unexported (golint)
    • Line 126: warning: exported function CheckResponse should have comment or be unexported (golint)
    • Line 142: warning: exported method Client.Do should have comment or be unexported (golint)
    • cli/pkg/cmd/util/errors.go
    • Line 13: warning: exported const DefaultErrorExitCode should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type ErrHandler should have comment or be unexported (golint)
    • Line 19: warning: exported var ErrExit should have comment or be unexported (golint)
    • Line 23: warning: exported function CheckErr should have comment or be unexported (golint)
    • Line 51: warning: exported function DefaultSubCommandRun should have comment or be unexported (golint)
    • cli/pkg/fileutils/files.go
    • Line 16: warning: exported function GetFiles should have comment or be unexported (golint)
    • Line 72: warning: exported function Compress should have comment or be unexported (golint)
    • Line 117: warning: exported function Decompress should have comment or be unexported (golint)
    • cli/pkg/cmd/deploy/deploy.go
    • Line 28: warning: exported type DeployOptions should have comment or be unexported (golint)
    • Line 39: warning: exported function NewCmdDeploy should have comment or be unexported (golint)
    • Line 64: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 70: warning: exported method DeployOptions.Init should have comment or be unexported (golint)
    • Line 104: warning: exported method DeployOptions.Validate should have comment or be unexported (golint)
    • Line 120: warning: exported method DeployOptions.Run should have comment or be unexported (golint)
    • cli/pkg/api/options.go
    • Line 8: warning: exported type Option should have comment or be unexported (golint)
    • Line 10: warning: exported function WithBaseURL should have comment or be unexported (golint)
    • Line 16: warning: exported function WithHttpClient 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!


misspell95%

Misspell Finds commonly misspelled English words