Preparing report...

Report for github.com/sni/lmd

(v1.9.5)

A+    Excellent!    Found 14 issues across 38 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!


gofmt86%

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


gocyclo76%

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.

    • lmd/peer.go
    • Line 386: warning: cyclomatic complexity 20 of function (*Peer).periodicUpdate() is high (> 15) (gocyclo)
    • Line 741: warning: cyclomatic complexity 19 of function (*Peer).InitAllTables() is high (> 15) (gocyclo)
    • Line 1700: warning: cyclomatic complexity 18 of function (*Peer).HTTPPostQueryResult() is high (> 15) (gocyclo)
    • Line 1554: warning: cyclomatic complexity 18 of function (*Peer).waitcondition() is high (> 15) (gocyclo)
    • Line 861: warning: cyclomatic complexity 17 of function (*Peer).query() is high (> 15) (gocyclo)
    • Line 1151: warning: cyclomatic complexity 16 of function (*Peer).GetConnection() is high (> 15) (gocyclo)
    • lmd/filter.go
    • Line 109: warning: cyclomatic complexity 18 of function (*Operator).String() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 18 of function parseFilterOp() is high (> 15) (gocyclo)
    • Line 707: warning: cyclomatic complexity 17 of function (*Filter).MatchStringList() is high (> 15) (gocyclo)
    • Line 327: warning: cyclomatic complexity 16 of function (*Filter).setFilterValue() is high (> 15) (gocyclo)
    • lmd/datastoreset.go
    • Line 630: warning: cyclomatic complexity 17 of function (*DataStoreSet).UpdateFullTable() is high (> 15) (gocyclo)
    • Line 506: warning: cyclomatic complexity 17 of function (*DataStoreSet).UpdateDeltaCommentsOrDowntimes() is high (> 15) (gocyclo)
    • lmd/request.go
    • Line 673: warning: cyclomatic complexity 28 of function (*Request).ParseRequestHeaderLine() is high (> 15) (gocyclo)
    • Line 207: warning: cyclomatic complexity 20 of function (*Request).String() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 18 of function NewRequest() is high (> 15) (gocyclo)
    • Line 542: warning: cyclomatic complexity 16 of function (*Request).buildDistributedRequestData() is high (> 15) (gocyclo)
    • Line 414: warning: cyclomatic complexity 16 of function (*Request).getDistributedResponse() is high (> 15) (gocyclo)
    • lmd/request_test.go
    • Line 1414: warning: cyclomatic complexity 23 of function TestRequestKeepalive() is high (> 15) (gocyclo)
    • Line 1321: warning: cyclomatic complexity 20 of function TestRequestLowercaseFilter() is high (> 15) (gocyclo)
    • lmd/nodes_test.go
    • Line 7: warning: cyclomatic complexity 21 of function TestNodeManager() is high (> 15) (gocyclo)
    • lmd/http.go
    • Line 154: warning: cyclomatic complexity 20 of function parseRequestDataToRequest() is high (> 15) (gocyclo)
    • lmd/response.go
    • Line 45: warning: cyclomatic complexity 18 of function NewResponse() is high (> 15) (gocyclo)
    • lmd/nodes.go
    • Line 340: warning: cyclomatic complexity 16 of function (*Nodes).updateBackends() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!