Preparing report...

Report for github.com/equinix/metal-cli

A    Great!    Found 69 issues across 72 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!


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.


golint11%

Golint is a linter for Go source code.

    • metal-cli/internal/env/env.go
    • Line 1: warning: package comment should be of the form "Package env ..." (golint)
    • Line 30: warning: exported type Tokener should have comment or be unexported (golint)
    • Line 34: warning: exported type Client should have comment or be unexported (golint)
    • Line 39: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 46: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • metal-cli/internal/init/init.go
    • Line 1: warning: package comment should be of the form "Package init ..." (golint)
    • Line 37: warning: exported type Client should have comment or be unexported (golint)
    • Line 43: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 55: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 179: warning: exported type Servicer should have comment or be unexported (golint)
    • metal-cli/internal/ips/ip.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 65: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 70: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/os/os.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 57: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 62: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/devices/device.go
    • Line 30: warning: exported type Client should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 66: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 72: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/facilities/facility.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 57: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 62: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/twofa/twofa.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 60: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 65: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/ssh/ssh.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 60: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 65: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/outputs/outputs.go
    • Line 12: warning: exported type Format should have comment or be unexported (golint)
    • Line 15: warning: exported const FormatTable should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Outputer should have comment or be unexported (golint)
    • Line 25: warning: exported type Standard should have comment or be unexported (golint)
    • Line 47: warning: exported method Standard.Output should have comment or be unexported (golint)
    • Line 63: warning: exported method Standard.SetFormat should have comment or be unexported (golint)
    • metal-cli/internal/events/event.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 64: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 70: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/projects/project.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 61: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 67: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/cli/root.go
    • Line 45: warning: exported type Client should have comment or be unexported (golint)
    • Line 62: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.Config should have comment or be unexported (golint)
    • Line 137: warning: exported method Client.API should have comment or be unexported (golint)
    • Line 151: warning: exported method Client.Token should have comment or be unexported (golint)
    • Line 155: warning: exported method Client.SetToken should have comment or be unexported (golint)
    • Line 159: warning: exported method Client.Format should have comment or be unexported (golint)
    • Line 175: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 223: warning: comment on exported method Client.Init should be of the form "Init ..." (golint)
    • Line 240: warning: exported method Client.DefaultConfig should have comment or be unexported (golint)
    • metal-cli/internal/metros/metro.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 57: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 62: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/hardware/hardware.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 58: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 64: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/users/user.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 58: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 63: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/capacity/capacity.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 58: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 64: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/vlan/vlan.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 60: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 65: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/organizations/organization.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 62: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 68: warning: exported function NewClient should have comment or be unexported (golint)
    • metal-cli/internal/plans/plan.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 35: warning: exported method Client.NewCommand should have comment or be unexported (golint)
    • Line 57: warning: exported type Servicer should have comment or be unexported (golint)
    • Line 62: warning: exported function NewClient 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!


misspell98%

Misspell Finds commonly misspelled English words