Preparing report...

Report for github.com/fabricatorsltd/logstack

(v0.0.0-20240122153833-5e43be27a4bc)

A+    Excellent!    Found 7 issues across 30 files

Tweet

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!


gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


gocyclo76%

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.

    • console_windows.go
    • Line 50: warning: cyclomatic complexity 29 of function (*ConsoleWriter).writew() is high (> 15) (gocyclo)
    • journal.go
    • Line 36: warning: cyclomatic complexity 25 of function (*JournalWriter).WriteEntry() is high (> 15) (gocyclo)
    • console.go
    • Line 74: warning: cyclomatic complexity 24 of function (*ConsoleWriter).format() is high (> 15) (gocyclo)
    • formatter.go
    • Line 56: warning: cyclomatic complexity 21 of function parseFormatterArgs() is high (> 15) (gocyclo)
    • Line 292: warning: cyclomatic complexity 19 of function jsonUnescape() is high (> 15) (gocyclo)
    • Line 165: warning: cyclomatic complexity 16 of function jsonParseAny() is high (> 15) (gocyclo)
    • file.go
    • Line 154: warning: cyclomatic complexity 21 of function (*FileWriter).rotate() is high (> 15) (gocyclo)
    • syslog.go
    • Line 79: warning: cyclomatic complexity 16 of function (*SyslogWriter).WriteEntry() is high (> 15) (gocyclo)
    • logger.go
    • Line 1967: warning: cyclomatic complexity 34 of function (*Entry).Any() is high (> 15) (gocyclo)
    • Line 470: warning: cyclomatic complexity 16 of function (*Logger).header() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!