Preparing report...

Report for github.com/loopholelabs/releaser

(v0.0.0-20211125113118-b97c5371154c)

A    Great!    Found 3 issues across 6 files

Tweet

gofmt83%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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.


golint50%

Golint is a linter for Go source code.

    • releaser/embed/embed.go
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 22: warning: exported const StartTag should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: comment on exported var Shell should be of the form "Shell ..." (golint)
    • releaser/pkg/cache/cache.go
    • Line 37: warning: exported type Cache should have comment or be unexported (golint)
    • Line 51: warning: exported function New should have comment or be unexported (golint)
    • Line 65: warning: exported method Cache.GetVersions should have comment or be unexported (golint)
    • Line 67: warning: should omit 2nd value from range; this loop is equivalent to `for version := range ...` (golint)
    • Line 74: warning: exported method Cache.GetVersion should have comment or be unexported (golint)
    • Line 81: warning: exported method Cache.GetRelease should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • releaser/pkg/server/server.go
    • Line 32: warning: exported type Server should have comment or be unexported (golint)
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 69: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 90: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 104: warning: exported method Server.GetRoot should have comment or be unexported (golint)
    • Line 119: warning: exported method Server.GetPing should have comment or be unexported (golint)
    • Line 123: warning: exported method Server.GetReleases should have comment or be unexported (golint)
    • Line 130: warning: exported method Server.GetRelease should have comment or be unexported (golint)
    • Line 146: warning: exported method Server.GetSpecificRelease 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!