Preparing report...

Report for github.com/danitso/terraform-provider-proxmox

D    Needs lots of improvement    Found 10 issues across 100 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_vet0%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

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


golint0%

Golint is a linter for Go source code.

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


gocyclo90%

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.

    • terraform-provider-proxmox/proxmoxtf/resource_virtual_environment_vm.go
    • Line 2345: warning: cyclomatic complexity 144 of function resourceVirtualEnvironmentVMReadCustom() is high (> 15) (gocyclo)
    • Line 3193: warning: cyclomatic complexity 70 of function resourceVirtualEnvironmentVMUpdate() is high (> 15) (gocyclo)
    • Line 1062: warning: cyclomatic complexity 68 of function resourceVirtualEnvironmentVMCreateClone() is high (> 15) (gocyclo)
    • Line 1499: warning: cyclomatic complexity 30 of function resourceVirtualEnvironmentVMCreateCustom() is high (> 15) (gocyclo)
    • Line 3626: warning: cyclomatic complexity 26 of function resourceVirtualEnvironmentVMUpdateDiskLocationAndSize() is high (> 15) (gocyclo)
    • Line 3107: warning: cyclomatic complexity 23 of function resourceVirtualEnvironmentVMReadPrimitiveValues() is high (> 15) (gocyclo)
    • Line 1985: warning: cyclomatic complexity 18 of function resourceVirtualEnvironmentVMGetCloudInitConfig() is high (> 15) (gocyclo)
    • Line 1763: warning: cyclomatic complexity 16 of function resourceVirtualEnvironmentVMCreateCustomDisks() is high (> 15) (gocyclo)
    • terraform-provider-proxmox/proxmoxtf/resource_virtual_environment_container.go
    • Line 1275: warning: cyclomatic complexity 82 of function resourceVirtualEnvironmentContainerRead() is high (> 15) (gocyclo)
    • Line 1667: warning: cyclomatic complexity 47 of function resourceVirtualEnvironmentContainerUpdate() is high (> 15) (gocyclo)
    • Line 568: warning: cyclomatic complexity 45 of function resourceVirtualEnvironmentContainerCreateClone() is high (> 15) (gocyclo)
    • Line 884: warning: cyclomatic complexity 35 of function resourceVirtualEnvironmentContainerCreateCustom() is high (> 15) (gocyclo)
    • terraform-provider-proxmox/proxmox/virtual_environment_container_types.go
    • Line 614: warning: cyclomatic complexity 24 of function (*VirtualEnvironmentContainerCustomNetworkInterface).UnmarshalJSON() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 17 of function (VirtualEnvironmentContainerCustomNetworkInterface).EncodeValues() is high (> 15) (gocyclo)
    • Line 262: warning: cyclomatic complexity 17 of function (VirtualEnvironmentContainerCustomMountPoint).EncodeValues() 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!