Preparing report...

Report for github.com/MontFerret/cli

A+    Excellent!    Found 18 issues across 25 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!


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!


golint28%

Golint is a linter for Go source code.

    • cli/logger/options.go
    • Line 5: warning: exported type Options should have comment or be unexported (golint)
    • Line 12: warning: exported function NewDefaultOptions should have comment or be unexported (golint)
    • cli/browser/browser.go
    • Line 9: warning: exported type Browser should have comment or be unexported (golint)
    • Line 15: warning: exported function Open should have comment or be unexported (golint)
    • Line 31: warning: exported function Wait should have comment or be unexported (golint)
    • Line 37: warning: exported function Close should have comment or be unexported (golint)
    • cli/browser/options.go
    • Line 5: warning: exported type Options should have comment or be unexported (golint)
    • Line 13: warning: exported function NewDefaultOptions should have comment or be unexported (golint)
    • Line 22: warning: exported method Options.ToURL should have comment or be unexported (golint)
    • Line 32: warning: exported method Options.ToFlags should have comment or be unexported (golint)
    • cli/runtime/runtime.go
    • Line 11: warning: exported type Runtime should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported function Run should have comment or be unexported (golint)
    • cli/config/context.go
    • Line 7: warning: exported function With should have comment or be unexported (golint)
    • Line 11: warning: exported function From should have comment or be unexported (golint)
    • cli/config/flags.go
    • Line 6: warning: exported const LoggerLevel should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported var Flags should have comment or be unexported (golint)
    • Line 32: warning: exported var FlagsStr should have comment or be unexported (golint)
    • cli/config/store.go
    • Line 15: warning: exported type KV should have comment or be unexported (golint)
    • Line 20: warning: exported type Store should have comment or be unexported (golint)
    • Line 28: warning: exported function NewStore should have comment or be unexported (golint)
    • Line 61: warning: exported method Store.AppName should have comment or be unexported (golint)
    • Line 65: warning: exported method Store.AppVersion should have comment or be unexported (golint)
    • Line 69: warning: comment on exported method Store.BindFlags should be of the form "BindFlags ..." (golint)
    • Line 74: warning: exported method Store.GetLoggerOptions should have comment or be unexported (golint)
    • Line 84: warning: exported method Store.GetRuntimeOptions should have comment or be unexported (golint)
    • Line 120: warning: exported method Store.GetBrowserOptions should have comment or be unexported (golint)
    • Line 142: warning: exported method Store.Get should have comment or be unexported (golint)
    • Line 150: warning: exported method Store.Set should have comment or be unexported (golint)
    • Line 160: warning: exported method Store.List should have comment or be unexported (golint)
    • cli/runtime/builtin.go
    • Line 16: warning: exported const DefaultRuntime should have comment or be unexported (golint)
    • Line 17: warning: exported const DefaultBrowser should have comment or be unexported (golint)
    • Line 19: warning: exported type Builtin should have comment or be unexported (golint)
    • Line 25: warning: exported function NewBuiltin should have comment or be unexported (golint)
    • Line 33: warning: exported method Builtin.Version should have comment or be unexported (golint)
    • Line 37: warning: exported method Builtin.Run should have comment or be unexported (golint)
    • cli/runtime/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDefaultOptions should have comment or be unexported (golint)
    • Line 35: warning: exported method Options.ToInMemory should have comment or be unexported (golint)
    • Line 57: warning: exported method Options.ToCDP should have comment or be unexported (golint)
    • cli/runtime/remote.go
    • Line 29: warning: exported type Remote should have comment or be unexported (golint)
    • Line 36: warning: exported function NewRemote should have comment or be unexported (golint)
    • Line 45: warning: exported method Remote.Version should have comment or be unexported (golint)
    • Line 61: warning: exported method Remote.Run should have comment or be unexported (golint)
    • cli/logger/logger.go
    • Line 10: warning: exported type Logger should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 31: warning: exported method Logger.Log should have comment or be unexported (golint)
    • Line 35: warning: exported method Logger.Output should have comment or be unexported (golint)
    • cli/browser/browser_linux.go
    • Line 13: warning: exported type LinuxBrowser should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 21: warning: exported method LinuxBrowser.Open should have comment or be unexported (golint)
    • Line 44: warning: exported method LinuxBrowser.Close should have comment or be unexported (golint)
    • cli/logger/level.go
    • Line 9: warning: exported function Levels should have comment or be unexported (golint)
    • Line 19: warning: exported function LevelsFmt should have comment or be unexported (golint)
    • Line 23: warning: exported function ToLevel should have comment or be unexported (golint)
    • cli/cmd/exec.go
    • Line 24: warning: exported const ExecParamFlag should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: comment on exported function ExecCommand should be of the form "ExecCommand ..." (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!