Preparing report...

Report for github.com/asticode/go-astibob

A+    Excellent!    Found 28 issues across 37 files

Tweet

gofmt97%

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!


golint27%

Golint is a linter for Go source code.

    • go-astibob/abilities/text_to_speech/runnable.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported type Speaker should have comment or be unexported (golint)
    • Line 22: warning: exported type Runnable should have comment or be unexported (golint)
    • Line 29: warning: exported function NewRunnable should have comment or be unexported (golint)
    • Line 73: warning: exported function NewSayMessage should have comment or be unexported (golint)
    • go-astibob/abilities/audio_input/listenable.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type ListenableOptions should have comment or be unexported (golint)
    • Line 13: warning: exported type Listenable should have comment or be unexported (golint)
    • Line 17: warning: exported function NewListenable should have comment or be unexported (golint)
    • Line 25: warning: exported method Listenable.MessageNames should have comment or be unexported (golint)
    • Line 32: warning: exported method Listenable.OnMessage should have comment or be unexported (golint)
    • go-astibob/worker/listenable.go
    • Line 10: warning: exported type Listenable should have comment or be unexported (golint)
    • Line 16: warning: exported method Worker.RegisterListenables should have comment or be unexported (golint)
    • go-astibob/dispatcher.go
    • Line 11: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 18: warning: exported type DispatchConditions should have comment or be unexported (golint)
    • Line 55: warning: exported type Dispatcher should have comment or be unexported (golint)
    • Line 65: warning: exported function NewDispatcher should have comment or be unexported (golint)
    • Line 76: warning: exported method Dispatcher.Close should have comment or be unexported (golint)
    • Line 87: warning: exported method Dispatcher.Dispatch should have comment or be unexported (golint)
    • Line 157: warning: exported method Dispatcher.On should have comment or be unexported (golint)
    • go-astibob/http.go
    • Line 14: warning: exported function WriteHTTPError should have comment or be unexported (golint)
    • Line 22: warning: exported function WriteHTTPData should have comment or be unexported (golint)
    • Line 29: warning: exported function ContentHandle should have comment or be unexported (golint)
    • Line 48: warning: exported function DirHandle should have comment or be unexported (golint)
    • go-astibob/message.go
    • Line 39: warning: exported type Message should have comment or be unexported (golint)
    • Line 47: warning: exported method Message.Clone should have comment or be unexported (golint)
    • Line 67: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 74: warning: exported function NewIndexIdentifier should have comment or be unexported (golint)
    • Line 78: warning: exported function NewUIIdentifier should have comment or be unexported (golint)
    • Line 85: warning: exported function NewRunnableIdentifier should have comment or be unexported (golint)
    • Line 93: warning: exported function NewWorkerIdentifier should have comment or be unexported (golint)
    • Line 100: warning: exported method Identifier.Clone should have comment or be unexported (golint)
    • Line 167: warning: exported method Identifier.WorkerName should have comment or be unexported (golint)
    • Line 181: warning: exported type WelcomeUI should have comment or be unexported (golint)
    • Line 186: warning: exported type UI should have comment or be unexported (golint)
    • Line 191: warning: exported type WelcomeWorker should have comment or be unexported (golint)
    • Line 196: warning: exported type Worker should have comment or be unexported (golint)
    • Line 202: warning: exported type RunnableMessage should have comment or be unexported (golint)
    • Line 208: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 213: warning: exported type Error should have comment or be unexported (golint)
    • Line 217: warning: exported type Listenables should have comment or be unexported (golint)
    • Line 222: warning: exported type RunnableDone should have comment or be unexported (golint)
    • Line 227: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 239: warning: exported function NewListenablesRegisterMessage should have comment or be unexported (golint)
    • Line 251: warning: exported function ParseListenablesRegisterPayload should have comment or be unexported (golint)
    • Line 259: warning: exported function ParseRunnableStartPayload should have comment or be unexported (golint)
    • Line 267: warning: exported function ParseRunnableStopPayload should have comment or be unexported (golint)
    • Line 275: warning: exported function NewRunnableCrashedMessage should have comment or be unexported (golint)
    • Line 279: warning: exported function NewRunnableDoneMessage should have comment or be unexported (golint)
    • Line 291: warning: exported function ParseRunnableDonePayload should have comment or be unexported (golint)
    • Line 299: warning: exported function NewRunnableStartedMessage should have comment or be unexported (golint)
    • Line 303: warning: exported function NewRunnableStoppedMessage should have comment or be unexported (golint)
    • Line 307: warning: exported function NewUIDisconnectedMessage should have comment or be unexported (golint)
    • Line 319: warning: exported function ParseUIDisconnectedPayload should have comment or be unexported (golint)
    • Line 327: warning: exported function NewUIMessageNamesAddMessage should have comment or be unexported (golint)
    • Line 339: warning: exported function ParseUIMessageNamesAddPayload should have comment or be unexported (golint)
    • Line 347: warning: exported function NewUIMessageNamesDeleteMessage should have comment or be unexported (golint)
    • Line 359: warning: exported function ParseUIMessageNamesDeletePayload should have comment or be unexported (golint)
    • Line 367: warning: exported function ParseUIRegisterPayload should have comment or be unexported (golint)
    • Line 375: warning: exported function NewUIWelcomeMessage should have comment or be unexported (golint)
    • Line 387: warning: exported function NewWorkerDisconnectedMessage should have comment or be unexported (golint)
    • Line 399: warning: exported function ParseWorkerDisconnectedPayload should have comment or be unexported (golint)
    • Line 407: warning: exported function NewWorkerRegisterMessage should have comment or be unexported (golint)
    • Line 419: warning: exported function ParseWorkerRegisterPayload should have comment or be unexported (golint)
    • Line 427: warning: exported function NewWorkerRegisteredMessage should have comment or be unexported (golint)
    • Line 439: warning: exported function ParseWorkerRegisteredPayload should have comment or be unexported (golint)
    • Line 447: warning: exported function NewWorkerWelcomeMessage should have comment or be unexported (golint)
    • Line 459: warning: exported function ParseWorkerWelcomePayload should have comment or be unexported (golint)
    • go-astibob/index/index.go
    • Line 14: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported type Index should have comment or be unexported (golint)
    • go-astibob/abilities/audio_input/portaudio/stream.go
    • Line 10: warning: exported type Stream should have comment or be unexported (golint)
    • Line 17: warning: exported type StreamOptions should have comment or be unexported (golint)
    • Line 26: warning: exported method PortAudio.NewDefaultStream should have comment or be unexported (golint)
    • Line 45: warning: exported method Stream.BitDepth should have comment or be unexported (golint)
    • Line 47: warning: exported method Stream.MaxSilenceLevel should have comment or be unexported (golint)
    • Line 49: warning: exported method Stream.NumChannels should have comment or be unexported (golint)
    • Line 51: warning: exported method Stream.SampleRate should have comment or be unexported (golint)
    • Line 53: warning: exported method Stream.Close should have comment or be unexported (golint)
    • Line 65: warning: exported method Stream.Start should have comment or be unexported (golint)
    • Line 77: warning: exported method Stream.Stop should have comment or be unexported (golint)
    • go-astibob/abilities/audio_input/runnable.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 29: warning: exported type Stream should have comment or be unexported (golint)
    • Line 39: warning: exported type Runnable should have comment or be unexported (golint)
    • Line 49: warning: exported function NewRunnable should have comment or be unexported (golint)
    • Line 79: warning: exported method Runnable.MessageNames should have comment or be unexported (golint)
    • Line 124: warning: exported type Samples should have comment or be unexported (golint)
    • Line 291: warning: exported type Calibration should have comment or be unexported (golint)
    • go-astibob/worker/runnable.go
    • Line 12: warning: exported type Runnable should have comment or be unexported (golint)
    • Line 17: warning: exported method Worker.RegisterRunnables should have comment or be unexported (golint)
    • Line 229: warning: exported type MessageOptions should have comment or be unexported (golint)
    • Line 236: warning: exported type OnDone should have comment or be unexported (golint)
    • Line 238: warning: exported type Message should have comment or be unexported (golint)
    • Line 243: warning: exported method Worker.SendMessage should have comment or be unexported (golint)
    • go-astibob/abilities/speech_to_text/runnable.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 41: warning: exported type Parser should have comment or be unexported (golint)
    • Line 46: warning: exported type Progress should have comment or be unexported (golint)
    • Line 53: warning: exported type ProgressJSON should have comment or be unexported (golint)
    • Line 70: warning: exported type Speech should have comment or be unexported (golint)
    • Line 77: warning: exported type SpeechFile should have comment or be unexported (golint)
    • Line 82: warning: exported type Runnable should have comment or be unexported (golint)
    • Line 101: warning: exported type RunnableOptions should have comment or be unexported (golint)
    • Line 106: warning: exported function NewRunnable should have comment or be unexported (golint)
    • Line 149: warning: exported method Runnable.Init should have comment or be unexported (golint)
    • Line 187: warning: exported method Runnable.Close should have comment or be unexported (golint)
    • Line 229: warning: exported type Samples should have comment or be unexported (golint)
    • Line 238: warning: exported function NewSamplesMessage should have comment or be unexported (golint)
    • Line 330: warning: exported type Text should have comment or be unexported (golint)
    • Line 535: warning: exported type BuildReferences should have comment or be unexported (golint)
    • Line 540: warning: exported type BuildOptions should have comment or be unexported (golint)
    • Line 729: warning: exported type TrainReferences should have comment or be unexported (golint)
    • go-astibob/index/ui.go
    • Line 294: warning: exported type APIReferences should have comment or be unexported (golint)
    • Line 298: warning: exported type APIWebsocket should have comment or be unexported (golint)
    • go-astibob/operatable.go
    • Line 9: warning: exported type Operatable should have comment or be unexported (golint)
    • Line 14: warning: exported type BaseOperatable should have comment or be unexported (golint)
    • Line 21: warning: exported function NewBaseOperatable should have comment or be unexported (golint)
    • Line 30: warning: exported method BaseOperatable.Routes should have comment or be unexported (golint)
    • Line 36: warning: exported method BaseOperatable.Templates should have comment or be unexported (golint)
    • Line 42: warning: exported method BaseOperatable.AddRoute should have comment or be unexported (golint)
    • Line 56: warning: exported method BaseOperatable.AddTemplate should have comment or be unexported (golint)
    • go-astibob/abilities/speech_to_text/listenable.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type ListenableOptions should have comment or be unexported (golint)
    • Line 13: warning: exported type Listenable should have comment or be unexported (golint)
    • Line 17: warning: exported function NewListenable should have comment or be unexported (golint)
    • Line 25: warning: exported method Listenable.MessageNames should have comment or be unexported (golint)
    • Line 32: warning: exported method Listenable.OnMessage should have comment or be unexported (golint)
    • go-astibob/abilities/audio_input/portaudio/portaudio.go
    • Line 10: warning: exported type PortAudio should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: exported method PortAudio.Initialize should have comment or be unexported (golint)
    • Line 30: warning: exported method PortAudio.Close should have comment or be unexported (golint)
    • Line 41: warning: exported method PortAudio.Info should have comment or be unexported (golint)
    • go-astibob/runnable.go
    • Line 17: warning: exported type Runnable should have comment or be unexported (golint)
    • Line 28: warning: exported type DispatchFunc should have comment or be unexported (golint)
    • Line 30: warning: exported type BaseRunnableOptions should have comment or be unexported (golint)
    • Line 37: warning: exported type BaseRunnable should have comment or be unexported (golint)
    • Line 50: warning: exported function NewBaseRunnable should have comment or be unexported (golint)
    • Line 60: warning: exported method BaseRunnable.Dispatch should have comment or be unexported (golint)
    • Line 66: warning: exported method BaseRunnable.Metadata should have comment or be unexported (golint)
    • Line 68: warning: exported method BaseRunnable.NewTask should have comment or be unexported (golint)
    • Line 70: warning: exported method BaseRunnable.OnMessage should have comment or be unexported (golint)
    • Line 102: warning: exported method BaseRunnable.RootCtx should have comment or be unexported (golint)
    • Line 104: warning: exported method BaseRunnable.SetDispatchFunc should have comment or be unexported (golint)
    • Line 106: warning: exported method BaseRunnable.SetRootCtx should have comment or be unexported (golint)
    • Line 108: warning: exported method BaseRunnable.SetTaskFunc should have comment or be unexported (golint)
    • Line 110: warning: exported method BaseRunnable.Status should have comment or be unexported (golint)
    • Line 112: warning: exported method BaseRunnable.Start should have comment or be unexported (golint)
    • Line 144: warning: exported method BaseRunnable.Stop should have comment or be unexported (golint)
    • go-astibob/abilities/speech_to_text/deepspeech/deepspeech.go
    • Line 27: warning: exported type DeepSpeech should have comment or be unexported (golint)
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 47: warning: exported function New should have comment or be unexported (golint)
    • Line 67: warning: exported method DeepSpeech.Init should have comment or be unexported (golint)
    • Line 76: warning: exported method DeepSpeech.Close should have comment or be unexported (golint)
    • Line 86: warning: exported method DeepSpeech.Parse should have comment or be unexported (golint)
    • Line 113: warning: exported method DeepSpeech.Train should have comment or be unexported (golint)

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!


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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!