Preparing report...

Report for github.com/CovenantSQL/go-sqlite3-encrypt

A+    Excellent!    Found 8 issues across 55 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!


gocyclo85%

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-sqlite3-encrypt/sqlite3_opt_userauth_test.go
    • Line 460: warning: cyclomatic complexity 30 of function TestUserAuthDeleteUser() is high (> 15) (gocyclo)
    • Line 266: warning: cyclomatic complexity 22 of function TestUserAuthAddUser() is high (> 15) (gocyclo)
    • Line 361: warning: cyclomatic complexity 21 of function TestUserAuthModifyUser() is high (> 15) (gocyclo)
    • go-sqlite3-encrypt/sqlite3_test.go
    • Line 1227: warning: cyclomatic complexity 22 of function TestFunctionRegistration() is high (> 15) (gocyclo)
    • Line 620: warning: cyclomatic complexity 20 of function TestBoolean() is high (> 15) (gocyclo)
    • Line 885: warning: cyclomatic complexity 17 of function TestTimezoneConversion() is high (> 15) (gocyclo)
    • go-sqlite3-encrypt/sqlite3.go
    • Line 984: warning: cyclomatic complexity 155 of function (*SQLiteDriver).Open() is high (> 15) (gocyclo)
    • Line 636: warning: cyclomatic complexity 30 of function (*SQLiteConn).RegisterAggregator() is high (> 15) (gocyclo)
    • Line 1999: warning: cyclomatic complexity 24 of function (*SQLiteRows).Next() is high (> 15) (gocyclo)
    • Line 1785: warning: cyclomatic complexity 19 of function (*SQLiteStmt).bind() is high (> 15) (gocyclo)

golint98%

Golint is a linter for Go source code.

    • go-sqlite3-encrypt/sqlite3.go
    • Line 245: warning: comment on exported const SQLITE_DELETE should be of the form "SQLITE_DELETE ..." (golint)
    • Line 247: warning: exported const SQLITE_INSERT should have comment (or a comment on this block) or be unexported (golint)
    • Line 250: warning: comment on exported const SQLITE_OK should be of the form "SQLITE_OK ..." (golint)
    • Line 255: warning: comment on exported const SQLITE_CREATE_INDEX should be of the form "SQLITE_CREATE_INDEX ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • go-sqlite3-encrypt/sqlite3_test.go
    • Line 52: warning: ineffectual assignment to err (ineffassign)
    • Line 235: warning: ineffectual assignment to err (ineffassign)
    • Line 262: warning: ineffectual assignment to err (ineffassign)
    • Line 305: warning: ineffectual assignment to err (ineffassign)
    • Line 350: warning: ineffectual assignment to err (ineffassign)
    • Line 415: warning: ineffectual assignment to err (ineffassign)
    • Line 476: warning: ineffectual assignment to err (ineffassign)
    • Line 527: warning: ineffectual assignment to err (ineffassign)
    • Line 896: warning: ineffectual assignment to err (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!