Preparing report...

Report for github.com/stts-se/rec

A    Great!    Found 19 issues across 26 files

Tweet

gofmt84%

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!


gocyclo84%

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.

    • rec/config/config.go
    • Line 12: warning: exported var MyConfig should have comment or be unexported (golint)
    • Line 14: warning: exported var Tensorflow should have comment or be unexported (golint)
    • Line 15: warning: exported var TensorflowCmd should have comment or be unexported (golint)
    • Line 16: warning: exported var PocketSphinx should have comment or be unexported (golint)
    • Line 17: warning: exported var PocketSphinxWithFilter should have comment or be unexported (golint)
    • Line 18: warning: exported var KaldiGStreamer should have comment or be unexported (golint)
    • Line 19: warning: exported var GoogleSpeechAPI should have comment or be unexported (golint)
    • Line 21: warning: exported type Recogniser should have comment or be unexported (golint)
    • Line 28: warning: exported type Config should have comment or be unexported (golint)
    • Line 62: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 82: warning: exported method Config.EnabledRecognisers should have comment or be unexported (golint)
    • Line 92: warning: exported method Config.PrettyString should have comment or be unexported (golint)
    • Line 112: warning: exported method Config.RecogniserNames should have comment or be unexported (golint)
    • rec/admin/admin.go
    • Line 80: warning: exported function AddUser should have comment or be unexported (golint)
    • Line 104: warning: exported function UserExists should have comment or be unexported (golint)
    • Line 114: warning: exported function DeleteUser should have comment or be unexported (golint)
    • Line 132: warning: exported function ListUsers should have comment or be unexported (golint)
    • Line 147: warning: exported function ListUtts should have comment or be unexported (golint)
    • Line 175: warning: exported function WriteSimpleUttFile should have comment or be unexported (golint)
    • Line 221: warning: exported function ReadUttFile should have comment or be unexported (golint)
    • rec/adapters/googleFromURL.go
    • Line 35: warning: exported function RunGoogleSpeechAPIWithFilter should have comment or be unexported (golint)
    • Line 49: warning: exported function RunGoogleSpeechAPIFromURL should have comment or be unexported (golint)
    • rec/adapters/pocketsphinxFromURL.go
    • Line 35: warning: exported function RunPocketsphinxWithFilterFromURL should have comment or be unexported (golint)
    • Line 49: warning: exported function RunPocketsphinxFromURL should have comment or be unexported (golint)
    • rec/structs.go
    • Line 10: warning: exported type Utterance should have comment or be unexported (golint)
    • Line 19: warning: exported type UttList should have comment or be unexported (golint)
    • Line 24: warning: exported type Audio should have comment or be unexported (golint)
    • Line 29: warning: exported type ProcessInput should have comment or be unexported (golint)
    • Line 38: warning: exported type AudioDir should have comment or be unexported (golint)
    • Line 43: warning: exported method AudioDir.Path should have comment or be unexported (golint)
    • Line 47: warning: exported type AudioRef should have comment or be unexported (golint)
    • Line 52: warning: exported function NewAudioRef should have comment or be unexported (golint)
    • Line 57: warning: exported method AudioRef.Path should have comment or be unexported (golint)
    • Line 62: warning: exported method AudioRef.FileName should have comment or be unexported (golint)
    • Line 66: warning: exported type AudioFile should have comment or be unexported (golint)
    • Line 71: warning: exported function NewAudioFile should have comment or be unexported (golint)
    • Line 76: warning: exported method AudioFile.Path should have comment or be unexported (golint)
    • Line 81: warning: exported method AudioFile.AudioDir should have comment or be unexported (golint)
    • Line 85: warning: exported type ProcessResponse should have comment or be unexported (golint)
    • Line 94: warning: exported type RecogniserResponse should have comment or be unexported (golint)
    • Line 116: warning: exported method ProcessResponse.PrettyJSONForced should have comment or be unexported (golint)
    • Line 121: warning: exported method ProcessResponse.PrettyJSON should have comment or be unexported (golint)
    • Line 134: warning: exported method ProcessResponse.Source should have comment or be unexported (golint)
    • rec/util.go
    • Line 8: warning: exported function PrettyMarshal should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign73%

IneffAssign detects ineffectual assignments in Go code.

    • rec/aggregator/aggregator.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/stts-se/rec (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/stts-se/rec/config (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/stts-se/rec (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/stts-se/rec/config (invalid package name: "") (ineffassign)
    • rec/admin/admin.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/stts-se/rec (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/stts-se/rec (invalid package name: "") (ineffassign)
    • rec/reccli/reccli.go
    • Line 16: warning: cannot find package "." in: (ineffassign)
    • Line 16: warning: could not import github.com/stts-se/rec (invalid package name: "") (ineffassign)
    • rec/adapters/gStreamerKaldiFromURL.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/stts-se/rec (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/stts-se/rec/config (invalid package name: "") (ineffassign)
    • rec/recserver/recserver.go
    • Line 19: warning: cannot find package "." in: (ineffassign)
    • Line 22: warning: cannot find package "." in: (ineffassign)
    • Line 23: warning: cannot find package "." in: (ineffassign)
    • Line 24: warning: cannot find package "." in: (ineffassign)
    • Line 19: warning: could not import github.com/google/uuid (invalid package name: "") (ineffassign)
    • Line 22: warning: could not import github.com/stts-se/rec/adapters (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/stts-se/rec/aggregator (invalid package name: "") (ineffassign)
    • Line 24: warning: could not import github.com/stts-se/rec/config (invalid package name: "") (ineffassign)
    • rec/recserver/admin.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/gorilla/mux (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/stts-se/rec/admin (invalid package name: "") (ineffassign)

misspell96%

Misspell Finds commonly misspelled English words