Preparing report...

Report for github.com/go-logr/logr

A+    Excellent!    Found 3 issues across 11 files

Tweet

gofmt90%

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!


gocyclo90%

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.


golint72%

Golint is a linter for Go source code.

    • logr/examples/tab_logger.go
    • Line 39: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 42: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • logr/examples/usage_example.go
    • Line 54: warning: exported type Object should have comment or be unexported (golint)
    • Line 60: warning: exported type Client should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 75: warning: exported method Client.Save should have comment or be unexported (golint)
    • Line 84: warning: exported method Client.WatchNext should have comment or be unexported (golint)
    • Line 101: warning: exported type Controller should have comment or be unexported (golint)
    • Line 107: warning: exported method Controller.Run should have comment or be unexported (golint)
    • Line 144: warning: exported function NewController should have comment or be unexported (golint)
    • logr/funcr/funcr.go
    • Line 64: warning: exported const None should have comment (or a comment on this block) 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!