Preparing report...

Report for github.com/Masterminds/go-in-practice

A+    Excellent!    Found 34 issues across 127 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!


gocyclo99%

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.


golint74%

Golint is a linter for Go source code.

    • go-in-practice/chapter4/two_errors.go
    • Line 9: warning: exported var ErrTimeout should have comment or be unexported (golint)
    • Line 10: warning: exported var ErrRejected should have comment or be unexported (golint)
    • Line 29: warning: exported function SendRequest should have comment or be unexported (golint)
    • go-in-practice/chapter11/structs/structwalker.go
    • Line 26: warning: exported type MyInt should have comment or be unexported (golint)
    • Line 28: warning: exported type Person should have comment or be unexported (golint)
    • Line 33: warning: exported type Name should have comment or be unexported (golint)
    • Line 37: warning: exported type Address should have comment or be unexported (golint)
    • go-in-practice/chapter5/tests/msg/send_message.go
    • Line 3: warning: exported type Message should have comment or be unexported (golint)
    • Line 7: warning: exported method Message.Send should have comment or be unexported (golint)
    • Line 12: warning: exported type Messager should have comment or be unexported (golint)
    • Line 16: warning: exported function Alert should have comment or be unexported (golint)
    • go-in-practice/chapter5/logs/buffered_logger.go
    • Line 35: warning: exported type TcpLogger should have comment or be unexported (golint)
    • Line 42: warning: exported function New should have comment or be unexported (golint)
    • Line 66: warning: exported method TcpLogger.Reconnect should have comment or be unexported (golint)
    • Line 97: warning: exported function DequeueLogs should have comment or be unexported (golint)
    • go-in-practice/chapter9/api_interface.go
    • Line 12: warning: exported type File should have comment or be unexported (golint)
    • Line 17: warning: exported type LocalFile should have comment or be unexported (golint)
    • Line 21: warning: exported method LocalFile.Load should have comment or be unexported (golint)
    • Line 26: warning: exported method LocalFile.Save should have comment or be unexported (golint)
    • go-in-practice/chapter11/generator/myint_queue.go
    • Line 3: warning: exported type MyIntQueue should have comment or be unexported (golint)
    • Line 7: warning: exported function NewMyIntQueue should have comment or be unexported (golint)
    • Line 13: warning: exported method MyIntQueue.Insert should have comment or be unexported (golint)
    • Line 17: warning: exported method MyIntQueue.Remove should have comment or be unexported (golint)
    • go-in-practice/chapter10/user/user_generated.go
    • Line 18: warning: don't use underscores in Go names; const codecSelferC_UTF85734 should be codecSelferCUTF85734 (golint)
    • Line 19: warning: don't use underscores in Go names; const codecSelferC_RAW5734 should be codecSelferCRAW5734 (golint)
    • Line 24: warning: don't use underscores in Go names; const codecSelfer_containerMapKey5734 should be codecSelferContainerMapKey5734 (golint)
    • Line 25: warning: don't use underscores in Go names; const codecSelfer_containerMapValue5734 should be codecSelferContainerMapValue5734 (golint)
    • Line 26: warning: don't use underscores in Go names; const codecSelfer_containerMapEnd5734 should be codecSelferContainerMapEnd5734 (golint)
    • Line 27: warning: don't use underscores in Go names; const codecSelfer_containerArrayElem5734 should be codecSelferContainerArrayElem5734 (golint)
    • Line 28: warning: don't use underscores in Go names; const codecSelfer_containerArrayEnd5734 should be codecSelferContainerArrayEnd5734 (golint)
    • Line 33: warning: error var codecSelferOnlyMapOrArrayEncodeToStructErr5734 should have name of the form errFoo (golint)
    • Line 49: warning: exported method User.CodecEncodeSelf should have comment or be unexported (golint)
    • Line 133: warning: exported method User.CodecDecodeSelf should have comment or be unexported (golint)
    • go-in-practice/chapter9/api_interface_with_errors.go
    • Line 15: warning: exported var ErrFileNotFound should have comment or be unexported (golint)
    • Line 20: warning: exported type File should have comment or be unexported (golint)
    • Line 25: warning: exported type LocalFile should have comment or be unexported (golint)
    • Line 29: warning: exported method LocalFile.Load should have comment or be unexported (golint)
    • Line 43: warning: exported method LocalFile.Save should have comment or be unexported (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words