Preparing report...

Report for github.com/moov-io/iso8583

A+    Excellent!    Found 24 issues across 39 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!


gocyclo100%

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.

No problems detected. Good job!


golint38%

Golint is a linter for Go source code.

    • iso8583/field/numeric.go
    • Line 10: warning: exported type Numeric should have comment or be unexported (golint)
    • Line 15: warning: exported function NewNumeric should have comment or be unexported (golint)
    • Line 21: warning: exported function NewNumericValue should have comment or be unexported (golint)
    • Line 27: warning: exported method Numeric.Spec should have comment or be unexported (golint)
    • Line 31: warning: exported method Numeric.SetSpec should have comment or be unexported (golint)
    • Line 35: warning: exported method Numeric.SetBytes should have comment or be unexported (golint)
    • Line 39: warning: exported method Numeric.Bytes should have comment or be unexported (golint)
    • Line 47: warning: exported method Numeric.Pack should have comment or be unexported (golint)
    • Line 67: warning: exported method Numeric.Unpack should have comment or be unexported (golint)
    • iso8583/field/spec.go
    • Line 9: warning: exported type Spec should have comment or be unexported (golint)
    • Line 17: warning: exported function NewSpec should have comment or be unexported (golint)
    • iso8583/message_spec.go
    • Line 9: warning: exported type MessageSpec should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method MessageSpec.CreateMessageFields should be of the form "CreateMessageFields ..." (golint)
    • iso8583/field/bitmap.go
    • Line 14: warning: exported type Bitmap should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBitmap should have comment or be unexported (golint)
    • Line 26: warning: exported method Bitmap.Spec should have comment or be unexported (golint)
    • Line 30: warning: exported method Bitmap.SetSpec should have comment or be unexported (golint)
    • Line 34: warning: exported method Bitmap.SetBytes should have comment or be unexported (golint)
    • Line 38: warning: exported method Bitmap.Bytes should have comment or be unexported (golint)
    • Line 46: warning: exported method Bitmap.Pack should have comment or be unexported (golint)
    • Line 105: warning: exported method Bitmap.Reset should have comment or be unexported (golint)
    • Line 109: warning: exported method Bitmap.Set should have comment or be unexported (golint)
    • Line 113: warning: exported method Bitmap.IsSet should have comment or be unexported (golint)
    • Line 117: warning: exported method Bitmap.Len should have comment or be unexported (golint)
    • iso8583/field/string.go
    • Line 9: warning: exported type String should have comment or be unexported (golint)
    • Line 14: warning: exported function NewString should have comment or be unexported (golint)
    • Line 20: warning: exported function NewStringValue should have comment or be unexported (golint)
    • Line 26: warning: exported method String.Spec should have comment or be unexported (golint)
    • Line 30: warning: exported method String.SetSpec should have comment or be unexported (golint)
    • Line 34: warning: exported method String.SetBytes should have comment or be unexported (golint)
    • Line 38: warning: exported method String.Bytes should have comment or be unexported (golint)
    • Line 46: warning: exported method String.Pack should have comment or be unexported (golint)
    • Line 66: warning: exported method String.Unpack should have comment or be unexported (golint)
    • iso8583/utils/bitmap.go
    • Line 9: warning: exported type Bitmap should have comment or be unexported (golint)
    • Line 17: warning: exported function NewBitmap should have comment or be unexported (golint)
    • Line 28: warning: exported function NewBitmapFromData should have comment or be unexported (golint)
    • Line 34: warning: exported method Bitmap.IsSet should have comment or be unexported (golint)
    • Line 39: warning: exported method Bitmap.Set should have comment or be unexported (golint)
    • Line 46: warning: exported method Bitmap.Bytes should have comment or be unexported (golint)
    • Line 50: warning: comment on exported method Bitmap.Len should be of the form "Len ..." (golint)
    • Line 58: warning: don't use underscores in Go names; range var byte_ should be byte (golint)
    • iso8583/prefix/prefixer.go
    • Line 3: warning: exported type Prefixer should have comment or be unexported (golint)
    • Line 17: warning: exported type Prefixers should have comment or be unexported (golint)
    • Line 25: warning: exported type PrefixerBuilder should have comment or be unexported (golint)
    • iso8583/padding/left.go
    • Line 8: warning: exported var Left should have comment or be unexported (golint)
    • Line 14: warning: exported function NewLeftPadder should have comment or be unexported (golint)
    • iso8583/message.go
    • Line 10: warning: exported type Message should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 28: warning: exported method Message.Data should have comment or be unexported (golint)
    • Line 32: warning: exported method Message.SetData should have comment or be unexported (golint)
    • Line 73: warning: exported method Message.Bitmap should have comment or be unexported (golint)
    • Line 84: warning: exported method Message.MTI should have comment or be unexported (golint)
    • Line 89: warning: exported method Message.Field should have comment or be unexported (golint)
    • Line 94: warning: exported method Message.BinaryField should have comment or be unexported (golint)
    • Line 99: warning: exported method Message.GetMTI should have comment or be unexported (golint)
    • Line 104: warning: exported method Message.GetString should have comment or be unexported (golint)
    • Line 112: warning: exported method Message.GetBytes should have comment or be unexported (golint)
    • Line 120: warning: exported method Message.Pack should have comment or be unexported (golint)
    • Line 160: warning: exported method Message.Unpack should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!