Preparing report...

Report for github.com/lawrencegripper/azbrowse

A+    Excellent!    Found 63 issues across 137 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!


golint63%

Golint is a linter for Go source code.

    • azbrowse/internal/pkg/keybindings/list_actions.go
    • Line 10: warning: exported type ListActionsHandler should have comment or be unexported (golint)
    • Line 18: warning: context.Context should be the first parameter of a function (golint)
    • Line 18: warning: exported function NewListActionsHandler should have comment or be unexported (golint)
    • Line 27: warning: exported method ListActionsHandler.Fn should have comment or be unexported (golint)
    • Line 32: warning: exported method ListActionsHandler.DisplayText should have comment or be unexported (golint)
    • Line 35: warning: exported method ListActionsHandler.IsEnabled should have comment or be unexported (golint)
    • Line 38: warning: exported method ListActionsHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/item_back.go
    • Line 8: warning: exported type ItemBackHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewItemBackHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ItemBackHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/global_filter_commandpannel.go
    • Line 9: warning: exported type CommandPanelFilterHandler should have comment or be unexported (golint)
    • Line 18: warning: exported function NewCommandPanelFilterHandler should have comment or be unexported (golint)
    • Line 27: warning: comment on exported method CommandPanelFilterHandler.SetItemWidget should be of the form "SetItemWidget ..." (golint)
    • Line 32: warning: comment on exported method CommandPanelFilterHandler.SetListWidget should be of the form "SetListWidget ..." (golint)
    • Line 37: warning: exported method CommandPanelFilterHandler.Fn should have comment or be unexported (golint)
    • Line 42: warning: exported method CommandPanelFilterHandler.DisplayText should have comment or be unexported (golint)
    • Line 45: warning: exported method CommandPanelFilterHandler.IsEnabled should have comment or be unexported (golint)
    • Line 48: warning: exported method CommandPanelFilterHandler.Invoke should have comment or be unexported (golint)
    • Line 52: warning: exported method CommandPanelFilterHandler.InvokeWithStartString should have comment or be unexported (golint)
    • Line 56: warning: exported method CommandPanelFilterHandler.CommandPanelNotification should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/item_clear_filter.go
    • Line 8: warning: exported type ItemClearFilterHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewItemClearFilterHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ItemClearFilterHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_end.go
    • Line 8: warning: exported type ListEndHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListEndHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListEndHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_home.go
    • Line 8: warning: exported type ListHomeHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListHomeHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListHomeHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_pagedwn.go
    • Line 8: warning: exported type ListPageDownHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListPageDownHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListPageDownHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_sort.go
    • Line 8: warning: exported type ListSortHandler should have comment or be unexported (golint)
    • Line 15: warning: exported function NewListSortHandler should have comment or be unexported (golint)
    • Line 23: warning: exported method ListSortHandler.Fn should have comment or be unexported (golint)
    • Line 29: warning: exported method ListSortHandler.DisplayText should have comment or be unexported (golint)
    • Line 32: warning: exported method ListSortHandler.IsEnabled should have comment or be unexported (golint)
    • Line 35: warning: exported method ListSortHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_update.go
    • Line 20: warning: exported type ListUpdateHandler should have comment or be unexported (golint)
    • Line 31: warning: context.Context should be the first parameter of a function (golint)
    • Line 31: warning: exported function NewListUpdateHandler should have comment or be unexported (golint)
    • Line 43: warning: exported method ListUpdateHandler.Fn should have comment or be unexported (golint)
    • Line 48: warning: exported method ListUpdateHandler.DisplayText should have comment or be unexported (golint)
    • Line 51: warning: exported method ListUpdateHandler.IsEnabled should have comment or be unexported (golint)
    • Line 66: warning: exported method ListUpdateHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/storage/store.go
    • Line 70: warning: comment on exported function GetCacheWithTTL should be of the form "GetCacheWithTTL ..." (golint)
    • Line 103: warning: comment on exported function PutCacheForTTL should be of the form "PutCacheForTTL ..." (golint)
    • azbrowse/internal/pkg/keybindings/global_clear_delete.go
    • Line 8: warning: exported type ClearPendingDeleteHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewClearPendingDeleteHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ClearPendingDeleteHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/global_copy.go
    • Line 13: warning: exported type CopyHandler should have comment or be unexported (golint)
    • Line 21: warning: exported function NewCopyHandler should have comment or be unexported (golint)
    • Line 30: warning: exported method CopyHandler.Fn should have comment or be unexported (golint)
    • Line 36: warning: exported method CopyHandler.DisplayText should have comment or be unexported (golint)
    • Line 40: warning: exported method CopyHandler.IsEnabled should have comment or be unexported (golint)
    • Line 44: warning: exported method CopyHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_pageup.go
    • Line 8: warning: exported type ListPageUpHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListPageUpHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListPageUpHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/item_left.go
    • Line 5: warning: exported type ItemLeftHandler should have comment or be unexported (golint)
    • Line 10: warning: exported function NewItemLeftHandler should have comment or be unexported (golint)
    • Line 18: warning: exported method ItemLeftHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/item_pageup.go
    • Line 8: warning: exported type ItemViewPageUpHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewItemViewPageUpHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ItemViewPageUpHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_clear_filter.go
    • Line 8: warning: exported type ListClearFilterHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListClearFilterHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListClearFilterHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_edit.go
    • Line 8: warning: exported type ListEditHandler should have comment or be unexported (golint)
    • Line 14: warning: exported function NewListEditHandler should have comment or be unexported (golint)
    • Line 23: warning: exported method ListEditHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/global_open_commandpannel.go
    • Line 12: warning: exported type OpenCommandPanelHandler should have comment or be unexported (golint)
    • Line 19: warning: exported function NewOpenCommandPanelHandler should have comment or be unexported (golint)
    • Line 29: warning: exported method OpenCommandPanelHandler.Fn should have comment or be unexported (golint)
    • Line 69: warning: exported method OpenCommandPanelHandler.CommandPanelNotification should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/global_toggle_demo.go
    • Line 11: warning: exported type ToggleDemoModeHandler should have comment or be unexported (golint)
    • Line 21: warning: exported function NewToggleDemoModeHandler should have comment or be unexported (golint)
    • Line 32: warning: exported method ToggleDemoModeHandler.Fn should have comment or be unexported (golint)
    • Line 38: warning: exported method ToggleDemoModeHandler.DisplayText should have comment or be unexported (golint)
    • Line 46: warning: exported method ToggleDemoModeHandler.IsEnabled should have comment or be unexported (golint)
    • Line 50: warning: exported method ToggleDemoModeHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_azuresearch_query.go
    • Line 12: warning: exported type CommandPanelAzureSearchQueryHandler should have comment or be unexported (golint)
    • Line 21: warning: exported function NewCommandPanelAzureSearchQueryHandler should have comment or be unexported (golint)
    • Line 32: warning: exported method CommandPanelAzureSearchQueryHandler.Fn should have comment or be unexported (golint)
    • Line 41: warning: exported method CommandPanelAzureSearchQueryHandler.DisplayText should have comment or be unexported (golint)
    • Line 45: warning: exported method CommandPanelAzureSearchQueryHandler.IsEnabled should have comment or be unexported (golint)
    • Line 53: warning: exported method CommandPanelAzureSearchQueryHandler.Invoke should have comment or be unexported (golint)
    • Line 58: warning: exported method CommandPanelAzureSearchQueryHandler.CommandPanelNotification should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_expand.go
    • Line 8: warning: exported type ListExpandHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListExpandHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListExpandHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_open_portal.go
    • Line 17: warning: exported type ListOpenHandler should have comment or be unexported (golint)
    • Line 25: warning: context.Context should be the first parameter of a function (golint)
    • Line 25: warning: exported function NewListOpenHandler should have comment or be unexported (golint)
    • Line 34: warning: exported method ListOpenHandler.Fn should have comment or be unexported (golint)
    • Line 40: warning: exported method ListOpenHandler.DisplayText should have comment or be unexported (golint)
    • Line 43: warning: exported method ListOpenHandler.IsEnabled should have comment or be unexported (golint)
    • Line 46: warning: exported method ListOpenHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_up.go
    • Line 8: warning: exported type ListUpHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListUpHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListUpHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_back.go
    • Line 8: warning: exported type ListBackHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListBackHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListBackHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_back_legacy.go
    • Line 8: warning: exported type ListBackLegacyHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListBackLegacyHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListBackLegacyHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_delete.go
    • Line 8: warning: exported type ListDeleteHandler should have comment or be unexported (golint)
    • Line 14: warning: exported function NewListDeleteHandler should have comment or be unexported (golint)
    • Line 23: warning: exported method ListDeleteHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/expanders/types.go
    • Line 44: warning: exported method ExpanderBase.DoesExpand should have comment or be unexported (golint)
    • Line 47: warning: exported method ExpanderBase.Expand should have comment or be unexported (golint)
    • Line 53: warning: exported method ExpanderBase.CanUpdate should have comment or be unexported (golint)
    • Line 56: warning: exported method ExpanderBase.Update should have comment or be unexported (golint)
    • Line 103: warning: comment on exported type ListActionsResult should be of the form "ListActionsResult ..." (with optional leading article) (golint)
    • azbrowse/internal/pkg/keybindings/item_copy_id.go
    • Line 10: warning: exported type ItemCopyItemIDHandler should have comment or be unexported (golint)
    • Line 18: warning: exported function NewItemCopyItemIDHandler should have comment or be unexported (golint)
    • Line 27: warning: exported method ItemCopyItemIDHandler.Fn should have comment or be unexported (golint)
    • Line 33: warning: exported method ItemCopyItemIDHandler.DisplayText should have comment or be unexported (golint)
    • Line 36: warning: exported method ItemCopyItemIDHandler.IsEnabled should have comment or be unexported (golint)
    • Line 39: warning: exported method ItemCopyItemIDHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/item_pagedwn.go
    • Line 8: warning: exported type ItemViewPageDownHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewItemViewPageDownHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ItemViewPageDownHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_debug_copydata.go
    • Line 11: warning: exported type ListDebugCopyItemDataHandler should have comment or be unexported (golint)
    • Line 19: warning: exported function NewListDebugCopyItemDataHandler should have comment or be unexported (golint)
    • Line 28: warning: exported method ListDebugCopyItemDataHandler.Fn should have comment or be unexported (golint)
    • Line 34: warning: exported method ListDebugCopyItemDataHandler.DisplayText should have comment or be unexported (golint)
    • Line 37: warning: exported method ListDebugCopyItemDataHandler.IsEnabled should have comment or be unexported (golint)
    • Line 40: warning: exported method ListDebugCopyItemDataHandler.Invoke should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_down.go
    • Line 8: warning: exported type ListDownHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListDownHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListDownHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_refresh.go
    • Line 8: warning: exported type ListRefreshHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewListRefreshHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method ListRefreshHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/list_right.go
    • Line 8: warning: exported type ListRightHandler should have comment or be unexported (golint)
    • Line 14: warning: exported function NewListRightHandler should have comment or be unexported (golint)
    • Line 23: warning: exported method ListRightHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/keybindings/commandpanelhandlers.go
    • Line 8: warning: exported type CloseCommandPanelHandler should have comment or be unexported (golint)
    • Line 13: warning: exported function NewCloseCommandPanelHandler should have comment or be unexported (golint)
    • Line 21: warning: exported method CloseCommandPanelHandler.Fn should have comment or be unexported (golint)
    • Line 32: warning: exported type CommandPanelDownHandler should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCommandPanelDownHandler should have comment or be unexported (golint)
    • Line 45: warning: exported method CommandPanelDownHandler.Fn should have comment or be unexported (golint)
    • Line 56: warning: exported type CommandPanelUpHandler should have comment or be unexported (golint)
    • Line 61: warning: exported function NewCommandPanelUpHandler should have comment or be unexported (golint)
    • Line 69: warning: exported method CommandPanelUpHandler.Fn should have comment or be unexported (golint)
    • Line 80: warning: exported type CommandPanelEnterHandler should have comment or be unexported (golint)
    • Line 85: warning: exported function NewCommandPanelEnterHandler should have comment or be unexported (golint)
    • Line 93: warning: exported method CommandPanelEnterHandler.Fn should have comment or be unexported (golint)
    • azbrowse/internal/pkg/filesystem/folder.go
    • Line 21: warning: exported type Folder should have comment or be unexported (golint)
    • Line 36: warning: exported method Folder.Attr should have comment or be unexported (golint)
    • Line 47: warning: exported method Folder.Lookup should have comment or be unexported (golint)
    • Line 114: warning: exported method Folder.Remove should have comment or be unexported (golint)
    • Line 169: warning: exported method Folder.LoadNodeFromARM should have comment or be unexported (golint)
    • Line 183: warning: exported method Folder.ReadDirAll should have comment or be unexported (golint)
    • azbrowse/internal/pkg/expanders/cosmos-db.go
    • Line 69: warning: exported type CosmosDbQuery should have comment or be unexported (golint)
    • Line 659: warning: comment on exported type CosmosDbSqlConnectionDetails should be of the form "CosmosDbSqlConnectionDetails ..." (with optional leading article) (golint)
    • azbrowse/internal/pkg/filesystem/file.go
    • Line 32: warning: exported method File.Attr should have comment or be unexported (golint)
    • Line 48: warning: exported method File.Open should have comment or be unexported (golint)
    • Line 68: warning: exported method File.Remove should have comment or be unexported (golint)
    • Line 68: warning: receiver name d should be consistent with previous receiver name f for File (golint)
    • Line 138: warning: exported method File.Setattr should have comment or be unexported (golint)
    • Line 161: warning: exported method File.Release should have comment or be unexported (golint)

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.

    • azbrowse/cmd/azbrowse/cmd.go
    • Line 209: warning: cyclomatic complexity 18 of function navigateAutocompletion() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 17 of function createRootCmd() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 3)