Preparing report...

Report for github.com/upper/db

(v3.8.0+incompatible)

A+    Excellent!    Found 40 issues across 162 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

    • db.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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.

    • internal/testsuite/generic_suite.go
    • Line 557: warning: cyclomatic complexity 30 of function (*GenericTestSuite).TestComparisonOperators() is high (> 15) (gocyclo)
    • Line 224: warning: cyclomatic complexity 20 of function (*GenericTestSuite).TestFibonacci() is high (> 15) (gocyclo)
    • lib/sqlbuilder/template.go
    • Line 46: warning: cyclomatic complexity 21 of function (*templateWithUtils).toWhereWithArguments() is high (> 15) (gocyclo)
    • Line 150: warning: cyclomatic complexity 16 of function (*templateWithUtils).toColumnValues() is high (> 15) (gocyclo)
    • internal/sqladapter/collection.go
    • Line 123: warning: cyclomatic complexity 18 of function (*collection).InsertReturning() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 17 of function (*collection).UpdateReturning() is high (> 15) (gocyclo)
    • internal/testsuite/sql_suite.go
    • Line 1786: warning: cyclomatic complexity 27 of function (*SQLTestSuite).TestExhaustConnectionPool() is high (> 15) (gocyclo)
    • Line 1467: warning: cyclomatic complexity 23 of function (*SQLTestSuite).TestPaginator() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words

    • mssql/database.go
    • Line 183: warning: "commited" is a misspelling of "committed" (misspell)
    • Line 184: warning: "commited" is a misspelling of "committed" (misspell)
    • raw.go
    • Line 86: warning: "satifies" is a misspelling of "satisfies" (misspell)
    • mysql/database.go
    • Line 206: warning: "commited" is a misspelling of "committed" (misspell)
    • Line 207: warning: "commited" is a misspelling of "committed" (misspell)