Preparing report...

Report for github.com/bwplotka/bingo

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


gocyclo83%

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.

    • bingo/main.go
    • Line 31: warning: cyclomatic complexity 39 of function main() is high (> 15) (gocyclo)
    • bingo/get.go
    • Line 142: warning: cyclomatic complexity 49 of function get() is high (> 15) (gocyclo)
    • Line 529: warning: cyclomatic complexity 21 of function getPackage() is high (> 15) (gocyclo)
    • Line 441: warning: cyclomatic complexity 19 of function resolveInGoModCache() is high (> 15) (gocyclo)

golint72%

Golint is a linter for Go source code.

    • bingo/pkg/runner/runner.go
    • Line 80: warning: exported method Runner.GoVersion should have comment or be unexported (golint)
    • Line 84: warning: exported method Runner.Verbose should have comment or be unexported (golint)
    • Line 136: warning: exported type Runnable should have comment or be unexported (golint)
    • Line 175: warning: exported type GetUpdatePolicy should have comment or be unexported (golint)
    • Line 178: warning: exported const NoUpdatePolicy should have comment (or a comment on this block) or be unexported (golint)
    • bingo/pkg/envars/envars.go
    • Line 12: warning: exported type EnvSlice should have comment or be unexported (golint)
    • Line 14: warning: exported method EnvSlice.Lookup should have comment or be unexported (golint)
    • Line 24: warning: exported method EnvSlice.Set should have comment or be unexported (golint)
    • bingo/pkg/bingo/mod.go
    • Line 31: warning: exported const NoReplaceCommand should have comment (or a comment on this block) or be unexported (golint)
    • Line 183: warning: exported method ModFile.FileName should have comment or be unexported (golint)
    • Line 187: warning: exported method ModFile.AutoReplaceDisabled should have comment or be unexported (golint)
    • Line 196: warning: exported method ModFile.Reload should have comment or be unexported (golint)
    • Line 270: warning: exported method ModFile.DirectPackage should have comment or be unexported (golint)
    • Line 438: warning: exported method PackageRenderable.ToPackages should have comment or be unexported (golint)
    • Line 454: warning: exported type PackageRenderables should have comment or be unexported (golint)
    • Line 456: warning: exported method PackageRenderables.PrintTab should have comment or be unexported (golint)
    • Line 547: warning: exported function SortRenderables should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!