Preparing report...

Report for github.com/sacloud/phy-api-go

(v0.0.2)

A+    Excellent!    Found 3 issues across 45 files

Tweet

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!


gofmt97%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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.

    • 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 3488: warning: cyclomatic complexity 20 of function ParseReadServerPortChannelResponse() is high (> 15) (gocyclo)
    • Line 3722: warning: cyclomatic complexity 20 of function ParseServerAssignNetworkResponse() 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 4144: warning: cyclomatic complexity 17 of function ParseUpdateServiceResponse() 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 3895: warning: cyclomatic complexity 17 of function ParseServerPowerControlResponse() is high (> 15) (gocyclo)
    • Line 3949: warning: cyclomatic complexity 17 of function ParseReadServerPowerStatusResponse() 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)
    • Line 3138: warning: cyclomatic complexity 17 of function ParseReadDedicatedSubnetResponse() is high (> 15) (gocyclo)
    • Line 4003: warning: cyclomatic complexity 17 of function ParseReadRAIDStatusResponse() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!