Preparing report...

Report for github.com/weblazy/builder

(v1.1.2)

A+    Excellent!    Found 13 issues across 37 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!


gocyclo83%

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.

    • cond_notin.go
    • Line 27: warning: cyclomatic complexity 62 of function (condNotIn).WriteTo() is high (> 15) (gocyclo)
    • builder_select.go
    • Line 17: warning: cyclomatic complexity 38 of function (*Builder).selectWriteTo() is high (> 15) (gocyclo)
    • cond_eq.go
    • Line 23: warning: cyclomatic complexity 19 of function (Eq).opWriteTo() is high (> 15) (gocyclo)
    • cond_not.go
    • Line 15: warning: cyclomatic complexity 19 of function (Not).WriteTo() is high (> 15) (gocyclo)
    • builder_limit.go
    • Line 12: warning: cyclomatic complexity 17 of function (*Builder).limitWriteTo() is high (> 15) (gocyclo)
    • cond_in.go
    • Line 30: warning: cyclomatic complexity 62 of function (condIn).WriteTo() is high (> 15) (gocyclo)

golint91%

Golint is a linter for Go source code.

    • builder.go
    • Line 27: warning: exported const POSTGRES should have comment (or a comment on this block) or be unexported (golint)
    • Line 388: warning: exported method Builder.QueryRow should have comment or be unexported (golint)
    • Line 397: warning: exported method Builder.QueryRows should have comment or be unexported (golint)
    • Line 406: warning: comment on exported method Builder.ToBoundSQL should be of the form "ToBoundSQL ..." (golint)
    • builder_b_test.go
    • Line 280: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • error.go
    • Line 20: warning: comment on exported var ErrNoColumnToUpdate should be of the form "ErrNoColumnToUpdate ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.

    • builder_union_test.go
    • Line 34: warning: ineffectual assignment to sql (ineffassign)
    • Line 34: warning: ineffectual assignment to args (ineffassign)
    • Line 41: warning: ineffectual assignment to sql (ineffassign)
    • Line 41: warning: ineffectual assignment to args (ineffassign)
    • Line 49: warning: ineffectual assignment to sql (ineffassign)
    • Line 49: warning: ineffectual assignment to args (ineffassign)
    • builder_update_test.go
    • Line 39: warning: ineffectual assignment to sql (ineffassign)
    • Line 39: warning: ineffectual assignment to args (ineffassign)
    • Line 43: warning: ineffectual assignment to sql (ineffassign)
    • Line 43: warning: ineffectual assignment to args (ineffassign)
    • sql_test.go
    • Line 43: warning: ineffectual assignment to newSQL (ineffassign)
    • Line 55: warning: ineffectual assignment to newSQL (ineffassign)
    • Line 71: warning: ineffectual assignment to newSQL (ineffassign)
    • Line 71: warning: ineffectual assignment to args (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!