Preparing report...

Report for github.com/ivzb/achievers_server

A+    Excellent!    Found 77 issues across 141 files

Tweet

gofmt96%

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!


gocyclo99%

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.


golint51%

Golint is a linter for Go source code.

    • achievers_server/app/db/profile.go
    • Line 8: warning: exported type Profiler should have comment or be unexported (golint)
    • Line 15: warning: exported type Profile should have comment or be unexported (golint)
    • Line 19: warning: exported method DB.Profile should have comment or be unexported (golint)
    • Line 25: warning: exported method Profile.Exists should have comment or be unexported (golint)
    • Line 29: warning: exported method Profile.Single should have comment or be unexported (golint)
    • Line 33: warning: exported method Profile.SingleByUserID should have comment or be unexported (golint)
    • Line 42: warning: exported method Profile.Create should have comment or be unexported (golint)
    • achievers_server/app/db/mock/reward_type.go
    • Line 3: warning: exported type RewardType should have comment or be unexported (golint)
    • Line 7: warning: exported type RewardTypeExists should have comment or be unexported (golint)
    • Line 12: warning: exported method RewardType.Exists should have comment or be unexported (golint)
    • achievers_server/app/db/mock/involvement.go
    • Line 3: warning: exported type Involvement should have comment or be unexported (golint)
    • Line 7: warning: exported type InvolvementExists should have comment or be unexported (golint)
    • Line 12: warning: exported method Involvement.Exists should have comment or be unexported (golint)
    • achievers_server/app/shared/logger/logger.go
    • Line 7: warning: exported type Loggerer should have comment or be unexported (golint)
    • Line 12: warning: exported type Logger should have comment or be unexported (golint)
    • Line 15: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 19: warning: exported method Logger.Message should have comment or be unexported (golint)
    • achievers_server/app/db/mock/user.go
    • Line 7: warning: exported type User should have comment or be unexported (golint)
    • Line 14: warning: exported type UserExists should have comment or be unexported (golint)
    • Line 19: warning: exported type UserEmailExists should have comment or be unexported (golint)
    • Line 24: warning: exported type UserCreate should have comment or be unexported (golint)
    • Line 29: warning: exported type UserAuth should have comment or be unexported (golint)
    • Line 34: warning: exported method User.Exists should have comment or be unexported (golint)
    • Line 38: warning: exported method User.EmailExists should have comment or be unexported (golint)
    • Line 42: warning: exported method User.Auth should have comment or be unexported (golint)
    • Line 46: warning: exported method User.Create should have comment or be unexported (golint)
    • achievers_server/app/controller/evidence.go
    • Line 14: warning: exported function EvidencesLast should have comment or be unexported (golint)
    • Line 39: warning: exported function EvidencesAfter should have comment or be unexported (golint)
    • Line 63: warning: exported function EvidenceSingle should have comment or be unexported (golint)
    • Line 86: warning: exported function EvidenceCreate should have comment or be unexported (golint)
    • achievers_server/app/db/achievement.go
    • Line 8: warning: exported type Achievementer should have comment or be unexported (golint)
    • Line 20: warning: exported type Achievement should have comment or be unexported (golint)
    • Line 24: warning: exported method DB.Achievement should have comment or be unexported (golint)
    • Line 30: warning: exported method Achievement.Exists should have comment or be unexported (golint)
    • Line 34: warning: exported method Achievement.Single should have comment or be unexported (golint)
    • Line 38: warning: exported method Achievement.Create should have comment or be unexported (golint)
    • Line 42: warning: exported method Achievement.LastID should have comment or be unexported (golint)
    • Line 46: warning: exported method Achievement.LastIDByQuestID should have comment or be unexported (golint)
    • Line 68: warning: exported method Achievement.After should have comment or be unexported (golint)
    • Line 72: warning: exported method Achievement.AfterByQuestID should have comment or be unexported (golint)
    • achievers_server/app/db/quest.go
    • Line 8: warning: exported type Quester should have comment or be unexported (golint)
    • Line 17: warning: exported type Quest should have comment or be unexported (golint)
    • Line 21: warning: exported method DB.Quest should have comment or be unexported (golint)
    • Line 27: warning: exported method Quest.Exists should have comment or be unexported (golint)
    • Line 31: warning: exported method Quest.Single should have comment or be unexported (golint)
    • Line 35: warning: exported method Quest.Create should have comment or be unexported (golint)
    • Line 39: warning: exported method Quest.LastID should have comment or be unexported (golint)
    • Line 43: warning: exported method Quest.After should have comment or be unexported (golint)
    • achievers_server/app/db/evidence.go
    • Line 8: warning: exported type Evidencer should have comment or be unexported (golint)
    • Line 17: warning: exported type Evidence should have comment or be unexported (golint)
    • Line 21: warning: exported method DB.Evidence should have comment or be unexported (golint)
    • Line 27: warning: exported method Evidence.Exists should have comment or be unexported (golint)
    • Line 31: warning: exported method Evidence.Single should have comment or be unexported (golint)
    • Line 35: warning: exported method Evidence.Create should have comment or be unexported (golint)
    • Line 39: warning: exported method Evidence.LastID should have comment or be unexported (golint)
    • Line 43: warning: exported method Evidence.After should have comment or be unexported (golint)
    • achievers_server/app/db/involvement.go
    • Line 8: warning: exported type Involvementer should have comment or be unexported (golint)
    • Line 12: warning: exported type Involvement should have comment or be unexported (golint)
    • Line 16: warning: exported method DB.Involvement should have comment or be unexported (golint)
    • Line 22: warning: exported method Involvement.Exists should have comment or be unexported (golint)
    • achievers_server/app/controller/quest.go
    • Line 14: warning: exported function QuestsLast should have comment or be unexported (golint)
    • Line 39: warning: exported function QuestsAfter should have comment or be unexported (golint)
    • Line 63: warning: exported function QuestSingle should have comment or be unexported (golint)
    • Line 87: warning: exported function QuestCreate should have comment or be unexported (golint)
    • achievers_server/app/db/reward.go
    • Line 8: warning: exported type Rewarder should have comment or be unexported (golint)
    • Line 17: warning: exported type Reward should have comment or be unexported (golint)
    • Line 21: warning: exported method DB.Reward should have comment or be unexported (golint)
    • Line 27: warning: exported method Reward.Exists should have comment or be unexported (golint)
    • Line 31: warning: exported method Reward.Single should have comment or be unexported (golint)
    • Line 35: warning: exported method Reward.Create should have comment or be unexported (golint)
    • Line 39: warning: exported method Reward.LastID should have comment or be unexported (golint)
    • Line 43: warning: exported method Reward.After should have comment or be unexported (golint)
    • achievers_server/app/db/mock/evidence.go
    • Line 3: warning: exported type Evidence should have comment or be unexported (golint)
    • Line 11: warning: exported type EvidenceExists should have comment or be unexported (golint)
    • Line 16: warning: exported type EvidenceSingle should have comment or be unexported (golint)
    • Line 21: warning: exported type EvidencesLastID should have comment or be unexported (golint)
    • Line 26: warning: exported type EvidencesAfter should have comment or be unexported (golint)
    • Line 31: warning: exported type EvidenceCreate should have comment or be unexported (golint)
    • Line 36: warning: exported method Evidence.Exists should have comment or be unexported (golint)
    • Line 40: warning: exported method Evidence.Single should have comment or be unexported (golint)
    • Line 44: warning: exported method Evidence.Create should have comment or be unexported (golint)
    • Line 48: warning: exported method Evidence.LastID should have comment or be unexported (golint)
    • Line 52: warning: exported method Evidence.After should have comment or be unexported (golint)
    • achievers_server/app/db/db.go
    • Line 19: warning: exported var ErrNoRows should have comment or be unexported (golint)
    • Line 41: warning: exported type Singler should have comment or be unexported (golint)
    • Line 45: warning: exported type Creator should have comment or be unexported (golint)
    • Line 49: warning: exported type Exister should have comment or be unexported (golint)
    • Line 53: warning: exported type ExisterMultiple should have comment or be unexported (golint)
    • Line 57: warning: exported type Laster should have comment or be unexported (golint)
    • Line 61: warning: exported type Afterer should have comment or be unexported (golint)
    • Line 75: warning: exported type Context should have comment or be unexported (golint)
    • achievers_server/app/db/reward_type.go
    • Line 8: warning: exported type RewardTyper should have comment or be unexported (golint)
    • Line 12: warning: exported type RewardType should have comment or be unexported (golint)
    • Line 16: warning: exported method DB.RewardType should have comment or be unexported (golint)
    • Line 22: warning: exported method RewardType.Exists should have comment or be unexported (golint)
    • achievers_server/app/shared/token/token.go
    • Line 15: warning: exported type Info should have comment or be unexported (golint)
    • Line 20: warning: exported method Info.EnsureExists should have comment or be unexported (golint)
    • Line 38: warning: exported type Tokener should have comment or be unexported (golint)
    • Line 43: warning: exported type Token should have comment or be unexported (golint)
    • Line 47: warning: exported function NewTokener should have comment or be unexported (golint)
    • Line 77: warning: exported method Token.Encrypt should have comment or be unexported (golint)
    • Line 89: warning: exported method Token.Decrypt should have comment or be unexported (golint)
    • achievers_server/app/controller/achievement.go
    • Line 14: warning: exported function AchievementCreate should have comment or be unexported (golint)
    • Line 57: warning: exported function AchievementSingle should have comment or be unexported (golint)
    • Line 81: warning: exported function AchievementsLast should have comment or be unexported (golint)
    • Line 106: warning: exported function AchievementsAfter should have comment or be unexported (golint)
    • Line 130: warning: exported function AchievementsByQuestIDLast should have comment or be unexported (golint)
    • Line 161: warning: exported function AchievementsByQuestIDAfter should have comment or be unexported (golint)
    • achievers_server/app/db/mock/db.go
    • Line 5: warning: exported type DB should have comment or be unexported (golint)
    • Line 21: warning: exported type UUID should have comment or be unexported (golint)
    • Line 26: warning: exported method DB.UUID should have comment or be unexported (golint)
    • Line 30: warning: exported method DB.Achievement should have comment or be unexported (golint)
    • Line 34: warning: exported method DB.Evidence should have comment or be unexported (golint)
    • Line 38: warning: exported method DB.Involvement should have comment or be unexported (golint)
    • Line 42: warning: exported method DB.MultimediaType should have comment or be unexported (golint)
    • Line 46: warning: exported method DB.Profile should have comment or be unexported (golint)
    • Line 50: warning: exported method DB.Quest should have comment or be unexported (golint)
    • Line 54: warning: exported method DB.QuestAchievement should have comment or be unexported (golint)
    • Line 58: warning: exported method DB.QuestType should have comment or be unexported (golint)
    • Line 62: warning: exported method DB.Reward should have comment or be unexported (golint)
    • Line 66: warning: exported method DB.RewardType should have comment or be unexported (golint)
    • Line 70: warning: exported method DB.User should have comment or be unexported (golint)
    • achievers_server/app/db/mock/reward.go
    • Line 3: warning: exported type Reward should have comment or be unexported (golint)
    • Line 11: warning: exported type RewardExists should have comment or be unexported (golint)
    • Line 16: warning: exported type RewardSingle should have comment or be unexported (golint)
    • Line 21: warning: exported type RewardsLastID should have comment or be unexported (golint)
    • Line 26: warning: exported type RewardsAfter should have comment or be unexported (golint)
    • Line 31: warning: exported type RewardCreate should have comment or be unexported (golint)
    • Line 36: warning: exported method Reward.Exists should have comment or be unexported (golint)
    • Line 40: warning: exported method Reward.Single should have comment or be unexported (golint)
    • Line 44: warning: exported method Reward.Create should have comment or be unexported (golint)
    • Line 48: warning: exported method Reward.LastID should have comment or be unexported (golint)
    • Line 52: warning: exported method Reward.After should have comment or be unexported (golint)
    • achievers_server/app/db/mock/profile.go
    • Line 3: warning: exported type Profile should have comment or be unexported (golint)
    • Line 10: warning: exported type ProfileExists should have comment or be unexported (golint)
    • Line 15: warning: exported type ProfileSingle should have comment or be unexported (golint)
    • Line 20: warning: exported type ProfileSingleByUserID should have comment or be unexported (golint)
    • Line 25: warning: exported type ProfileCreate should have comment or be unexported (golint)
    • Line 30: warning: exported method Profile.Exists should have comment or be unexported (golint)
    • Line 34: warning: exported method Profile.Single should have comment or be unexported (golint)
    • Line 38: warning: exported method Profile.SingleByUserID should have comment or be unexported (golint)
    • Line 42: warning: exported method Profile.Create should have comment or be unexported (golint)
    • achievers_server/app/db/mock/quest_type.go
    • Line 3: warning: exported type QuestType should have comment or be unexported (golint)
    • Line 7: warning: exported type QuestTypeExists should have comment or be unexported (golint)
    • Line 12: warning: exported method QuestType.Exists should have comment or be unexported (golint)
    • achievers_server/app/shared/uuid/uuid.go
    • Line 8: warning: exported type UUIDer should have comment or be unexported (golint)
    • Line 12: warning: exported type UUID should have comment or be unexported (golint)
    • Line 15: warning: exported function NewUUID should have comment or be unexported (golint)
    • Line 19: warning: exported method UUID.Generate should have comment or be unexported (golint)
    • achievers_server/app/db/mock/achievement.go
    • Line 3: warning: exported type Achievement should have comment or be unexported (golint)
    • Line 13: warning: exported type AchievementExists should have comment or be unexported (golint)
    • Line 18: warning: exported type AchievementSingle should have comment or be unexported (golint)
    • Line 23: warning: exported type AchievementsLastID should have comment or be unexported (golint)
    • Line 28: warning: exported type AchievementsLastIDByQuestID should have comment or be unexported (golint)
    • Line 33: warning: exported type AchievementsAfter should have comment or be unexported (golint)
    • Line 38: warning: exported type AchievementsAfterByQuestID should have comment or be unexported (golint)
    • Line 43: warning: exported type AchievementCreate should have comment or be unexported (golint)
    • Line 48: warning: exported method Achievement.Exists should have comment or be unexported (golint)
    • Line 52: warning: exported method Achievement.Single should have comment or be unexported (golint)
    • Line 56: warning: exported method Achievement.Create should have comment or be unexported (golint)
    • Line 60: warning: exported method Achievement.LastID should have comment or be unexported (golint)
    • Line 64: warning: exported method Achievement.LastIDByQuestID should have comment or be unexported (golint)
    • Line 68: warning: exported method Achievement.After should have comment or be unexported (golint)
    • Line 72: warning: exported method Achievement.AfterByQuestID should have comment or be unexported (golint)
    • achievers_server/app/db/user.go
    • Line 9: warning: exported type Userer should have comment or be unexported (golint)
    • Line 16: warning: exported type User should have comment or be unexported (golint)
    • Line 20: warning: exported method DB.User should have comment or be unexported (golint)
    • Line 26: warning: exported method User.Exists should have comment or be unexported (golint)
    • Line 30: warning: exported method User.EmailExists should have comment or be unexported (golint)
    • Line 34: warning: exported method User.Auth should have comment or be unexported (golint)
    • Line 54: warning: exported method User.Create should have comment or be unexported (golint)
    • achievers_server/app/db/mock/quest.go
    • Line 3: warning: exported type Quest should have comment or be unexported (golint)
    • Line 11: warning: exported type QuestExists should have comment or be unexported (golint)
    • Line 16: warning: exported type QuestSingle should have comment or be unexported (golint)
    • Line 21: warning: exported type QuestCreate should have comment or be unexported (golint)
    • Line 26: warning: exported type QuestsLastID should have comment or be unexported (golint)
    • Line 31: warning: exported type QuestsAfter should have comment or be unexported (golint)
    • Line 36: warning: exported method Quest.Exists should have comment or be unexported (golint)
    • Line 40: warning: exported method Quest.Single should have comment or be unexported (golint)
    • Line 44: warning: exported method Quest.Create should have comment or be unexported (golint)
    • Line 48: warning: exported method Quest.LastID should have comment or be unexported (golint)
    • Line 52: warning: exported method Quest.After should have comment or be unexported (golint)
    • achievers_server/app/db/quest_achievement.go
    • Line 11: warning: exported type QuestAchievementer should have comment or be unexported (golint)
    • Line 16: warning: exported type QuestAchievement should have comment or be unexported (golint)
    • Line 20: warning: exported method DB.QuestAchievement should have comment or be unexported (golint)
    • Line 26: warning: exported method QuestAchievement.Exists should have comment or be unexported (golint)
    • Line 41: warning: exported method QuestAchievement.Create should have comment or be unexported (golint)
    • achievers_server/app/db/multimedia_type.go
    • Line 8: warning: exported type MultimediaTyper should have comment or be unexported (golint)
    • Line 12: warning: exported type MultimediaType should have comment or be unexported (golint)
    • Line 16: warning: exported method DB.MultimediaType should have comment or be unexported (golint)
    • Line 22: warning: exported method MultimediaType.Exists should have comment or be unexported (golint)
    • achievers_server/app/db/quest_type.go
    • Line 8: warning: exported type QuestTyper should have comment or be unexported (golint)
    • Line 12: warning: exported type QuestType should have comment or be unexported (golint)
    • Line 16: warning: exported method DB.QuestType should have comment or be unexported (golint)
    • Line 22: warning: exported method QuestType.Exists should have comment or be unexported (golint)
    • achievers_server/app/controller/reward.go
    • Line 14: warning: exported function RewardsLast should have comment or be unexported (golint)
    • Line 39: warning: exported function RewardsAfter should have comment or be unexported (golint)
    • Line 63: warning: exported function RewardSingle should have comment or be unexported (golint)
    • Line 87: warning: exported function RewardCreate should have comment or be unexported (golint)
    • achievers_server/app/shared/form/form.go
    • Line 26: warning: comment on exported function ModelValue should be of the form "ModelValue ..." (golint)
    • Line 48: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 65: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • achievers_server/app/db/mock/multimedia_type.go
    • Line 3: warning: exported type MultimediaType should have comment or be unexported (golint)
    • Line 7: warning: exported type MultimediaTypeExists should have comment or be unexported (golint)
    • Line 12: warning: exported method MultimediaType.Exists should have comment or be unexported (golint)
    • achievers_server/app/db/mock/quest_achievement.go
    • Line 3: warning: exported type QuestAchievement should have comment or be unexported (golint)
    • Line 8: warning: exported type QuestAchievementExists should have comment or be unexported (golint)
    • Line 13: warning: exported type QuestAchievementCreate should have comment or be unexported (golint)
    • Line 18: warning: exported method QuestAchievement.Exists should have comment or be unexported (golint)
    • Line 22: warning: exported method QuestAchievement.Create should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words

    • achievers_server/app/shared/conv/conv_test.go
    • Line 58: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 90: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 122: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 154: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 186: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 218: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 250: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 282: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 314: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 346: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 378: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 410: warning: "convertion" is a misspelling of "conversion" (misspell)
    • Line 442: warning: "convertion" is a misspelling of "conversion" (misspell)