Preparing report...

Report for github.com/trevex/copre

(v0.0.0-20220101183737-4bbd2501169a)

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

    • flagset.go
    • Line 72: warning: cyclomatic complexity 40 of function listFlags() is high (> 15) (gocyclo)
    • env.go
    • Line 108: warning: cyclomatic complexity 29 of function convertString() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 16 of function Env() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • file.go
    • Line 17: warning: exported type FileOption should have comment or be unexported (golint)
    • Line 27: warning: exported function UseSearchPaths should have comment or be unexported (golint)
    • Line 33: warning: exported function MergeFiles should have comment or be unexported (golint)
    • Line 43: warning: exported function IgnoreNotFound should have comment or be unexported (golint)
    • Line 53: warning: exported function ExpandEnv should have comment or be unexported (golint)
    • Line 63: warning: exported function File should have comment or be unexported (golint)
    • flagset.go
    • Line 15: warning: exported type FlagSetOption should have comment or be unexported (golint)
    • Line 37: warning: exported function ComputeFlagName should have comment or be unexported (golint)
    • Line 43: warning: exported function FlagSet should have comment or be unexported (golint)
    • load.go
    • Line 10: warning: exported type UnmarshalFunc should have comment or be unexported (golint)
    • Line 12: warning: comment on exported type Loader should be of the form "Loader ..." (with optional leading article) (golint)
    • Line 17: warning: exported type LoaderFunc should have comment or be unexported (golint)
    • Line 19: warning: exported method LoaderFunc.Process should have comment or be unexported (golint)
    • Line 23: warning: exported function Load should have comment or be unexported (golint)
    • naming_conventions.go
    • Line 10: warning: exported function UpperSnakeCase should have comment or be unexported (golint)
    • Line 14: warning: exported function LowerSnakeCase should have comment or be unexported (golint)
    • Line 18: warning: exported function KebabCase should have comment or be unexported (golint)
    • Line 22: warning: exported function CamelCase should have comment or be unexported (golint)
    • Line 28: warning: exported function PascalCase should have comment or be unexported (golint)
    • Line 33: warning: exported function SplitPathIntoWords should have comment or be unexported (golint)
    • struct_walk.go
    • Line 14: warning: exported function StructWalk should have comment or be unexported (golint)
    • env.go
    • Line 22: warning: exported type EnvOption should have comment or be unexported (golint)
    • Line 32: warning: exported function WithPrefix should have comment or be unexported (golint)
    • Line 38: warning: exported function ComputeEnvKey should have comment or be unexported (golint)
    • Line 44: warning: exported function Env 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!


misspell83%

Misspell Finds commonly misspelled English words

    • load_test.go
    • Line 105: warning: "precendence" is a misspelling of "precedence" (misspell)
    • Line 106: warning: "precendence" is a misspelling of "precedence" (misspell)
    • Line 107: warning: "precendence" is a misspelling of "precedence" (misspell)
    • Line 123: warning: "precendence" is a misspelling of "precedence" (misspell)