Preparing report...

Report for github.com/ddok2/golang-playground

A    Great!    Found 34 issues across 93 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!


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!


golint64%

Golint is a linter for Go source code.

    • golang-playground/ch2/tempconv0/main.go
    • Line 10: warning: exported type Celsius should have comment or be unexported (golint)
    • Line 11: warning: exported type Fahrenheit should have comment or be unexported (golint)
    • Line 14: warning: exported const AbsoluteZeroC should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported function CToF should have comment or be unexported (golint)
    • Line 23: warning: exported function FToC should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/mocking/countdown.go
    • Line 18: warning: exported type DefaultSleeper should have comment or be unexported (golint)
    • Line 20: warning: exported method DefaultSleeper.Sleep should have comment or be unexported (golint)
    • Line 24: warning: exported type Sleeper should have comment or be unexported (golint)
    • Line 28: warning: exported type SpySleeper should have comment or be unexported (golint)
    • Line 32: warning: exported method SpySleeper.Sleep should have comment or be unexported (golint)
    • Line 36: warning: exported function Countdown should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/maps/dictionary.go
    • Line 10: warning: exported type Dictionary should have comment or be unexported (golint)
    • Line 12: warning: exported var DictionaryErr should have comment or be unexported (golint)
    • Line 17: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 22: warning: exported method Dictionary.Search should have comment or be unexported (golint)
    • Line 30: warning: exported method Dictionary.Add should have comment or be unexported (golint)
    • Line 43: warning: exported method Dictionary.Update should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/testQueue/main.go
    • Line 82: warning: exported type TxBuffer should have comment or be unexported (golint)
    • Line 89: warning: exported function NewTxBuffer should have comment or be unexported (golint)
    • Line 99: warning: exported method TxBuffer.Initialize should have comment or be unexported (golint)
    • Line 106: warning: exported method TxBuffer.SetFirst should have comment or be unexported (golint)
    • Line 112: warning: exported method TxBuffer.Append should have comment or be unexported (golint)
    • Line 118: warning: exported method TxBuffer.Length should have comment or be unexported (golint)
    • Line 125: warning: exported method TxBuffer.ToCopy should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/io/file_system_store.go
    • Line 13: warning: exported type FileSystemPlayerStore should have comment or be unexported (golint)
    • Line 17: warning: exported method FileSystemPlayerStore.GetLeague should have comment or be unexported (golint)
    • Line 23: warning: exported method FileSystemPlayerStore.GetPlayerScore should have comment or be unexported (golint)
    • Line 34: warning: exported method FileSystemPlayerStore.RecordWin should have comment or be unexported (golint)
    • golang-playground/ch2/tempconv/tempconv.go
    • Line 10: warning: exported type Celsius should have comment or be unexported (golint)
    • Line 11: warning: exported type Fahrenheit should have comment or be unexported (golint)
    • Line 14: warning: exported const AbsoluteZeroC should have comment (or a comment on this block) or be unexported (golint)
    • golang-playground/learn-go-with-tests/sync/sync.go
    • Line 10: warning: exported type Counter should have comment or be unexported (golint)
    • Line 15: warning: exported method Counter.Inc should have comment or be unexported (golint)
    • Line 21: warning: exported method Counter.Value should have comment or be unexported (golint)
    • Line 25: warning: exported function NewCounter should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/io/in_memory_player_store.go
    • Line 8: warning: exported function NewInMemoryPlayerStore should have comment or be unexported (golint)
    • Line 12: warning: exported type InMemoryPlayerStore should have comment or be unexported (golint)
    • Line 16: warning: exported method InMemoryPlayerStore.GetLeague should have comment or be unexported (golint)
    • Line 24: warning: exported method InMemoryPlayerStore.RecordWin should have comment or be unexported (golint)
    • Line 28: warning: exported method InMemoryPlayerStore.GetPlayerScore should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/testQueue/queue.go
    • Line 14: warning: exported type MessageQueue should have comment or be unexported (golint)
    • Line 21: warning: exported function NewMessageQueue should have comment or be unexported (golint)
    • Line 29: warning: exported method MessageQueue.Initialize should have comment or be unexported (golint)
    • Line 34: warning: exported method MessageQueue.SendMessage should have comment or be unexported (golint)
    • Line 40: warning: exported method MessageQueue.GetMessage should have comment or be unexported (golint)
    • Line 48: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 53: warning: exported method MessageQueue.Finalize should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/io/server.go
    • Line 14: warning: exported type PlayerStore should have comment or be unexported (golint)
    • Line 20: warning: exported type Player should have comment or be unexported (golint)
    • Line 25: warning: exported type PlayerServer should have comment or be unexported (golint)
    • Line 32: warning: exported function NewPlayerServer should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/pointers/wallet.go
    • Line 12: warning: exported type Wallet should have comment or be unexported (golint)
    • Line 16: warning: exported method Wallet.Deposit should have comment or be unexported (golint)
    • Line 20: warning: exported method Wallet.Balance should have comment or be unexported (golint)
    • Line 24: warning: exported method Wallet.Withdraw should have comment or be unexported (golint)
    • golang-playground/learn-go-with-tests/structs/shapes.go
    • Line 10: warning: exported function Perimeter should have comment or be unexported (golint)
    • Line 14: warning: exported type Rectangle should have comment or be unexported (golint)
    • Line 19: warning: exported method Rectangle.Area should have comment or be unexported (golint)
    • Line 23: warning: exported type Circle should have comment or be unexported (golint)
    • Line 27: warning: exported type Triangle should have comment or be unexported (golint)
    • Line 32: warning: exported method Circle.Area should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!