Preparing report...

Report for github.com/koooge/redash-sdk-go

A+    Excellent!    Found 15 issues across 40 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!


golint62%

Golint is a linter for Go source code.

    • redash-sdk-go/redash/dashboards.go
    • Line 7: warning: exported type ListDashboardsInput should have comment or be unexported (golint)
    • Line 10: warning: exported type ListDashboardsOutput should have comment or be unexported (golint)
    • Line 15: warning: exported method Client.ListDashboards should have comment or be unexported (golint)
    • Line 28: warning: exported type GetDashboardInput should have comment or be unexported (golint)
    • Line 32: warning: exported type GetDashboardOutput should have comment or be unexported (golint)
    • Line 37: warning: exported method Client.GetDashboard should have comment or be unexported (golint)
    • Line 50: warning: exported type GetPublicDashboardInput should have comment or be unexported (golint)
    • Line 54: warning: exported type GetPublicDashboardOutput should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.GetPublicDashboard should have comment or be unexported (golint)
    • Line 72: warning: exported type GetDashboardTagsInput should have comment or be unexported (golint)
    • Line 75: warning: exported type GetDashboardTagsOutput should have comment or be unexported (golint)
    • Line 80: warning: exported method Client.GetDashboardTags should have comment or be unexported (golint)
    • redash-sdk-go/redash/destinations.go
    • Line 9: warning: comment on exported type ListDestinationsInput should be of the form "ListDestinationsInput ..." (with optional leading article) (golint)
    • Line 13: warning: exported type ListDestinationsOutput should have comment or be unexported (golint)
    • Line 18: warning: exported method Client.ListDestinations should have comment or be unexported (golint)
    • Line 34: warning: comment on exported type CreateDestinationInput should be of the form "CreateDestinationInput ..." (with optional leading article) (golint)
    • Line 41: warning: exported type CreateDestinationInputOptions should have comment or be unexported (golint)
    • Line 45: warning: exported type CreateDestinationOutput should have comment or be unexported (golint)
    • Line 51: warning: exported method Client.CreateDestination should have comment or be unexported (golint)
    • Line 78: warning: comment on exported type ListDestinationsTypesInput should be of the form "ListDestinationsTypesInput ..." (with optional leading article) (golint)
    • Line 82: warning: exported type ListDestinationsTypesOutput should have comment or be unexported (golint)
    • Line 87: warning: exported method Client.ListDestinationsTypes should have comment or be unexported (golint)
    • Line 103: warning: comment on exported type GetDestinationInput should be of the form "GetDestinationInput ..." (with optional leading article) (golint)
    • Line 108: warning: exported type GetDestinationOutput should have comment or be unexported (golint)
    • Line 113: warning: exported method Client.GetDestination should have comment or be unexported (golint)
    • Line 129: warning: comment on exported type UpdateDestinationInput should be of the form "UpdateDestinationInput ..." (with optional leading article) (golint)
    • Line 137: warning: exported type UpdateDestinationInputOptions should have comment or be unexported (golint)
    • Line 141: warning: exported type UpdateDestinationOutput should have comment or be unexported (golint)
    • Line 146: warning: exported method Client.UpdateDestination should have comment or be unexported (golint)
    • Line 167: warning: comment on exported type DeleteDestinationInput should be of the form "DeleteDestinationInput ..." (with optional leading article) (golint)
    • Line 172: warning: exported type DeleteDestinationOutput should have comment or be unexported (golint)
    • Line 177: warning: exported method Client.DeleteDestination should have comment or be unexported (golint)
    • redash-sdk-go/redash/events.go
    • Line 7: warning: exported type GetEventsInput should have comment or be unexported (golint)
    • Line 10: warning: exported type GetEventsOutput should have comment or be unexported (golint)
    • Line 15: warning: exported method Client.GetEvents should have comment or be unexported (golint)
    • redash-sdk-go/redash/favorites.go
    • Line 7: warning: exported type ListQueryFavoritesInput should have comment or be unexported (golint)
    • Line 10: warning: exported type ListQueryFavoritesOutput should have comment or be unexported (golint)
    • Line 15: warning: exported method Client.ListQueryFavorites should have comment or be unexported (golint)
    • Line 28: warning: exported type ListDashboardFavoritesInput should have comment or be unexported (golint)
    • Line 31: warning: exported type ListDashboardFavoritesOutput should have comment or be unexported (golint)
    • Line 36: warning: exported method Client.ListDashboardFavorites should have comment or be unexported (golint)
    • redash-sdk-go/redash/users.go
    • Line 10: warning: comment on exported type ListUsersInput should be of the form "ListUsersInput ..." (with optional leading article) (golint)
    • Line 19: warning: exported type ListUsersOutput should have comment or be unexported (golint)
    • Line 24: warning: exported method Client.ListUsers should have comment or be unexported (golint)
    • Line 62: warning: comment on exported type CreateUserInput should be of the form "CreateUserInput ..." (with optional leading article) (golint)
    • Line 68: warning: exported type CreateUserOutput should have comment or be unexported (golint)
    • Line 74: warning: exported method Client.CreateUser should have comment or be unexported (golint)
    • Line 101: warning: comment on exported type GetUserInput should be of the form "GetUserInput ..." (with optional leading article) (golint)
    • Line 106: warning: exported type GetUserOutput should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.GetUser should have comment or be unexported (golint)
    • Line 127: warning: comment on exported type UpdateUserInput should be of the form "UpdateUserInput ..." (with optional leading article) (golint)
    • Line 134: warning: exported type UpdateUserOutput should have comment or be unexported (golint)
    • Line 139: warning: exported method Client.UpdateUser should have comment or be unexported (golint)
    • redash-sdk-go/redash/alerts.go
    • Line 8: warning: exported type ListAlertsInput should have comment or be unexported (golint)
    • Line 11: warning: exported type ListAlertsOutput should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.ListAlerts should have comment or be unexported (golint)
    • Line 29: warning: exported type GetAlertInput should have comment or be unexported (golint)
    • Line 33: warning: exported type GetAlertOutput should have comment or be unexported (golint)
    • Line 38: warning: exported method Client.GetAlert should have comment or be unexported (golint)
    • Line 51: warning: exported type ListAlertSubscriptionsInput should have comment or be unexported (golint)
    • Line 55: warning: exported type ListAlertSubscriptionsOutput should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.ListAlertSubscriptions should have comment or be unexported (golint)
    • redash-sdk-go/redash/query_results.go
    • Line 8: warning: exported type GetQueryResultInput should have comment or be unexported (golint)
    • Line 12: warning: exported type GetQueryResultOutput should have comment or be unexported (golint)
    • Line 17: warning: exported method Client.GetQueryResult should have comment or be unexported (golint)
    • Line 30: warning: exported type GetJobInput should have comment or be unexported (golint)
    • Line 34: warning: exported type GetJobOutput should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.GetJob should have comment or be unexported (golint)
    • redash-sdk-go/redash/settings.go
    • Line 7: warning: exported type GetOrganizationSettingsInput should have comment or be unexported (golint)
    • Line 10: warning: exported type GetOrganizationSettingsOutput should have comment or be unexported (golint)
    • Line 15: warning: exported method Client.GetOrganizationSettings should have comment or be unexported (golint)
    • redash-sdk-go/redash/client.go
    • Line 10: warning: exported type Client should have comment or be unexported (golint)
    • Line 14: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 19: warning: exported method Client.SetConfig should have comment or be unexported (golint)
    • redash-sdk-go/redash/groups.go
    • Line 8: warning: exported type ListGroupsInput should have comment or be unexported (golint)
    • Line 11: warning: exported type ListGroupsOutput should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.ListGroups should have comment or be unexported (golint)
    • Line 29: warning: exported type GetGroupInput should have comment or be unexported (golint)
    • Line 33: warning: exported type GetGroupOutput should have comment or be unexported (golint)
    • Line 38: warning: exported method Client.GetGroup should have comment or be unexported (golint)
    • Line 51: warning: exported type ListGroupMembersInput should have comment or be unexported (golint)
    • Line 55: warning: exported type ListGroupMembersOutput should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.ListGroupMembers should have comment or be unexported (golint)
    • redash-sdk-go/redash/queries.go
    • Line 9: warning: exported type ListQueriesInput should have comment or be unexported (golint)
    • Line 12: warning: exported type ListQueriesOutput should have comment or be unexported (golint)
    • Line 17: warning: exported method Client.ListQueries should have comment or be unexported (golint)
    • Line 30: warning: exported type GetQueryInput should have comment or be unexported (golint)
    • Line 34: warning: exported type GetQueryOutput should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.GetQuery should have comment or be unexported (golint)
    • Line 52: warning: exported type GetQuerySearchInput should have comment or be unexported (golint)
    • Line 55: warning: exported type GetQuerySearchOutput should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.GetQuerySearch should have comment or be unexported (golint)
    • Line 73: warning: exported type GetQueryRecentInput should have comment or be unexported (golint)
    • Line 76: warning: exported type GetQueryRecentOutput should have comment or be unexported (golint)
    • Line 81: warning: exported method Client.GetQueryRecent should have comment or be unexported (golint)
    • Line 94: warning: exported type GetMyQueriesInput should have comment or be unexported (golint)
    • Line 97: warning: exported type GetMyQueriesOutput should have comment or be unexported (golint)
    • Line 102: warning: exported method Client.GetMyQueries should have comment or be unexported (golint)
    • Line 115: warning: exported type GetQueryTagsInput should have comment or be unexported (golint)
    • Line 118: warning: exported type GetQueryTagsOutput should have comment or be unexported (golint)
    • Line 123: warning: exported method Client.GetQueryTags should have comment or be unexported (golint)
    • Line 136: warning: exported type CreateQueryInput should have comment or be unexported (golint)
    • Line 144: warning: exported type CreateQueryOutput should have comment or be unexported (golint)
    • Line 150: warning: exported method Client.CreateQuery should have comment or be unexported (golint)
    • Line 176: warning: exported type ModifyQueryInput should have comment or be unexported (golint)
    • Line 185: warning: exported type ModifyQueryOutput should have comment or be unexported (golint)
    • Line 190: warning: exported method Client.ModifyQuery should have comment or be unexported (golint)
    • Line 208: warning: exported type DeleteQueryInput should have comment or be unexported (golint)
    • Line 212: warning: exported type DeleteQueryOutput should have comment or be unexported (golint)
    • Line 217: warning: exported method Client.DeleteQuery should have comment or be unexported (golint)
    • redash-sdk-go/redash/query_snippets.go
    • Line 8: warning: exported type ListQuerySnippetsInput should have comment or be unexported (golint)
    • Line 11: warning: exported type ListQuerySnippetsOutput should have comment or be unexported (golint)
    • Line 16: warning: exported method Client.ListQuerySnippets should have comment or be unexported (golint)
    • Line 29: warning: exported type GetQuerySnippetInput should have comment or be unexported (golint)
    • Line 33: warning: exported type GetQuerySnippetOutput should have comment or be unexported (golint)
    • Line 38: warning: exported method Client.GetQuerySnippet should have comment or be unexported (golint)
    • redash-sdk-go/redash/data_sources.go
    • Line 9: warning: comment on exported type ListDataSourcesInput should be of the form "ListDataSourcesInput ..." (with optional leading article) (golint)
    • Line 13: warning: exported type ListDataSourcesOutput should have comment or be unexported (golint)
    • Line 18: warning: exported method Client.ListDataSources should have comment or be unexported (golint)
    • Line 34: warning: comment on exported type CreateDataSourceInput should be of the form "CreateDataSourceInput ..." (with optional leading article) (golint)
    • Line 41: warning: exported type CreateDataSourceInputOptions should have comment or be unexported (golint)
    • Line 45: warning: exported type CreateDataSourceOutput should have comment or be unexported (golint)
    • Line 51: warning: exported method Client.CreateDataSource should have comment or be unexported (golint)
    • Line 77: warning: comment on exported type ListDataSourcesTypesInput should be of the form "ListDataSourcesTypesInput ..." (with optional leading article) (golint)
    • Line 81: warning: exported type ListDataSourcesTypesOutput should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.ListDataSourcesTypes should have comment or be unexported (golint)
    • Line 102: warning: comment on exported type GetDataSourceInput should be of the form "GetDataSourceInput ..." (with optional leading article) (golint)
    • Line 107: warning: exported type GetDataSourceOutput should have comment or be unexported (golint)
    • Line 112: warning: exported method Client.GetDataSource should have comment or be unexported (golint)
    • Line 128: warning: comment on exported type UpdateDataSourceInput should be of the form "UpdateDataSourceInput ..." (with optional leading article) (golint)
    • Line 136: warning: exported type UpdateDataSourceInputOptions should have comment or be unexported (golint)
    • Line 140: warning: exported type UpdateDataSourceOutput should have comment or be unexported (golint)
    • Line 145: warning: exported method Client.UpdateDataSource should have comment or be unexported (golint)
    • Line 166: warning: comment on exported type DeleteDataSourceInput should be of the form "DeleteDataSourceInput ..." (with optional leading article) (golint)
    • Line 171: warning: exported type DeleteDataSourceOutput should have comment or be unexported (golint)
    • Line 176: warning: exported method Client.DeleteDataSource should have comment or be unexported (golint)
    • Line 192: warning: comment on exported type GetDataSourceSchemaInput should be of the form "GetDataSourceSchemaInput ..." (with optional leading article) (golint)
    • Line 197: warning: exported type GetDataSourceSchemaOutput should have comment or be unexported (golint)
    • Line 202: warning: exported method Client.GetDataSourceSchema should have comment or be unexported (golint)
    • Line 218: warning: comment on exported type PauseDataSourceInput should be of the form "PauseDataSourceInput ..." (with optional leading article) (golint)
    • Line 224: warning: exported type PauseDataSourceOutput should have comment or be unexported (golint)
    • Line 229: warning: exported method Client.PauseDataSource should have comment or be unexported (golint)
    • Line 250: warning: comment on exported type UnpauseDataSourceInput should be of the form "UnpauseDataSourceInput ..." (with optional leading article) (golint)
    • Line 255: warning: exported type UnpauseDataSourceOutput should have comment or be unexported (golint)
    • Line 260: warning: exported method Client.UnpauseDataSource should have comment or be unexported (golint)
    • Line 276: warning: comment on exported type TestDataSourceInput should be of the form "TestDataSourceInput ..." (with optional leading article) (golint)
    • Line 281: warning: exported type TestDataSourceOutput should have comment or be unexported (golint)
    • Line 286: warning: exported method Client.TestDataSource should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!