Preparing report...

Report for github.com/eberkund/foreplay

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


golint78%

Golint is a linter for Go source code.

    • foreplay/install/install.go
    • Line 9: warning: exported var Fs should have comment or be unexported (golint)
    • Line 11: warning: exported function Init should have comment or be unexported (golint)
    • Line 20: warning: exported function Install should have comment or be unexported (golint)
    • Line 28: warning: exported function Remove should have comment or be unexported (golint)
    • Line 32: warning: exported function PreCommitHookPath should have comment or be unexported (golint)
    • foreplay/config/config.go
    • Line 10: warning: exported var Fs should have comment or be unexported (golint)
    • Line 27: warning: comment on exported function Get should be of the form "Get ..." (golint)
    • foreplay/run/wire_providers.go
    • Line 13: warning: exported type Shell should have comment or be unexported (golint)
    • Line 15: warning: exported function GetConfig should have comment or be unexported (golint)
    • Line 19: warning: exported function GetShell should have comment or be unexported (golint)
    • Line 34: warning: exported function GetPrinter should have comment or be unexported (golint)
    • Line 38: warning: exported function GetRun should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.

    • foreplay/cmd/run.go
    • Line 21: warning: InitializeRunner not declared by package run (ineffassign)
    • Line 21: warning: InitializeRunner not declared by package run (ineffassign)
    • foreplay/run/run_test.go
    • Line 9: warning: no required module provides package github.com/eberkund/foreplay/mockstest; to add it: (ineffassign)
    • Line 9: warning: could not import github.com/eberkund/foreplay/mockstest (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!