Preparing report...

Report for github.com/webability-go/xdominion

(v0.4.2)

A+    Excellent!    Found 3 issues across 20 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!


gofmt95%

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


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.

    • xtable.go
    • Line 110: warning: cyclomatic complexity 72 of function (*XTable).Select() is high (> 15) (gocyclo)
    • Line 415: warning: cyclomatic complexity 27 of function (*XTable).Insert() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 27 of function (*XTable).Update() is high (> 15) (gocyclo)
    • Line 681: warning: cyclomatic complexity 23 of function (*XTable).Upsert() is high (> 15) (gocyclo)
    • Line 1071: warning: cyclomatic complexity 20 of function (*XTable).Avg() is high (> 15) (gocyclo)
    • Line 764: warning: cyclomatic complexity 20 of function (*XTable).Delete() is high (> 15) (gocyclo)
    • Line 843: warning: cyclomatic complexity 20 of function (*XTable).Count() is high (> 15) (gocyclo)
    • Line 925: warning: cyclomatic complexity 18 of function (*XTable).Min() is high (> 15) (gocyclo)
    • Line 998: warning: cyclomatic complexity 18 of function (*XTable).Max() is high (> 15) (gocyclo)
    • xcondition.go
    • Line 95: warning: cyclomatic complexity 19 of function (*XCondition).GetCondition() 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!


misspell95%

Misspell Finds commonly misspelled English words