Preparing report...

Report for github.com/sergeyfrolov/gotapdance

A    Great!    Found 11 issues across 19 files

Tweet

gofmt89%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo78%

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.


golint57%

Golint is a linter for Go source code.

    • gotapdance/tools/clientconf.go
    • Line 57: warning: don't use underscores in Go names; var pubkey_bin should be pubkeyBin (golint)
    • Line 95: warning: don't use underscores in Go names; var out_fname should be outFname (golint)
    • Line 136: warning: don't use underscores in Go names; var key_type should be keyType (golint)
    • Line 177: warning: don't use underscores in Go names; var tls_spec should be tlsSpec (golint)
    • gotapdance/tdproxy/tapdance.go
    • Line 13: warning: exported var Logger should have comment or be unexported (golint)
    • Line 16: warning: exported const ProxyStateInitialized should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: comment on exported type TapDanceProxy should be of the form "TapDanceProxy ..." (with optional leading article) (golint)
    • Line 48: warning: exported function NewTapDanceProxy should have comment or be unexported (golint)
    • Line 70: warning: exported method TapDanceProxy.ListenAndServe should have comment or be unexported (golint)
    • Line 100: warning: exported method TapDanceProxy.Stop should have comment or be unexported (golint)
    • Line 132: warning: exported method TapDanceProxy.GetStatistics should have comment or be unexported (golint)
    • Line 146: warning: exported method TapDanceProxy.GetStats should have comment or be unexported (golint)
    • gotapdance/tapdance/common.go
    • Line 108: warning: don't use underscores in Go names; var default_flags should be defaultFlags (golint)
    • Line 110: warning: comment on exported function EnableProxyProtocol should be of the form "EnableProxyProtocol ..." (golint)
    • Line 118: warning: don't use underscores in Go names; var default_flags should be defaultFlags (golint)
    • Line 123: warning: exported function SetTlsLogFilename should have comment or be unexported (golint)
    • Line 133: warning: exported function WriteTlsLog should have comment or be unexported (golint)
    • gotapdance/gobind/gobind.go
    • Line 13: warning: don't use underscores in Go names; var td_proxy should be tdProxy (golint)
    • Line 17: warning: exported function NewDecoyProxy should have comment or be unexported (golint)
    • Line 29: warning: exported function GetLog should have comment or be unexported (golint)
    • Line 41: warning: exported function Listen should have comment or be unexported (golint)
    • Line 50: warning: exported function Stop should have comment or be unexported (golint)
    • Line 59: warning: exported function GetStats should have comment or be unexported (golint)
    • Line 68: warning: exported function IsListening should have comment or be unexported (golint)
    • gotapdance/cli/main.go
    • Line 27: warning: don't use underscores in Go names; var assets_location should be assetsLocation (golint)
    • Line 31: warning: don't use underscores in Go names; var connect_target should be connectTarget (golint)
    • Line 77: warning: don't use underscores in Go names; func parameter connect_target should be connectTarget (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!