Preparing report...

Report for codeberg.org/fractalqb/qblog

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


golint33%

Golint is a linter for Go source code.

    • /codeberg.org/fractalqb/qblog/ctx/map.go
    • Line 3: warning: exported type Map should have comment or be unexported (golint)
    • Line 5: warning: exported method Map.Value should have comment or be unexported (golint)
    • Line 9: warning: exported method Map.ForEach should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/qblog/ctx/std.go
    • Line 7: warning: exported type Std should have comment or be unexported (golint)
    • Line 12: warning: exported method Std.Value should have comment or be unexported (golint)
    • Line 16: warning: exported method Std.ForEach should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/qblog/basic_fmt.go
    • Line 10: warning: exported type BasicTsFlags should have comment or be unexported (golint)
    • Line 13: warning: exported const BasicTsYear should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported const Default should have comment or be unexported (golint)
    • Line 41: warning: exported method BasicTsFlags.Format should have comment or be unexported (golint)
    • /codeberg.org/fractalqb/qblog/qblog.go
    • Line 1: warning: package comment should be of the form "Package qblog ..." (golint)
    • Line 16: warning: exported type Level should have comment or be unexported (golint)
    • Line 18: warning: comment on exported var Testing should be of the form "Testing ..." (golint)
    • Line 21: warning: exported type TestFatal should have comment or be unexported (golint)
    • Line 23: warning: exported type TestPanic should have comment or be unexported (golint)
    • Line 26: warning: exported const LmostIrrelevant should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: comment on exported const Loff should be of the form "Loff ..." (golint)
    • Line 42: warning: exported function LevelName should have comment or be unexported (golint)
    • Line 44: warning: comment on exported function SetLevelName should be of the form "SetLevelName ..." (golint)
    • Line 63: warning: exported function MaxLevelNameLen should have comment or be unexported (golint)
    • Line 65: warning: exported type Context should have comment or be unexported (golint)
    • Line 70: warning: exported type Formatter should have comment or be unexported (golint)
    • Line 99: warning: exported const FsrcLoc should have comment (or a comment on this block) or be unexported (golint)
    • Line 103: warning: exported type Logger should have comment or be unexported (golint)
    • Line 114: warning: exported var Log should have comment or be unexported (golint)
    • Line 120: warning: exported function New should have comment or be unexported (golint)
    • Line 137: warning: exported method Logger.Flags should have comment or be unexported (golint)
    • Line 139: warning: exported method Logger.SetFlags should have comment or be unexported (golint)
    • Line 145: warning: exported method Logger.Output should have comment or be unexported (golint)
    • Line 147: warning: exported method Logger.SetOutput should have comment or be unexported (golint)
    • Line 153: warning: exported method Logger.Logs should have comment or be unexported (golint)
    • Line 165: warning: exported type Str should have comment or be unexported (golint)
    • Line 167: warning: exported method Str.WriteTo should have comment or be unexported (golint)
    • Line 174: warning: exported function Fmt should have comment or be unexported (golint)
    • Line 176: warning: exported function Err should have comment or be unexported (golint)
    • Line 178: warning: exported method Logger.Wr should have comment or be unexported (golint)
    • Line 182: warning: exported method Logger.SetContext should have comment or be unexported (golint)
    • Line 189: warning: exported method Logger.Trace should have comment or be unexported (golint)
    • Line 193: warning: exported method Logger.Debug should have comment or be unexported (golint)
    • Line 197: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 201: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 209: warning: exported method Logger.Panic should have comment or be unexported (golint)
    • Line 213: warning: exported method Logger.Fatal should have comment or be unexported (golint)
    • Line 219: warning: exported method Logger.Out should have comment or be unexported (golint)
    • Line 267: warning: exported type FmtMsg should have comment or be unexported (golint)
    • Line 272: warning: exported method FmtMsg.WriteTo should have comment or be unexported (golint)
    • Line 279: warning: exported type ErrMsg should have comment or be unexported (golint)
    • Line 281: warning: exported method ErrMsg.WriteTo 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!


misspell88%

Misspell Finds commonly misspelled English words