Preparing report...

Report for github.com/mikioh/tcpinfo

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


golint80%

Golint is a linter for Go source code.

    • tcpinfo/tcp.go
    • Line 11: warning: exported const Unknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: exported const KindMaxSegSize should have comment (or a comment on this block) or be unexported (golint)
    • tcpinfo/zsys_2_6_10_linux.go
    • Line 5: warning: don't use underscores in Go names; struct field Ca_state should be CaState (golint)
    • Line 10: warning: don't use underscores in Go names; struct field Pad_cgo_0 should be PadCgo0 (golint)
    • Line 13: warning: don't use underscores in Go names; struct field Snd_mss should be SndMss (golint)
    • Line 14: warning: don't use underscores in Go names; struct field Rcv_mss should be RcvMss (golint)
    • Line 20: warning: don't use underscores in Go names; struct field Last_data_sent should be LastDataSent (golint)
    • Line 21: warning: don't use underscores in Go names; struct field Last_ack_sent should be LastAckSent (golint)
    • Line 22: warning: don't use underscores in Go names; struct field Last_data_recv should be LastDataRecv (golint)
    • Line 23: warning: don't use underscores in Go names; struct field Last_ack_recv should be LastAckRecv (golint)
    • Line 25: warning: don't use underscores in Go names; struct field Rcv_ssthresh should be RcvSsthresh (golint)
    • Line 28: warning: don't use underscores in Go names; struct field Snd_ssthresh should be SndSsthresh (golint)
    • Line 29: warning: don't use underscores in Go names; struct field Snd_cwnd should be SndCwnd (golint)
    • Line 32: warning: don't use underscores in Go names; struct field Rcv_rtt should be RcvRtt (golint)
    • Line 33: warning: don't use underscores in Go names; struct field Rcv_space should be RcvSpace (golint)
    • Line 34: warning: don't use underscores in Go names; struct field Total_retrans should be TotalRetrans (golint)
    • tcpinfo/zsys_3_19_linux.go
    • Line 10: warning: don't use underscores in Go names; struct field Ca_state should be CaState (golint)
    • Line 15: warning: don't use underscores in Go names; struct field Pad_cgo_0 should be PadCgo0 (golint)
    • Line 18: warning: don't use underscores in Go names; struct field Snd_mss should be SndMss (golint)
    • Line 19: warning: don't use underscores in Go names; struct field Rcv_mss should be RcvMss (golint)
    • Line 25: warning: don't use underscores in Go names; struct field Last_data_sent should be LastDataSent (golint)
    • Line 26: warning: don't use underscores in Go names; struct field Last_ack_sent should be LastAckSent (golint)
    • Line 27: warning: don't use underscores in Go names; struct field Last_data_recv should be LastDataRecv (golint)
    • Line 28: warning: don't use underscores in Go names; struct field Last_ack_recv should be LastAckRecv (golint)
    • Line 30: warning: don't use underscores in Go names; struct field Rcv_ssthresh should be RcvSsthresh (golint)
    • Line 33: warning: don't use underscores in Go names; struct field Snd_ssthresh should be SndSsthresh (golint)
    • Line 34: warning: don't use underscores in Go names; struct field Snd_cwnd should be SndCwnd (golint)
    • Line 37: warning: don't use underscores in Go names; struct field Rcv_rtt should be RcvRtt (golint)
    • Line 38: warning: don't use underscores in Go names; struct field Rcv_space should be RcvSpace (golint)
    • Line 39: warning: don't use underscores in Go names; struct field Total_retrans should be TotalRetrans (golint)
    • Line 40: warning: don't use underscores in Go names; struct field Pacing_rate should be PacingRate (golint)
    • Line 41: warning: don't use underscores in Go names; struct field Max_pacing_rate should be MaxPacingRate (golint)
    • tcpinfo/zsys_linux.go
    • Line 7: warning: don't use underscores in Go names; const sysTCP_INFO should be sysTCPINFO (golint)
    • Line 8: warning: don't use underscores in Go names; const sysTCP_CONGESTION should be sysTCPCONGESTION (golint)
    • Line 9: warning: don't use underscores in Go names; const sysTCP_CC_INFO should be sysTCPCCINFO (golint)
    • Line 11: warning: don't use underscores in Go names; const sysTCPI_OPT_TIMESTAMPS should be sysTCPIOPTTIMESTAMPS (golint)
    • Line 12: warning: don't use underscores in Go names; const sysTCPI_OPT_SACK should be sysTCPIOPTSACK (golint)
    • Line 13: warning: don't use underscores in Go names; const sysTCPI_OPT_WSCALE should be sysTCPIOPTWSCALE (golint)
    • Line 14: warning: don't use underscores in Go names; const sysTCPI_OPT_ECN should be sysTCPIOPTECN (golint)
    • Line 15: warning: don't use underscores in Go names; const sysTCPI_OPT_ECN_SEEN should be sysTCPIOPTECNSEEN (golint)
    • Line 16: warning: don't use underscores in Go names; const sysTCPI_OPT_SYN_DATA should be sysTCPIOPTSYNDATA (golint)
    • Line 18: warning: exported const CAOpen should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: don't use underscores in Go names; struct field Ca_state should be CaState (golint)
    • Line 38: warning: don't use underscores in Go names; struct field Pad_cgo_0 should be PadCgo0 (golint)
    • Line 39: warning: don't use underscores in Go names; struct field Pad_cgo_1 should be PadCgo1 (golint)
    • Line 42: warning: don't use underscores in Go names; struct field Snd_mss should be SndMss (golint)
    • Line 43: warning: don't use underscores in Go names; struct field Rcv_mss should be RcvMss (golint)
    • Line 49: warning: don't use underscores in Go names; struct field Last_data_sent should be LastDataSent (golint)
    • Line 50: warning: don't use underscores in Go names; struct field Last_ack_sent should be LastAckSent (golint)
    • Line 51: warning: don't use underscores in Go names; struct field Last_data_recv should be LastDataRecv (golint)
    • Line 52: warning: don't use underscores in Go names; struct field Last_ack_recv should be LastAckRecv (golint)
    • Line 54: warning: don't use underscores in Go names; struct field Rcv_ssthresh should be RcvSsthresh (golint)
    • Line 57: warning: don't use underscores in Go names; struct field Snd_ssthresh should be SndSsthresh (golint)
    • Line 58: warning: don't use underscores in Go names; struct field Snd_cwnd should be SndCwnd (golint)
    • Line 61: warning: don't use underscores in Go names; struct field Rcv_rtt should be RcvRtt (golint)
    • Line 62: warning: don't use underscores in Go names; struct field Rcv_space should be RcvSpace (golint)
    • Line 63: warning: don't use underscores in Go names; struct field Total_retrans should be TotalRetrans (golint)
    • Line 64: warning: don't use underscores in Go names; struct field Pacing_rate should be PacingRate (golint)
    • Line 65: warning: don't use underscores in Go names; struct field Max_pacing_rate should be MaxPacingRate (golint)
    • Line 66: warning: don't use underscores in Go names; struct field Bytes_acked should be BytesAcked (golint)
    • Line 67: warning: don't use underscores in Go names; struct field Bytes_received should be BytesReceived (golint)
    • Line 68: warning: don't use underscores in Go names; struct field Segs_out should be SegsOut (golint)
    • Line 69: warning: don't use underscores in Go names; struct field Segs_in should be SegsIn (golint)
    • Line 70: warning: don't use underscores in Go names; struct field Notsent_bytes should be NotsentBytes (golint)
    • Line 71: warning: don't use underscores in Go names; struct field Min_rtt should be MinRtt (golint)
    • Line 72: warning: don't use underscores in Go names; struct field Data_segs_in should be DataSegsIn (golint)
    • Line 73: warning: don't use underscores in Go names; struct field Data_segs_out should be DataSegsOut (golint)
    • Line 74: warning: don't use underscores in Go names; struct field Delivery_rate should be DeliveryRate (golint)
    • Line 75: warning: don't use underscores in Go names; struct field Busy_time should be BusyTime (golint)
    • Line 76: warning: don't use underscores in Go names; struct field Rwnd_limited should be RwndLimited (golint)
    • Line 77: warning: don't use underscores in Go names; struct field Sndbuf_limited should be SndbufLimited (golint)
    • Line 91: warning: don't use underscores in Go names; struct field Ce_state should be CeState (golint)
    • Line 93: warning: don't use underscores in Go names; struct field Ab_ecn should be AbEcn (golint)
    • Line 94: warning: don't use underscores in Go names; struct field Ab_tot should be AbTot (golint)
    • Line 98: warning: don't use underscores in Go names; struct field Bw_lo should be BwLo (golint)
    • Line 99: warning: don't use underscores in Go names; struct field Bw_hi should be BwHi (golint)
    • Line 100: warning: don't use underscores in Go names; struct field Min_rtt should be MinRtt (golint)
    • Line 101: warning: don't use underscores in Go names; struct field Pacing_gain should be PacingGain (golint)
    • Line 102: warning: don't use underscores in Go names; struct field Cwnd_gain should be CwndGain (golint)

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!


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!