Preparing report...

Report for github.com/foril/bbox

A+    Excellent!    Found 4 issues across 5 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!


golint40%

Golint is a linter for Go source code.

    • bbox/bbox.go
    • Line 36: warning: comment on exported type Bearerbox should be of the form "Bearerbox ..." (with optional leading article) (golint)
    • bbox/const.go
    • Line 35: warning: don't use underscores in Go names; const wdp_datagram should be wdpDatagram (golint)
    • Line 50: warning: don't use underscores in Go names; const Mt_reply should be MtReply (golint)
    • Line 51: warning: don't use underscores in Go names; const Mt_push should be MtPush (golint)
    • Line 52: warning: don't use underscores in Go names; const Report_mo should be ReportMo (golint)
    • Line 53: warning: don't use underscores in Go names; const Report_mt should be ReportMt (golint)
    • Line 60: warning: don't use underscores in Go names; const Failed_tmp should be FailedTmp (golint)
    • Line 66: warning: don't use underscores in Go names; const Coding_7BIT should be Coding7BIT (golint)
    • Line 67: warning: don't use underscores in Go names; const Coding_8BIT should be Coding8BIT (golint)
    • Line 68: warning: don't use underscores in Go names; const Coding_UCS2 should be CodingUCS2 (golint)
    • bbox/types.go
    • Line 34: warning: exported type INTEGER should have comment or be unexported (golint)
    • Line 36: warning: exported type OCTSTR should have comment or be unexported (golint)
    • Line 38: warning: exported type VOID should have comment or be unexported (golint)
    • Line 40: warning: exported type UUID should have comment or be unexported (golint)
    • Line 42: warning: exported type Heartbeat should have comment or be unexported (golint)
    • Line 46: warning: exported type Admin should have comment or be unexported (golint)
    • Line 48: warning: don't use underscores in Go names; struct field Boxc_id should be BoxcID (golint)
    • Line 51: warning: exported type Sms should have comment or be unexported (golint)
    • Line 57: warning: don't use underscores in Go names; struct field Smsc_id should be SmscID (golint)
    • Line 58: warning: don't use underscores in Go names; struct field Smsc_number should be SmscNumber (golint)
    • Line 59: warning: don't use underscores in Go names; struct field Foreign_id should be ForeignID (golint)
    • Line 63: warning: don't use underscores in Go names; struct field Sms_type should be SmsType (golint)
    • Line 70: warning: don't use underscores in Go names; struct field Dlr_mask should be DlrMask (golint)
    • Line 71: warning: don't use underscores in Go names; struct field Dlr_url should be DlrURL (golint)
    • Line 73: warning: don't use underscores in Go names; struct field Alt_dcs should be AltDcs (golint)
    • Line 76: warning: don't use underscores in Go names; struct field Boxc_id should be BoxcID (golint)
    • Line 78: warning: don't use underscores in Go names; struct field Msg_left should be MsgLeft (golint)
    • Line 79: warning: don't use underscores in Go names; struct field Split_parts should be SplitParts (golint)
    • Line 81: warning: don't use underscores in Go names; struct field Resend_try should be ResendTry (golint)
    • Line 82: warning: don't use underscores in Go names; struct field Resend_time should be ResendTime (golint)
    • Line 83: warning: don't use underscores in Go names; struct field Meta_data should be MetaData (golint)
    • Line 86: warning: exported type Ack should have comment or be unexported (golint)
    • Line 92: warning: don't use underscores in Go names; type Wdp_datagram should be WdpDatagram (golint)
    • Line 92: warning: exported type Wdp_datagram should have comment or be unexported (golint)
    • Line 93: warning: don't use underscores in Go names; struct field Source_address should be SourceAddress (golint)
    • Line 94: warning: don't use underscores in Go names; struct field Source_port should be SourcePort (golint)
    • Line 95: warning: don't use underscores in Go names; struct field Destination_address should be DestinationAddress (golint)
    • Line 96: warning: don't use underscores in Go names; struct field Destination_port should be DestinationPort (golint)
    • Line 97: warning: don't use underscores in Go names; struct field User_data should be UserData (golint)
    • Line 100: warning: exported method INTEGER.INTEGER should have comment or be unexported (golint)
    • Line 108: warning: exported method OCTSTR.OCTSTR should have comment or be unexported (golint)
    • Line 116: warning: exported method UUID.UUID 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!


misspell80%

Misspell Finds commonly misspelled English words