Preparing report...

Report for github.com/nyaosorg/nyagos

(v0.0.0-20220429032510-e9cd5f929493)

A+    Excellent!    Found 22 issues across 172 files

Tweet

gofmt99%

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


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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo87%

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.

    • mains/io.go
    • Line 292: warning: cyclomatic complexity 29 of function fileRead() is high (> 15) (gocyclo)
    • commands/ls_windows.go
    • Line 79: warning: cyclomatic complexity 26 of function lsOneLong() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 21 of function lsFolder() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 19 of function lsCore() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 19 of function lsBox() is high (> 15) (gocyclo)
    • shell/parser.go
    • Line 347: warning: cyclomatic complexity 61 of function parse1() is high (> 15) (gocyclo)
    • Line 147: warning: cyclomatic complexity 42 of function string2word() is high (> 15) (gocyclo)
    • history/history.go
    • Line 37: warning: cyclomatic complexity 35 of function (*Container).Replace() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 18 of function ExpandMacro() is high (> 15) (gocyclo)
    • frame/prompt.go
    • Line 14: warning: cyclomatic complexity 31 of function Format2Prompt() is high (> 15) (gocyclo)
    • completion/completion.go
    • Line 96: warning: cyclomatic complexity 25 of function listUpComplete() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 19 of function KeyFuncCompletion() is high (> 15) (gocyclo)
    • alias/expand.go
    • Line 13: warning: cyclomatic complexity 21 of function ExpandMacro() is high (> 15) (gocyclo)
    • mains/utf8lua.go
    • Line 51: warning: cyclomatic complexity 29 of function runeCountLua() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 20 of function utf8offset() is high (> 15) (gocyclo)
    • commands/copy.go
    • Line 85: warning: cyclomatic complexity 35 of function (copyMoveT).Run() is high (> 15) (gocyclo)
    • mains/lua.go
    • Line 303: warning: cyclomatic complexity 35 of function interfaceToLValue() is high (> 15) (gocyclo)

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!