Preparing report...

Report for github.com/aclindsa/ofxgo

(v0.1.3)

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


gofmt95%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

gocyclo80%

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.

    • common.go
    • Line 98: warning: cyclomatic complexity 31 of function (messageType).String() is high (> 15) (gocyclo)
    • response.go
    • Line 284: warning: cyclomatic complexity 24 of function DecodeResponse() is high (> 15) (gocyclo)
    • Line 111: warning: cyclomatic complexity 20 of function (*Response).readXMLHeaders() is high (> 15) (gocyclo)
    • Line 38: warning: cyclomatic complexity 19 of function (*Response).readSGMLHeaders() is high (> 15) (gocyclo)
    • bank.go
    • Line 135: warning: cyclomatic complexity 24 of function (Transaction).Valid() is high (> 15) (gocyclo)
    • signon_test.go
    • Line 7: warning: cyclomatic complexity 19 of function TestMarshalInvalidSignons() is high (> 15) (gocyclo)
    • seclist.go
    • Line 246: warning: cyclomatic complexity 16 of function (*SecurityList).UnmarshalXML() is high (> 15) (gocyclo)
    • invstmt.go
    • Line 477: warning: cyclomatic complexity 52 of function (*InvTranList).UnmarshalXML() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 48 of function (*InvTranList).MarshalXML() is high (> 15) (gocyclo)
    • Line 1107: warning: cyclomatic complexity 28 of function (*OOList).UnmarshalXML() is high (> 15) (gocyclo)
    • Line 1193: warning: cyclomatic complexity 26 of function (*OOList).MarshalXML() is high (> 15) (gocyclo)
    • Line 838: warning: cyclomatic complexity 16 of function (*PositionList).UnmarshalXML() 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!


misspell95%

Misspell Finds commonly misspelled English words