Preparing report...

Report for github.com/godror/godror

(v0.44.8)

A+    Excellent!    Found 25 issues across 60 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!


gofmt98%

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


gocyclo60%

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.

    • json.go
    • Line 622: warning: cyclomatic complexity 30 of function populateJSONNode() is high (> 15) (gocyclo)
    • orahlp.go
    • Line 401: warning: cyclomatic complexity 31 of function MapToSlice() is high (> 15) (gocyclo)
    • Line 139: warning: cyclomatic complexity 21 of function (numType).ConvertValue() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 21 of function (intType).ConvertValue() is high (> 15) (gocyclo)
    • Line 93: warning: cyclomatic complexity 19 of function (floatType).ConvertValue() is high (> 15) (gocyclo)
    • Line 196: warning: cyclomatic complexity 16 of function (*Number).Scan() is high (> 15) (gocyclo)
    • data_test.go
    • Line 13: warning: cyclomatic complexity 20 of function TestDataSetGet() is high (> 15) (gocyclo)
    • sid/sid.go
    • Line 180: warning: cyclomatic complexity 19 of function (*Description).Parse() is high (> 15) (gocyclo)
    • z_bench_test.go
    • Line 490: warning: cyclomatic complexity 16 of function BenchmarkPlSqlObj() is high (> 15) (gocyclo)
    • stmt.go
    • Line 1053: warning: cyclomatic complexity 120 of function (*statement).bindVarTypeSwitch() is high (> 15) (gocyclo)
    • Line 1739: warning: cyclomatic complexity 95 of function dataGetNumber() is high (> 15) (gocyclo)
    • Line 3048: warning: cyclomatic complexity 78 of function (*conn).dataGetObjectStructObj() is high (> 15) (gocyclo)
    • Line 825: warning: cyclomatic complexity 72 of function (*statement).bindVars() is high (> 15) (gocyclo)
    • Line 414: warning: cyclomatic complexity 65 of function (*statement).ExecContext() is high (> 15) (gocyclo)
    • Line 2029: warning: cyclomatic complexity 58 of function dataSetNumber() is high (> 15) (gocyclo)
    • Line 2202: warning: cyclomatic complexity 54 of function dataGetBytes() is high (> 15) (gocyclo)
    • Line 2820: warning: cyclomatic complexity 47 of function (*conn).dataSetObjectStructObj() is high (> 15) (gocyclo)
    • Line 2388: warning: cyclomatic complexity 25 of function dataSetBytes() is high (> 15) (gocyclo)
    • Line 741: warning: cyclomatic complexity 25 of function (*statement).NumInput() is high (> 15) (gocyclo)
    • Line 639: warning: cyclomatic complexity 23 of function (*statement).queryContextNotLocked() is high (> 15) (gocyclo)
    • Line 1496: warning: cyclomatic complexity 23 of function (*conn).dataGetTime() is high (> 15) (gocyclo)
    • Line 2669: warning: cyclomatic complexity 20 of function (*conn).dataSetLOBOne() is high (> 15) (gocyclo)
    • Line 2764: warning: cyclomatic complexity 19 of function (*conn).dataSetObject() is high (> 15) (gocyclo)
    • Line 1589: warning: cyclomatic complexity 17 of function (*conn).dataSetTime() is high (> 15) (gocyclo)
    • Line 3329: warning: cyclomatic complexity 16 of function (*conn).getStructObjectType() is high (> 15) (gocyclo)
    • dsn/dsn.go
    • Line 375: warning: cyclomatic complexity 56 of function Parse() is high (> 15) (gocyclo)
    • z_test.go
    • Line 68: warning: cyclomatic complexity 38 of function setUp() is high (> 15) (gocyclo)
    • Line 3433: warning: cyclomatic complexity 38 of function TestSelectTypes() is high (> 15) (gocyclo)
    • Line 1743: warning: cyclomatic complexity 28 of function TestRanaOraIssue244() is high (> 15) (gocyclo)
    • Line 1066: warning: cyclomatic complexity 24 of function TestExecuteMany() is high (> 15) (gocyclo)
    • Line 1204: warning: cyclomatic complexity 24 of function TestReadWriteLOB() is high (> 15) (gocyclo)
    • Line 658: warning: cyclomatic complexity 22 of function TestInOutArray() is high (> 15) (gocyclo)
    • Line 4319: warning: cyclomatic complexity 21 of function TestExternalAuthIntegration() is high (> 15) (gocyclo)
    • Line 1508: warning: cyclomatic complexity 20 of function TestOpenCloseTx() is high (> 15) (gocyclo)
    • Line 5099: warning: cyclomatic complexity 19 of function TestPartialBatch() is high (> 15) (gocyclo)
    • Line 4492: warning: cyclomatic complexity 19 of function TestForError8192() is high (> 15) (gocyclo)
    • Line 2587: warning: cyclomatic complexity 16 of function TestIssue134() is high (> 15) (gocyclo)
    • data.go
    • Line 407: warning: cyclomatic complexity 38 of function (*Data).Set() is high (> 15) (gocyclo)
    • Line 541: warning: cyclomatic complexity 26 of function newVarInfo() is high (> 15) (gocyclo)
    • Line 298: warning: cyclomatic complexity 21 of function dataSetTime() is high (> 15) (gocyclo)
    • Line 366: warning: cyclomatic complexity 16 of function (*Data).Get() is high (> 15) (gocyclo)
    • num/ocinum.go
    • Line 172: warning: cyclomatic complexity 29 of function (*OCINum).SetString() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 21 of function (OCINum).Print() is high (> 15) (gocyclo)
    • obj.go
    • Line 1103: warning: cyclomatic complexity 27 of function (*ObjectType).init() is high (> 15) (gocyclo)
    • Line 503: warning: cyclomatic complexity 25 of function (*Object).FromJSON() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 25 of function (*Object).FromMap() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 18 of function (*Object).AsMap() is high (> 15) (gocyclo)
    • queue.go
    • Line 443: warning: cyclomatic complexity 24 of function (*Message).fromOra() is high (> 15) (gocyclo)
    • Line 638: warning: cyclomatic complexity 21 of function (*DeqOptions).fromOra() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 18 of function NewQueue() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 17 of function (*Queue).Enqueue() is high (> 15) (gocyclo)
    • Line 209: warning: cyclomatic complexity 16 of function (*Queue).Dequeue() is high (> 15) (gocyclo)
    • rows.go
    • Line 289: warning: cyclomatic complexity 98 of function (*rows).Next() is high (> 15) (gocyclo)
    • Line 136: warning: cyclomatic complexity 29 of function (*rows).ColumnTypeDatabaseTypeName() is high (> 15) (gocyclo)
    • Line 228: warning: cyclomatic complexity 18 of function (*rows).ColumnTypeScanType() is high (> 15) (gocyclo)
    • z_plsql_types_test.go
    • Line 401: warning: cyclomatic complexity 57 of function TestPlSqlTypes() is high (> 15) (gocyclo)
    • Line 1484: warning: cyclomatic complexity 28 of function TestObjectInObject() is high (> 15) (gocyclo)
    • Line 1344: warning: cyclomatic complexity 25 of function TestObjectGetList() is high (> 15) (gocyclo)
    • Line 1638: warning: cyclomatic complexity 23 of function TestObjectFromMap() is high (> 15) (gocyclo)
    • Line 1123: warning: cyclomatic complexity 19 of function BenchmarkObjArray() is high (> 15) (gocyclo)
    • Line 839: warning: cyclomatic complexity 18 of function TestPlSqlObjectDirect() is high (> 15) (gocyclo)
    • Line 992: warning: cyclomatic complexity 16 of function TestCallWithObject() is high (> 15) (gocyclo)
    • Line 1834: warning: cyclomatic complexity 16 of function TestInputWithNativeSlice() is high (> 15) (gocyclo)
    • queue_test.go
    • Line 335: warning: cyclomatic complexity 38 of function testQueue() is high (> 15) (gocyclo)
    • Line 29: warning: cyclomatic complexity 37 of function TestQueue() is high (> 15) (gocyclo)
    • conn.go
    • Line 655: warning: cyclomatic complexity 33 of function calculateTZ() is high (> 15) (gocyclo)
    • Line 497: warning: cyclomatic complexity 30 of function (*conn).initTZ() is high (> 15) (gocyclo)
    • z_issue133_test.go
    • Line 29: warning: cyclomatic complexity 20 of function BenchmarkMemoryAlloc133() is high (> 15) (gocyclo)
    • drv.go
    • Line 498: warning: cyclomatic complexity 39 of function (*drv).acquireConn() is high (> 15) (gocyclo)
    • Line 783: warning: cyclomatic complexity 22 of function (*drv).createPool() is high (> 15) (gocyclo)
    • Line 408: warning: cyclomatic complexity 21 of function (*drv).createConn() is high (> 15) (gocyclo)
    • lob.go
    • Line 252: warning: cyclomatic complexity 38 of function (*dpiLobReader).read() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 20 of function (*dpiLobReader).Read() is high (> 15) (gocyclo)
    • z_json_test.go
    • Line 556: warning: cyclomatic complexity 23 of function TestUpdateJSONScalar() is high (> 15) (gocyclo)
    • Line 423: warning: cyclomatic complexity 16 of function TestReadJSONScalar() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • stmt.go
    • Line 1312: warning: ineffectual assignment to nilPtr (ineffassign)
    • Line 1312: warning: ineffectual assignment to nilPtr (ineffassign)
    • conn.go
    • Line 1130: warning: ineffectual assignment to dpiConnOK (ineffassign)
    • Line 1130: warning: ineffectual assignment to dpiConnOK (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words

    • drv.go
    • Line 761: warning: "wich" is a misspelling of "which" (misspell)
    • json.go
    • Line 240: warning: "DEAFULT" is a misspelling of "DEFAULT" (misspell)
    • Line 619: warning: "seperate" is a misspelling of "separate" (misspell)