Preparing report...

Report for github.com/ipcjk/ixgen

A+    Excellent!    Found 11 issues across 21 files

Tweet

gofmt95%

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.

    • ixgen/inireader/iniread.go
    • Line 150: warning: cyclomatic complexity 41 of function ParsePeerLine() is high (> 15) (gocyclo)
    • Line 40: warning: cyclomatic complexity 26 of function ReadPeeringConfig() is high (> 15) (gocyclo)

golint52%

Golint is a linter for Go source code.

    • ixgen/ixworkers/ixworkers.go
    • Line 12: warning: exported function WorkerMergePeerConfiguration should have comment or be unexported (golint)
    • Line 206: warning: exported function WorkerMergePrefixFilters should have comment or be unexported (golint)
    • ixgen/bgpq3workers/bgp3workers.go
    • Line 13: warning: exported type BGPQ3Config should have comment or be unexported (golint)
    • Line 17: warning: exported type BGPQ3Worker should have comment or be unexported (golint)
    • Line 21: warning: exported function NewBGPQ3Worker should have comment or be unexported (golint)
    • Line 34: warning: exported method BGPQ3Worker.GenPrefixList should have comment or be unexported (golint)
    • ixgen/peergen/peergen.go
    • Line 12: warning: exported type Peergen should have comment or be unexported (golint)
    • Line 19: warning: exported function NewPeerGen should have comment or be unexported (golint)
    • Line 34: warning: exported method Peergen.GenerateIXs should have comment or be unexported (golint)
    • Line 61: warning: exported method Peergen.GenerateIXConfiguration should have comment or be unexported (golint)
    • Line 80: warning: exported method Peergen.GenerateIXPrefixFilter should have comment or be unexported (golint)
    • Line 89: warning: exported method Peergen.GeneratePrefixFilter should have comment or be unexported (golint)
    • ixgen/ixtypes/ixtypes.go
    • Line 5: warning: comment on exported type ExchangePeer should be of the form "ExchangePeer ..." (with optional leading article) (golint)
    • Line 34: warning: exported type ExchangeOption should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type Ix should be of the form "Ix ..." (with optional leading article) (golint)
    • Line 51: warning: comment on exported type PrefixRule should be of the form "PrefixRule ..." (with optional leading article) (golint)
    • Line 65: warning: exported type PrefixFilters should have comment or be unexported (golint)
    • Line 70: warning: exported type IXs should have comment or be unexported (golint)
    • Line 71: warning: exported type PeeringGroups should have comment or be unexported (golint)
    • Line 72: warning: exported type ExchangePeers should have comment or be unexported (golint)
    • Line 73: warning: exported type ExchangeOptions should have comment or be unexported (golint)
    • ixgen/inireader/iniread.go
    • Line 17: warning: exported var PossibleOptions should have comment or be unexported (golint)
    • Line 40: warning: exported function ReadPeeringConfig should have comment or be unexported (golint)
    • Line 134: warning: exported function ParseOptionLine should have comment or be unexported (golint)
    • Line 150: warning: exported function ParsePeerLine should have comment or be unexported (golint)
    • ixgen/rest/brocade_slx.go
    • Line 10: warning: exported type ExtremeSLX should have comment or be unexported (golint)
    • Line 16: warning: exported function NewExtremeSLX should have comment or be unexported (golint)
    • ixgen/peergen/convert.go
    • Line 17: warning: exported method Peergen.ConvertIxToJson should have comment or be unexported (golint)
    • Line 25: warning: exported method Peergen.ConvertIxToJsonPretty should have comment or be unexported (golint)
    • Line 33: warning: exported method Peergen.ConvertIxToExtremeSLXJson should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method Peergen.ConvertIxToJuniperJSON should be of the form "ConvertIxToJuniperJSON ..." (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!


misspell95%

Misspell Finds commonly misspelled English words