Preparing report...

Report for github.com/slotix/dataflowkit

A+    Excellent!    Found 20 issues across 59 files

Tweet

gofmt86%

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!


gocyclo94%

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.

    • dataflowkit/scrape/scrape.go
    • Line 519: warning: cyclomatic complexity 24 of function (*Task).parse() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 20 of function (*Field).extract() is high (> 15) (gocyclo)

golint79%

Golint is a linter for Go source code.

    • dataflowkit/errs/errors.go
    • Line 31: warning: comment on exported method StatusError.Status should be of the form "Status ..." (golint)
    • Line 37: warning: exported const ErrNoParts should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported method BadPayload.Status should have comment or be unexported (golint)
    • Line 81: warning: exported type ParseError should have comment or be unexported (golint)
    • Line 90: warning: exported type NotError should have comment or be unexported (golint)
    • dataflowkit/testserver/main.go
    • Line 26: warning: exported const PERSONS_PER_PAGE should have comment or be unexported (golint)
    • Line 243: warning: don't use underscores in Go names; func parameter per_page should be perPage (golint)
    • Line 262: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 267: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 341: warning: exported function SeqPages should have comment or be unexported (golint)
    • dataflowkit/fetch/actions.go
    • Line 15: warning: exported function NewAction should have comment or be unexported (golint)
    • Line 31: warning: exported type Action should have comment or be unexported (golint)
    • Line 35: warning: exported type ClickAction should have comment or be unexported (golint)
    • Line 39: warning: exported method ClickAction.Execute should have comment or be unexported (golint)
    • Line 44: warning: exported type PaginateAction should have comment or be unexported (golint)
    • Line 49: warning: exported method PaginateAction.Execute should have comment or be unexported (golint)
    • dataflowkit/scrape/encoders.go
    • Line 25: warning: exported const COMMENT_INFO should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported type XLSXEncoder should have comment or be unexported (golint)
    • dataflowkit/scrape/scrape.go
    • Line 87: warning: exported method Filter.Apply should have comment or be unexported (golint)
    • Line 134: warning: exported method Payload.InitUID should have comment or be unexported (golint)
    • Line 163: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 359: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 674: warning: exported function EncodeResults should have comment or be unexported (golint)
    • Line 709: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!