Preparing report...

Report for github.com/foomo/gotsrpc

(v1.0.4)

A    Great!    Found 10 issues across 33 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!


gofmt90%

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


gocyclo81%

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.

    • build.go
    • Line 64: warning: cyclomatic complexity 33 of function Build() is high (> 15) (gocyclo)
    • go.go
    • Line 50: warning: cyclomatic complexity 26 of function (*Value).emptyLiteral() is high (> 15) (gocyclo)
    • Line 173: warning: cyclomatic complexity 19 of function renderTSRPCServiceProxies() is high (> 15) (gocyclo)
    • Line 463: warning: cyclomatic complexity 18 of function renderGoRPCServiceProxies() is high (> 15) (gocyclo)
    • servicereader.go
    • Line 296: warning: cyclomatic complexity 25 of function collectTypes() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 17 of function (*Struct).DepsSatisfied() is high (> 15) (gocyclo)
    • typescript.go
    • Line 26: warning: cyclomatic complexity 20 of function (*Value).tsType() is high (> 15) (gocyclo)
    • Line 154: warning: cyclomatic complexity 17 of function renderTypescriptStructsToPackages() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • go.go
    • Line 145: warning: ineffectual assignment to alias (ineffassign)
    • Line 145: warning: ineffectual assignment to alias (ineffassign)

license0%

Checks whether your project has a LICENSE file.


misspell93%

Misspell Finds commonly misspelled English words

    • build.go
    • Line 120: warning: "occured" is a misspelling of "occurred" (misspell)
    • go.go
    • Line 607: warning: "Unkown" is a misspelling of "Unknown" (misspell)