Preparing report...

Report for github.com/sinlovgo/zlog

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


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!


golint50%

Golint is a linter for Go source code.

    • zlog/zlog.go
    • Line 5: warning: exported type ZapLogger should have comment or be unexported (golint)
    • Line 108: warning: comment on exported type LoggerGlobal should be of the form "LoggerGlobal ..." (with optional leading article) (golint)
    • Line 144: warning: comment on exported function Debug should be of the form "Debug ..." (golint)
    • Line 150: warning: comment on exported function Info should be of the form "Info ..." (golint)
    • Line 156: warning: comment on exported function Warn should be of the form "Warn ..." (golint)
    • Line 162: warning: comment on exported function Error should be of the form "Error ..." (golint)
    • Line 168: warning: comment on exported function DPanic should be of the form "DPanic ..." (golint)
    • Line 175: warning: comment on exported function Panic should be of the form "Panic ..." (golint)
    • Line 181: warning: comment on exported function Fatal should be of the form "Fatal ..." (golint)
    • Line 187: warning: comment on exported function Debugf should be of the form "Debugf ..." (golint)
    • Line 194: warning: comment on exported function Infof should be of the form "Infof ..." (golint)
    • Line 200: warning: comment on exported function Warnf should be of the form "Warnf ..." (golint)
    • Line 206: warning: comment on exported function Errorf should be of the form "Errorf ..." (golint)
    • Line 212: warning: comment on exported function DPanicf should be of the form "DPanicf ..." (golint)
    • Line 219: warning: comment on exported function Panicf should be of the form "Panicf ..." (golint)
    • Line 225: warning: comment on exported function Fatalf should be of the form "Fatalf ..." (golint)
    • Line 231: warning: comment on exported function Debugw should be of the form "Debugw ..." (golint)
    • Line 241: warning: comment on exported function Infow should be of the form "Infow ..." (golint)
    • Line 248: warning: comment on exported function Warnw should be of the form "Warnw ..." (golint)
    • Line 255: warning: comment on exported function Errorw should be of the form "Errorw ..." (golint)
    • Line 262: warning: comment on exported function DPanicw should be of the form "DPanicw ..." (golint)
    • Line 270: warning: comment on exported function Panicw should be of the form "Panicw ..." (golint)
    • Line 277: warning: comment on exported function Fatalw should be of the form "Fatalw ..." (golint)
    • Line 284: warning: comment on exported function Sync should be of the form "Sync ..." (golint)
    • zlog/zloginit.go
    • Line 9: warning: exported var Wrapper should have comment or be unexported (golint)
    • Line 10: warning: exported var Sugared should have comment or be unexported (golint)
    • Line 12: warning: comment on exported function Init should be of the form "Init ..." (golint)
    • Line 19: warning: comment on exported function InitType should be of the form "InitType ..." (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!