Preparing report...

Report for github.com/mattn/go-oci8

A+    Excellent!    Found 11 issues across 23 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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


gocyclo52%

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-oci8/oci8_sql_number_go112_test.go
    • Line 262: warning: cyclomatic complexity 23 of function testDestructiveNumberCursorFunction() is high (> 15) (gocyclo)
    • Line 163: warning: cyclomatic complexity 20 of function testDestructiveNumberCursorSelectWithClose() is high (> 15) (gocyclo)
    • Line 69: warning: cyclomatic complexity 19 of function testDestructiveNumberCursorSelect() is high (> 15) (gocyclo)
    • go-oci8/example_sql_test.go
    • Line 288: warning: cyclomatic complexity 21 of function Example_sqlManyInserts() is high (> 15) (gocyclo)
    • Line 682: warning: cyclomatic complexity 20 of function Example_sqlRowid() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 18 of function Example_sqlBlob() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 18 of function Example_sqlClob() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 17 of function Example_sqlSelect() is high (> 15) (gocyclo)
    • go-oci8/dsn.go
    • Line 58: warning: cyclomatic complexity 17 of function shouldEscape() is high (> 15) (gocyclo)
    • Line 118: warning: cyclomatic complexity 16 of function unescape() is high (> 15) (gocyclo)
    • go-oci8/oci8_sql_test.go
    • Line 502: warning: cyclomatic complexity 67 of function TestDestructiveTransaction() is high (> 15) (gocyclo)
    • Line 879: warning: cyclomatic complexity 31 of function TestInsertRowid() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 21 of function testRunQueryResult() is high (> 15) (gocyclo)
    • go-oci8/statement.go
    • Line 67: warning: cyclomatic complexity 61 of function (*Stmt).bindValues() is high (> 15) (gocyclo)
    • Line 766: warning: cyclomatic complexity 51 of function (*Stmt).outputBoundParameters() is high (> 15) (gocyclo)
    • Line 457: warning: cyclomatic complexity 35 of function (*Stmt).makeDefines() is high (> 15) (gocyclo)
    • go-oci8/oci8.go
    • Line 162: warning: cyclomatic complexity 35 of function (*DriverStruct).Open() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 28 of function ParseDSN() is high (> 15) (gocyclo)
    • go-oci8/oci8_sql_time_test.go
    • Line 715: warning: cyclomatic complexity 35 of function TestDestructiveTimeColumnTypes() is high (> 15) (gocyclo)
    • Line 382: warning: cyclomatic complexity 22 of function TestDestructiveTime() is high (> 15) (gocyclo)
    • go-oci8/oci8_sql_number_test.go
    • Line 748: warning: cyclomatic complexity 69 of function TestDestructiveNumber() is high (> 15) (gocyclo)
    • Line 2972: warning: cyclomatic complexity 39 of function TestDestructiveNumberRowsAffected() is high (> 15) (gocyclo)
    • Line 3205: warning: cyclomatic complexity 28 of function TestNullNumber() is high (> 15) (gocyclo)
    • Line 3718: warning: cyclomatic complexity 25 of function TestDestructiveNumberColumnTypes() is high (> 15) (gocyclo)
    • Line 3408: warning: cyclomatic complexity 24 of function TestSelectDualNumberScan() is high (> 15) (gocyclo)
    • Line 3569: warning: cyclomatic complexity 22 of function TestSelectCountLarge() is high (> 15) (gocyclo)
    • go-oci8/oci8_sql_string_test.go
    • Line 1265: warning: cyclomatic complexity 53 of function TestDestructiveString() is high (> 15) (gocyclo)
    • Line 3242: warning: cyclomatic complexity 30 of function TestDestructiveStringColumnTypes() is high (> 15) (gocyclo)
    • go-oci8/rows.go
    • Line 230: warning: cyclomatic complexity 35 of function (*Rows).ColumnTypeDatabaseTypeName() is high (> 15) (gocyclo)
    • Line 40: warning: cyclomatic complexity 33 of function (*Rows).Next() is high (> 15) (gocyclo)
    • go-oci8/example_sql_go112_test.go
    • Line 165: warning: cyclomatic complexity 27 of function Example_sqlCursorFunction() is high (> 15) (gocyclo)
    • Line 16: warning: cyclomatic complexity 24 of function Example_sqlCursor() 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!