Preparing report...

Report for github.com/devdinu/gcloud-client

A    Great!    Found 20 issues across 25 files

Tweet

gofmt96%

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!


gocyclo96%

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.


golint28%

Golint is a linter for Go source code.

    • gcloud-client/gcloud/client.go
    • Line 20: warning: exported type Client should have comment or be unexported (golint)
    • Line 24: warning: exported method Client.GetInstances should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.GetDescription should have comment or be unexported (golint)
    • Line 53: warning: exported method Client.AddSSHKeys should have comment or be unexported (golint)
    • Line 69: warning: exported method Client.ListProjects should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.Login should have comment or be unexported (golint)
    • Line 96: warning: exported function NewClient should have comment or be unexported (golint)
    • gcloud-client/store/db.go
    • Line 16: warning: exported type DB should have comment or be unexported (golint)
    • Line 20: warning: exported method DB.CreateBuckets should have comment or be unexported (golint)
    • Line 32: warning: exported method DB.Save should have comment or be unexported (golint)
    • Line 74: warning: exported type KeyVals should have comment or be unexported (golint)
    • Line 93: warning: exported method DB.Search should have comment or be unexported (golint)
    • Line 127: warning: exported function NewDB should have comment or be unexported (golint)
    • gcloud-client/gcloud/desc.go
    • Line 8: warning: exported type Description should have comment or be unexported (golint)
    • Line 14: warning: exported method Description.SSHKeys should have comment or be unexported (golint)
    • Line 23: warning: exported type SSHKey should have comment or be unexported (golint)
    • Line 44: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 48: warning: exported type Item should have comment or be unexported (golint)
    • gcloud-client/gcloud/instance.go
    • Line 9: warning: exported type Instance should have comment or be unexported (golint)
    • Line 25: warning: exported method Instance.IP should have comment or be unexported (golint)
    • Line 32: warning: exported method Instance.ExternalIP should have comment or be unexported (golint)
    • Line 40: warning: exported type NetworkInterface should have comment or be unexported (golint)
    • Line 45: warning: exported type AccessConfig should have comment or be unexported (golint)
    • gcloud-client/actions/actions.go
    • Line 12: warning: exported type Action should have comment or be unexported (golint)
    • Line 16: warning: exported function MapActions should have comment or be unexported (golint)
    • Line 31: warning: exported function GetAction should have comment or be unexported (golint)
    • gcloud-client/logger/logger.go
    • Line 8: warning: exported type Logger should have comment or be unexported (golint)
    • Line 20: warning: exported function Infof should have comment or be unexported (golint)
    • Line 26: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 32: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 38: warning: exported function Warnf should have comment or be unexported (golint)
    • Line 44: warning: exported function SetLevel should have comment or be unexported (golint)
    • Line 48: warning: exported function SetOutput should have comment or be unexported (golint)
    • gcloud-client/command/commands.go
    • Line 7: warning: exported function AddSSHKeyCmd should have comment or be unexported (golint)
    • Line 15: warning: exported function GetInstancesCmd should have comment or be unexported (golint)
    • Line 22: warning: exported function ListProjects should have comment or be unexported (golint)
    • Line 30: warning: exported function DescribeCmd should have comment or be unexported (golint)
    • Line 38: warning: exported function Login should have comment or be unexported (golint)
    • gcloud-client/command/tmux.go
    • Line 30: warning: exported type TmuxConfig should have comment or be unexported (golint)
    • Line 39: warning: exported method TmuxConfig.AddArg should have comment or be unexported (golint)
    • Line 46: warning: exported method TmuxConfig.SessionName should have comment or be unexported (golint)
    • Line 53: warning: exported method TmuxConfig.TemplateFile should have comment or be unexported (golint)
    • Line 57: warning: exported method TmuxConfig.Flags should have comment or be unexported (golint)
    • gcloud-client/config/loader.go
    • Line 11: warning: exported type InstanceCmdArgs should have comment or be unexported (golint)
    • Line 18: warning: exported type Login should have comment or be unexported (golint)
    • Line 24: warning: exported type Args should have comment or be unexported (golint)
    • Line 35: warning: exported type CmdAction should have comment or be unexported (golint)
    • Line 37: warning: exported const SSHAccess should have comment or be unexported (golint)
    • Line 38: warning: exported const RefreshInstances should have comment or be unexported (golint)
    • Line 39: warning: exported const LoginInstances should have comment or be unexported (golint)
    • Line 40: warning: exported const SearchPrefix should have comment or be unexported (golint)
    • Line 41: warning: exported const SearchRegex should have comment or be unexported (golint)
    • Line 46: warning: exported function MustLoad should have comment or be unexported (golint)
    • Line 145: warning: exported function GetInstanceCmdArgs should have comment or be unexported (golint)
    • Line 146: warning: exported function GetArgs should have comment or be unexported (golint)
    • Line 147: warning: exported function GetActionName should have comment or be unexported (golint)
    • Line 148: warning: exported function GetDBFileName should have comment or be unexported (golint)
    • Line 150: warning: exported function LogLevel should have comment or be unexported (golint)
    • Line 156: warning: exported function Projects should have comment or be unexported (golint)
    • gcloud-client/store/predicates.go
    • Line 8: warning: exported type Predicate should have comment or be unexported (golint)
    • Line 10: warning: exported function PrefixMatcher should have comment or be unexported (golint)
    • Line 14: warning: exported function RegexMatcher should have comment or be unexported (golint)
    • gcloud-client/gcloud/projects.go
    • Line 3: warning: exported type Project should have comment or be unexported (golint)
    • Line 9: warning: exported type Projects should have comment or be unexported (golint)
    • Line 11: warning: exported method Projects.Names should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words