Preparing report...

Report for github.com/Necoro/feed2imap-go

A+    Excellent!    Found 21 issues across 34 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!


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.


golint41%

Golint is a linter for Go source code.

    • feed2imap-go/internal/msg/msg.go
    • Line 19: warning: exported type Messages should have comment or be unexported (golint)
    • Line 21: warning: exported type Message should have comment or be unexported (golint)
    • Line 27: warning: exported method Messages.Upload should have comment or be unexported (golint)
    • feed2imap-go/internal/feed/template/template.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported type Template should have comment or be unexported (golint)
    • Line 25: warning: exported var Html should have comment or be unexported (golint)
    • Line 26: warning: exported var Text should have comment or be unexported (golint)
    • Line 94: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • feed2imap-go/internal/feed/item.go
    • Line 22: warning: exported type Item should have comment or be unexported (golint)
    • Line 34: warning: exported method Item.DateParsed should have comment or be unexported (golint)
    • Line 41: warning: exported method Item.Date should have comment or be unexported (golint)
    • Line 57: warning: exported method Item.FeedLink should have comment or be unexported (golint)
    • Line 66: warning: exported method Item.AddReason should have comment or be unexported (golint)
    • Line 86: warning: exported method Item.Id should have comment or be unexported (golint)
    • feed2imap-go/internal/imap/folder.go
    • Line 5: warning: exported type Folder should have comment or be unexported (golint)
    • Line 14: warning: exported method Folder.Append should have comment or be unexported (golint)
    • Line 39: warning: exported method Client.NewFolder should have comment or be unexported (golint)
    • feed2imap-go/internal/feed/cache/cache.go
    • Line 18: warning: exported type Version should have comment or be unexported (golint)
    • Line 24: warning: exported type Impl should have comment or be unexported (golint)
    • Line 35: warning: exported type Cache should have comment or be unexported (golint)
    • Line 41: warning: exported type CachedFeed should have comment or be unexported (golint)
    • Line 121: warning: exported method Cache.Unlock should have comment or be unexported (golint)
    • Line 142: warning: exported function Load should have comment or be unexported (golint)
    • feed2imap-go/internal/feed/filter/filter.go
    • Line 9: warning: exported type Filter should have comment or be unexported (golint)
    • Line 13: warning: exported method Filter.Run should have comment or be unexported (golint)
    • Line 16: 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 21: warning: exported function New should have comment or be unexported (golint)
    • feed2imap-go/pkg/config/feed.go
    • Line 3: warning: comment on exported type Feed should be of the form "Feed ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type Feeds should be of the form "Feeds ..." (with optional leading article) (golint)
    • feed2imap-go/internal/imap/cmds.go
    • Line 11: warning: exported method Client.EnsureFolder should have comment or be unexported (golint)
    • Line 24: warning: exported method Client.PutMessages should have comment or be unexported (golint)
    • Line 40: warning: exported method Client.Replace should have comment or be unexported (golint)
    • feed2imap-go/internal/feed/feed.go
    • Line 15: warning: exported type Feed should have comment or be unexported (golint)
    • Line 24: warning: exported type FeedID should have comment or be unexported (golint)
    • Line 28: warning: exported type FilterFunc should have comment or be unexported (golint)
    • Line 30: warning: exported type Descriptor should have comment or be unexported (golint)
    • Line 35: warning: exported method Feed.Descriptor should have comment or be unexported (golint)
    • Line 48: warning: exported method Feed.NeedsUpdate should have comment or be unexported (golint)
    • Line 59: warning: exported method Feed.FetchSuccessful should have comment or be unexported (golint)
    • Line 63: warning: exported function Create should have comment or be unexported (golint)
    • Line 100: warning: exported method Feed.Filter should have comment or be unexported (golint)
    • Line 127: warning: exported method Feed.SetExtID should have comment or be unexported (golint)
    • feed2imap-go/pkg/config/body.go
    • Line 11: warning: exported type Body should have comment or be unexported (golint)
    • Line 15: warning: exported method Body.UnmarshalYAML should have comment or be unexported (golint)
    • Line 33: warning: exported function TypeError should have comment or be unexported (golint)
    • feed2imap-go/pkg/config/url.go
    • Line 11: warning: exported type Url should have comment or be unexported (golint)
    • Line 20: warning: exported method Url.Empty should have comment or be unexported (golint)
    • Line 24: warning: exported method Url.UnmarshalYAML should have comment or be unexported (golint)
    • Line 71: warning: exported method Url.HostPort should have comment or be unexported (golint)
    • Line 85: warning: exported method Url.ForceTLS should have comment or be unexported (golint)
    • feed2imap-go/pkg/log/log.go
    • Line 24: warning: exported function SetVerbose should have comment or be unexported (golint)
    • Line 28: warning: exported function SetDebug should have comment or be unexported (golint)
    • Line 32: warning: exported function IsDebug should have comment or be unexported (golint)
    • Line 36: warning: exported function Debug should have comment or be unexported (golint)
    • Line 42: warning: exported function Debugf should have comment or be unexported (golint)
    • Line 48: warning: exported function Print should have comment or be unexported (golint)
    • Line 54: warning: exported function Printf should have comment or be unexported (golint)
    • Line 60: warning: exported function Error should have comment or be unexported (golint)
    • Line 64: warning: comment on exported function Errorf should be of the form "Errorf ..." (golint)
    • Line 69: warning: comment on exported function Warn should be of the form "Warn ..." (golint)
    • Line 74: warning: comment on exported function Warnf should be of the form "Warnf ..." (golint)
    • feed2imap-go/internal/feed/cache/state.go
    • Line 11: warning: exported type State should have comment or be unexported (golint)
    • Line 19: warning: exported method State.Foreach should have comment or be unexported (golint)
    • Line 25: warning: exported method State.ForeachGo should have comment or be unexported (golint)
    • Line 40: warning: exported method State.LoadCache should have comment or be unexported (golint)
    • Line 68: warning: exported method State.StoreCache should have comment or be unexported (golint)
    • Line 73: warning: exported method State.UnlockCache should have comment or be unexported (golint)
    • Line 77: warning: exported method State.Fetch should have comment or be unexported (golint)
    • Line 111: warning: exported method State.Filter should have comment or be unexported (golint)
    • Line 120: warning: exported function NewState should have comment or be unexported (golint)
    • Line 141: warning: exported method State.RemoveUndue should have comment or be unexported (golint)
    • Line 149: warning: exported method State.NumFeeds 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!