Preparing report...

Report for github.com/GetStream/vg

A+    Excellent!    Found 8 issues across 32 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.


golint84%

Golint is a linter for Go source code.

    • vg/internal/utils/utils.go
    • Line 16: warning: exported function ReplaceHomeDir should have comment or be unexported (golint)
    • Line 29: warning: exported function VirtualgoRoot should have comment or be unexported (golint)
    • Line 41: warning: exported function PkgToDir should have comment or be unexported (golint)
    • Line 45: warning: exported function DirToPkg should have comment or be unexported (golint)
    • Line 49: warning: exported function OriginalGopath should have comment or be unexported (golint)
    • Line 74: warning: exported function VendorExists should have comment or be unexported (golint)
    • Line 78: warning: exported function CurrentGopath should have comment or be unexported (golint)
    • vg/internal/workspace/localInstall.go
    • Line 17: warning: exported method Workspace.InstallLocalPackagePersistently should have comment or be unexported (golint)
    • Line 34: warning: exported method Workspace.InstallLocalPackage should have comment or be unexported (golint)
    • Line 119: warning: exported method Workspace.InstallSavedLocalPackages should have comment or be unexported (golint)
    • Line 139: warning: exported method Workspace.Uninstall should have comment or be unexported (golint)
    • Line 274: warning: exported method Workspace.ClearSrc should have comment or be unexported (golint)
    • Line 289: warning: exported method Workspace.UninstallAllLocalInstalls should have comment or be unexported (golint)
    • Line 309: warning: exported method Workspace.UnpersistLocalInstall should have comment or be unexported (golint)
    • vg/internal/workspace/settings.go
    • Line 12: warning: exported type Settings should have comment or be unexported (golint)
    • Line 24: warning: exported function NewSettings should have comment or be unexported (golint)
    • Line 30: warning: exported function DefaultSettings should have comment or be unexported (golint)
    • Line 46: warning: exported method Workspace.LoadSettings should have comment or be unexported (golint)
    • Line 63: warning: exported method Workspace.SaveSettings should have comment or be unexported (golint)
    • Line 78: warning: exported method Workspace.SettingsPath should have comment or be unexported (golint)
    • vg/internal/workspace/workspace.go
    • Line 13: warning: exported type Workspace should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported function Current should have comment or be unexported (golint)
    • Line 36: warning: exported method Workspace.Name should have comment or be unexported (golint)
    • Line 40: warning: exported method Workspace.Path should have comment or be unexported (golint)
    • Line 44: warning: exported method Workspace.Src should have comment or be unexported (golint)
    • Line 48: warning: exported method Workspace.Pkg should have comment or be unexported (golint)
    • Line 56: warning: exported method Workspace.UpdateEnsureMarker 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!


misspell87%

Misspell Finds commonly misspelled English words