Preparing report...

Report for github.com/muir/nflex

(v0.0.0-20211229025358-8fb05e51583e)

A    Great!    Found 4 issues across 8 files

Tweet

gofmt87%

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!


gocyclo87%

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.

    • yaml.go
    • Line 189: warning: cyclomatic complexity 16 of function (parsedYAML).lookup() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • nflex.go
    • Line 13: warning: exported var ErrDoesNotExist should have comment or be unexported (golint)
    • Line 14: warning: exported var ErrWrongType should have comment or be unexported (golint)
    • Line 16: warning: exported type NodeType should have comment or be unexported (golint)
    • Line 19: warning: exported const Undefined should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported type UnmarshalFileArg should have comment or be unexported (golint)
    • Line 57: warning: exported function WithFS should have comment or be unexported (golint)
    • Line 63: warning: exported function UnmarshalFile should have comment or be unexported (golint)
    • Line 102: warning: comment on exported function UnknownFileTypeError should be of the form "UnknownFileTypeError ..." (golint)
    • Line 120: warning: exported function IsUnknownFileTypeError should have comment or be unexported (golint)
    • yaml.go
    • Line 20: warning: exported function UnmarshalYAML should have comment or be unexported (golint)
    • json.go
    • Line 15: warning: exported function UnmarshalJSON should have comment or be unexported (golint)
    • multisource.go
    • Line 9: warning: exported type MultiSource should have comment or be unexported (golint)
    • Line 15: warning: exported method MultiSource.Copy should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMultiSource should have comment or be unexported (golint)
    • Line 44: warning: exported method MultiSource.Mutate should have comment or be unexported (golint)
    • Line 126: warning: exported method MultiSource.AddSource should have comment or be unexported (golint)
    • Line 130: warning: exported method MultiSource.Recurse should have comment or be unexported (golint)
    • Line 173: warning: exported method MultiSource.Exists should have comment or be unexported (golint)
    • Line 178: warning: exported method MultiSource.GetBool should have comment or be unexported (golint)
    • Line 185: warning: exported method MultiSource.GetInt should have comment or be unexported (golint)
    • Line 192: warning: exported method MultiSource.GetFloat should have comment or be unexported (golint)
    • Line 199: warning: exported method MultiSource.GetString should have comment or be unexported (golint)
    • Line 206: warning: exported method MultiSource.Type should have comment or be unexported (golint)
    • Line 213: warning: exported method MultiSource.Keys should have comment or be unexported (golint)
    • Line 255: warning: exported method MultiSource.Len should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.

    • yaml.go
    • Line 217: warning: ineffectual assignment to cache (ineffassign)
    • Line 217: warning: ineffectual assignment to cache (ineffassign)

misspell87%

Misspell Finds commonly misspelled English words

    • nflex.go
    • Line 30: warning: "arbitray" is a misspelling of "arbitrary" (misspell)