Preparing report...

Report for github.com/ncotds/go-dblib

(v0.1.0)

A+    Excellent!    Found 27 issues across 177 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!


gofmt91%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo93%

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.

    • tds/package.go
    • Line 36: warning: cyclomatic complexity 32 of function LookupPackage() is high (> 15) (gocyclo)
    • tds/packageCurDeclare.go
    • Line 177: warning: cyclomatic complexity 22 of function (CurDeclarePackage).WriteTo() is high (> 15) (gocyclo)
    • Line 75: warning: cyclomatic complexity 16 of function (*CurDeclarePackage).ReadFrom() is high (> 15) (gocyclo)
    • tds/packageRowFmt.go
    • Line 60: warning: cyclomatic complexity 21 of function (*RowFmtPackage).ReadFromField() is high (> 15) (gocyclo)
    • tds/packageCurInfo.go
    • Line 146: warning: cyclomatic complexity 20 of function (CurInfoPackage).WriteTo() is high (> 15) (gocyclo)
    • Line 67: warning: cyclomatic complexity 16 of function (*CurInfoPackage).ReadFrom() is high (> 15) (gocyclo)
    • tds/login.go
    • Line 40: warning: cyclomatic complexity 59 of function (*Channel).Login() is high (> 15) (gocyclo)
    • tds/field.go
    • Line 1440: warning: cyclomatic complexity 43 of function LookupFieldData() is high (> 15) (gocyclo)
    • Line 1264: warning: cyclomatic complexity 43 of function LookupFieldFmt() is high (> 15) (gocyclo)
    • Line 854: warning: cyclomatic complexity 25 of function (*fieldDataBlob).ReadFrom() is high (> 15) (gocyclo)
    • Line 972: warning: cyclomatic complexity 20 of function (fieldDataBlob).WriteTo() is high (> 15) (gocyclo)
    • term/helpers.go
    • Line 81: warning: cyclomatic complexity 23 of function processRows() is high (> 15) (gocyclo)
    • tds/packageEED.go
    • Line 41: warning: cyclomatic complexity 17 of function (*EEDPackage).ReadFrom() is high (> 15) (gocyclo)
    • Line 142: warning: cyclomatic complexity 17 of function (EEDPackage).WriteTo() is high (> 15) (gocyclo)

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!