Preparing report...

Report for github.com/sacloud/phy-go

(v0.0.0-20211116080724-40a5d6fccb2e)

A+    Excellent!    Found 10 issues across 41 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.

    • phy-go/apis/v1/zz_client_gen.go
    • Line 832: warning: cyclomatic complexity 45 of function NewListServersRequest() is high (> 15) (gocyclo)
    • Line 1686: warning: cyclomatic complexity 35 of function NewListServicesRequest() is high (> 15) (gocyclo)
    • Line 687: warning: cyclomatic complexity 30 of function NewListPrivateNetworksRequest() is high (> 15) (gocyclo)
    • Line 522: warning: cyclomatic complexity 30 of function NewListDedicatedSubnetsRequest() is high (> 15) (gocyclo)
    • Line 1449: warning: cyclomatic complexity 22 of function NewReadServerTrafficByPortRequest() is high (> 15) (gocyclo)
    • Line 3787: warning: cyclomatic complexity 20 of function ParseEnableServerPortResponse() is high (> 15) (gocyclo)
    • Line 3549: warning: cyclomatic complexity 20 of function ParseServerConfigureBondingResponse() is high (> 15) (gocyclo)
    • Line 3722: warning: cyclomatic complexity 20 of function ParseServerAssignNetworkResponse() is high (> 15) (gocyclo)
    • Line 3488: warning: cyclomatic complexity 20 of function ParseReadServerPortChannelResponse() is high (> 15) (gocyclo)
    • Line 3434: warning: cyclomatic complexity 17 of function ParseOSInstallResponse() is high (> 15) (gocyclo)
    • Line 3286: warning: cyclomatic complexity 17 of function ParseListServersResponse() is high (> 15) (gocyclo)
    • Line 4144: warning: cyclomatic complexity 17 of function ParseUpdateServiceResponse() is high (> 15) (gocyclo)
    • Line 3895: warning: cyclomatic complexity 17 of function ParseServerPowerControlResponse() is high (> 15) (gocyclo)
    • Line 3138: warning: cyclomatic complexity 17 of function ParseReadDedicatedSubnetResponse() is high (> 15) (gocyclo)
    • Line 3949: warning: cyclomatic complexity 17 of function ParseReadServerPowerStatusResponse() is high (> 15) (gocyclo)
    • Line 4003: warning: cyclomatic complexity 17 of function ParseReadRAIDStatusResponse() is high (> 15) (gocyclo)
    • Line 3668: warning: cyclomatic complexity 17 of function ParseUpdateServerPortResponse() is high (> 15) (gocyclo)
    • Line 3614: warning: cyclomatic complexity 17 of function ParseReadServerPortResponse() is high (> 15) (gocyclo)

golint80%

Golint is a linter for Go source code.

    • phy-go/dedicated_subnets.go
    • Line 29: warning: exported type DedicatedSubnetOp should have comment or be unexported (golint)
    • Line 33: warning: exported function NewDedicatedSubnetOp should have comment or be unexported (golint)
    • Line 37: warning: exported method DedicatedSubnetOp.List should have comment or be unexported (golint)
    • phy-go/private_networks.go
    • Line 29: warning: exported type PrivateNetworkOp should have comment or be unexported (golint)
    • Line 33: warning: exported function NewPrivateNetworkOp should have comment or be unexported (golint)
    • Line 37: warning: exported method PrivateNetworkOp.List should have comment or be unexported (golint)
    • phy-go/servers.go
    • Line 23: warning: exported type ServerAPI should have comment or be unexported (golint)
    • Line 40: warning: exported type ServerOp should have comment or be unexported (golint)
    • Line 44: warning: exported function NewServerOp should have comment or be unexported (golint)
    • Line 48: warning: exported method ServerOp.List should have comment or be unexported (golint)
    • Line 68: warning: exported method ServerOp.ListOSImages should have comment or be unexported (golint)
    • Line 85: warning: exported method ServerOp.OSInstall should have comment or be unexported (golint)
    • Line 93: warning: exported method ServerOp.ReadPortChannel should have comment or be unexported (golint)
    • Line 105: warning: exported method ServerOp.ConfigureBonding should have comment or be unexported (golint)
    • Line 121: warning: exported method ServerOp.ReadPort should have comment or be unexported (golint)
    • Line 133: warning: exported method ServerOp.UpdatePort should have comment or be unexported (golint)
    • Line 149: warning: exported method ServerOp.EnablePort should have comment or be unexported (golint)
    • Line 165: warning: exported method ServerOp.AssignNetwork should have comment or be unexported (golint)
    • Line 181: warning: exported method ServerOp.ReadTrafficByPort should have comment or be unexported (golint)
    • Line 193: warning: exported method ServerOp.PowerControl should have comment or be unexported (golint)
    • Line 201: warning: exported method ServerOp.ReadPowerStatus should have comment or be unexported (golint)
    • Line 213: warning: exported method ServerOp.ReadRAIDStatus should have comment or be unexported (golint)
    • phy-go/services.go
    • Line 35: warning: exported function NewServiceOp should have comment or be unexported (golint)
    • Line 39: warning: exported method ServiceOp.List should have comment or be unexported (golint)
    • Line 59: warning: exported method ServiceOp.Update should have comment or be unexported (golint)
    • phy-go/fake/errors.go
    • Line 19: warning: exported type ErrorType should have comment or be unexported (golint)
    • Line 22: warning: exported const ErrorTypeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported type Error should have comment or be unexported (golint)
    • Line 48: warning: exported function NewError should have comment or be unexported (golint)
    • phy-go/fake/server.go
    • Line 22: warning: exported type Server should have comment or be unexported (golint)
    • Line 30: warning: exported method Server.Id 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!