Preparing report...

Report for github.com/wspl/creeper

C    Needs some work    Found 7 issues across 8 files

Tweet

gofmt25%

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!


gocyclo75%

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.

    • creeper/fun.go
    • Line 130: warning: cyclomatic complexity 24 of function (*Fun).Invoke() is high (> 15) (gocyclo)

golint12%

Golint is a linter for Go source code.

    • creeper/util.go
    • Line 33: warning: exported function MD5 should have comment or be unexported (golint)
    • Line 39: warning: exported type MonoStack should have comment or be unexported (golint)
    • Line 44: warning: exported method MonoStack.Set should have comment or be unexported (golint)
    • Line 49: warning: exported method MonoStack.Has should have comment or be unexported (golint)
    • Line 53: warning: exported method MonoStack.Value should have comment or be unexported (golint)
    • creeper/creeper.go
    • Line 5: warning: exported function Open should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 16: warning: exported function NewByFormatted should have comment or be unexported (golint)
    • Line 41: warning: exported type Creeper should have comment or be unexported (golint)
    • Line 51: warning: exported method Creeper.Array should have comment or be unexported (golint)
    • Line 65: warning: exported method Creeper.StringE should have comment or be unexported (golint)
    • Line 69: warning: exported method Creeper.Each should have comment or be unexported (golint)
    • Line 107: warning: exported method Creeper.Next should have comment or be unexported (golint)
    • creeper/format.go
    • Line 8: warning: exported type Formatted should have comment or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; var rx_isTown should be rxIsTown (golint)
    • Line 17: warning: don't use underscores in Go names; var rx_isNode should be rxIsNode (golint)
    • Line 20: warning: exported function Formatting should have comment or be unexported (golint)
    • creeper/fun.go
    • Line 13: warning: don't use underscores in Go names; var rx_funName should be rxFunName (golint)
    • Line 16: warning: exported type Fun should have comment or be unexported (golint)
    • Line 35: warning: exported method Fun.Append should have comment or be unexported (golint)
    • Line 41: warning: exported function PowerfulFind should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; var rx_selectPseudoEq should be rxSelectPseudoEq (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 63: warning: exported method Fun.PageBody should have comment or be unexported (golint)
    • Line 72: warning: exported method Fun.InitSelector should have comment or be unexported (golint)
    • Line 130: warning: exported method Fun.Invoke should have comment or be unexported (golint)
    • Line 195: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 200: warning: exported function ParseFun should have comment or be unexported (golint)
    • creeper/node.go
    • Line 9: warning: don't use underscores in Go names; var rx_node should be rxNode (golint)
    • Line 10: warning: don't use underscores in Go names; var rx_page should be rxPage (golint)
    • Line 11: warning: don't use underscores in Go names; var rx_fun should be rxFun (golint)
    • Line 14: warning: exported type Node should have comment or be unexported (golint)
    • Line 37: warning: exported method Node.Next should have comment or be unexported (golint)
    • Line 41: warning: exported method Node.Reset should have comment or be unexported (golint)
    • Line 45: warning: exported method Node.Filter should have comment or be unexported (golint)
    • Line 62: warning: exported method Node.SearchRef should have comment or be unexported (golint)
    • Line 78: warning: exported method Node.SearchFlatScope should have comment or be unexported (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 89: warning: exported method Node.ChildFilter should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 101: warning: exported method Node.Search should have comment or be unexported (golint)
    • Line 107: warning: exported method Node.PrimaryNode should have comment or be unexported (golint)
    • Line 113: warning: exported method Node.NextDirectorNode should have comment or be unexported (golint)
    • Line 119: warning: exported method Node.Value should have comment or be unexported (golint)
    • Line 122: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 127: warning: exported function ParseNode should have comment or be unexported (golint)
    • creeper/page.go
    • Line 9: warning: exported type Page should have comment or be unexported (golint)
    • Line 25: warning: exported method Page.Inc should have comment or be unexported (golint)
    • Line 29: warning: exported method Page.Url should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 60: warning: exported method Page.Body should have comment or be unexported (golint)
    • Line 82: warning: exported method Page.IsDynamic should have comment or be unexported (golint)
    • Line 86: warning: exported function ParsePage should have comment or be unexported (golint)
    • creeper/town.go
    • Line 12: warning: don't use underscores in Go names; var rx_townName should be rxTownName (golint)
    • Line 15: warning: exported function Town_New should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; func Town_New should be TownNew (golint)
    • Line 21: warning: exported type Town should have comment or be unexported (golint)
    • Line 31: warning: exported method Town.Value should have comment or be unexported (golint)
    • Line 39: warning: exported method Town.HasParam should have comment or be unexported (golint)
    • Line 44: warning: exported method Town.Set should have comment or be unexported (golint)
    • Line 50: warning: exported method Town.Get should have comment or be unexported (golint)
    • Line 55: warning: exported method Town.PreSet should have comment or be unexported (golint)
    • Line 59: warning: exported method Town.Attach should have comment or be unexported (golint)
    • Line 78: warning: exported function ParseTown should have comment or be unexported (golint)
    • Line 86: warning: exported function ParseTownLine should have comment or be unexported (golint)

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!