Preparing report...

Report for github.com/mkzilla/koala

A    Great!    Found 48 issues across 49 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!


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.


golint2%

Golint is a linter for Go source code.

    • koala/pkg/types/errors.go
    • Line 12: warning: error var BadRequestParameter should have name of the form ErrFoo (golint)
    • Line 12: warning: exported var BadRequestParameter should have comment or be unexported (golint)
    • Line 13: warning: error var BadUserPassword should have name of the form ErrFoo (golint)
    • Line 14: warning: error var FailedToGetDataFromDB should have name of the form ErrFoo (golint)
    • Line 15: warning: error var BadSystemRSAService should have name of the form ErrFoo (golint)
    • Line 16: warning: error var NoSuchUser should have name of the form ErrFoo (golint)
    • Line 17: warning: error var InBlackList should have name of the form ErrFoo (golint)
    • Line 18: warning: error var NoSuchTask should have name of the form ErrFoo (golint)
    • Line 19: warning: error var NoSuchObjective should have name of the form ErrFoo (golint)
    • Line 20: warning: error var OAuthV2Error should have name of the form ErrFoo (golint)
    • Line 21: warning: error var NoSuchNotification should have name of the form ErrFoo (golint)
    • Line 22: warning: error var GroupLimit should have name of the form ErrFoo (golint)
    • Line 23: warning: error var FailedToInsertDataToDatabase should have name of the form ErrFoo (golint)
    • Line 24: warning: error var FailedToSendEmail should have name of the form ErrFoo (golint)
    • Line 27: warning: exported function HandleError should have comment or be unexported (golint)
    • koala/pkg/types/user.go
    • Line 9: warning: exported type Common should have comment or be unexported (golint)
    • Line 15: warning: exported type User should have comment or be unexported (golint)
    • Line 32: warning: exported function GetCountByUsername should have comment or be unexported (golint)
    • Line 37: warning: exported type Password should have comment or be unexported (golint)
    • koala/pkg/api/plan/plan.go
    • Line 12: warning: exported function GetRecent should have comment or be unexported (golint)
    • Line 28: warning: exported function CreateNewPlan should have comment or be unexported (golint)
    • koala/pkg/types/comment.go
    • Line 11: warning: exported const TaskComment should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Comment should have comment or be unexported (golint)
    • Line 25: warning: exported type CommentCount should have comment or be unexported (golint)
    • Line 30: warning: exported function CommentTimeLine should have comment or be unexported (golint)
    • koala/pkg/api/user/user.go
    • Line 13: warning: exported function AssignList should have comment or be unexported (golint)
    • Line 29: warning: exported function List should have comment or be unexported (golint)
    • Line 43: warning: exported function Create should have comment or be unexported (golint)
    • Line 58: warning: exported function UpdateUser should have comment or be unexported (golint)
    • koala/pkg/types/data/task.go
    • Line 7: warning: exported type TaskTimeLine should have comment or be unexported (golint)
    • Line 16: warning: exported type TaskDetail should have comment or be unexported (golint)
    • Line 23: warning: exported type TaskBoard should have comment or be unexported (golint)
    • koala/pkg/initial/db.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported function InitDB should have comment or be unexported (golint)
    • koala/pkg/types/config/config.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 25: warning: exported method Config.LoadFromYaml should have comment or be unexported (golint)
    • Line 37: warning: exported method Config.LoadFromJson should have comment or be unexported (golint)
    • Line 57: warning: exported type DataSource should have comment or be unexported (golint)
    • Line 64: warning: exported type BasicLogin should have comment or be unexported (golint)
    • Line 68: warning: exported type BasicRegister should have comment or be unexported (golint)
    • Line 78: warning: exported type OAuthIF should have comment or be unexported (golint)
    • Line 88: warning: exported type BasicOauthUserMap should have comment or be unexported (golint)
    • Line 97: warning: exported type GithubUser should have comment or be unexported (golint)
    • koala/pkg/api/auth/login.go
    • Line 29: warning: exported function LoginWithOAuth2 should have comment or be unexported (golint)
    • Line 117: warning: exported function ConvertUserInfo should have comment or be unexported (golint)
    • Line 171: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 190: warning: comment on exported function LoginWithPassword should be of the form "LoginWithPassword ..." (golint)
    • Line 233: warning: exported function RegisterAuth should have comment or be unexported (golint)
    • Line 255: warning: exported function Auth should have comment or be unexported (golint)
    • Line 280: warning: exported function IsAdmin should have comment or be unexported (golint)
    • Line 288: warning: exported function IsGroupUser should have comment or be unexported (golint)
    • Line 363: warning: exported function UserInfo should have comment or be unexported (golint)
    • koala/pkg/types/group.go
    • Line 9: warning: exported type Group should have comment or be unexported (golint)
    • Line 19: warning: exported function GetGroupByID should have comment or be unexported (golint)
    • koala/pkg/utils/mail.go
    • Line 9: warning: exported function SendMail should have comment or be unexported (golint)
    • Line 30: warning: exported function SendMailWithPassword should have comment or be unexported (golint)
    • koala/pkg/types/objective.go
    • Line 8: warning: exported type Objective should have comment or be unexported (golint)
    • Line 20: warning: exported function CreateObjective should have comment or be unexported (golint)
    • Line 25: warning: exported function UpdateObjectiveByGroupID should have comment or be unexported (golint)
    • Line 38: warning: exported function UpdateObjectiveByUserID should have comment or be unexported (golint)
    • Line 51: warning: exported function DeleteObjectiveByID should have comment or be unexported (golint)
    • Line 55: warning: exported function GetObjectivesByGroup should have comment or be unexported (golint)
    • Line 61: warning: exported function GetObjectivesByUser should have comment or be unexported (golint)
    • Line 67: warning: exported function GetDoingObjectivesByUser should have comment or be unexported (golint)
    • Line 73: warning: exported function GetObjectiveByID should have comment or be unexported (golint)
    • Line 79: warning: exported function IsGroupObjective should have comment or be unexported (golint)
    • koala/pkg/types/plan.go
    • Line 9: warning: exported type Plan should have comment or be unexported (golint)
    • Line 18: warning: exported function InsertPlan should have comment or be unexported (golint)
    • Line 23: warning: exported function GetRecentPlanByUser should have comment or be unexported (golint)
    • koala/pkg/api/group/group.go
    • Line 13: warning: exported function ListIn should have comment or be unexported (golint)
    • Line 35: warning: exported function GetGroup should have comment or be unexported (golint)
    • Line 46: warning: exported function GetOKRByGroup should have comment or be unexported (golint)
    • Line 56: warning: exported function CreateGroupOKR should have comment or be unexported (golint)
    • Line 74: warning: exported function EditGroupOKR should have comment or be unexported (golint)
    • Line 92: warning: exported function Create should have comment or be unexported (golint)
    • Line 129: warning: exported function ListUsers should have comment or be unexported (golint)
    • Line 143: warning: exported function CheckIn should have comment or be unexported (golint)
    • Line 172: warning: exported function CheckOut should have comment or be unexported (golint)
    • Line 187: warning: comment on exported function AddUser should be of the form "AddUser ..." (golint)
    • Line 215: warning: comment on exported function RemoveUser should be of the form "RemoveUser ..." (golint)
    • koala/pkg/api/status/status.go
    • Line 12: warning: exported function GetRecent should have comment or be unexported (golint)
    • Line 28: warning: exported function CreateNewStatus should have comment or be unexported (golint)
    • koala/pkg/api/technique/technique.go
    • Line 13: warning: exported function StartTechnique should have comment or be unexported (golint)
    • Line 39: warning: exported function GetRecentTechnique should have comment or be unexported (golint)
    • Line 54: warning: exported function SetDone should have comment or be unexported (golint)
    • koala/pkg/types/status.go
    • Line 9: warning: exported type Status should have comment or be unexported (golint)
    • Line 18: warning: exported function InsertStatus should have comment or be unexported (golint)
    • Line 23: warning: exported function GetRecentStatusByUser should have comment or be unexported (golint)
    • koala/pkg/types/task.go
    • Line 11: warning: exported type TaskType should have comment or be unexported (golint)
    • Line 12: warning: exported type TaskState should have comment or be unexported (golint)
    • Line 15: warning: exported const UNSTART should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported const ISSUE should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type Task should have comment or be unexported (golint)
    • Line 42: warning: exported type TaskGroupCount should have comment or be unexported (golint)
    • Line 47: warning: exported function GroupByState should have comment or be unexported (golint)
    • koala/pkg/cmd/start.go
    • Line 12: warning: exported type DB should have comment or be unexported (golint)
    • Line 17: warning: exported type StartOption should have comment or be unexported (golint)
    • Line 24: warning: exported var StartCmd should have comment or be unexported (golint)
    • koala/pkg/types/config/const.go
    • Line 11: warning: exported var GinEngine should have comment or be unexported (golint)
    • Line 19: warning: exported const User should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type QueryParams should have comment or be unexported (golint)
    • koala/pkg/types/taskLog.go
    • Line 8: warning: exported const CreateTaskLog should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type TaskLog should have comment or be unexported (golint)
    • koala/pkg/types/technique.go
    • Line 9: warning: exported type Technique should have comment or be unexported (golint)
    • Line 17: warning: exported function InsertTechnique should have comment or be unexported (golint)
    • Line 22: warning: exported function GetDoingTechnique should have comment or be unexported (golint)
    • Line 31: warning: exported function SetDoneTechniqueByID should have comment or be unexported (golint)
    • koala/pkg/api/task/task.go
    • Line 17: warning: exported type QueryType should have comment or be unexported (golint)
    • Line 20: warning: don't use underscores in Go names; const is_watch should be isWatch (golint)
    • Line 21: warning: don't use underscores in Go names; const is_vote should be isVote (golint)
    • Line 22: warning: don't use underscores in Go names; const is_assign should be isAssign (golint)
    • Line 24: warning: don't use underscores in Go names; const is_doing should be isDoing (golint)
    • Line 35: warning: exported function GetOKRByUser should have comment or be unexported (golint)
    • Line 68: warning: exported function CreateUserOKR should have comment or be unexported (golint)
    • Line 86: warning: exported function EditUserOKR should have comment or be unexported (golint)
    • Line 104: warning: exported function List should have comment or be unexported (golint)
    • Line 154: warning: exported function FeedLog should have comment or be unexported (golint)
    • Line 185: warning: exported function Kanban should have comment or be unexported (golint)
    • Line 208: warning: exported function Recent should have comment or be unexported (golint)
    • Line 222: warning: exported function Create should have comment or be unexported (golint)
    • Line 250: warning: exported function View should have comment or be unexported (golint)
    • Line 286: warning: exported function ListComment should have comment or be unexported (golint)
    • Line 295: warning: exported function Comment should have comment or be unexported (golint)
    • Line 335: warning: exported function ListVote should have comment or be unexported (golint)
    • Line 346: warning: exported function Vote should have comment or be unexported (golint)
    • Line 382: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 396: warning: exported function ListWatch should have comment or be unexported (golint)
    • Line 407: warning: exported function Watch should have comment or be unexported (golint)
    • Line 455: warning: exported function Update should have comment or be unexported (golint)
    • koala/pkg/utils/private.go
    • Line 12: warning: exported function Cipher should have comment or be unexported (golint)
    • Line 22: warning: comment on exported function TripleDesEncrypt should be of the form "TripleDesEncrypt ..." (golint)
    • Line 36: warning: comment on exported function TripleDesDecrypt should be of the form "TripleDesDecrypt ..." (golint)
    • Line 51: warning: exported function PKCS5Padding should have comment or be unexported (golint)
    • Line 57: warning: exported function PKCS5UnPadding 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!