Preparing report...

Report for github.com/eolinker/goku-api-gateway

E    Urgent improvement needed    Found 292 issues across 1904 files

Tweet

gofmt0%

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

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/eolinker/goku-api-gateway/pkg/mod/golang.org/x/crypto@v0.0.0-20200221231518-2aa609cf4a9d/ssh/fatal error: runtime: out of memory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " runtime": invalid syntax)


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!


golint0%

Golint is a linter for Go source code.

An error occurred while running this test (signal: killed)


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.

    • goku-api-gateway/module/httprouter/tree.go
    • Line 489: warning: cyclomatic complexity 47 of function (*node).findCaseInsensitivePathRec() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 34 of function (*node).getValue() is high (> 15) (gocyclo)
    • Line 81: warning: cyclomatic complexity 27 of function (*node).addRoute() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 18 of function (*node).insertChild() is high (> 15) (gocyclo)
    • goku-api-gateway/pkg/mod/github.com/hashicorp/go-immutable-radix@v1.0.0/iradix_test.go
    • Line 988: warning: cyclomatic complexity 65 of function TestTrackMutate_GetWatch() is high (> 15) (gocyclo)
    • Line 851: warning: cyclomatic complexity 32 of function TestTrackMutate_SeekPrefixWatch() is high (> 15) (gocyclo)
    • Line 1230: warning: cyclomatic complexity 30 of function TestTrackMutate_HugeTxn() is high (> 15) (gocyclo)
    • Line 757: warning: cyclomatic complexity 29 of function TestMergeChildVisibility() is high (> 15) (gocyclo)
    • Line 87: warning: cyclomatic complexity 20 of function TestRadix() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 20 of function TestTrackMutate_DeletePrefix() is high (> 15) (gocyclo)
    • Line 1430: warning: cyclomatic complexity 20 of function TestTrackMutate_cachedNodeChange() is high (> 15) (gocyclo)
    • Line 1360: warning: cyclomatic complexity 20 of function TestTrackMutate_mergeChild() is high (> 15) (gocyclo)
    • goku-api-gateway/pkg/mod/github.com/golang/protobuf@v1.3.2/protoc-gen-go/generator/generator.go
    • Line 1465: warning: cyclomatic complexity 39 of function (*Generator).goTag() is high (> 15) (gocyclo)
    • Line 2195: warning: cyclomatic complexity 33 of function (*Generator).generateMessage() is high (> 15) (gocyclo)
    • Line 1601: warning: cyclomatic complexity 26 of function (*Generator).GoType() is high (> 15) (gocyclo)
    • Line 1976: warning: cyclomatic complexity 22 of function (*Generator).generateDefaultConstants() is high (> 15) (gocyclo)
    • Line 466: warning: cyclomatic complexity 20 of function (*Generator).CommandLineParameters() is high (> 15) (gocyclo)
    • Line 1124: warning: cyclomatic complexity 17 of function (*Generator).generate() is high (> 15) (gocyclo)
    • goku-api-gateway/pkg/mod/github.com/mitchellh/mapstructure@v1.1.2/mapstructure.go
    • Line 226: warning: cyclomatic complexity 28 of function (*Decoder).decode() is high (> 15) (gocyclo)
    • Line 979: warning: cyclomatic complexity 28 of function (*Decoder).decodeStructFromMap() is high (> 15) (gocyclo)
    • Line 344: warning: cyclomatic complexity 20 of function (*Decoder).decodeString() is high (> 15) (gocyclo)
    • Line 801: warning: cyclomatic complexity 17 of function (*Decoder).decodeSlice() is high (> 15) (gocyclo)
    • Line 663: warning: cyclomatic complexity 16 of function (*Decoder).decodeMapFromStruct() is high (> 15) (gocyclo)
    • goku-api-gateway/pkg/mod/github.com/hashicorp/serf@v0.8.2/serf/serf_test.go
    • Line 990: warning: cyclomatic complexity 22 of function TestRecentIntent() is high (> 15) (gocyclo)
    • Line 1995: warning: cyclomatic complexity 21 of function TestSerf_Coordinates() is high (> 15) (gocyclo)
    • Line 1805: warning: cyclomatic complexity 20 of function TestSerf_WriteKeyringFile() is high (> 15) (gocyclo)
    • Line 1528: warning: cyclomatic complexity 20 of function TestSerf_Query_Filter() is high (> 15) (gocyclo)
    • Line 1078: warning: cyclomatic complexity 19 of function TestSerf_joinLeaveJoin() is high (> 15) (gocyclo)
    • Line 1445: warning: cyclomatic complexity 18 of function TestSerf_Query() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 17 of function TestSerf_joinLeave() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (signal: killed)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!