Preparing report...

Report for github.com/mbertschler/bunny

A+    Excellent!    Found 12 issues across 23 files

Tweet

gofmt95%

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!


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!


golint56%

Golint is a linter for Go source code.

    • bunny/pkg/data/stored/types.go
    • Line 16: warning: exported type Cause should have comment or be unexported (golint)
    • Line 19: warning: exported const CauseNotFound should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type CauseError should have comment or be unexported (golint)
    • Line 33: warning: exported function WithCause should have comment or be unexported (golint)
    • Line 40: warning: exported type MultiError should have comment or be unexported (golint)
    • Line 52: warning: exported function CombineErr should have comment or be unexported (golint)
    • Line 59: warning: exported const ItemOpen should have comment (or a comment on this block) or be unexported (golint)
    • Line 65: warning: exported const FocusNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 71: warning: exported type Item should have comment or be unexported (golint)
    • Line 81: warning: exported method Item.Type should have comment or be unexported (golint)
    • Line 83: warning: exported type List should have comment or be unexported (golint)
    • Line 93: warning: exported method List.Type should have comment or be unexported (golint)
    • Line 95: warning: exported type ThingType should have comment or be unexported (golint)
    • Line 98: warning: exported const TypeItem should have comment (or a comment on this block) or be unexported (golint)
    • Line 102: warning: exported type ThingID should have comment or be unexported (golint)
    • Line 107: warning: exported type Thing should have comment or be unexported (golint)
    • Line 111: warning: exported type Area should have comment or be unexported (golint)
    • Line 118: warning: exported type User should have comment or be unexported (golint)
    • Line 126: warning: exported type OrderedListItem should have comment or be unexported (golint)
    • bunny/pkg/blocks/pages.go
    • Line 23: warning: exported function EditItemPage should have comment or be unexported (golint)
    • Line 51: warning: exported function ViewItemPage should have comment or be unexported (golint)
    • Line 120: warning: exported function ViewAreaPage should have comment or be unexported (golint)
    • Line 150: warning: exported function ViewListPage should have comment or be unexported (golint)
    • Line 180: warning: exported function ViewFocusPage should have comment or be unexported (golint)
    • bunny/pkg/data/memory/db.go
    • Line 32: warning: exported function Open should have comment or be unexported (golint)
    • Line 42: warning: exported type DB should have comment or be unexported (golint)
    • Line 46: warning: exported method DB.Existing should have comment or be unexported (golint)
    • Line 50: warning: exported method DB.View should have comment or be unexported (golint)
    • Line 55: warning: exported method DB.Update should have comment or be unexported (golint)
    • Line 72: warning: exported type Tx should have comment or be unexported (golint)
    • Line 81: warning: exported method Tx.Close should have comment or be unexported (golint)
    • Line 93: warning: exported method Tx.Rollback should have comment or be unexported (golint)
    • bunny/pkg/data/data.go
    • Line 114: warning: exported type FocusData should have comment or be unexported (golint)
    • Line 120: warning: exported type User should have comment or be unexported (golint)
    • Line 125: warning: exported type Item should have comment or be unexported (golint)
    • Line 135: warning: exported method Item.Archived should have comment or be unexported (golint)
    • Line 139: warning: exported type List should have comment or be unexported (golint)
    • Line 149: warning: exported method List.Archived should have comment or be unexported (golint)
    • Line 153: warning: exported type Thing should have comment or be unexported (golint)
    • Line 158: warning: exported type ThingType should have comment or be unexported (golint)
    • Line 161: warning: exported const TypeItem should have comment (or a comment on this block) or be unexported (golint)
    • Line 165: warning: exported type Area should have comment or be unexported (golint)
    • Line 172: warning: exported type ItemState should have comment or be unexported (golint)
    • Line 175: warning: exported const ItemOpen should have comment (or a comment on this block) or be unexported (golint)
    • Line 180: warning: exported type FocusState should have comment or be unexported (golint)
    • Line 183: warning: exported const FocusNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 189: warning: exported function ItemByID should have comment or be unexported (golint)
    • Line 195: warning: exported function UserItemByID should have comment or be unexported (golint)
    • Line 201: warning: exported function SetItem should have comment or be unexported (golint)
    • Line 296: warning: exported function NewItem should have comment or be unexported (golint)
    • Line 307: warning: exported function SortFocusItem should have comment or be unexported (golint)
    • Line 311: warning: exported function SetFocus should have comment or be unexported (golint)
    • Line 315: warning: exported function DeleteItem should have comment or be unexported (golint)
    • Line 319: warning: exported function ItemList should have comment or be unexported (golint)
    • Line 331: warning: exported function UserItemList should have comment or be unexported (golint)
    • Line 343: warning: exported function UserArea should have comment or be unexported (golint)
    • Line 355: warning: exported function FocusList should have comment or be unexported (golint)
    • Line 374: warning: exported function SetListItemPosition should have comment or be unexported (golint)
    • Line 378: warning: exported function SetAreaThingPosition should have comment or be unexported (golint)
    • Line 382: warning: exported function SetUserFocus should have comment or be unexported (golint)
    • Line 386: warning: exported function ListByID should have comment or be unexported (golint)
    • Line 392: warning: exported function SetList should have comment or be unexported (golint)
    • Line 412: warning: exported function UserByID should have comment or be unexported (golint)
    • Line 418: warning: exported function AreaByID should have comment or be unexported (golint)
    • bunny/pkg/guiapi/guiapi.go
    • Line 49: warning: exported method Handler.Handle should have comment or be unexported (golint)
    • Line 90: warning: exported type Action should have comment or be unexported (golint)
    • Line 97: warning: exported type Handler should have comment or be unexported (golint)
    • Line 101: warning: exported type Callable should have comment or be unexported (golint)
    • Line 108: warning: exported type Result should have comment or be unexported (golint)
    • Line 116: warning: exported type Error should have comment or be unexported (golint)
    • Line 121: warning: exported type HTMLOp should have comment or be unexported (golint)
    • Line 124: warning: exported const HTMLReplace should have comment (or a comment on this block) or be unexported (golint)
    • Line 130: warning: exported type HTMLUpdate should have comment or be unexported (golint)
    • Line 140: warning: exported type JSCall should have comment or be unexported (golint)
    • bunny/pkg/data/memory/memory.go
    • Line 20: warning: exported method DB.UserByID should have comment or be unexported (golint)
    • Line 31: warning: exported method DB.ItemByID should have comment or be unexported (golint)
    • Line 42: warning: exported method DB.UserItemByID should have comment or be unexported (golint)
    • Line 58: warning: exported method DB.AreaByID should have comment or be unexported (golint)
    • Line 69: warning: exported method DB.DebugItemList should have comment or be unexported (golint)
    • Line 84: warning: exported method DB.ItemList should have comment or be unexported (golint)
    • Line 100: warning: exported method DB.UserItemList should have comment or be unexported (golint)
    • Line 116: warning: exported method DB.UserArea should have comment or be unexported (golint)
    • Line 132: warning: exported method DB.FocusList should have comment or be unexported (golint)
    • Line 141: warning: exported method DB.SetItem should have comment or be unexported (golint)
    • Line 154: warning: exported method DB.ForceSetItem should have comment or be unexported (golint)
    • Line 163: warning: exported method DB.SetList should have comment or be unexported (golint)
    • Line 176: warning: exported method DB.ForceSetList should have comment or be unexported (golint)
    • Line 185: warning: exported method DB.ForceSetArea should have comment or be unexported (golint)
    • Line 194: warning: exported method DB.DeleteList should have comment or be unexported (golint)
    • Line 203: warning: exported method DB.DeleteItem should have comment or be unexported (golint)
    • Line 212: warning: exported method DB.NewItem should have comment or be unexported (golint)
    • Line 221: warning: exported method DB.SetListItemPosition should have comment or be unexported (golint)
    • Line 231: warning: exported method DB.SetAreaThingPosition should have comment or be unexported (golint)
    • Line 241: warning: exported method DB.SortUserFocusAfter should have comment or be unexported (golint)
    • Line 245: warning: exported method DB.SetUserFocus should have comment or be unexported (golint)
    • Line 264: warning: exported method DB.ListByID should have comment or be unexported (golint)
    • Line 275: warning: exported method DB.ForceSetUser should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words