Preparing report...

Report for github.com/andeya/faygo

(v1.4.0)

A+    Excellent!    Found 83 issues across 328 files

Tweet

gofmt87%

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!


gocyclo86%

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.

    • framework.go
    • Line 588: warning: cyclomatic complexity 17 of function (*Framework).tryHandle() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 16 of function (*Framework).build() is high (> 15) (gocyclo)
    • fs.go
    • Line 524: warning: cyclomatic complexity 20 of function (*FileServerManager).serveContent() is high (> 15) (gocyclo)
    • Line 945: warning: cyclomatic complexity 16 of function parseRange() is high (> 15) (gocyclo)
    • Line 132: warning: cyclomatic complexity 16 of function (*FileServerManager).OpenFS() is high (> 15) (gocyclo)
    • muxapi.go
    • Line 327: warning: cyclomatic complexity 18 of function (*MuxAPI).comb() is high (> 15) (gocyclo)
    • ext/cron/spec.go
    • Line 55: warning: cyclomatic complexity 17 of function (*SpecSchedule).Next() is high (> 15) (gocyclo)
    • pongo2/variable.go
    • Line 229: warning: cyclomatic complexity 42 of function (*variableResolver).resolve() is high (> 15) (gocyclo)
    • Line 462: warning: cyclomatic complexity 25 of function (*Parser).parseVariableOrLiteral() is high (> 15) (gocyclo)
    • tree_test.go
    • Line 479: warning: cyclomatic complexity 19 of function TestTreeFindCaseInsensitivePath() is high (> 15) (gocyclo)
    • context_input.go
    • Line 598: warning: cyclomatic complexity 17 of function (*Context).SaveFiles() is high (> 15) (gocyclo)
    • markdown/inline.go
    • Line 202: warning: cyclomatic complexity 93 of function link() is high (> 15) (gocyclo)
    • Line 689: warning: cyclomatic complexity 35 of function autoLink() is high (> 15) (gocyclo)
    • Line 957: warning: cyclomatic complexity 33 of function helperFindEmphChar() is high (> 15) (gocyclo)
    • Line 844: warning: cyclomatic complexity 31 of function tagLength() is high (> 15) (gocyclo)
    • Line 69: warning: cyclomatic complexity 18 of function emphasis() is high (> 15) (gocyclo)
    • ext/websocket/conn.go
    • Line 684: warning: cyclomatic complexity 38 of function (*Conn).advanceFrame() is high (> 15) (gocyclo)
    • Line 470: warning: cyclomatic complexity 16 of function (*messageWriter).flushFrame() is high (> 15) (gocyclo)
    • helper.go
    • Line 155: warning: cyclomatic complexity 26 of function CleanToURL() is high (> 15) (gocyclo)
    • pongo2/value.go
    • Line 372: warning: cyclomatic complexity 24 of function (*Value).IterateOrder() is high (> 15) (gocyclo)
    • markdown/block.go
    • Line 1091: warning: cyclomatic complexity 49 of function (*parser).listItem() is high (> 15) (gocyclo)
    • Line 559: warning: cyclomatic complexity 29 of function (*parser).isFencedCode() is high (> 15) (gocyclo)
    • Line 1302: warning: cyclomatic complexity 29 of function (*parser).paragraph() is high (> 15) (gocyclo)
    • Line 741: warning: cyclomatic complexity 28 of function (*parser).tableHeader() is high (> 15) (gocyclo)
    • Line 24: warning: cyclomatic complexity 24 of function (*parser).block() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 21 of function (*parser).prefixHeader() is high (> 15) (gocyclo)
    • Line 299: warning: cyclomatic complexity 19 of function (*parser).html() is high (> 15) (gocyclo)
    • tree.go
    • Line 545: warning: cyclomatic complexity 46 of function (*node).findCaseInsensitivePathRec() is high (> 15) (gocyclo)
    • Line 391: warning: cyclomatic complexity 33 of function (*node).getValue() is high (> 15) (gocyclo)
    • Line 141: warning: cyclomatic complexity 27 of function (*node).addRoute() is high (> 15) (gocyclo)
    • Line 273: warning: cyclomatic complexity 17 of function (*node).insertChild() is high (> 15) (gocyclo)
    • freecache/server/main.go
    • Line 116: warning: cyclomatic complexity 16 of function (*Server).ReadClient() is high (> 15) (gocyclo)
    • Line 175: warning: cyclomatic complexity 16 of function (*Session).readLoop() is high (> 15) (gocyclo)
    • apiware/paramapi.go
    • Line 138: warning: cyclomatic complexity 44 of function (*ParamsAPI).addFields() is high (> 15) (gocyclo)
    • Line 451: warning: cyclomatic complexity 43 of function (*ParamsAPI).BindFields() is high (> 15) (gocyclo)
    • markdown/smartypants.go
    • Line 307: warning: cyclomatic complexity 29 of function smartNumber() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 26 of function smartQuoteHelper() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 22 of function smartSingleQuote() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 19 of function smartNumberGeneric() is high (> 15) (gocyclo)
    • logging/format.go
    • Line 274: warning: cyclomatic complexity 20 of function (*stringFormatter).Format() is high (> 15) (gocyclo)
    • markdown/markdown.go
    • Line 633: warning: cyclomatic complexity 46 of function scanLinkRef() is high (> 15) (gocyclo)
    • Line 534: warning: cyclomatic complexity 33 of function isReference() is high (> 15) (gocyclo)
    • Line 394: warning: cyclomatic complexity 17 of function firstPass() 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!