Preparing report...

Report for github.com/florianl/go-tc

(v0.4.5)

A+    Excellent!    Found 17 issues across 187 files

Tweet

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!


gofmt99%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

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.

    • f_flower.go
    • Line 517: warning: cyclomatic complexity 92 of function marshalFlower() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 92 of function unmarshalFlower() is high (> 15) (gocyclo)
    • qdisc.go
    • Line 85: warning: cyclomatic complexity 46 of function validateQdiscObject() is high (> 15) (gocyclo)
    • qdisc_test.go
    • Line 11: warning: cyclomatic complexity 19 of function TestQdisc() is high (> 15) (gocyclo)
    • m_tunnel_key.go
    • Line 53: warning: cyclomatic complexity 16 of function marshalTunnelKey() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 16 of function unmarshalTunnelKey() is high (> 15) (gocyclo)
    • attributeTcMsg.go
    • Line 123: warning: cyclomatic complexity 41 of function extractTCAOptions() is high (> 15) (gocyclo)
    • Line 10: warning: cyclomatic complexity 20 of function extractTcmsgAttributes() is high (> 15) (gocyclo)
    • m_action.go
    • Line 161: warning: cyclomatic complexity 30 of function marshalAction() is high (> 15) (gocyclo)
    • Line 244: warning: cyclomatic complexity 20 of function extractActOptions() is high (> 15) (gocyclo)
    • Line 96: warning: cyclomatic complexity 16 of function unmarshalAction() is high (> 15) (gocyclo)
    • q_fq.go
    • Line 62: warning: cyclomatic complexity 21 of function unmarshalFq() is high (> 15) (gocyclo)
    • Line 119: warning: cyclomatic complexity 21 of function marshalFq() is high (> 15) (gocyclo)
    • filter.go
    • Line 97: warning: cyclomatic complexity 18 of function validateFilterObject() is high (> 15) (gocyclo)
    • tc_test.go
    • Line 173: warning: cyclomatic complexity 23 of function alterResponses() is high (> 15) (gocyclo)
    • q_cake.go
    • Line 54: warning: cyclomatic complexity 21 of function unmarshalCake() is high (> 15) (gocyclo)
    • Line 122: warning: cyclomatic complexity 19 of function marshalCake() is high (> 15) (gocyclo)
    • m_ct.go
    • Line 59: warning: cyclomatic complexity 17 of function unmarshalCt() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 16 of function marshalCt() is high (> 15) (gocyclo)
    • q_netem.go
    • Line 93: warning: cyclomatic complexity 16 of function unmarshalNetem() is high (> 15) (gocyclo)
    • nest.go
    • Line 39: warning: cyclomatic complexity 18 of function marshalAttributes() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words

    • tc.go
    • Line 104: warning: "sucess" is a misspelling of "success" (misspell)
    • Line 104: warning: "embeded" is a misspelling of "embedded" (misspell)