Preparing report...

Report for github.com/tint/env

(v0.0.0-20211211071420-9f9c35d87fa2)

A    Great!    Found 2 issues across 2 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!


golint0%

Golint is a linter for Go source code.

    • env.go
    • Line 11: warning: exported var RootPath should have comment or be unexported (golint)
    • Line 15: warning: exported function Setup should have comment or be unexported (golint)
    • util.go
    • Line 19: warning: exported function Lookup should have comment or be unexported (golint)
    • Line 27: warning: exported function Exists should have comment or be unexported (golint)
    • Line 32: warning: exported function Unknown should have comment or be unexported (golint)
    • Line 42: warning: exported function String should have comment or be unexported (golint)
    • Line 52: warning: exported function Bytes should have comment or be unexported (golint)
    • Line 62: warning: exported function Int should have comment or be unexported (golint)
    • Line 75: warning: exported function Duration should have comment or be unexported (golint)
    • Line 88: warning: exported function Bool should have comment or be unexported (golint)
    • Line 101: warning: exported function Map should have comment or be unexported (golint)
    • Line 114: warning: exported function Where should have comment or be unexported (golint)
    • Line 127: warning: exported function Environ 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!