Preparing report...

Report for github.com/grokify/go-voicebase-v3

A    Great!    Found 91 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!


golint2%

Golint is a linter for Go source code.

    • go-voicebase-v3/vocabulary.go
    • Line 24: warning: exported type Vocabulary should have comment or be unexported (golint)
    • Line 30: warning: exported method Vocabulary.ToVbVocabulary should have comment or be unexported (golint)
    • go-voicebase-v3/client/media_api.go
    • Line 30: warning: exported type MediaApiService should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method MediaApiService.DeleteMediaById should be of the form "DeleteMediaById ..." (golint)
    • Line 102: warning: comment on exported method MediaApiService.GetMediaById should be of the form "GetMediaById ..." (golint)
    • Line 182: warning: comment on exported method MediaApiService.GetMetadataById should be of the form "GetMetadataById ..." (golint)
    • Line 257: warning: comment on exported method MediaApiService.GetProgressById should be of the form "GetProgressById ..." (golint)
    • Line 332: warning: comment on exported method MediaApiService.GetStreamByMediaIdAndName should be of the form "GetStreamByMediaIdAndName ..." (golint)
    • Line 409: warning: comment on exported method MediaApiService.GetStreamsById should be of the form "GetStreamsById ..." (golint)
    • Line 484: warning: comment on exported method MediaApiService.GetSubtitleDfxpById should be of the form "GetSubtitleDfxpById ..." (golint)
    • Line 559: warning: comment on exported method MediaApiService.GetSubtitleWebVttById should be of the form "GetSubtitleWebVttById ..." (golint)
    • Line 634: warning: comment on exported method MediaApiService.GetSubtitlesById should be of the form "GetSubtitlesById ..." (golint)
    • Line 709: warning: comment on exported method MediaApiService.GetTextById should be of the form "GetTextById ..." (golint)
    • Line 784: warning: comment on exported method MediaApiService.GetTranscript should be of the form "GetTranscript ..." (golint)
    • Line 864: warning: comment on exported method MediaApiService.MediaQuery should be of the form "MediaQuery ..." (golint)
    • Line 999: warning: comment on exported method MediaApiService.PostMedia should be of the form "PostMedia ..." (golint)
    • Line 1113: warning: comment on exported method MediaApiService.PostMediaById should be of the form "PostMediaById ..." (golint)
    • Line 1211: warning: comment on exported method MediaApiService.SetMetadataById should be of the form "SetMetadataById ..." (golint)
    • go-voicebase-v3/client/configuration.go
    • Line 53: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 62: warning: exported function NewConfiguration should have comment or be unexported (golint)
    • Line 71: warning: exported method Configuration.AddDefaultHeader should have comment or be unexported (golint)
    • go-voicebase-v3/clientutil.go
    • Line 9: warning: exported const ApiUrlV3Media should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported function NewApiClientToken should have comment or be unexported (golint)
    • go-voicebase-v3/client/definition_api.go
    • Line 28: warning: exported type DefinitionApiService should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method DefinitionApiService.CreateKeywordSpottingGroup should be of the form "CreateKeywordSpottingGroup ..." (golint)
    • Line 108: warning: comment on exported method DefinitionApiService.CreateVocabulary should be of the form "CreateVocabulary ..." (golint)
    • Line 186: warning: comment on exported method DefinitionApiService.DeleteKeywordSpottingGroupById should be of the form "DeleteKeywordSpottingGroupById ..." (golint)
    • Line 256: warning: comment on exported method DefinitionApiService.DeleteVocabularyById should be of the form "DeleteVocabularyById ..." (golint)
    • Line 326: warning: comment on exported method DefinitionApiService.GetClassifier should be of the form "GetClassifier ..." (golint)
    • Line 401: warning: comment on exported method DefinitionApiService.GetClassifiers should be of the form "GetClassifiers ..." (golint)
    • Line 474: warning: comment on exported method DefinitionApiService.GetDetector should be of the form "GetDetector ..." (golint)
    • Line 549: warning: comment on exported method DefinitionApiService.GetDetectors should be of the form "GetDetectors ..." (golint)
    • Line 622: warning: comment on exported method DefinitionApiService.GetKeywordSpottingGroupById should be of the form "GetKeywordSpottingGroupById ..." (golint)
    • Line 697: warning: comment on exported method DefinitionApiService.GetKeywordSpottingGroups should be of the form "GetKeywordSpottingGroups ..." (golint)
    • Line 770: warning: comment on exported method DefinitionApiService.GetSearchableFields should be of the form "GetSearchableFields ..." (golint)
    • Line 843: warning: comment on exported method DefinitionApiService.GetVocabularies should be of the form "GetVocabularies ..." (golint)
    • Line 916: warning: comment on exported method DefinitionApiService.GetVocabularyById should be of the form "GetVocabularyById ..." (golint)
    • Line 991: warning: comment on exported method DefinitionApiService.SetSearchableFields should be of the form "SetSearchableFields ..." (golint)
    • go-voicebase-v3/client/key_management_api.go
    • Line 28: warning: exported type KeyManagementApiService should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method KeyManagementApiService.CreateKey should be of the form "CreateKey ..." (golint)
    • Line 106: warning: comment on exported method KeyManagementApiService.DeleteKeyById should be of the form "DeleteKeyById ..." (golint)
    • Line 176: warning: comment on exported method KeyManagementApiService.GetKeyById should be of the form "GetKeyById ..." (golint)
    • Line 251: warning: comment on exported method KeyManagementApiService.GetKeys should be of the form "GetKeys ..." (golint)
    • go-voicebase-v3/client/api_response.go
    • Line 17: warning: exported type APIResponse should have comment or be unexported (golint)
    • Line 34: warning: exported function NewAPIResponse should have comment or be unexported (golint)
    • Line 40: warning: exported function NewAPIResponseWithError should have comment or be unexported (golint)
    • go-voicebase-v3/media.go
    • Line 12: warning: exported function UploadMedia should have comment or be unexported (golint)
    • Line 52: warning: exported type MediaConfiguration should have comment or be unexported (golint)
    • Line 58: warning: exported method MediaConfiguration.ToConfiguration should have comment or be unexported (golint)
    • Line 62: warning: exported function BuildUploadMediaConfiguration should have comment or be unexported (golint)
    • Line 75: warning: exported type UploadMediaConfiguration should have comment or be unexported (golint)
    • Line 81: warning: exported type SpeechModel should have comment or be unexported (golint)
    • Line 85: warning: exported type Transcript should have comment or be unexported (golint)
    • Line 89: warning: exported type Formatting should have comment or be unexported (golint)
    • Line 93: warning: exported type UploadMediaResponse should have comment or be unexported (golint)
    • Line 104: warning: exported type Links should have comment or be unexported (golint)
    • Line 110: warning: exported type LinkInfo should have comment or be unexported (golint)

gocyclo97%

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.

    • go-voicebase-v3/client/media_api.go
    • Line 878: warning: cyclomatic complexity 28 of function (*MediaApiService).MediaQuery() is high (> 15) (gocyclo)
    • Line 1009: warning: cyclomatic complexity 21 of function (*MediaApiService).PostMedia() is high (> 15) (gocyclo)
    • Line 1122: warning: cyclomatic complexity 17 of function (*MediaApiService).PostMediaById() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words