Preparing report...

Report for github.com/go-x-pkg/log

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


golint20%

Golint is a linter for Go source code.

    • log/fns.go
    • Line 29: warning: exported function LogFn should have comment or be unexported (golint)
    • Line 83: warning: exported function Log should have comment or be unexported (golint)
    • Line 84: warning: exported function LogToDiscard should have comment or be unexported (golint)
    • Line 86: warning: exported function LogStd should have comment or be unexported (golint)
    • Line 88: warning: exported function Logf should have comment or be unexported (golint)
    • Line 93: warning: exported function LogfStd should have comment or be unexported (golint)
    • log/level.go
    • Line 5: warning: exported type Level should have comment or be unexported (golint)
    • Line 8: warning: comment on exported const Quiet should be of the form "Quiet ..." (golint)
    • Line 11: warning: comment on exported const Trace should be of the form "Trace ..." (golint)
    • Line 16: warning: comment on exported const Debug should be of the form "Debug ..." (golint)
    • Line 20: warning: comment on exported const Info should be of the form "Info ..." (golint)
    • Line 25: warning: comment on exported const Warn should be of the form "Warn ..." (golint)
    • Line 29: warning: comment on exported const Error should be of the form "Error ..." (golint)
    • Line 33: warning: comment on exported const Critical should be of the form "Critical ..." (golint)
    • Line 49: warning: exported method Level.UnmarshalYAML should have comment or be unexported (golint)
    • Line 55: warning: exported method Level.MarshalYAML should have comment or be unexported (golint)
    • Line 57: warning: exported function NewLevel should have comment or be unexported (golint)
    • log/loggers.go
    • Line 3: warning: comment on exported type Loggers should be of the form "Loggers ..." (with optional leading article) (golint)
    • Line 8: warning: exported function Close should have comment or be unexported (golint)
    • log/type.go
    • Line 3: warning: exported type FnT should have comment or be unexported (golint)
    • Line 4: warning: exported type FnTShrt should have comment or be unexported (golint)
    • Line 6: warning: exported type Logger 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!