Preparing report...

Report for github.com/caboucha/nxgo

C    Needs some work    Found 7 issues across 8 files

Tweet

gofmt12%

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


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!


gocyclo100%

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.

No problems detected. Good job!


golint62%

Golint is a linter for Go source code.

    • nxgo/nx/constrest.go
    • Line 4: warning: comment on exported const ConfigRootURI should be of the form "ConfigRootURI ..." (golint)
    • Line 7: warning: comment on exported const TopBegin should be of the form "TopBegin ..." (golint)
    • Line 9: warning: exported const TopEnd should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: comment on exported const InterfaceAll should be of the form "InterfaceAll ..." (golint)
    • Line 15: warning: comment on exported const InterfaceEnetURI should be of the form "InterfaceEnetURI ..." (golint)
    • Line 19: warning: comment on exported const SwitchPortMode should be of the form "SwitchPortMode ..." (golint)
    • Line 29: warning: comment on exported const IfEntity should be of the form "IfEntity ..." (golint)
    • Line 55: warning: comment on exported const VlanURI should be of the form "VlanURI ..." (golint)
    • nxgo/nx/interface.go
    • Line 15: warning: don't use underscores in Go names; var intf_split should be intfSplit (golint)
    • Line 105: warning: exported method Client.GetInterface should have comment or be unexported (golint)
    • nxgo/nx/vlan.go
    • Line 8: warning: exported method Client.AddVlan should have comment or be unexported (golint)
    • Line 33: warning: exported method Client.GetVlan should have comment or be unexported (golint)
    • Line 51: warning: exported method Client.DeleteVlan should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign62%

IneffAssign detects ineffectual assignments in Go code.

    • nxgo/nx/nx.go
    • Line 21: warning: cannot find package "." in: (ineffassign)
    • Line 21: warning: could not import github.com/gorilla/websocket (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!