Preparing report...

Report for github.com/fabian-z/gopherlab

A+    Excellent!    Found 6 issues across 23 files

Tweet

gofmt91%

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!


gocyclo86%

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.

    • gopherlab/replpkg/commands.go
    • Line 204: warning: cyclomatic complexity 19 of function actionDoc() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 18 of function completeImport() is high (> 15) (gocyclo)

golint82%

Golint is a linter for Go source code.

    • gopherlab/replpkg/commands.go
    • Line 306: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • gopherlab/replpkg/repl.go
    • Line 1: warning: package comment should be of the form "Package replpkg ..." (golint)
    • Line 71: warning: exported type Session should have comment or be unexported (golint)
    • Line 113: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 158: warning: error should be the last type when returning multiple items (golint)
    • Line 158: warning: exported method Session.Run should have comment or be unexported (golint)
    • Line 186: warning: error should be the last type when returning multiple items (golint)
    • Line 268: warning: exported type Error should have comment or be unexported (golint)
    • Line 271: warning: exported const ErrContinue should have comment (or a comment on this block) or be unexported (golint)
    • Line 316: warning: error should be the last type when returning multiple items (golint)
    • Line 316: warning: exported method Session.Eval should have comment or be unexported (golint)
    • gopherlab/gopherlab.go
    • Line 22: warning: don't use underscores in Go names; struct field Signature_scheme should be SignatureScheme (golint)
    • Line 24: warning: don't use underscores in Go names; struct field Stdin_port should be StdinPort (golint)
    • Line 25: warning: don't use underscores in Go names; struct field Control_port should be ControlPort (golint)
    • Line 26: warning: don't use underscores in Go names; struct field IOPub_port should be IOPubPort (golint)
    • Line 27: warning: don't use underscores in Go names; struct field HB_port should be HBPort (golint)
    • Line 28: warning: don't use underscores in Go names; struct field Shell_port should be ShellPort (golint)
    • Line 36: warning: don't use underscores in Go names; struct field Shell_socket should be ShellSocket (golint)
    • Line 37: warning: don't use underscores in Go names; struct field Control_socket should be ControlSocket (golint)
    • Line 38: warning: don't use underscores in Go names; struct field Stdin_socket should be StdinSocket (golint)
    • Line 39: warning: don't use underscores in Go names; struct field IOPub_socket should be IOPubSocket (golint)
    • Line 91: warning: don't use underscores in Go names; var HB_socket should be HBSocket (golint)
    • Line 138: warning: exported type KernelLanguageInfo should have comment or be unexported (golint)
    • Line 194: warning: exported function HandleConnectRequest should have comment or be unexported (golint)
    • Line 209: warning: don't use underscores in Go names; func parameter connection_file should be connectionFile (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!


misspell95%

Misspell Finds commonly misspelled English words