Preparing report...

Report for github.com/moov-io/wire

A+    Excellent!    Found 67 issues across 236 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!


golint73%

Golint is a linter for Go source code.

    • wire/originator.go
    • Line 51: warning: exported method Originator.UnmarshalJSON should have comment or be unexported (golint)
    • wire/adjustment.go
    • Line 57: warning: exported method Adjustment.UnmarshalJSON should have comment or be unexported (golint)
    • wire/remittance.go
    • Line 51: warning: exported method Remittance.UnmarshalJSON should have comment or be unexported (golint)
    • wire/errorWire.go
    • Line 48: warning: exported method ErrorWire.UnmarshalJSON should have comment or be unexported (golint)
    • wire/charges.go
    • Line 66: warning: exported method Charges.UnmarshalJSON should have comment or be unexported (golint)
    • wire/amount.go
    • Line 47: warning: exported method Amount.UnmarshalJSON should have comment or be unexported (golint)

gocyclo96%

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.

    • wire/fedWireMessage.go
    • Line 284: warning: cyclomatic complexity 24 of function (*FEDWireMessage).validateBusinessFunctionCode() is high (> 15) (gocyclo)
    • Line 809: warning: cyclomatic complexity 21 of function (*FEDWireMessage).checkSharedProhibitedTags() is high (> 15) (gocyclo)
    • Line 514: warning: cyclomatic complexity 21 of function (*FEDWireMessage).checkMandatoryCustomerTransferPlusTags() is high (> 15) (gocyclo)
    • Line 364: warning: cyclomatic complexity 20 of function (*FEDWireMessage).checkProhibitedBankTransferTags() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 18 of function (*FEDWireMessage).verify() is high (> 15) (gocyclo)
    • Line 763: warning: cyclomatic complexity 16 of function (*FEDWireMessage).checkProhibitedServiceMessageTags() is high (> 15) (gocyclo)
    • wire/writer.go
    • Line 374: warning: cyclomatic complexity 23 of function (*Writer).writeRemittance() is high (> 15) (gocyclo)
    • Line 276: warning: cyclomatic complexity 21 of function (*Writer).writeFinancialInstitution() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 17 of function (*Writer).writeCoverPayment() is high (> 15) (gocyclo)
    • wire/reader.go
    • Line 92: warning: cyclomatic complexity 115 of function (*Reader).parseLine() 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!