Preparing report...

Report for github.com/livekit/sipgo

(v0.13.1)

A+    Excellent!    Found 20 issues across 60 files

Tweet

gofmt90%

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!


gocyclo90%

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.

    • transport/layer.go
    • Line 277: warning: cyclomatic complexity 19 of function (*Layer).ClientRequestConnection() is high (> 15) (gocyclo)
    • server_test.go
    • Line 313: warning: cyclomatic complexity 21 of function BenchmarkSwitchVsMap() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.

    • parser/parse_address.go
    • Line 64: warning: ineffectual assignment to val (ineffassign)
    • Line 75: warning: ineffectual assignment to uri (ineffassign)
    • Line 98: warning: ineffectual assignment to name (ineffassign)
    • Line 98: warning: ineffectual assignment to val (ineffassign)
    • Line 64: warning: ineffectual assignment to val (ineffassign)
    • Line 75: warning: ineffectual assignment to uri (ineffassign)
    • Line 98: warning: ineffectual assignment to name (ineffassign)
    • Line 98: warning: ineffectual assignment to val (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell76%

Misspell Finds commonly misspelled English words

    • parser/parse_params.go
    • Line 15: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 32: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 51: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 70: warning: "seperator" is a misspelling of "separator" (misspell)
    • parser/parse_header.go
    • Line 12: warning: "maintance" is a misspelling of "maintenance" (misspell)
    • Line 56: warning: "seperated" is a misspelling of "separated" (misspell)
    • Line 81: warning: "seperated" is a misspelling of "separated" (misspell)