Preparing report...

Report for github.com/jhekasoft/insteadman

A+    Excellent!    Found 20 issues across 29 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!


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!


golint65%

Golint is a linter for Go source code.

    • insteadman/gtk/ui/error.go
    • Line 12: warning: exported function ShowErrorDlgFatal should have comment or be unexported (golint)
    • Line 16: warning: exported function ShowErrorDlg should have comment or be unexported (golint)
    • insteadman/gtk/ui/main.go
    • Line 40: warning: exported var MainWin should have comment or be unexported (golint)
    • Line 43: warning: exported function ShowMainWindow should have comment or be unexported (golint)
    • Line 50: warning: exported function ShowExistingMainWindow should have comment or be unexported (golint)
    • Line 61: warning: comment on exported function GetMain should be of the form "GetMain ..." (golint)
    • Line 73: warning: exported type MainWindow should have comment or be unexported (golint)
    • Line 126: warning: exported function MainWindowNew should have comment or be unexported (golint)
    • Line 607: warning: comment on exported type MainWindowHandlers should be of the form "MainWindowHandlers ..." (with optional leading article) (golint)
    • insteadman/core/manager/manager.go
    • Line 29: warning: exported const SortByTitleAsc should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type Manager should have comment or be unexported (golint)
    • Line 39: warning: exported method Manager.HasDownloadedRepositories should have comment or be unexported (golint)
    • Line 51: warning: exported method Manager.UpdateRepositories should have comment or be unexported (golint)
    • Line 75: warning: exported method Manager.GetRepositoryGames should have comment or be unexported (golint)
    • Line 104: warning: exported method Manager.CacheDir should have comment or be unexported (golint)
    • Line 132: warning: exported method Manager.GetInstalledGames should have comment or be unexported (golint)
    • Line 151: warning: exported method Manager.GetMergedGames should have comment or be unexported (golint)
    • Line 185: warning: exported method Manager.GetSortedGames should have comment or be unexported (golint)
    • Line 189: warning: exported method Manager.GetSortedGamesByDateDesc should have comment or be unexported (golint)
    • Line 199: warning: exported method Manager.GetSortedGamesBy should have comment or be unexported (golint)
    • Line 221: warning: exported function FilterGames should have comment or be unexported (golint)
    • Line 262: warning: exported function FindGameById should have comment or be unexported (golint)
    • Line 272: warning: exported function FindGamesByName should have comment or be unexported (golint)
    • Line 282: warning: exported method Manager.RunGame should have comment or be unexported (golint)
    • Line 308: warning: exported method Manager.StopRunningGame should have comment or be unexported (golint)
    • Line 339: warning: exported type WriteCounter should have comment or be unexported (golint)
    • Line 374: warning: exported method Manager.GetGameImage should have comment or be unexported (golint)
    • Line 406: warning: exported method Manager.InstallGame should have comment or be unexported (golint)
    • Line 445: warning: exported method Manager.RemoveGame should have comment or be unexported (golint)
    • Line 455: warning: exported method Manager.GetRepositories should have comment or be unexported (golint)
    • Line 459: warning: exported method Manager.FindLangs should have comment or be unexported (golint)
    • Line 473: warning: exported method Manager.ClearCache should have comment or be unexported (golint)
    • Line 477: warning: exported method Manager.IsBuiltinInterpreterCommand should have comment or be unexported (golint)
    • Line 485: warning: exported method Manager.InterpreterCommand should have comment or be unexported (golint)
    • Line 500: warning: exported function FilterRepositoryName should have comment or be unexported (golint)
    • insteadman/gtk/utils/utils.go
    • Line 9: warning: exported function GetListStore should have comment or be unexported (golint)
    • Line 20: warning: exported function GetButton should have comment or be unexported (golint)
    • Line 31: warning: exported function GetToggleButton should have comment or be unexported (golint)
    • Line 42: warning: exported function GetTreeView should have comment or be unexported (golint)
    • Line 53: warning: exported function GetLabel should have comment or be unexported (golint)
    • Line 64: warning: exported function GetScrolledWindow should have comment or be unexported (golint)
    • Line 75: warning: exported function GetSpinner should have comment or be unexported (golint)
    • Line 86: warning: exported function GetEntry should have comment or be unexported (golint)
    • Line 97: warning: exported function GetComboBox should have comment or be unexported (golint)
    • Line 108: warning: exported function GetCheckButton should have comment or be unexported (golint)
    • Line 119: warning: exported function GetImage should have comment or be unexported (golint)
    • Line 130: warning: exported function GetMenuItem should have comment or be unexported (golint)
    • Line 141: warning: exported function GetCheckMenuItem should have comment or be unexported (golint)
    • Line 152: warning: exported function GetBox should have comment or be unexported (golint)
    • Line 163: warning: exported function GetSeparator should have comment or be unexported (golint)
    • Line 174: warning: exported function GetNotebook should have comment or be unexported (golint)
    • Line 185: warning: exported function GetCellRendererText should have comment or be unexported (golint)
    • Line 196: warning: exported function GetFilterValues should have comment or be unexported (golint)
    • Line 223: warning: exported function FindFirstIterInTreeSelection should have comment or be unexported (golint)
    • Line 235: warning: exported function GetIterFromTextPathInListStore should have comment or be unexported (golint)
    • insteadman/cli/cli.go
    • Line 11: warning: exported function GetCommand should have comment or be unexported (golint)
    • Line 19: warning: exported function GetCommandArg should have comment or be unexported (golint)
    • Line 27: warning: exported function FindBoolArg should have comment or be unexported (golint)
    • Line 37: warning: exported function FindStringArg should have comment or be unexported (golint)
    • Line 53: warning: exported function FmtTitle should have comment or be unexported (golint)
    • Line 57: warning: exported function FmtName should have comment or be unexported (golint)
    • Line 61: warning: exported function FmtVersion should have comment or be unexported (golint)
    • Line 65: warning: exported function FmtSize should have comment or be unexported (golint)
    • Line 69: warning: exported function FmtRepo should have comment or be unexported (golint)
    • Line 73: warning: exported function FmtInstalled should have comment or be unexported (golint)
    • Line 77: warning: exported function FmtLang should have comment or be unexported (golint)
    • Line 81: warning: exported function FmtURL should have comment or be unexported (golint)
    • Line 85: warning: exported function ExitIfError should have comment or be unexported (golint)
    • insteadman/core/manager/game.go
    • Line 16: warning: exported type RepositoryGameList should have comment or be unexported (golint)
    • Line 21: warning: exported type RepositoryGame should have comment or be unexported (golint)
    • Line 45: warning: exported type Game should have comment or be unexported (golint)
    • Line 74: warning: exported method Game.HumanSize should have comment or be unexported (golint)
    • Line 82: warning: exported method Game.HumanVersion should have comment or be unexported (golint)
    • Line 90: warning: exported method Game.IsUpdateAvailable should have comment or be unexported (golint)
    • Line 94: warning: exported function ReadLocalGameInfo should have comment or be unexported (golint)
    • insteadman/core/configurator/configurator.go
    • Line 12: warning: exported type InsteadmanConfig should have comment or be unexported (golint)
    • Line 26: warning: exported function ExpandInterpreterCommand should have comment or be unexported (golint)
    • Line 39: warning: exported type Repository should have comment or be unexported (golint)
    • Line 44: warning: exported type Gtk should have comment or be unexported (golint)
    • Line 58: warning: exported type Configurator should have comment or be unexported (golint)
    • Line 105: warning: exported method Configurator.DataResourcePath should have comment or be unexported (golint)
    • Line 137: warning: exported method Configurator.DataLocalePath should have comment or be unexported (golint)
    • Line 151: warning: exported method Configurator.GetSkeletonConfig should have comment or be unexported (golint)
    • Line 170: warning: exported method Configurator.GetConfig should have comment or be unexported (golint)
    • Line 215: warning: exported method Configurator.SaveConfig should have comment or be unexported (golint)
    • insteadman/core/utils/utils.go
    • Line 9: warning: exported function BinAbsDir should have comment or be unexported (golint)
    • Line 20: warning: exported function ExistsString should have comment or be unexported (golint)
    • Line 29: warning: exported function PathExist should have comment or be unexported (golint)
    • Line 40: warning: exported function Percents should have comment or be unexported (golint)
    • insteadman/gtk/ui/settings.go
    • Line 19: warning: exported const RepositoryColumnName should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported var SettingsWin should have comment or be unexported (golint)
    • Line 27: warning: exported function ShowSettingWin should have comment or be unexported (golint)
    • Line 38: warning: exported function ShowAboutWin should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function GetSettings should be of the form "GetSettings ..." (golint)
    • Line 60: warning: exported type SettingsWindow should have comment or be unexported (golint)
    • Line 99: warning: exported function SettingsWindowNew should have comment or be unexported (golint)
    • Line 287: warning: exported type SettingsWindowHandlers should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign37%

IneffAssign detects ineffectual assignments in Go code.

    • insteadman/cli/main.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/jhekasoft/insteadman/core/interpreterfinder (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/jhekasoft/insteadman/core/manager (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/jhekasoft/insteadman/core/interpreterfinder (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/jhekasoft/insteadman/core/manager (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • insteadman/gtk/main.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/gotk3/gotk3/gtk (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/jhekasoft/insteadman/core/interpreterfinder (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/jhekasoft/insteadman/core/manager (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/jhekasoft/insteadman/gtk/i18n (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/jhekasoft/insteadman/gtk/osintegration (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/jhekasoft/insteadman/gtk/ui (invalid package name: "") (ineffassign)
    • insteadman/core/configurator/configurator.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/ghodss/yaml (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/ghodss/yaml (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • insteadman/core/manager/manager.go
    • Line 17: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 17: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/jhekasoft/insteadman/core/interpreterfinder (invalid package name: "") (ineffassign)
    • Line 17: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/jhekasoft/insteadman/core/interpreterfinder (invalid package name: "") (ineffassign)
    • insteadman/gtk/ui/main.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 18: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/gosexy/gettext (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/gotk3/gotk3/gdk (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/gotk3/gotk3/glib (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/gotk3/gotk3/pango (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/jhekasoft/insteadman/core/manager (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • Line 18: warning: could not import github.com/jhekasoft/insteadman/gtk/utils (invalid package name: "") (ineffassign)
    • insteadman/core/interpreterfinder/interpreterfinder.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/core/configurator (invalid package name: "") (ineffassign)
    • insteadman/core/manager/game.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/pyk/byten (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/jhekasoft/insteadman/core/utils (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/pyk/byten (invalid package name: "") (ineffassign)
    • insteadman/cli/cli.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/fatih/color (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/fatih/color (invalid package name: "") (ineffassign)
    • insteadman/gtk/i18n/gettext.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/gosexy/gettext (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/gosexy/gettext (invalid package name: "") (ineffassign)
    • insteadman/gtk/ui/error.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/gotk3/gotk3/gtk (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/jhekasoft/insteadman/gtk/i18n (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jhekasoft/insteadman/gtk/osintegration (invalid package name: "") (ineffassign)
    • insteadman/cli/cli_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!