Preparing report...

Report for github.com/intboat/go-hetzner

(v0.1.1)

A    Great!    Found 23 issues across 27 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!


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.

    • client.go
    • Line 90: warning: cyclomatic complexity 18 of function (*Client).NewRequest() is high (> 15) (gocyclo)

golint14%

Golint is a linter for Go source code.

    • server_types.go
    • Line 3: warning: exported type ServerSummary should have comment or be unexported (golint)
    • Line 21: warning: exported type Server should have comment or be unexported (golint)
    • Line 34: warning: exported type UpdateServerRequest should have comment or be unexported (golint)
    • Line 39: warning: exported type Cancellation should have comment or be unexported (golint)
    • Line 52: warning: exported type CancelServerRequest should have comment or be unexported (golint)
    • Line 59: warning: exported type WithdrawOrderRequest should have comment or be unexported (golint)
    • ssh_key_types.go
    • Line 3: warning: exported type SSHKey should have comment or be unexported (golint)
    • Line 11: warning: exported type SSHKeyCreateRequest should have comment or be unexported (golint)
    • Line 16: warning: exported type SSHKeyUpdateRequest should have comment or be unexported (golint)
    • traffic_types.go
    • Line 3: warning: exported type Traffic should have comment or be unexported (golint)
    • Line 10: warning: exported type TrafficDataRow should have comment or be unexported (golint)
    • Line 16: warning: exported type TrafficGroup should have comment or be unexported (golint)
    • Line 23: warning: exported type TrafficRequest should have comment or be unexported (golint)
    • wol_types.go
    • Line 3: warning: exported type WOL should have comment or be unexported (golint)
    • ip_types.go
    • Line 3: warning: exported type IP should have comment or be unexported (golint)
    • Line 15: warning: exported type IpSummary should have comment or be unexported (golint)
    • Line 22: warning: exported type IpUpdateRequest should have comment or be unexported (golint)
    • Line 30: warning: exported type Mac should have comment or be unexported (golint)
    • json_time.go
    • Line 8: warning: exported type JSONTime should have comment or be unexported (golint)
    • Line 12: warning: exported method JSONTime.MarshalJSON should have comment or be unexported (golint)
    • Line 16: warning: exported method JSONTime.UnmarshalJSON should have comment or be unexported (golint)
    • rdns.go
    • Line 19: warning: exported type RDNSServiceImpl should have comment or be unexported (golint)
    • failover.go
    • Line 18: warning: exported type FailoverServiceImpl should have comment or be unexported (golint)
    • server.go
    • Line 21: warning: exported type ServerServiceImpl should have comment or be unexported (golint)
    • subnet.go
    • Line 21: warning: exported type SubnetServiceImpl should have comment or be unexported (golint)
    • ip.go
    • Line 21: warning: exported type IpServiceImpl should have comment or be unexported (golint)
    • ordering_type.go
    • Line 7: warning: exported type MarketProduct should have comment or be unexported (golint)
    • Line 49: warning: exported type Product should have comment or be unexported (golint)
    • Line 88: warning: exported type AuthorizedKey should have comment or be unexported (golint)
    • Line 95: warning: exported type HostKey should have comment or be unexported (golint)
    • Line 101: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 123: warning: exported type CreateTransactionRequest should have comment or be unexported (golint)
    • reset.go
    • Line 17: warning: exported type ResetServiceImpl should have comment or be unexported (golint)
    • reset_types.go
    • Line 3: warning: exported type Reset should have comment or be unexported (golint)
    • Line 11: warning: exported type ResetCreateRequest should have comment or be unexported (golint)
    • Line 16: warning: exported type ResetCreateResponse should have comment or be unexported (golint)
    • ssh_key.go
    • Line 19: warning: exported type SSHKeyServiceImpl should have comment or be unexported (golint)
    • boot.go
    • Line 41: warning: exported type BootServiceImpl should have comment or be unexported (golint)
    • boot_types.go
    • Line 3: warning: exported type Rescue should have comment or be unexported (golint)
    • Line 15: warning: exported type Linux should have comment or be unexported (golint)
    • Line 28: warning: exported type Vnc should have comment or be unexported (golint)
    • Line 39: warning: exported type Windows should have comment or be unexported (golint)
    • Line 49: warning: exported type Plesk should have comment or be unexported (golint)
    • Line 61: warning: exported type Cpanel should have comment or be unexported (golint)
    • Line 73: warning: exported type Boot should have comment or be unexported (golint)
    • Line 82: warning: exported type ActiveMeta should have comment or be unexported (golint)
    • Line 89: warning: exported type ActivateLinuxRequest should have comment or be unexported (golint)
    • Line 94: warning: exported type ActivateRescueRequest should have comment or be unexported (golint)
    • Line 99: warning: exported type ActivateVncRequest should have comment or be unexported (golint)
    • Line 103: warning: exported type ActivateWindowsRequest should have comment or be unexported (golint)
    • Line 107: warning: exported type ActivatePleskRequest should have comment or be unexported (golint)
    • Line 112: warning: exported type ActivateCPanelRequest should have comment or be unexported (golint)
    • client.go
    • Line 29: warning: exported type Client should have comment or be unexported (golint)
    • Line 56: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.WithUserAgent should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.WithTimeout should have comment or be unexported (golint)
    • Line 240: warning: exported method Client.Call should have comment or be unexported (golint)
    • subnet_types.go
    • Line 3: warning: exported type Subnet should have comment or be unexported (golint)
    • Line 17: warning: exported type SubnetMac should have comment or be unexported (golint)
    • Line 24: warning: exported type SubnetUpdateRequest should have comment or be unexported (golint)
    • wol.go
    • Line 16: warning: exported type WOLServiceImpl should have comment or be unexported (golint)
    • ordering.go
    • Line 29: warning: exported type OrderingServiceImpl should have comment or be unexported (golint)
    • rdns_types.go
    • Line 3: warning: exported type RDNS should have comment or be unexported (golint)
    • Line 12: warning: exported type RDNSUpdateRequest should have comment or be unexported (golint)
    • traffic.go
    • Line 15: warning: exported type TrafficServiceImpl 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!