Preparing report...

Report for github.com/naggie/dstask

A+    Excellent!    Found 16 issues across 37 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!


gocyclo89%

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.

    • dstask/help.go
    • Line 8: warning: cyclomatic complexity 24 of function Help() is high (> 15) (gocyclo)
    • dstask/query.go
    • Line 89: warning: cyclomatic complexity 22 of function ParseQuery() is high (> 15) (gocyclo)

golint62%

Golint is a linter for Go source code.

    • dstask/help.go
    • Line 8: warning: exported function Help should have comment or be unexported (golint)
    • dstask/pkg/imp/tw/tw.go
    • Line 54: warning: exported type TwTime should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method TwTime.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
    • Line 87: warning: exported type Annotation should have comment or be unexported (golint)
    • Line 92: warning: exported type TwTask should have comment or be unexported (golint)
    • Line 115: warning: exported method TwTask.ConvertAnnotations should have comment or be unexported (golint)
    • Line 125: warning: comment on exported method TwTask.ConvertStatus should be of the form "ConvertStatus ..." (golint)
    • Line 147: warning: comment on exported method TwTask.GetResolvedTime should be of the form "GetResolvedTime ..." (golint)
    • dstask/query.go
    • Line 12: warning: comment on exported type Query should be of the form "Query ..." (with optional leading article) (golint)
    • Line 67: warning: exported method Query.PrintContextDescription should have comment or be unexported (golint)
    • dstask/table.go
    • Line 9: warning: exported type Table should have comment or be unexported (golint)
    • Line 16: warning: exported type RowStyle should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function NewTable should be of the form "NewTable ..." (golint)
    • Line 41: warning: exported function FixStr should have comment or be unexported (golint)
    • Line 50: warning: exported method Table.AddRow should have comment or be unexported (golint)
    • Line 59: warning: comment on exported method Table.Render should be of the form "Render ..." (golint)
    • dstask/task.go
    • Line 18: warning: exported type SubTask should have comment or be unexported (golint)
    • Line 141: warning: exported method Task.MatchesFilter should have comment or be unexported (golint)
    • Line 204: warning: comment on exported method Task.Validate should be of the form "Validate ..." (golint)
    • Line 227: warning: comment on exported method Task.LongSummary should be of the form "LongSummary ..." (golint)
    • Line 238: warning: exported method Task.Modify should have comment or be unexported (golint)
    • Line 265: warning: exported method Task.SaveToDisk should have comment or be unexported (golint)
    • dstask/taskset.go
    • Line 16: warning: exported type TaskSet should have comment or be unexported (golint)
    • Line 28: warning: exported type Project should have comment or be unexported (golint)
    • Line 103: warning: exported method TaskSet.UnHide should have comment or be unexported (golint)
    • Line 111: warning: exported method TaskSet.SortByCreated should have comment or be unexported (golint)
    • Line 122: warning: exported method TaskSet.SortByPriority should have comment or be unexported (golint)
    • Line 133: warning: exported method TaskSet.SortByResolved should have comment or be unexported (golint)
    • Line 199: warning: comment on exported method TaskSet.MustUpdateTask should be of the form "MustUpdateTask ..." (golint)
    • Line 208: warning: exported method TaskSet.UpdateTask should have comment or be unexported (golint)
    • Line 247: warning: exported method TaskSet.Filter should have comment or be unexported (golint)
    • Line 255: warning: exported method TaskSet.FilterByStatus should have comment or be unexported (golint)
    • Line 263: warning: exported method TaskSet.FilterOrganised should have comment or be unexported (golint)
    • Line 271: warning: exported method TaskSet.MustGetByID should have comment or be unexported (golint)
    • Line 279: warning: exported method TaskSet.GetByID should have comment or be unexported (golint)
    • Line 287: warning: exported method TaskSet.Tasks should have comment or be unexported (golint)
    • Line 297: warning: exported method TaskSet.AllTasks should have comment or be unexported (golint)
    • Line 305: warning: exported method TaskSet.GetTags should have comment or be unexported (golint)
    • Line 317: warning: exported method TaskSet.GetProjects should have comment or be unexported (golint)
    • Line 376: warning: exported method TaskSet.NumTotal should have comment or be unexported (golint)
    • Line 380: warning: comment on exported method TaskSet.SavePendingChanges should be of the form "SavePendingChanges ..." (golint)
    • Line 406: warning: exported type SortByDirection should have comment or be unexported (golint)
    • Line 409: warning: exported const Ascending should have comment (or a comment on this block) or be unexported (golint)
    • dstask/util.go
    • Line 16: warning: exported function ExitFail should have comment or be unexported (golint)
    • Line 21: warning: exported function ConfirmOrAbort should have comment or be unexported (golint)
    • Line 37: warning: exported function MustGetUUID4String should have comment or be unexported (golint)
    • Line 47: warning: exported function IsValidUUID4String should have comment or be unexported (golint)
    • Line 52: warning: exported function IsValidPriority should have comment or be unexported (golint)
    • Line 61: warning: exported function IsValidStatus should have comment or be unexported (golint)
    • Line 65: warning: exported function SumInts should have comment or be unexported (golint)
    • Line 75: warning: exported function RunCmd should have comment or be unexported (golint)
    • Line 83: warning: exported function MustEditBytes should have comment or be unexported (golint)
    • Line 117: warning: exported function StrSliceContains should have comment or be unexported (golint)
    • Line 127: warning: comment on exported function IntSliceContains should be of the form "IntSliceContains ..." (golint)
    • Line 138: warning: exported function StrSliceContainsAll should have comment or be unexported (golint)
    • Line 154: warning: exported function IsValidStateTransition should have comment or be unexported (golint)
    • Line 164: warning: exported function MustOpenBrowser should have comment or be unexported (golint)
    • Line 183: warning: exported function DeduplicateStrings should have comment or be unexported (golint)
    • Line 197: warning: exported function MustGetTermSize should have comment or be unexported (golint)
    • Line 210: warning: exported function StdoutIsTTY should have comment or be unexported (golint)
    • Line 215: warning: exported function WriteStdout should have comment or be unexported (golint)
    • dstask/pkg/imp/config/config.go
    • Line 12: warning: exported type Config should have comment or be unexported (golint)
    • Line 16: warning: exported type Github should have comment or be unexported (golint)
    • Line 27: warning: exported function Load should have comment or be unexported (golint)
    • dstask/localstate.go
    • Line 22: warning: comment on exported type IdsMap should be of the form "IdsMap ..." (with optional leading article) (golint)
    • Line 94: warning: exported method IdsMap.Save should have comment or be unexported (golint)
    • Line 99: warning: exported function LoadIds should have comment or be unexported (golint)
    • dstask/const.go
    • Line 12: warning: comment on exported var FAKE_PTY should be of the form "FAKE_PTY ..." (golint)
    • Line 14: warning: comment on exported var GIT_COMMIT should be of the form "GIT_COMMIT ..." (golint)
    • Line 16: warning: exported var VERSION should have comment or be unexported (golint)
    • Line 21: warning: exported const STATUS_PENDING should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: comment on exported const PRIORITY_CRITICAL should be of the form "PRIORITY_CRITICAL ..." (golint)
    • Line 71: warning: comment on exported const MIN_TASKS_SHOWN should be of the form "MIN_TASKS_SHOWN ..." (golint)
    • Line 74: warning: comment on exported const TERMINAL_HEIGHT_MARGIN should be of the form "TERMINAL_HEIGHT_MARGIN ..." (golint)
    • Line 80: warning: comment on exported const TABLE_MAX_WIDTH should be of the form "TABLE_MAX_WIDTH ..." (golint)
    • Line 98: warning: comment on exported var ALL_STATUSES should be of the form "ALL_STATUSES ..." (golint)
    • Line 110: warning: comment on exported var HIDDEN_STATUSES should be of the form "HIDDEN_STATUSES ..." (golint)
    • Line 118: warning: comment on exported var VALID_STATUS_TRANSITIONS should be of the form "VALID_STATUS_TRANSITIONS ..." (golint)
    • Line 129: warning: comment on exported var NON_RESOLVED_STATUSES should be of the form "NON_RESOLVED_STATUSES ..." (golint)
    • Line 140: warning: exported var ALL_CMDS should have comment or be unexported (golint)
    • dstask/display.go
    • Line 128: warning: exported method Task.Display should have comment or be unexported (golint)
    • Line 154: warning: exported method Task.Style should have comment or be unexported (golint)
    • Line 154: warning: receiver name t should be consistent with previous receiver name task for Task (golint)
    • Line 178: warning: comment on exported method Project.Style should be of the form "Style ..." (golint)
    • Line 196: warning: exported method TaskSet.DisplayByWeek should have comment or be unexported (golint)
    • Line 250: warning: exported method TaskSet.DisplayProjects should have comment or be unexported (golint)
    • dstask/pkg/imp/github/github.go
    • Line 98: warning: exported type Templates should have comment or be unexported (golint)
    • Line 106: warning: exported function ParseTemplates should have comment or be unexported (golint)
    • Line 137: warning: exported function NewRepoIter should have comment or be unexported (golint)
    • dstask/pkg/imp/github/query.go
    • Line 9: warning: exported type Query should have comment or be unexported (golint)
    • Line 15: warning: exported type QueryWithMilestone should have comment or be unexported (golint)
    • Line 23: warning: exported type IssueConnection should have comment or be unexported (golint)
    • Line 34: warning: exported type IssueEdge should have comment or be unexported (golint)
    • Line 39: warning: exported type Issue should have comment or be unexported (golint)
    • Line 53: warning: exported type Author should have comment or be unexported (golint)
    • Line 57: warning: exported type MilestoneQuery should have comment or be unexported (golint)
    • Line 63: warning: exported type MilestoneConnection should have comment or be unexported (golint)
    • Line 68: warning: exported type MilestoneEdge should have comment or be unexported (golint)
    • Line 73: warning: exported type Milestone 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!