Preparing report...

Report for github.com/mikioh/tcpopt

A+    Excellent!    Found 2 issues across 29 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!


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.


golint96%

Golint is a linter for Go source code.

    • tcpopt/zsys_linux_generic.go
    • Line 11: warning: don't use underscores in Go names; const sysSOL_SOCKET should be sysSOLSOCKET (golint)
    • Line 13: warning: don't use underscores in Go names; const sysSO_KEEPALIVE should be sysSOKEEPALIVE (golint)
    • Line 14: warning: don't use underscores in Go names; const sysSO_SNDBUF should be sysSOSNDBUF (golint)
    • Line 15: warning: don't use underscores in Go names; const sysSO_RCVBUF should be sysSORCVBUF (golint)
    • Line 16: warning: don't use underscores in Go names; const sysSO_ERROR should be sysSOERROR (golint)
    • Line 18: warning: don't use underscores in Go names; const sysTCP_NODELAY should be sysTCPNODELAY (golint)
    • Line 19: warning: don't use underscores in Go names; const sysTCP_MAXSEG should be sysTCPMAXSEG (golint)
    • Line 20: warning: don't use underscores in Go names; const sysTCP_KEEPIDLE should be sysTCPKEEPIDLE (golint)
    • Line 21: warning: don't use underscores in Go names; const sysTCP_KEEPINTVL should be sysTCPKEEPINTVL (golint)
    • Line 22: warning: don't use underscores in Go names; const sysTCP_KEEPCNT should be sysTCPKEEPCNT (golint)
    • Line 23: warning: don't use underscores in Go names; const sysTCP_CORK should be sysTCPCORK (golint)
    • Line 24: warning: don't use underscores in Go names; const sysTCP_NOTSENT_LOWAT should be sysTCPNOTSENTLOWAT (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!