Preparing report...

Report for github.com/tim-koehler/tims-logger

A    Great!    Found 2 issues across 2 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.

    • tims-logger/logger.go
    • Line 11: warning: exported const JSON should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported const DEBUG should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type LogType should have comment or be unexported (golint)
    • Line 23: warning: exported type LogLevel should have comment or be unexported (golint)
    • Line 24: warning: exported type Custom should have comment or be unexported (golint)
    • Line 31: warning: exported function SetLogLevel should have comment or be unexported (golint)
    • Line 46: warning: exported function GetLogLevel should have comment or be unexported (golint)
    • Line 50: warning: exported function SetLogType should have comment or be unexported (golint)
    • Line 61: warning: exported function GetLogType should have comment or be unexported (golint)
    • Line 65: warning: exported function SetDateFormat should have comment or be unexported (golint)
    • Line 69: warning: exported function GetDateFormat should have comment or be unexported (golint)
    • Line 73: warning: exported function SetColoredLogs should have comment or be unexported (golint)
    • Line 77: warning: exported function Debugln should have comment or be unexported (golint)
    • Line 89: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 103: warning: exported function Infoln should have comment or be unexported (golint)
    • Line 115: warning: exported function Infof should have comment or be unexported (golint)
    • Line 129: warning: exported function Warningln should have comment or be unexported (golint)
    • Line 141: warning: exported function Warningf should have comment or be unexported (golint)
    • Line 155: warning: exported function Errorln should have comment or be unexported (golint)
    • Line 167: warning: exported function Errorf should have comment or be unexported (golint)
    • Line 181: warning: exported function CreateString should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!