Preparing report...

Report for github.com/cnrancher/autok3s

A+    Excellent!    Found 9 issues across 76 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!


gocyclo88%

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.

    • autok3s/pkg/providers/aws/aws.go
    • Line 662: warning: cyclomatic complexity 44 of function (*Amazon).CreateCheck() is high (> 15) (gocyclo)
    • Line 327: warning: cyclomatic complexity 17 of function (*Amazon).runInstances() is high (> 15) (gocyclo)
    • autok3s/pkg/providers/alibaba/alibaba.go
    • Line 987: warning: cyclomatic complexity 26 of function (*Alibaba).generateInstance() is high (> 15) (gocyclo)
    • Line 838: warning: cyclomatic complexity 19 of function (*Alibaba).releaseEipAddresses() is high (> 15) (gocyclo)
    • Line 651: warning: cyclomatic complexity 18 of function (*Alibaba).CreateCheck() is high (> 15) (gocyclo)
    • autok3s/pkg/cluster/base.go
    • Line 269: warning: cyclomatic complexity 23 of function (*ProviderBase).InitCluster() is high (> 15) (gocyclo)
    • Line 382: warning: cyclomatic complexity 19 of function (*ProviderBase).JoinNodes() is high (> 15) (gocyclo)
    • autok3s/pkg/providers/tencent/tencent.go
    • Line 1228: warning: cyclomatic complexity 33 of function (*Tencent).configDefaultSecurityPermission() is high (> 15) (gocyclo)
    • Line 412: warning: cyclomatic complexity 26 of function (*Tencent).generateInstance() is high (> 15) (gocyclo)
    • Line 527: warning: cyclomatic complexity 25 of function (*Tencent).deleteInstance() is high (> 15) (gocyclo)
    • Line 604: warning: cyclomatic complexity 20 of function (*Tencent).CreateCheck() is high (> 15) (gocyclo)
    • autok3s/pkg/cluster/cluster.go
    • Line 47: warning: cyclomatic complexity 35 of function (*ProviderBase).InitK3sCluster() is high (> 15) (gocyclo)
    • Line 222: warning: cyclomatic complexity 25 of function (*ProviderBase).Join() is high (> 15) (gocyclo)
    • Line 882: warning: cyclomatic complexity 21 of function DescribeClusterNodes() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 20 of function SSHK3sNode() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 2)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!