Preparing report...

Report for tlog.app/go/tlog

(v0.0.0-20230716162856-b1eda9cd0940)

A+    Excellent!    Found 15 issues across 64 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!


gocyclo79%

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.

    • tlwire/dumper.go
    • Line 83: warning: cyclomatic complexity 20 of function (*Dumper).dump() is high (> 15) (gocyclo)
    • console.go
    • Line 656: warning: cyclomatic complexity 58 of function (*ConsoleWriter).ConvertValue() is high (> 15) (gocyclo)
    • Line 322: warning: cyclomatic complexity 49 of function (*ConsoleWriter).appendHeader() is high (> 15) (gocyclo)
    • Line 186: warning: cyclomatic complexity 30 of function (*ConsoleWriter).Write() is high (> 15) (gocyclo)
    • Line 863: warning: cyclomatic complexity 27 of function (*ConsoleWriter).AppendDuration() is high (> 15) (gocyclo)
    • Line 508: warning: cyclomatic complexity 18 of function (*ConsoleWriter).appendTime() is high (> 15) (gocyclo)
    • cmd/tlog/tlogcmd/main.go
    • Line 369: warning: cyclomatic complexity 44 of function cat() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 25 of function agentRun() is high (> 15) (gocyclo)
    • Line 557: warning: cyclomatic complexity 16 of function tlzRun() is high (> 15) (gocyclo)
    • convert/web.go
    • Line 61: warning: cyclomatic complexity 25 of function (*Web).Write() is high (> 15) (gocyclo)
    • low/safeadd.go
    • Line 13: warning: cyclomatic complexity 17 of function AppendSafeString() is high (> 15) (gocyclo)
    • convert/json.go
    • Line 129: warning: cyclomatic complexity 33 of function (*JSON).ConvertValue() is high (> 15) (gocyclo)
    • convert/logfmt.go
    • Line 199: warning: cyclomatic complexity 25 of function (*Logfmt).ConvertValue() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 20 of function (*Logfmt).appendPair() is high (> 15) (gocyclo)
    • Line 330: warning: cyclomatic complexity 16 of function (*Logfmt).convertArray() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • console.go
    • Line 909: warning: ineffectual assignment to d (ineffassign)
    • Line 909: warning: ineffectual assignment to d (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!