Preparing report...

Report for github.com/greenpau/go-cisco-nx-api

A    Great!    Found 20 issues across 35 files

Tweet

gofmt77%

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!


gocyclo85%

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.


golint77%

Golint is a linter for Go source code.

    • go-cisco-nx-api/pkg/client/isisAdjDetail.go
    • Line 26: warning: exported type IsisAdjDetailResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type IsisAdjDetailResponseResult should have comment or be unexported (golint)
    • Line 44: warning: exported type IsisAdjDetailResultBody should have comment or be unexported (golint)
    • Line 100: warning: exported method IsisAdjDetailResponse.Flat should have comment or be unexported (golint)
    • Line 148: warning: exported type IsisAdjDetailResultFlat should have comment or be unexported (golint)
    • Line 186: warning: comment on exported function NewIsisAdjDetailFromBytes should be of the form "NewIsisAdjDetailFromBytes ..." (golint)
    • Line 190: warning: exported function NewIsisAdjDetailFromReader should have comment or be unexported (golint)
    • go-cisco-nx-api/pkg/client/version.go
    • Line 26: warning: exported type VersionResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type VersionResponseResult should have comment or be unexported (golint)
    • Line 44: warning: exported type VersionResultBody should have comment or be unexported (golint)
    • Line 84: warning: comment on exported function NewVersionFromBytes should be of the form "NewVersionFromBytes ..." (golint)
    • Line 88: warning: exported function NewVersionFromReader should have comment or be unexported (golint)
    • go-cisco-nx-api/pkg/client/bgpsessions.go
    • Line 26: warning: exported type BGPSessionResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type BGPSessionResponseResult should have comment or be unexported (golint)
    • Line 44: warning: exported type BGPSessionResultBody should have comment or be unexported (golint)
    • Line 74: warning: exported method BGPSessionResponse.Flat should have comment or be unexported (golint)
    • Line 104: warning: exported type BGPSessionResultFlat should have comment or be unexported (golint)
    • Line 128: warning: comment on exported function NewBGPSessionFromBytes should be of the form "NewBGPSessionFromBytes ..." (golint)
    • Line 132: warning: exported function NewBGPSessionFromReader should have comment or be unexported (golint)
    • go-cisco-nx-api/pkg/client/interfaceStatus.go
    • Line 25: warning: exported type InterfaceStatusResponse should have comment or be unexported (golint)
    • Line 36: warning: exported type InterfaceStatusResponseResult should have comment or be unexported (golint)
    • Line 43: warning: exported type InterfaceStatusResultBody should have comment or be unexported (golint)
    • Line 56: warning: exported method InterfaceStatusResponse.Flat should have comment or be unexported (golint)
    • Line 72: warning: exported type InterfaceStatusResultFlat should have comment or be unexported (golint)
    • Line 86: warning: comment on exported function NewInterfaceStatusFromBytes should be of the form "NewInterfaceStatusFromBytes ..." (golint)
    • Line 90: warning: exported function NewInterfaceStatusFromReader should have comment or be unexported (golint)
    • go-cisco-nx-api/pkg/client/interfacebrief.go
    • Line 25: warning: exported type InterfaceBriefResponse should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function NewInterfaceBriefFromBytes should be of the form "NewInterfaceBriefFromBytes ..." (golint)
    • Line 55: warning: exported function NewInterfaceBriefFromReader should have comment or be unexported (golint)
    • go-cisco-nx-api/pkg/client/iparp.go
    • Line 26: warning: exported type IpArpResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type IpArpResponseResult should have comment or be unexported (golint)
    • Line 44: warning: exported type IpArpResultBody should have comment or be unexported (golint)
    • Line 63: warning: exported method IpArpResponse.Flat should have comment or be unexported (golint)
    • Line 85: warning: exported type IpArpResultFlat should have comment or be unexported (golint)
    • Line 101: warning: comment on exported function NewIpArpFromBytes should be of the form "NewIpArpFromBytes ..." (golint)
    • Line 105: warning: exported function NewIpArpFromReader should have comment or be unexported (golint)
    • go-cisco-nx-api/pkg/client/iproute.go
    • Line 26: warning: exported type IpRouteResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type IpRouteResponseResult should have comment or be unexported (golint)
    • Line 44: warning: exported type IpRouteResultBody should have comment or be unexported (golint)
    • Line 75: warning: exported method IpRouteResponse.Flat should have comment or be unexported (golint)
    • Line 109: warning: exported type IpRouteResultFlat should have comment or be unexported (golint)
    • Line 129: warning: comment on exported function NewIpRouteFromBytes should be of the form "NewIpRouteFromBytes ..." (golint)
    • Line 133: warning: exported function NewIpRouteFromReader 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!