Preparing report...

Report for github.com/junegunn/fzf

(v0.0.0-20240519000147-daa602422dc2)

A+    Excellent!    Found 18 issues across 65 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!


gocyclo72%

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.

    • src/terminal.go
    • Line 2901: warning: cyclomatic complexity 447 of function (*Terminal).Loop() is high (> 15) (gocyclo)
    • Line 1301: warning: cyclomatic complexity 52 of function (*Terminal).resizeWindows() is high (> 15) (gocyclo)
    • Line 2194: warning: cyclomatic complexity 44 of function (*Terminal).renderPreviewText() is high (> 15) (gocyclo)
    • Line 1642: warning: cyclomatic complexity 34 of function (*Terminal).printInfo() is high (> 15) (gocyclo)
    • Line 661: warning: cyclomatic complexity 29 of function NewTerminal() is high (> 15) (gocyclo)
    • Line 1860: warning: cyclomatic complexity 26 of function (*Terminal).printItem() is high (> 15) (gocyclo)
    • Line 2617: warning: cyclomatic complexity 24 of function replacePlaceholder() is high (> 15) (gocyclo)
    • Line 1213: warning: cyclomatic complexity 22 of function (*Terminal).adjustMarginAndPadding() is high (> 15) (gocyclo)
    • Line 1101: warning: cyclomatic complexity 18 of function (*Terminal).UpdateList() is high (> 15) (gocyclo)
    • src/core.go
    • Line 21: warning: cyclomatic complexity 89 of function Run() is high (> 15) (gocyclo)
    • src/ansi.go
    • Line 328: warning: cyclomatic complexity 46 of function interpretCode() is high (> 15) (gocyclo)
    • Line 140: warning: cyclomatic complexity 23 of function nextAnsiEscapeSequence() is high (> 15) (gocyclo)
    • Line 199: warning: cyclomatic complexity 17 of function extractColor() is high (> 15) (gocyclo)
    • src/pattern.go
    • Line 157: warning: cyclomatic complexity 22 of function parseTerms() is high (> 15) (gocyclo)
    • Line 73: warning: cyclomatic complexity 21 of function BuildPattern() is high (> 15) (gocyclo)
    • src/reader.go
    • Line 130: warning: cyclomatic complexity 20 of function (*Reader).feed() is high (> 15) (gocyclo)
    • src/options.go
    • Line 1737: warning: cyclomatic complexity 294 of function parseOptions() is high (> 15) (gocyclo)
    • Line 1147: warning: cyclomatic complexity 94 of function parseActionList() is high (> 15) (gocyclo)
    • Line 641: warning: cyclomatic complexity 88 of function parseKeyChordsImpl() is high (> 15) (gocyclo)
    • Line 878: warning: cyclomatic complexity 65 of function parseTheme() is high (> 15) (gocyclo)
    • Line 1585: warning: cyclomatic complexity 37 of function parsePreviewWindowImpl() is high (> 15) (gocyclo)
    • Line 2476: warning: cyclomatic complexity 33 of function postProcessOptions() is high (> 15) (gocyclo)
    • Line 1407: warning: cyclomatic complexity 27 of function isExecuteAction() is high (> 15) (gocyclo)
    • Line 602: warning: cyclomatic complexity 16 of function parseBorder() is high (> 15) (gocyclo)
    • src/pattern_test.go
    • Line 17: warning: cyclomatic complexity 30 of function TestParseTermsExtended() is high (> 15) (gocyclo)
    • Line 44: warning: cyclomatic complexity 26 of function TestParseTermsExtendedExact() is high (> 15) (gocyclo)
    • src/server.go
    • Line 130: warning: cyclomatic complexity 27 of function (*httpServer).handleHttpRequest() is high (> 15) (gocyclo)
    • src/result.go
    • Line 105: warning: cyclomatic complexity 25 of function (*Result).colorOffsets() is high (> 15) (gocyclo)
    • Line 25: warning: cyclomatic complexity 19 of function buildResult() is high (> 15) (gocyclo)
    • src/tui/tcell.go
    • Line 224: warning: cyclomatic complexity 100 of function (*FullscreenRenderer).GetChar() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 18 of function (*TcellWindow).drawBorder() is high (> 15) (gocyclo)
    • src/tokenizer.go
    • Line 181: warning: cyclomatic complexity 20 of function Transform() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 16 of function ParseRange() is high (> 15) (gocyclo)
    • src/tui/light.go
    • Line 358: warning: cyclomatic complexity 88 of function (*LightRenderer).escSequence() is high (> 15) (gocyclo)
    • Line 587: warning: cyclomatic complexity 19 of function (*LightRenderer).mouseSequence() is high (> 15) (gocyclo)
    • Line 298: warning: cyclomatic complexity 18 of function (*LightRenderer).GetChar() is high (> 15) (gocyclo)
    • src/algo/algo.go
    • Line 432: warning: cyclomatic complexity 53 of function FuzzyMatchV2() is high (> 15) (gocyclo)
    • Line 713: warning: cyclomatic complexity 22 of function FuzzyMatchV1() is high (> 15) (gocyclo)
    • Line 800: warning: cyclomatic complexity 17 of function ExactMatchNaive() is high (> 15) (gocyclo)
    • Line 176: warning: cyclomatic complexity 16 of function Init() is high (> 15) (gocyclo)
    • src/options_test.go
    • Line 390: warning: cyclomatic complexity 32 of function TestPreviewOpts() is high (> 15) (gocyclo)
    • Line 81: warning: cyclomatic complexity 25 of function TestSplitNth() 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!