Preparing report...

Report for github.com/jesseduffield/lazynpm

A+    Excellent!    Found 23 issues across 58 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!


gocyclo96%

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.


golint62%

Golint is a linter for Go source code.

    • lazynpm/pkg/utils/date.go
    • Line 8: warning: exported function UnixToTimeAgo should have comment or be unexported (golint)
    • Line 23: warning: exported function UnixToDate should have comment or be unexported (golint)
    • lazynpm/pkg/commands/package.go
    • Line 10: warning: exported type PackageConfig should have comment or be unexported (golint)
    • Line 45: warning: exported type Author should have comment or be unexported (golint)
    • Line 53: warning: exported method Author.ToString should have comment or be unexported (golint)
    • Line 67: warning: exported type Repository should have comment or be unexported (golint)
    • Line 74: warning: exported method Repository.ToString should have comment or be unexported (golint)
    • Line 81: warning: exported type Package should have comment or be unexported (golint)
    • Line 88: warning: exported method Package.SortedDependencies should have comment or be unexported (golint)
    • Line 136: warning: exported function DepArraysMatch should have comment or be unexported (golint)
    • Line 149: warning: exported method Package.SortedScripts should have comment or be unexported (golint)
    • Line 158: warning: exported method Package.ConfigPath should have comment or be unexported (golint)
    • Line 162: warning: exported method Package.ID should have comment or be unexported (golint)
    • Line 166: warning: exported method Package.Scoped should have comment or be unexported (golint)
    • lazynpm/pkg/theme/theme.go
    • Line 27: warning: exported var OptionsFgColor should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function GetGocuiAttribute should be of the form "GetGocuiAttribute ..." (golint)
    • Line 132: warning: comment on exported function GetBgColor should be of the form "GetBgColor ..." (golint)
    • Line 141: warning: comment on exported function GetFgColor should be of the form "GetFgColor ..." (golint)
    • lazynpm/pkg/commands/dependency.go
    • Line 8: warning: exported type Dependency should have comment or be unexported (golint)
    • Line 19: warning: exported method Dependency.Linked should have comment or be unexported (golint)
    • Line 23: warning: exported method Dependency.ConfigPath should have comment or be unexported (golint)
    • Line 27: warning: exported method Dependency.ID should have comment or be unexported (golint)
    • Line 31: warning: exported function KindKeyMap should have comment or be unexported (golint)
    • Line 40: warning: exported function KindFlagMap should have comment or be unexported (golint)
    • Line 48: warning: exported type KindFlag should have comment or be unexported (golint)
    • Line 53: warning: exported function KindFlags should have comment or be unexported (golint)
    • Line 61: warning: exported method Dependency.KindKey should have comment or be unexported (golint)
    • lazynpm/pkg/commands/npm_manager.go
    • Line 42: warning: exported method NpmManager.IsLinked should have comment or be unexported (golint)
    • Line 66: warning: exported method NpmManager.GetPackages should have comment or be unexported (golint)
    • Line 104: warning: exported method NpmManager.ChdirToPackageRoot should have comment or be unexported (golint)
    • Line 129: warning: exported method NpmManager.GetDeps should have comment or be unexported (golint)
    • Line 177: warning: exported method NpmManager.GetTarballs should have comment or be unexported (golint)
    • Line 195: warning: exported method NpmManager.RemoveScript should have comment or be unexported (golint)
    • Line 206: warning: exported method NpmManager.EditDepConstraint should have comment or be unexported (golint)
    • Line 224: warning: exported method NpmManager.EditOrAddScript should have comment or be unexported (golint)
    • lazynpm/pkg/gui/gui.go
    • Line 34: warning: exported const SCREEN_NORMAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported const StartupPopupVersion should have comment or be unexported (golint)
    • Line 161: warning: comment on exported function NewGui should be of the form "NewGui ..." (golint)
    • lazynpm/pkg/commands/command_view.go
    • Line 11: warning: exported type CommandView should have comment or be unexported (golint)
    • Line 18: warning: exported method CommandView.Status should have comment or be unexported (golint)
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 32: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 38: warning: exported method CommandView.Running should have comment or be unexported (golint)
    • Line 42: warning: exported type CommandViewMap should have comment or be unexported (golint)
    • lazynpm/pkg/utils/utils.go
    • Line 114: warning: exported function RenderDisplayStrings should have comment or be unexported (golint)
    • Line 225: warning: exported function AsJson should have comment or be unexported (golint)
    • Line 268: warning: comment on exported function ModuloWithWrap should be of the form "ModuloWithWrap ..." (golint)
    • Line 324: warning: exported function FindStringSubmatch should have comment or be unexported (golint)
    • lazynpm/pkg/commands/os.go
    • Line 63: warning: exported method OSCommand.SetBeforeExecuteCmd should have comment or be unexported (golint)
    • Line 67: warning: exported type RunCommandOptions should have comment or be unexported (golint)
    • Line 71: warning: exported method OSCommand.RunCommandWithOutputWithOptions should have comment or be unexported (golint)
    • Line 78: warning: exported method OSCommand.RunCommandWithOptions should have comment or be unexported (golint)
    • Line 380: warning: exported function Kill should have comment or be unexported (golint)
    • Line 388: warning: exported function RunLineOutputCmd should have comment or be unexported (golint)
    • Line 416: warning: exported function FileExists 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!


misspell98%

Misspell Finds commonly misspelled English words