Preparing report...

Report for github.com/zyedidia/micro

(v1.4.1)

A+    Excellent!    Found 24 issues across 58 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!


gofmt89%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo68%

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.

    • cmd/micro/messenger.go
    • Line 469: warning: cyclomatic complexity 29 of function (*Messenger).HandleEvent() is high (> 15) (gocyclo)
    • Line 242: warning: cyclomatic complexity 29 of function (*Messenger).Prompt() is high (> 15) (gocyclo)
    • cmd/micro/command.go
    • Line 146: warning: cyclomatic complexity 25 of function PluginCmd() is high (> 15) (gocyclo)
    • Line 547: warning: cyclomatic complexity 21 of function Replace() is high (> 15) (gocyclo)
    • tools/semver/semver.go
    • Line 113: warning: cyclomatic complexity 21 of function (Version).Compare() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 19 of function Parse() is high (> 15) (gocyclo)
    • cmd/micro/settings.go
    • Line 363: warning: cyclomatic complexity 21 of function SetLocalOption() is high (> 15) (gocyclo)
    • Line 289: warning: cyclomatic complexity 21 of function SetOption() is high (> 15) (gocyclo)
    • cmd/micro/view.go
    • Line 791: warning: cyclomatic complexity 94 of function (*View).DisplayView() is high (> 15) (gocyclo)
    • Line 552: warning: cyclomatic complexity 51 of function (*View).HandleEvent() is high (> 15) (gocyclo)
    • cmd/micro/highlight/highlighter.go
    • Line 148: warning: cyclomatic complexity 24 of function (*Highlighter).highlightRegion() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 17 of function (*Highlighter).highlightEmptyRegion() is high (> 15) (gocyclo)
    • cmd/micro/buffer.go
    • Line 113: warning: cyclomatic complexity 21 of function NewBuffer() is high (> 15) (gocyclo)
    • Line 457: warning: cyclomatic complexity 20 of function (*Buffer).SaveAs() is high (> 15) (gocyclo)
    • Line 269: warning: cyclomatic complexity 18 of function (*Buffer).UpdateRules() 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!