Preparing report...

Report for github.com/lab259/rlog

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


gocyclo93%

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.

    • rlog/rlog.go
    • Line 499: warning: cyclomatic complexity 27 of function (*logger).BasicLog() is high (> 15) (gocyclo)

golint56%

Golint is a linter for Go source code.

    • rlog/formatter.go
    • Line 3: warning: exported type LogFormatter should have comment or be unexported (golint)
    • Line 10: warning: exported function AcquireOutput should have comment or be unexported (golint)
    • Line 14: warning: exported function ReleaseOutput should have comment or be unexported (golint)
    • rlog/formatter_default.go
    • Line 13: warning: exported type Color should have comment or be unexported (golint)
    • Line 42: warning: exported function NewDefaultFormatter should have comment or be unexported (golint)
    • rlog/formatter_text.go
    • Line 11: warning: exported type TextFormatter should have comment or be unexported (golint)
    • Line 30: warning: exported method TextFormatter.Format should have comment or be unexported (golint)
    • Line 63: warning: exported method TextFormatter.FormatField should have comment or be unexported (golint)
    • Line 72: warning: exported method TextFormatter.FormatFields should have comment or be unexported (golint)
    • Line 84: warning: exported method TextFormatter.Separator should have comment or be unexported (golint)
    • rlog/logger.go
    • Line 3: warning: exported type Fields should have comment or be unexported (golint)
    • Line 5: warning: exported type FieldsArr should have comment or be unexported (golint)
    • rlog/rlog.go
    • Line 39: warning: exported type Level should have comment or be unexported (golint)
    • Line 45: warning: exported method Level.Bytes should have comment or be unexported (golint)
    • Line 385: warning: exported var DefaultLogger should have comment or be unexported (golint)
    • Line 736: warning: exported function Trace should have comment or be unexported (golint)
    • rlog/config.go
    • Line 11: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • rlog/entry.go
    • Line 3: warning: exported type EntryCallerInfo should have comment or be unexported (golint)
    • Line 11: warning: exported type Entry should have comment or be unexported (golint)
    • Line 21: warning: exported method Entry.Reset 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.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!