Preparing report...

Report for github.com/mef13/zslog

A    Great!    Found 5 issues across 7 files

Tweet

gofmt71%

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!


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!


golint42%

Golint is a linter for Go source code.

    • zslog/file.go
    • Line 11: warning: exported type FileConfig should have comment or be unexported (golint)
    • Line 38: warning: exported function File should have comment or be unexported (golint)
    • zslog/http.go
    • Line 12: warning: exported type HttpWriter should have comment or be unexported (golint)
    • Line 19: warning: exported method HttpWriter.WriteLevel should have comment or be unexported (golint)
    • Line 41: warning: exported function GetHttpWriter should have comment or be unexported (golint)
    • zslog/sentry.go
    • Line 23: warning: exported type SentryConfig should have comment or be unexported (golint)
    • Line 25: warning: exported type SentryWriter should have comment or be unexported (golint)
    • Line 91: warning: exported function SentryFromClient should have comment or be unexported (golint)
    • Line 112: warning: exported method SentryWriter.WriteLevel should have comment or be unexported (golint)
    • Line 129: warning: exported method SentryWriter.Close should have comment or be unexported (golint)
    • zslog/zerolog.go
    • Line 35: warning: exported var ErrInitWriter should have comment or be unexported (golint)
    • Line 39: warning: exported type WriterError should have comment or be unexported (golint)
    • Line 49: warning: exported function PrintWriterError should have comment or be unexported (golint)
    • Line 65: warning: exported function NewLevels should have comment or be unexported (golint)
    • Line 110: warning: exported type LevelWriter should have comment or be unexported (golint)
    • Line 115: warning: exported method LevelWriter.Close should have comment or be unexported (golint)
    • Line 122: warning: exported method LevelWriter.WriteLevel should have comment or be unexported (golint)
    • Line 133: warning: exported function StdOut should have comment or be unexported (golint)
    • Line 143: warning: exported function StdErr should have comment or be unexported (golint)
    • Line 153: warning: exported function InitLogger should have comment or be unexported (golint)
    • Line 159: warning: exported function New should have comment or be unexported (golint)
    • Line 208: warning: exported function GetLogger should have comment or be unexported (golint)
    • Line 234: warning: exported function Trace should have comment or be unexported (golint)
    • Line 237: warning: exported function Debug should have comment or be unexported (golint)
    • Line 240: warning: exported function Info should have comment or be unexported (golint)
    • Line 243: warning: exported function Warn should have comment or be unexported (golint)
    • Line 246: warning: exported function Error should have comment or be unexported (golint)
    • Line 249: warning: exported function Fatal should have comment or be unexported (golint)
    • Line 252: warning: exported function Panic should have comment or be unexported (golint)
    • Line 262: warning: exported function Close should have comment or be unexported (golint)
    • Line 266: warning: exported function SkipSentry should have comment or be unexported (golint)
    • Line 271: warning: exported function SetTimeFieldFormat 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!