Preparing report...

Report for github.com/grokify/go-stackexchange

A    Great!    Found 22 issues across 24 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!


gocyclo87%

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-stackexchange/client/api_users.go
    • Line 338: warning: cyclomatic complexity 33 of function (*UsersApiService).GetUsers() is high (> 15) (gocyclo)
    • Line 473: warning: cyclomatic complexity 19 of function (*UsersApiService).GetUsersReputation() is high (> 15) (gocyclo)
    • go-stackexchange/client/api_questions.go
    • Line 57: warning: cyclomatic complexity 29 of function (*QuestionsApiService).GetFeaturedQuestions() is high (> 15) (gocyclo)
    • Line 471: warning: cyclomatic complexity 29 of function (*QuestionsApiService).GetUnansweredQuestions() is high (> 15) (gocyclo)
    • Line 333: warning: cyclomatic complexity 29 of function (*QuestionsApiService).GetQuestionsWithoutAnswers() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 29 of function (*QuestionsApiService).GetQuestions() is high (> 15) (gocyclo)

golint8%

Golint is a linter for Go source code.

    • go-stackexchange/util/questions.go
    • Line 17: warning: exported function GetQuestionsAll should have comment or be unexported (golint)
    • Line 61: warning: exported function ReadFileQuestionsResponse should have comment or be unexported (golint)
    • Line 76: warning: exported function ReadFileQuestions should have comment or be unexported (golint)
    • Line 91: warning: exported function QuestionsDedupe should have comment or be unexported (golint)
    • Line 103: warning: exported function QuestionsToDataSeries should have comment or be unexported (golint)
    • Line 117: warning: exported function QuestionsToDataSeriesSet should have comment or be unexported (golint)
    • go-stackexchange/client/configuration.go
    • Line 52: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 61: warning: exported function NewConfiguration should have comment or be unexported (golint)
    • Line 70: warning: exported method Configuration.AddDefaultHeader should have comment or be unexported (golint)
    • go-stackexchange/util/reputation_history.go
    • Line 13: warning: exported type History should have comment or be unexported (golint)
    • Line 17: warning: exported method History.ReputationChangeByDayMap should have comment or be unexported (golint)
    • Line 30: warning: exported method History.ReputationChangeByDaySlice should have comment or be unexported (golint)
    • Line 51: warning: exported method History.DateForReputation should have comment or be unexported (golint)
    • Line 61: warning: exported type DayReputation should have comment or be unexported (golint)
    • Line 67: warning: exported function GetReputationHistoryAll should have comment or be unexported (golint)
    • go-stackexchange/util/users.go
    • Line 33: warning: exported type UsersSet should have comment or be unexported (golint)
    • Line 37: warning: exported function NewUsersSet should have comment or be unexported (golint)
    • Line 41: warning: exported method UsersSet.AddUsers should have comment or be unexported (golint)
    • Line 47: warning: exported method UsersSet.AddUser should have comment or be unexported (golint)
    • Line 55: warning: exported method UsersSet.AddUsersResponseFiles should have comment or be unexported (golint)
    • Line 69: warning: exported method UsersSet.AddUsersResponseFile should have comment or be unexported (golint)
    • Line 78: warning: exported method UsersSet.AddUsersResponse should have comment or be unexported (golint)
    • Line 88: warning: exported method UsersSet.Slice should have comment or be unexported (golint)
    • Line 96: warning: exported method UsersSet.Table should have comment or be unexported (golint)
    • Line 129: warning: exported function UsersResponseToUsersSet should have comment or be unexported (golint)
    • Line 140: warning: exported function GetUsersMore should have comment or be unexported (golint)
    • go-stackexchange/client/client.go
    • Line 165: warning: comment on exported method APIClient.ChangeBasePath should be of the form "ChangeBasePath ..." (golint)
    • Line 503: warning: exported method APIClient.HTTPClient should have comment or be unexported (golint)
    • Line 503: warning: receiver name apiClient should be consistent with previous receiver name c for APIClient (golint)
    • go-stackexchange/util/constants.go
    • Line 8: warning: exported const SiteStackOverflow should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported function APIErrorBody should have comment or be unexported (golint)
    • go-stackexchange/client/api_questions.go
    • Line 25: warning: exported type QuestionsApiService should have comment or be unexported (golint)
    • Line 45: warning: exported type GetFeaturedQuestionsOpts should have comment or be unexported (golint)
    • Line 57: warning: exported method QuestionsApiService.GetFeaturedQuestions should have comment or be unexported (golint)
    • Line 183: warning: exported type GetQuestionsOpts should have comment or be unexported (golint)
    • Line 195: warning: exported method QuestionsApiService.GetQuestions should have comment or be unexported (golint)
    • Line 321: warning: exported type GetQuestionsWithoutAnswersOpts should have comment or be unexported (golint)
    • Line 333: warning: exported method QuestionsApiService.GetQuestionsWithoutAnswers should have comment or be unexported (golint)
    • Line 459: warning: exported type GetUnansweredQuestionsOpts should have comment or be unexported (golint)
    • Line 471: warning: exported method QuestionsApiService.GetUnansweredQuestions should have comment or be unexported (golint)
    • go-stackexchange/client/api_users.go
    • Line 27: warning: exported type UsersApiService should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method UsersApiService.GetMe should be of the form "GetMe ..." (golint)
    • Line 117: warning: comment on exported method UsersApiService.GetMyReputation should be of the form "GetMyReputation ..." (golint)
    • Line 213: warning: exported type GetMyReputationHistoryOpts should have comment or be unexported (golint)
    • Line 218: warning: exported method UsersApiService.GetMyReputationHistory should have comment or be unexported (golint)
    • Line 324: warning: exported type GetUsersOpts should have comment or be unexported (golint)
    • Line 338: warning: exported method UsersApiService.GetUsers should have comment or be unexported (golint)
    • Line 466: warning: exported type GetUsersReputationOpts should have comment or be unexported (golint)
    • Line 473: warning: exported method UsersApiService.GetUsersReputation should have comment or be unexported (golint)
    • Line 579: warning: exported type GetUsersReputationHistoryOpts should have comment or be unexported (golint)
    • Line 584: warning: exported method UsersApiService.GetUsersReputationHistory should have comment or be unexported (golint)
    • go-stackexchange/client/response.go
    • Line 16: warning: exported type APIResponse should have comment or be unexported (golint)
    • Line 33: warning: exported function NewAPIResponse should have comment or be unexported (golint)
    • Line 39: warning: exported function NewAPIResponseWithError should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!