Preparing report...

Report for github.com/gokcehan/lf

(v0.0.0-20230916131513-6c54b8870c06)

A+    Excellent!    Found 12 issues across 29 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!


gofmt100%

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

No problems detected. Good job!


gocyclo58%

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.

    • eval.go
    • Line 1527: warning: cyclomatic complexity 340 of function (*callExpr).eval() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 296 of function (*setExpr).eval() is high (> 15) (gocyclo)
    • Line 1325: warning: cyclomatic complexity 54 of function insert() is high (> 15) (gocyclo)
    • Line 935: warning: cyclomatic complexity 50 of function (*setLocalExpr).eval() is high (> 15) (gocyclo)
    • ui.go
    • Line 1274: warning: cyclomatic complexity 55 of function (*ui).readNormalEvent() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 47 of function (*win).printDir() is high (> 15) (gocyclo)
    • Line 833: warning: cyclomatic complexity 35 of function (*ui).drawRuler() is high (> 15) (gocyclo)
    • Line 1007: warning: cyclomatic complexity 20 of function (*ui).draw() is high (> 15) (gocyclo)
    • app.go
    • Line 244: warning: cyclomatic complexity 55 of function (*app).loop() is high (> 15) (gocyclo)
    • Line 498: warning: cyclomatic complexity 17 of function (*app).runShell() is high (> 15) (gocyclo)
    • nav.go
    • Line 212: warning: cyclomatic complexity 42 of function (*dir).sort() is high (> 15) (gocyclo)
    • Line 1356: warning: cyclomatic complexity 19 of function (*nav).moveAsync() is high (> 15) (gocyclo)
    • Line 825: warning: cyclomatic complexity 17 of function (*nav).preview() is high (> 15) (gocyclo)
    • colors.go
    • Line 92: warning: cyclomatic complexity 33 of function applyAnsiCodes() is high (> 15) (gocyclo)
    • Line 274: warning: cyclomatic complexity 27 of function (styleMap).get() is high (> 15) (gocyclo)
    • icons.go
    • Line 101: warning: cyclomatic complexity 27 of function (iconMap).get() is high (> 15) (gocyclo)
    • server.go
    • Line 71: warning: cyclomatic complexity 25 of function handleConn() is high (> 15) (gocyclo)
    • misc.go
    • Line 158: warning: cyclomatic complexity 24 of function readPairs() is high (> 15) (gocyclo)
    • main.go
    • Line 200: warning: cyclomatic complexity 19 of function main() is high (> 15) (gocyclo)
    • scan.go
    • Line 102: warning: cyclomatic complexity 66 of function (*scanner).scan() is high (> 15) (gocyclo)
    • parse.go
    • Line 162: warning: cyclomatic complexity 28 of function (*parser).parseExpr() is high (> 15) (gocyclo)
    • client.go
    • Line 28: warning: cyclomatic complexity 17 of function run() 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!