Preparing report...

Report for github.com/charlievieth/go-sqlite3

(v0.0.0-20241109222548-206322e9ef1d)

A+    Excellent!    Found 10 issues across 74 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!


gofmt100%

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

No problems detected. Good job!


gocyclo86%

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.

    • sqlite3.go
    • Line 1284: warning: cyclomatic complexity 145 of function (*SQLiteDriver).Open() is high (> 15) (gocyclo)
    • Line 841: warning: cyclomatic complexity 29 of function (*SQLiteConn).RegisterAggregator() is high (> 15) (gocyclo)
    • Line 2421: warning: cyclomatic complexity 23 of function (*SQLiteRows).nextSyncLocked() is high (> 15) (gocyclo)
    • Line 2136: warning: cyclomatic complexity 22 of function (*SQLiteStmt).bind() is high (> 15) (gocyclo)
    • backup_test.go
    • Line 27: warning: cyclomatic complexity 40 of function testBackup() is high (> 15) (gocyclo)
    • sqlite3_opt_userauth_test.go
    • Line 485: warning: cyclomatic complexity 30 of function TestUserAuthDeleteUser() is high (> 15) (gocyclo)
    • Line 291: warning: cyclomatic complexity 22 of function TestUserAuthAddUser() is high (> 15) (gocyclo)
    • Line 386: warning: cyclomatic complexity 21 of function TestUserAuthModifyUser() is high (> 15) (gocyclo)
    • sqlite3_test.go
    • Line 1389: warning: cyclomatic complexity 21 of function TestFunctionRegistration() is high (> 15) (gocyclo)
    • Line 711: warning: cyclomatic complexity 20 of function TestBoolean() is high (> 15) (gocyclo)
    • Line 976: warning: cyclomatic complexity 17 of function TestTimezoneConversion() is high (> 15) (gocyclo)
    • convert.go
    • Line 29: warning: cyclomatic complexity 60 of function convertAssign() is high (> 15) (gocyclo)
    • sqlite3_go18_test.go
    • Line 511: warning: cyclomatic complexity 22 of function TestFileCopyTruncate() is high (> 15) (gocyclo)
    • Line 277: warning: cyclomatic complexity 21 of function TestQueryRowContextCancelInterrupt() is high (> 15) (gocyclo)

ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • sqlite3_test.go
    • Line 326: warning: ineffectual assignment to err (ineffassign)
    • Line 353: warning: ineffectual assignment to err (ineffassign)
    • Line 396: warning: ineffectual assignment to err (ineffassign)
    • Line 441: warning: ineffectual assignment to err (ineffassign)
    • Line 506: warning: ineffectual assignment to err (ineffassign)
    • Line 567: warning: ineffectual assignment to err (ineffassign)
    • Line 618: warning: ineffectual assignment to err (ineffassign)
    • Line 987: warning: ineffectual assignment to err (ineffassign)
    • Line 2032: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!