Preparing report...

Report for github.com/askovpen/gossiped

A+    Excellent!    Found 10 issues across 59 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo83%

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.

    • gossiped/pkg/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)
    • gossiped/pkg/msgapi/squish.go
    • Line 505: warning: cyclomatic complexity 17 of function (*Squish).DelMsg() is high (> 15) (gocyclo)
    • Line 134: warning: cyclomatic complexity 16 of function (*Squish).GetMsg() is high (> 15) (gocyclo)
    • Line 349: warning: cyclomatic complexity 16 of function (*Squish).SaveMsg() is high (> 15) (gocyclo)
    • gossiped/pkg/msgapi/message.go
    • Line 51: warning: cyclomatic complexity 25 of function (*Message).ParseRaw() is high (> 15) (gocyclo)
    • Line 271: warning: cyclomatic complexity 16 of function (*Message).ToEditAnswerView() is high (> 15) (gocyclo)
    • gossiped/pkg/ui/util.go
    • Line 231: warning: cyclomatic complexity 43 of function printWithStyle() is high (> 15) (gocyclo)
    • Line 430: warning: cyclomatic complexity 23 of function WordWrap() is high (> 15) (gocyclo)
    • gossiped/pkg/ui/editor/view.go
    • Line 328: warning: cyclomatic complexity 23 of function (*View).displayView() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 17 of function (*View).HandleEvent() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!