Preparing report...

Report for github.com/appscode/go-hetzner

A    Great!    Found 16 issues across 17 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!


gocyclo94%

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.


golint5%

Golint is a linter for Go source code.

    • go-hetzner/reset.go
    • Line 8: warning: comment on exported type ResetService should be of the form "ResetService ..." (with optional leading article) (golint)
    • Line 15: warning: exported type ResetServiceImpl should have comment or be unexported (golint)
    • Line 21: warning: exported method ResetServiceImpl.List should have comment or be unexported (golint)
    • Line 37: warning: exported method ResetServiceImpl.Get should have comment or be unexported (golint)
    • Line 48: warning: exported method ResetServiceImpl.Create should have comment or be unexported (golint)
    • go-hetzner/wol.go
    • Line 8: warning: comment on exported type WOLService should be of the form "WOLService ..." (with optional leading article) (golint)
    • Line 14: warning: exported type WOLServiceImpl should have comment or be unexported (golint)
    • Line 20: warning: exported method WOLServiceImpl.Create should have comment or be unexported (golint)
    • Line 31: warning: exported method WOLServiceImpl.Get should have comment or be unexported (golint)
    • go-hetzner/boot.go
    • Line 8: warning: comment on exported type BootService should be of the form "BootService ..." (with optional leading article) (golint)
    • Line 17: warning: exported type BootServiceImpl should have comment or be unexported (golint)
    • Line 23: warning: exported method BootServiceImpl.GetConfig should have comment or be unexported (golint)
    • Line 34: warning: exported method BootServiceImpl.GetLinuxConfig should have comment or be unexported (golint)
    • Line 45: warning: exported method BootServiceImpl.ActivateLinux should have comment or be unexported (golint)
    • Line 56: warning: exported method BootServiceImpl.DeactivateLinux should have comment or be unexported (golint)
    • go-hetzner/ordering_type.go
    • Line 5: warning: exported type Product should have comment or be unexported (golint)
    • Line 19: warning: exported type AuthorizedKey should have comment or be unexported (golint)
    • Line 25: warning: exported type HostKey should have comment or be unexported (golint)
    • Line 30: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 54: warning: exported type CreateTransactionRequest should have comment or be unexported (golint)
    • go-hetzner/ordering.go
    • Line 8: warning: comment on exported type OrderingService should be of the form "OrderingService ..." (with optional leading article) (golint)
    • Line 18: warning: exported type OrderingServiceImpl should have comment or be unexported (golint)
    • Line 24: warning: exported method OrderingServiceImpl.ListProducts should have comment or be unexported (golint)
    • Line 40: warning: exported method OrderingServiceImpl.GetProduct should have comment or be unexported (golint)
    • Line 51: warning: exported method OrderingServiceImpl.ListTransactions should have comment or be unexported (golint)
    • Line 67: warning: exported method OrderingServiceImpl.CreateTransaction should have comment or be unexported (golint)
    • Line 78: warning: exported method OrderingServiceImpl.GetTransaction should have comment or be unexported (golint)
    • go-hetzner/reset_types.go
    • Line 3: warning: exported type Reset should have comment or be unexported (golint)
    • Line 10: warning: exported type ResetCreateRequest should have comment or be unexported (golint)
    • Line 15: warning: exported type ResetCreateResponse should have comment or be unexported (golint)
    • go-hetzner/server_types.go
    • Line 3: warning: should not use dot imports (golint)
    • Line 5: warning: exported type ServerSummary should have comment or be unexported (golint)
    • Line 19: warning: exported type Server should have comment or be unexported (golint)
    • Line 35: warning: exported type ServerUpdateRequest should have comment or be unexported (golint)
    • Line 40: warning: exported type Cancellation should have comment or be unexported (golint)
    • Line 50: warning: exported type CancelServerRequest should have comment or be unexported (golint)
    • go-hetzner/ssh_key.go
    • Line 8: warning: comment on exported type SSHKeyService should be of the form "SSHKeyService ..." (with optional leading article) (golint)
    • Line 17: warning: exported type SSHKeyServiceImpl should have comment or be unexported (golint)
    • Line 23: warning: exported method SSHKeyServiceImpl.List should have comment or be unexported (golint)
    • Line 39: warning: exported method SSHKeyServiceImpl.Create should have comment or be unexported (golint)
    • Line 50: warning: exported method SSHKeyServiceImpl.Get should have comment or be unexported (golint)
    • Line 61: warning: exported method SSHKeyServiceImpl.Update should have comment or be unexported (golint)
    • Line 72: warning: exported method SSHKeyServiceImpl.Delete should have comment or be unexported (golint)
    • go-hetzner/client.go
    • Line 26: warning: comment on exported const UserAgent should be of the form "UserAgent ..." (golint)
    • Line 35: warning: exported type Client should have comment or be unexported (golint)
    • Line 60: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 79: warning: exported method Client.WithUserAgent should have comment or be unexported (golint)
    • Line 84: warning: exported method Client.WithBackOff should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.WithTimeout should have comment or be unexported (golint)
    • Line 251: warning: exported method Client.Call should have comment or be unexported (golint)
    • go-hetzner/error.go
    • Line 9: warning: comment on exported type APIError should be of the form "APIError ..." (with optional leading article) (golint)
    • go-hetzner/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)
    • go-hetzner/vserver.go
    • Line 8: warning: comment on exported type VServerService should be of the form "VServerService ..." (with optional leading article) (golint)
    • Line 13: warning: exported type VServerServiceImpl should have comment or be unexported (golint)
    • Line 19: warning: exported method VServerServiceImpl.Command should have comment or be unexported (golint)
    • go-hetzner/vserver_types.go
    • Line 4: warning: don't use underscores in Go names; const VServerCommand_Start should be VServerCommandStart (golint)
    • Line 4: warning: exported const VServerCommand_Start should have comment (or a comment on this block) or be unexported (golint)
    • Line 5: warning: don't use underscores in Go names; const VServerCommand_Stop should be VServerCommandStop (golint)
    • Line 6: warning: don't use underscores in Go names; const VServerCommand_Shutdown should be VServerCommandShutdown (golint)
    • Line 9: warning: exported type VServerCommandRequest should have comment or be unexported (golint)
    • go-hetzner/boot_types.go
    • Line 3: warning: should not use dot imports (golint)
    • Line 5: warning: exported type Rescue should have comment or be unexported (golint)
    • Line 16: 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 38: warning: exported type Windows should have comment or be unexported (golint)
    • Line 47: warning: exported type Plesk should have comment or be unexported (golint)
    • Line 58: warning: exported type Cpanel should have comment or be unexported (golint)
    • Line 69: warning: exported type Boot should have comment or be unexported (golint)
    • Line 78: warning: exported type ActivateLinuxRequest should have comment or be unexported (golint)
    • go-hetzner/server.go
    • Line 8: warning: comment on exported type ServerService should be of the form "ServerService ..." (with optional leading article) (golint)
    • Line 19: warning: exported type ServerServiceImpl should have comment or be unexported (golint)
    • Line 25: warning: exported method ServerServiceImpl.ListServers should have comment or be unexported (golint)
    • Line 41: warning: exported method ServerServiceImpl.GetServer should have comment or be unexported (golint)
    • Line 52: warning: exported method ServerServiceImpl.UpdateServer should have comment or be unexported (golint)
    • Line 63: warning: exported method ServerServiceImpl.GetCancellation should have comment or be unexported (golint)
    • Line 74: warning: exported method ServerServiceImpl.CancelServer should have comment or be unexported (golint)
    • Line 85: warning: exported method ServerServiceImpl.WithdrawCancellation 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!


misspell88%

Misspell Finds commonly misspelled English words