Preparing report...

Report for github.com/windler/ws

A    Great!    Found 13 issues across 19 files

Tweet

gofmt89%

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!


golint36%

Golint is a linter for Go source code.

    • ws/app/commands/command.go
    • Line 3: warning: exported type WSCommand should have comment or be unexported (golint)
    • Line 12: warning: exported type WSCommandFlag should have comment or be unexported (golint)
    • Line 18: warning: exported type WSCommandContext should have comment or be unexported (golint)
    • Line 26: warning: exported type BaseCommand should have comment or be unexported (golint)
    • Line 35: warning: exported method BaseCommand.GetDescription should have comment or be unexported (golint)
    • Line 39: warning: exported method BaseCommand.GetAliases should have comment or be unexported (golint)
    • Line 43: warning: exported method BaseCommand.GetCommand should have comment or be unexported (golint)
    • Line 47: warning: exported method BaseCommand.GetAction should have comment or be unexported (golint)
    • Line 51: warning: exported method BaseCommand.GetSubcommands should have comment or be unexported (golint)
    • Line 59: warning: exported method BaseCommand.GetStringFlags should have comment or be unexported (golint)
    • ws/app/commands/config.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 10: warning: exported type CustomCommand should have comment or be unexported (golint)
    • ws/app/commands/exec.go
    • Line 11: warning: exported type CustomCommandExecutor should have comment or be unexported (golint)
    • Line 17: warning: exported type SHExecutor should have comment or be unexported (golint)
    • Line 21: warning: exported method SHExecutor.ExecInCurrentWs should have comment or be unexported (golint)
    • Line 25: warning: exported method SHExecutor.Exec should have comment or be unexported (golint)
    • Line 29: warning: exported method SHExecutor.ExecToString should have comment or be unexported (golint)
    • ws/app/commands/customCommand.go
    • Line 7: warning: comment on exported type CustomCommandFactory should be of the form "CustomCommandFactory ..." (with optional leading article) (golint)
    • Line 26: warning: exported method CustomCommandFactory.UI should have comment or be unexported (golint)
    • ws/app/commands/flags.go
    • Line 3: warning: exported type StringFlag should have comment or be unexported (golint)
    • Line 8: warning: exported method StringFlag.GetName should have comment or be unexported (golint)
    • Line 12: warning: exported method StringFlag.GetUsage should have comment or be unexported (golint)
    • Line 16: warning: exported method StringFlag.GetType should have comment or be unexported (golint)
    • ws/app/commands/listWs.go
    • Line 19: warning: exported type WsInfoRetriever should have comment or be unexported (golint)
    • Line 45: warning: exported method ListWsFactory.UI should have comment or be unexported (golint)
    • ws/app/git/git.go
    • Line 12: warning: exported const StatusCodeOk should have comment (or a comment on this block) or be unexported (golint)
    • ws/app/ui/consoleUi.go
    • Line 16: warning: exported method ConsoleUI.PrintString should have comment or be unexported (golint)
    • Line 39: warning: exported method ConsoleUI.PrintTable should have comment or be unexported (golint)
    • ws/app/app.go
    • Line 46: warning: exported method ProjHeroApp.SetAction should have comment or be unexported (golint)
    • ws/app/commands/ws.go
    • Line 11: warning: exported type WorkspaceRetriever should have comment or be unexported (golint)
    • Line 17: warning: exported type FSWorkspaceRetriever should have comment or be unexported (golint)
    • Line 19: warning: exported method FSWorkspaceRetriever.GetWorkspacesIn should have comment or be unexported (golint)
    • Line 23: warning: exported method FSWorkspaceRetriever.GetCurrentWorkspace should have comment or be unexported (golint)
    • Line 31: warning: exported method FSWorkspaceRetriever.GetWorkspaceByPattern 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!


misspell89%

Misspell Finds commonly misspelled English words

    • ws/app/ui/consoleUi.go
    • Line 41: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 44: warning: "seperator" is a misspelling of "separator" (misspell)
    • Line 44: warning: "seperator" is a misspelling of "separator" (misspell)