Preparing report...

Report for github.com/pion/ice

A+    Excellent!    Found 9 issues across 61 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint100%

Golint is a linter for Go source code.

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.

    • ice/agent.go
    • Line 231: warning: cyclomatic complexity 24 of function NewAgent() is high (> 15) (gocyclo)
    • Line 1025: warning: cyclomatic complexity 21 of function (*Agent).handleInbound() is high (> 15) (gocyclo)
    • Line 478: warning: cyclomatic complexity 16 of function (*Agent).connectivityChecks() is high (> 15) (gocyclo)
    • ice/util.go
    • Line 135: warning: cyclomatic complexity 20 of function localInterfaces() is high (> 15) (gocyclo)
    • ice/gather.go
    • Line 403: warning: cyclomatic complexity 33 of function (*Agent).gatherCandidatesRelay() is high (> 15) (gocyclo)
    • Line 127: warning: cyclomatic complexity 23 of function (*Agent).gatherCandidatesLocal() is high (> 15) (gocyclo)
    • ice/gather_vnet_test.go
    • Line 18: warning: cyclomatic complexity 26 of function TestVNetGather() is high (> 15) (gocyclo)
    • Line 158: warning: cyclomatic complexity 21 of function TestVNetGatherWithNAT1To1() is high (> 15) (gocyclo)
    • ice/url.go
    • Line 111: warning: cyclomatic complexity 26 of function ParseURL() is high (> 15) (gocyclo)
    • ice/agent_test.go
    • Line 796: warning: cyclomatic complexity 22 of function TestCandidatePairStats() is high (> 15) (gocyclo)
    • Line 1010: warning: cyclomatic complexity 20 of function TestRemoteCandidateStats() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 17 of function TestInboundValidity() 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!