Preparing report...

Report for github.com/intrinsec/govc_exporter

A+    Excellent!    Found 4 issues across 12 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!


gocyclo91%

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.


golint66%

Golint is a linter for Go source code.

    • govc_exporter/collector/vc_common.go
    • Line 41: warning: exported type Parents should have comment or be unexported (golint)
    • Line 47: warning: exported type ParentsCache should have comment or be unexported (golint)
    • Line 52: warning: exported function NewParentsCache should have comment or be unexported (golint)
    • Line 58: warning: exported method ParentsCache.Add should have comment or be unexported (golint)
    • Line 64: warning: exported method ParentsCache.Get should have comment or be unexported (golint)
    • Line 71: warning: exported method ParentsCache.Flush should have comment or be unexported (golint)
    • govc_exporter/collector/vc_vm.go
    • Line 314: warning: exported type IsecAnnotation should have comment or be unexported (golint)
    • Line 320: warning: exported function GetIsecAnnotation should have comment or be unexported (golint)
    • Line 330: warning: exported type EthernetDevice should have comment or be unexported (golint)
    • Line 338: warning: exported function GetEthernetDevices should have comment or be unexported (golint)
    • Line 368: warning: exported type Network should have comment or be unexported (golint)
    • Line 375: warning: exported function GetNetworks should have comment or be unexported (golint)
    • Line 389: warning: exported type Disk should have comment or be unexported (golint)
    • Line 394: warning: exported function GetDisks 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!


misspell91%

Misspell Finds commonly misspelled English words