Preparing report...

Report for github.com/aporeto-inc/trireme-lib

A+    Excellent!    Found 33 issues across 461 files

Tweet

gofmt99%

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!


gocyclo93%

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.

    • trireme-lib/controller/pkg/tokens/binarycodec.go
    • Line 649: warning: cyclomatic complexity 132 of function (*JWTClaims).CodecEncodeSelf() is high (> 15) (gocyclo)
    • Line 1443: warning: cyclomatic complexity 92 of function (*JWTClaims).codecDecodeSelfFromArray() is high (> 15) (gocyclo)
    • Line 1243: warning: cyclomatic complexity 75 of function (*JWTClaims).codecDecodeSelfFromMap() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 64 of function (*BinaryJWTClaims).CodecEncodeSelf() is high (> 15) (gocyclo)
    • Line 466: warning: cyclomatic complexity 32 of function (*BinaryJWTClaims).codecDecodeSelfFromArray() is high (> 15) (gocyclo)
    • Line 404: warning: cyclomatic complexity 22 of function (*BinaryJWTClaims).codecDecodeSelfFromMap() is high (> 15) (gocyclo)
    • trireme-lib/controller/internal/enforcer/nfqdatapath/datapath_tcp.go
    • Line 387: warning: cyclomatic complexity 22 of function (*Datapath).clientIdentityAllowed() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 18 of function (*Datapath).processNetworkTCPPackets() is high (> 15) (gocyclo)
    • Line 743: warning: cyclomatic complexity 18 of function (*Datapath).processNetworkAckPacket() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 17 of function (*Datapath).processApplicationTCPPackets() is high (> 15) (gocyclo)
    • Line 565: warning: cyclomatic complexity 16 of function (*Datapath).processNetworkSynAckPacket() is high (> 15) (gocyclo)
    • trireme-lib/controller/internal/windows/rulespec_windows.go
    • Line 486: warning: cyclomatic complexity 96 of function ParseRuleSpec() is high (> 15) (gocyclo)
    • Line 73: warning: cyclomatic complexity 47 of function MakeRuleSpecText() is high (> 15) (gocyclo)
    • Line 834: warning: cyclomatic complexity 42 of function (*WindowsRuleSpec).Equal() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 34 of function ReduceIcmpProtoString() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 19 of function ParseIcmpTypeCode() is high (> 15) (gocyclo)

golint99%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!