Preparing report...

Report for github.com/bytedance/go-tagexpr

A+    Excellent!    Found 10 issues across 37 files

Tweet

gofmt91%

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!


gocyclo89%

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.

    • go-tagexpr/binding/param_info.go
    • Line 208: warning: cyclomatic complexity 53 of function (*paramInfo).bindStringSlice() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 19 of function stringsToValue() is high (> 15) (gocyclo)
    • go-tagexpr/binding/bind.go
    • Line 229: warning: cyclomatic complexity 33 of function (*Binding).getOrPrepareReceiver() is high (> 15) (gocyclo)
    • Line 155: warning: cyclomatic complexity 22 of function (*Binding).bindStruct() is high (> 15) (gocyclo)

golint89%

Golint is a linter for Go source code.

    • go-tagexpr/binding/receiver.go
    • Line 17: warning: don't use underscores in Go names; const raw_body should be rawBody (golint)
    • Line 25: warning: don't use underscores in Go names; const default_val should be defaultVal (golint)
    • go-tagexpr/tagexpr.go
    • Line 30: warning: comment on exported type Boolean should be of the form "Boolean ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type Null should be of the form "Null ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type Number should be of the form "Number ..." (with optional leading article) (golint)
    • Line 30: warning: comment on exported type String should be of the form "String ..." (with optional leading article) (golint)
    • Line 99: warning: error var unsupportNil should have name of the form errFoo (golint)
    • Line 100: warning: error var unsupportCannotAddr should have name of the form errFoo (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • go-tagexpr/binding/bind.go
    • Line 128: warning: ineffectual assignment to err (ineffassign)
    • Line 135: warning: ineffectual assignment to err (ineffassign)
    • Line 142: warning: ineffectual assignment to err (ineffassign)
    • Line 150: warning: ineffectual assignment to err (ineffassign)
    • Line 262: warning: ineffectual assignment to paramIn (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!