Preparing report...

Report for github.com/xyproto/orbiton/v2

(v2.68.6)

A+    Excellent!    Found 35 issues across 106 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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo67%

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.

    • man.go
    • Line 47: warning: cyclomatic complexity 95 of function (*Editor).manPageHighlight() is high (> 15) (gocyclo)
    • game.go
    • Line 720: warning: cyclomatic complexity 53 of function Game() is high (> 15) (gocyclo)
    • Line 556: warning: cyclomatic complexity 34 of function (*Gobbler).Next() is high (> 15) (gocyclo)
    • Line 442: warning: cyclomatic complexity 20 of function (*EvilGobbler).Next() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 19 of function (*Bubble).Next() is high (> 15) (gocyclo)
    • neweditor.go
    • Line 30: warning: cyclomatic complexity 141 of function NewEditor() is high (> 15) (gocyclo)
    • search.go
    • Line 278: warning: cyclomatic complexity 90 of function (*Editor).SearchMode() is high (> 15) (gocyclo)
    • command.go
    • Line 22: warning: cyclomatic complexity 61 of function (*Editor).CommandToFunction() is high (> 15) (gocyclo)
    • sortstrings.go
    • Line 49: warning: cyclomatic complexity 36 of function sortStrings() is high (> 15) (gocyclo)
    • debug.go
    • Line 424: warning: cyclomatic complexity 27 of function (*Editor).DebugChangedRegisterMap() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 24 of function (*Editor).DebugStart() is high (> 15) (gocyclo)
    • Line 631: warning: cyclomatic complexity 19 of function (*Editor).DrawWatches() is high (> 15) (gocyclo)
    • Line 946: warning: cyclomatic complexity 19 of function (*Editor).DrawInstructions() is high (> 15) (gocyclo)
    • Line 845: warning: cyclomatic complexity 17 of function (*Editor).DrawRegisters() is high (> 15) (gocyclo)
    • run.go
    • Line 18: warning: cyclomatic complexity 22 of function (*Editor).Run() is high (> 15) (gocyclo)
    • format.go
    • Line 61: warning: cyclomatic complexity 22 of function (*Editor).formatWithUtility() is high (> 15) (gocyclo)
    • Line 203: warning: cyclomatic complexity 16 of function (*Editor).formatCode() is high (> 15) (gocyclo)
    • fstab.go
    • Line 8: warning: cyclomatic complexity 36 of function formatFstab() is high (> 15) (gocyclo)
    • rainbow.go
    • Line 18: warning: cyclomatic complexity 33 of function (*Editor).rainbowParen() is high (> 15) (gocyclo)
    • menu.go
    • Line 139: warning: cyclomatic complexity 29 of function (*Editor).Menu() is high (> 15) (gocyclo)
    • git.go
    • Line 47: warning: cyclomatic complexity 26 of function (*Editor).gitHighlight() is high (> 15) (gocyclo)
    • symbolmenu.go
    • Line 14: warning: cyclomatic complexity 25 of function (*Editor).SymbolMenu() is high (> 15) (gocyclo)
    • menuwidget.go
    • Line 73: warning: cyclomatic complexity 21 of function (*MenuWidget).Draw() is high (> 15) (gocyclo)
    • tablewidget.go
    • Line 142: warning: cyclomatic complexity 19 of function (*TableWidget).Draw() is high (> 15) (gocyclo)
    • pyparserr.go
    • Line 10: warning: cyclomatic complexity 17 of function ParsePythonError() is high (> 15) (gocyclo)
    • keyloop.go
    • Line 49: warning: cyclomatic complexity 478 of function Loop() is high (> 15) (gocyclo)
    • lochist.go
    • Line 238: warning: cyclomatic complexity 53 of function FindInNvimLocationHistory() is high (> 15) (gocyclo)
    • jumpto.go
    • Line 232: warning: cyclomatic complexity 41 of function (*Editor).JumpMode() is high (> 15) (gocyclo)
    • Line 399: warning: cyclomatic complexity 19 of function (*Editor).JumpToMatching() is high (> 15) (gocyclo)
    • mdtable.go
    • Line 502: warning: cyclomatic complexity 26 of function (*Editor).TableEditor() is high (> 15) (gocyclo)
    • readfile.go
    • Line 15: warning: cyclomatic complexity 17 of function (*Editor).ReadFileAndProcessLines() is high (> 15) (gocyclo)
    • build.go
    • Line 540: warning: cyclomatic complexity 145 of function (*Editor).BuildOrExport() is high (> 15) (gocyclo)
    • Line 89: warning: cyclomatic complexity 101 of function (*Editor).GenerateBuildCommand() is high (> 15) (gocyclo)
    • Line 1159: warning: cyclomatic complexity 33 of function (*Editor).Build() is high (> 15) (gocyclo)
    • cmenu.go
    • Line 98: warning: cyclomatic complexity 69 of function (*Editor).CommandMenu() is high (> 15) (gocyclo)
    • markdown.go
    • Line 161: warning: cyclomatic complexity 62 of function (*Editor).markdownHighlight() is high (> 15) (gocyclo)
    • funcname.go
    • Line 43: warning: cyclomatic complexity 29 of function (*Editor).LooksLikeFunctionDef() is high (> 15) (gocyclo)
    • Line 147: warning: cyclomatic complexity 17 of function (*Editor).FindCurrentFunctionName() is high (> 15) (gocyclo)
    • strings.go
    • Line 162: warning: cyclomatic complexity 17 of function smartSplit() is high (> 15) (gocyclo)
    • highlight.go
    • Line 32: warning: cyclomatic complexity 239 of function (*Editor).WriteLines() is high (> 15) (gocyclo)
    • syntax.go
    • Line 157: warning: cyclomatic complexity 58 of function adjustSyntaxHighlightingKeywords() is high (> 15) (gocyclo)
    • Line 321: warning: cyclomatic complexity 18 of function (*Editor).SingleLineCommentMarker() is high (> 15) (gocyclo)
    • gotodef.go
    • Line 18: warning: cyclomatic complexity 32 of function (*Editor).GoToDefinition() is high (> 15) (gocyclo)
    • quotestate.go
    • Line 56: warning: cyclomatic complexity 102 of function (*QuoteState).ProcessRune() is high (> 15) (gocyclo)
    • main.go
    • Line 58: warning: cyclomatic complexity 96 of function main() is high (> 15) (gocyclo)
    • editor.go
    • Line 430: warning: cyclomatic complexity 47 of function (*Editor).SaveAs() is high (> 15) (gocyclo)
    • copypaste.go
    • Line 93: warning: cyclomatic complexity 32 of function (*Editor).Paste() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words

    • redraw.go
    • Line 189: warning: "immediatly" is a misspelling of "immediately" (misspell)
    • Line 214: warning: "immediatly" is a misspelling of "immediately" (misspell)