Preparing report...

Report for github.com/mmcdole/gofeed

A+    Excellent!    Found 7 issues across 29 files

Tweet

gofmt96%

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!


gocyclo93%

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.

    • gofeed/atom/parser.go
    • Line 53: warning: cyclomatic complexity 45 of function (*Parser).parseRoot() is high (> 15) (gocyclo)
    • Line 211: warning: cyclomatic complexity 44 of function (*Parser).parseEntry() is high (> 15) (gocyclo)
    • Line 364: warning: cyclomatic complexity 43 of function (*Parser).parseSource() is high (> 15) (gocyclo)
    • Line 528: warning: cyclomatic complexity 16 of function (*Parser).parsePerson() is high (> 15) (gocyclo)
    • gofeed/rss/parser.go
    • Line 120: warning: cyclomatic complexity 55 of function (*Parser).parseChannel() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 40 of function (*Parser).parseItem() is high (> 15) (gocyclo)
    • Line 31: warning: cyclomatic complexity 22 of function (*Parser).parseRoot() is high (> 15) (gocyclo)
    • Line 496: warning: cyclomatic complexity 19 of function (*Parser).parseImage() is high (> 15) (gocyclo)

golint86%

Golint is a linter for Go source code.

    • gofeed/internal/shared/parseutils.go
    • Line 19: warning: error var TruncatedEntity should have name of the form ErrFoo (golint)
    • Line 19: warning: exported var TruncatedEntity should have comment or be unexported (golint)
    • Line 20: warning: error var InvalidNumericReference should have name of the form ErrFoo (golint)
    • Line 23: warning: exported const CDATA_START should have comment or be unexported (golint)
    • Line 24: warning: exported const CDATA_END should have comment or be unexported (golint)
    • Line 120: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gofeed/internal/shared/xmlbase.go
    • Line 56: warning: exported type XMLBase should have comment or be unexported (golint)
    • Line 81: warning: comment on exported method XMLBase.NextTag should be of the form "NextTag ..." (golint)
    • Line 163: warning: exported method XMLBase.CurrentBaseURL should have comment or be unexported (golint)
    • Line 167: warning: exported method XMLBase.CurrentBase should have comment or be unexported (golint)
    • Line 174: warning: comment on exported method XMLBase.ResolveURL should be of the form "ResolveURL ..." (golint)
    • Line 209: warning: comment on exported method XMLBase.ResolveHTML should be of the form "ResolveHTML ..." (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!