Preparing report...

Report for github.com/worksinmagic/ytfeed

A+    Excellent!    Found 17 issues across 30 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!


gocyclo90%

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.


golint43%

Golint is a linter for Go source code.

    • ytfeed/plugin/streamschedule/streamschedule.go
    • Line 15: warning: exported const DefaultFilePermission should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Databaser should have comment or be unexported (golint)
    • Line 27: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 32: warning: exported type StreamSchedule should have comment or be unexported (golint)
    • Line 39: warning: exported method StreamSchedule.RegisterDataHandler should have comment or be unexported (golint)
    • Line 43: warning: exported method StreamSchedule.RegisterSchedule should have comment or be unexported (golint)
    • Line 73: warning: exported method StreamSchedule.RunWorker should have comment or be unexported (golint)
    • Line 149: warning: exported type FailedOperation should have comment or be unexported (golint)
    • Line 154: warning: exported method StreamSchedule.CloseDatabase should have comment or be unexported (golint)
    • Line 158: warning: exported function New should have comment or be unexported (golint)
    • ytfeed/plugin/gcs/gcs.go
    • Line 13: warning: exported const DefaultCacheControl should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type GCS should have comment or be unexported (golint)
    • Line 22: warning: exported method GCS.Exists should have comment or be unexported (golint)
    • Line 38: warning: exported method GCS.Delete should have comment or be unexported (golint)
    • Line 44: warning: exported method GCS.SaveAs should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • ytfeed/plugin/autosubscribefeed/autosubscribefeed.go
    • Line 16: warning: exported const DefaultTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported var ErrFailedToSubscribeFeed should have comment or be unexported (golint)
    • Line 34: warning: exported type Subscriber should have comment or be unexported (golint)
    • Line 46: warning: exported function New should have comment or be unexported (golint)
    • Line 61: warning: exported method Subscriber.SetHTTPClient should have comment or be unexported (golint)
    • Line 65: warning: exported method Subscriber.Subscribe should have comment or be unexported (golint)
    • Line 79: warning: exported type ErrorSub should have comment or be unexported (golint)
    • ytfeed/plugin/savevideo/savevideo.go
    • Line 22: warning: exported const LiveBroadcastContentLive should have comment (or a comment on this block) or be unexported (golint)
    • Line 43: warning: exported type Entry should have comment or be unexported (golint)
    • Line 63: warning: exported type YoutubeVideoLister should have comment or be unexported (golint)
    • Line 67: warning: exported type DataSaver should have comment or be unexported (golint)
    • Line 73: warning: exported type FilenameTemplater should have comment or be unexported (golint)
    • Line 77: warning: exported type StreamScheduler should have comment or be unexported (golint)
    • Line 81: warning: exported type SaveVideo should have comment or be unexported (golint)
    • Line 96: warning: exported method SaveVideo.DataHandler should have comment or be unexported (golint)
    • Line 208: warning: exported method SaveVideo.DownloadVideoWithRetries should have comment or be unexported (golint)
    • Line 233: warning: exported method SaveVideo.DownloadVideo should have comment or be unexported (golint)
    • Line 303: warning: comment on exported method SaveVideo.SetRetries should be of the form "SetRetries ..." (golint)
    • Line 309: warning: exported function New should have comment or be unexported (golint)
    • ytfeed/plugin/savevideo/youtubedl.go
    • Line 10: warning: exported const ErrInvalidVideoQuality should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: comment on exported const YoutubeDLCommand should be of the form "YoutubeDLCommand ..." (golint)
    • ytfeed/data.go
    • Line 8: warning: exported type DataHandlerFunc should have comment or be unexported (golint)
    • Line 10: warning: exported type Data should have comment or be unexported (golint)
    • Line 24: warning: exported type Feed should have comment or be unexported (golint)
    • Line 35: warning: exported type DeletedEntry should have comment or be unexported (golint)
    • Line 42: warning: exported type Link should have comment or be unexported (golint)
    • Line 47: warning: exported type Entry should have comment or be unexported (golint)
    • Line 58: warning: exported type Author should have comment or be unexported (golint)
    • ytfeed/plugin/publishamqp/publishamqp.go
    • Line 13: warning: exported const DefaultContentType should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type AMQPPublisher should have comment or be unexported (golint)
    • Line 22: warning: exported type PublishAMQP should have comment or be unexported (golint)
    • Line 32: warning: exported method PublishAMQP.DataHandler should have comment or be unexported (golint)
    • Line 55: warning: exported function New should have comment or be unexported (golint)
    • ytfeed/plugin/publishredis/publishredis.go
    • Line 11: warning: exported type RedisPublisher should have comment or be unexported (golint)
    • Line 15: warning: exported type PublishRedis should have comment or be unexported (golint)
    • Line 22: warning: exported method PublishRedis.DataHandler should have comment or be unexported (golint)
    • Line 38: warning: exported function New should have comment or be unexported (golint)
    • ytfeed/plugin/s3/s3.go
    • Line 12: warning: exported const UseSSL should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type S3 should have comment or be unexported (golint)
    • Line 28: warning: exported method S3.Exists should have comment or be unexported (golint)
    • Line 47: warning: exported method S3.Delete should have comment or be unexported (golint)
    • Line 54: warning: exported method S3.SaveAs should have comment or be unexported (golint)
    • Line 69: warning: exported function New should have comment or be unexported (golint)
    • ytfeed/config/config.go
    • Line 13: warning: exported const DefaultVersion should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported var ErrInvalidStorageBackend should have comment or be unexported (golint)
    • Line 142: warning: exported type Validator should have comment or be unexported (golint)
    • Line 146: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 210: warning: exported function New should have comment or be unexported (golint)
    • Line 277: warning: exported method Configuration.Validate should have comment or be unexported (golint)
    • ytfeed/rss/rss.go
    • Line 22: warning: exported const YoutubeSubscriptionTopicPrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported function Handler should have comment or be unexported (golint)
    • Line 141: warning: exported function IsYoutubeSubscriptionTopic should have comment or be unexported (golint)
    • Line 145: warning: exported function VerifyDataFeed should have comment or be unexported (golint)
    • ytfeed/model.go
    • Line 5: warning: exported type YTFeedModel should have comment or be unexported (golint)
    • ytfeed/plugin/disk/disk.go
    • Line 10: warning: exported type Disk should have comment or be unexported (golint)
    • Line 14: warning: exported method Disk.Exists should have comment or be unexported (golint)
    • Line 31: warning: exported method Disk.Delete should have comment or be unexported (golint)
    • Line 38: warning: exported method Disk.SaveAs should have comment or be unexported (golint)
    • Line 52: warning: exported function New 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!