Preparing report...

Report for github.com/prologic/twtxt

A+    Excellent!    Found 48 issues across 83 files

Tweet

gofmt97%

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!


golint49%

Golint is a linter for Go source code.

    • twtxt/internal/jobs.go
    • Line 19: warning: exported function NewJobSpec should have comment or be unexported (golint)
    • Line 24: warning: exported var Jobs should have comment or be unexported (golint)
    • Line 53: warning: exported type JobFactory should have comment or be unexported (golint)
    • Line 55: warning: exported type SyncStoreJob should have comment or be unexported (golint)
    • Line 63: warning: exported function NewSyncStoreJob should have comment or be unexported (golint)
    • Line 67: warning: exported method SyncStoreJob.Run should have comment or be unexported (golint)
    • Line 74: warning: exported type StatsJob should have comment or be unexported (golint)
    • Line 82: warning: exported function NewStatsJob should have comment or be unexported (golint)
    • Line 86: warning: exported method StatsJob.Run should have comment or be unexported (golint)
    • Line 151: warning: exported type UpdateFeedsJob should have comment or be unexported (golint)
    • Line 159: warning: exported function NewUpdateFeedsJob should have comment or be unexported (golint)
    • Line 163: warning: exported method UpdateFeedsJob.Run should have comment or be unexported (golint)
    • Line 222: warning: exported type UpdateFeedSourcesJob should have comment or be unexported (golint)
    • Line 230: warning: exported function NewUpdateFeedSourcesJob should have comment or be unexported (golint)
    • Line 234: warning: exported method UpdateFeedSourcesJob.Run should have comment or be unexported (golint)
    • Line 248: warning: exported type FixUserAccountsJob should have comment or be unexported (golint)
    • Line 256: warning: exported function NewFixUserAccountsJob should have comment or be unexported (golint)
    • Line 260: warning: exported method FixUserAccountsJob.Run should have comment or be unexported (golint)
    • Line 297: warning: exported type FixMissingTwtsJob should have comment or be unexported (golint)
    • Line 305: warning: exported function NewFixMissingTwtsJob should have comment or be unexported (golint)
    • Line 309: warning: exported method FixMissingTwtsJob.Run should have comment or be unexported (golint)
    • Line 335: warning: exported type DeleteOldSessionsJob should have comment or be unexported (golint)
    • Line 343: warning: exported function NewDeleteOldSessionsJob should have comment or be unexported (golint)
    • Line 347: warning: exported method DeleteOldSessionsJob.Run should have comment or be unexported (golint)
    • Line 366: warning: exported type FixFollowersJob should have comment or be unexported (golint)
    • Line 374: warning: exported function NewFixFollowersJob should have comment or be unexported (golint)
    • Line 378: warning: exported method FixFollowersJob.Run should have comment or be unexported (golint)
    • twtxt/internal/messages.go
    • Line 26: warning: exported type Message should have comment or be unexported (golint)
    • Line 36: warning: exported method Message.User should have comment or be unexported (golint)
    • Line 41: warning: exported method Message.Text should have comment or be unexported (golint)
    • Line 45: warning: exported type Messages should have comment or be unexported (golint)
    • twtxt/internal/ttlcache.go
    • Line 8: warning: exported type CachedItem should have comment or be unexported (golint)
    • Line 13: warning: exported method CachedItem.Expired should have comment or be unexported (golint)
    • Line 17: warning: exported type CachedItems should have comment or be unexported (golint)
    • Line 19: warning: exported type TTLCache should have comment or be unexported (golint)
    • Line 26: warning: exported method TTLCache.Dec should have comment or be unexported (golint)
    • Line 30: warning: exported method TTLCache.Inc should have comment or be unexported (golint)
    • Line 34: warning: exported method TTLCache.Get should have comment or be unexported (golint)
    • Line 44: warning: exported method TTLCache.Set should have comment or be unexported (golint)
    • Line 53: warning: exported method TTLCache.Reset should have comment or be unexported (golint)
    • Line 57: warning: exported function NewTTLCache should have comment or be unexported (golint)
    • twtxt/internal/config.go
    • Line 20: warning: exported var ErrConfigPathMissing should have comment or be unexported (golint)
    • Line 89: warning: exported method Config.IsLocalURL should have comment or be unexported (golint)
    • Line 95: warning: exported method Config.LocalURL should have comment or be unexported (golint)
    • Line 96: warning: exported method Config.ExternalURL should have comment or be unexported (golint)
    • Line 97: warning: exported method Config.UserURL should have comment or be unexported (golint)
    • twtxt/internal/handlers.go
    • Line 41: warning: exported const MediaResolution should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported var ErrFeedImposter should have comment or be unexported (golint)
    • Line 51: warning: exported method Server.NotFoundHandler should have comment or be unexported (golint)
    • Line 64: warning: exported type FrontMatter should have comment or be unexported (golint)
    • Line 279: warning: comment on exported method Server.ManageFeedHandler should be of the form "ManageFeedHandler ..." (golint)
    • Line 369: warning: comment on exported method Server.ArchiveFeedHandler should be of the form "ArchiveFeedHandler ..." (golint)
    • Line 2165: warning: comment on exported method Server.TransferFeedHandler should be of the form "TransferFeedHandler ..." (golint)
    • twtxt/internal/task.go
    • Line 5: warning: exported type TaskState should have comment or be unexported (golint)
    • Line 8: warning: exported const TaskStatePending should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type TaskData should have comment or be unexported (golint)
    • Line 31: warning: exported type TaskResult should have comment or be unexported (golint)
    • twtxt/internal/image_task.go
    • Line 10: warning: exported type ImageTask should have comment or be unexported (golint)
    • Line 17: warning: exported function NewImageTask should have comment or be unexported (golint)
    • Line 27: warning: exported method ImageTask.Run should have comment or be unexported (golint)
    • twtxt/internal/session_store.go
    • Line 18: warning: exported function NewSessionStore should have comment or be unexported (golint)
    • Line 25: warning: exported method SessionStore.Count should have comment or be unexported (golint)
    • Line 29: warning: exported method SessionStore.GetSession should have comment or be unexported (golint)
    • Line 38: warning: exported method SessionStore.SetSession should have comment or be unexported (golint)
    • Line 47: warning: exported method SessionStore.HasSession should have comment or be unexported (golint)
    • Line 56: warning: exported method SessionStore.DelSession should have comment or be unexported (golint)
    • Line 67: warning: exported method SessionStore.SyncSession should have comment or be unexported (golint)
    • Line 78: warning: exported method SessionStore.GetAllSessions should have comment or be unexported (golint)
    • twtxt/internal/webmention/webmention.go
    • Line 1: warning: package comment should be of the form "Package webmention ..." (golint)
    • Line 16: warning: exported type WebMention should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 49: warning: exported method WebMention.GetTargetEndpoint should have comment or be unexported (golint)
    • Line 81: warning: exported method WebMention.SendNotification should have comment or be unexported (golint)
    • Line 85: warning: exported method WebMention.WebMentionEndpoint should have comment or be unexported (golint)
    • twtxt/internal/archive.go
    • Line 23: warning: exported var ErrTwtAlreadyArchived should have comment or be unexported (golint)
    • Line 42: warning: exported function NewNullArchiver should have comment or be unexported (golint)
    • Line 46: warning: exported method NullArchiver.Del should have comment or be unexported (golint)
    • Line 47: warning: exported method NullArchiver.Has should have comment or be unexported (golint)
    • Line 48: warning: exported method NullArchiver.Get should have comment or be unexported (golint)
    • Line 49: warning: exported method NullArchiver.Archive should have comment or be unexported (golint)
    • Line 50: warning: exported method NullArchiver.Count should have comment or be unexported (golint)
    • Line 59: warning: exported function NewDiskArchiver should have comment or be unexported (golint)
    • Line 94: warning: exported method DiskArchiver.Del should have comment or be unexported (golint)
    • Line 108: warning: exported method DiskArchiver.Has should have comment or be unexported (golint)
    • Line 118: warning: exported method DiskArchiver.Get should have comment or be unexported (golint)
    • Line 145: warning: exported method DiskArchiver.Archive should have comment or be unexported (golint)
    • Line 176: warning: exported method DiskArchiver.Count should have comment or be unexported (golint)
    • twtxt/internal/audio_task.go
    • Line 10: warning: exported type AudioTask should have comment or be unexported (golint)
    • Line 17: warning: exported function NewAudioTask should have comment or be unexported (golint)
    • Line 27: warning: exported method AudioTask.Run should have comment or be unexported (golint)
    • twtxt/internal/errors.go
    • Line 8: warning: exported type ErrCommandKilled should have comment or be unexported (golint)
    • Line 13: warning: exported method ErrCommandKilled.Is should have comment or be unexported (golint)
    • Line 28: warning: exported type ErrCommandFailed should have comment or be unexported (golint)
    • Line 33: warning: exported method ErrCommandFailed.Is should have comment or be unexported (golint)
    • Line 48: warning: exported type ErrTranscodeTimeout should have comment or be unexported (golint)
    • Line 60: warning: exported type ErrTranscodeFailed should have comment or be unexported (golint)
    • Line 72: warning: exported type ErrAudioUploadFailed should have comment or be unexported (golint)
    • Line 84: warning: exported type ErrVideoUploadFailed should have comment or be unexported (golint)
    • twtxt/internal/templates.go
    • Line 26: warning: exported type TemplateManager should have comment or be unexported (golint)
    • Line 34: warning: exported function NewTemplateManager should have comment or be unexported (golint)
    • Line 60: warning: exported method TemplateManager.LoadTemplates should have comment or be unexported (golint)
    • Line 105: warning: exported method TemplateManager.Add should have comment or be unexported (golint)
    • Line 112: warning: exported method TemplateManager.Exec should have comment or be unexported (golint)
    • twtxt/internal/twt.go
    • Line 59: warning: comment on exported function ExpandTag should be of the form "ExpandTag ..." (golint)
    • Line 73: warning: exported function DeleteLastTwt should have comment or be unexported (golint)
    • Line 96: warning: exported function AppendSpecial should have comment or be unexported (golint)
    • Line 102: warning: exported function AppendTwt should have comment or be unexported (golint)
    • Line 148: warning: exported function FeedExists should have comment or be unexported (golint)
    • Line 159: warning: exported function GetLastTwt should have comment or be unexported (golint)
    • Line 181: warning: exported function GetAllFeeds should have comment or be unexported (golint)
    • Line 201: warning: exported function GetFeedCount should have comment or be unexported (golint)
    • Line 220: warning: exported function GetAllTwts should have comment or be unexported (golint)
    • twtxt/internal/utils.go
    • Line 73: warning: exported const DayAgo should have comment (or a comment on this block) or be unexported (golint)
    • Line 111: warning: exported var ErrInvalidFeedName should have comment or be unexported (golint)
    • Line 131: warning: exported function GenerateRandomToken should have comment or be unexported (golint)
    • Line 137: warning: exported function FastHash should have comment or be unexported (golint)
    • Line 147: warning: exported function IntPow should have comment or be unexported (golint)
    • Line 151: warning: exported function Slugify should have comment or be unexported (golint)
    • Line 161: warning: exported function GenerateAvatar should have comment or be unexported (golint)
    • Line 177: warning: exported function ReplaceExt should have comment or be unexported (golint)
    • Line 182: warning: exported function ImageToPng should have comment or be unexported (golint)
    • Line 215: warning: exported function GetExternalAvatar should have comment or be unexported (golint)
    • Line 264: warning: exported function Request should have comment or be unexported (golint)
    • Line 301: warning: exported function ResourceExists should have comment or be unexported (golint)
    • Line 312: warning: exported function LineCount should have comment or be unexported (golint)
    • Line 331: warning: exported function FileExists should have comment or be unexported (golint)
    • Line 395: warning: exported function IsExternalFeedFactory should have comment or be unexported (golint)
    • Line 407: warning: exported function IsLocalURLFactory should have comment or be unexported (golint)
    • Line 416: warning: exported function GetUserFromURL should have comment or be unexported (golint)
    • Line 427: warning: exported function WebMention should have comment or be unexported (golint)
    • Line 442: warning: exported function StringKeys should have comment or be unexported (golint)
    • Line 450: warning: exported function StringValues should have comment or be unexported (golint)
    • Line 458: warning: exported function MapStrings should have comment or be unexported (golint)
    • Line 466: warning: exported function HasString should have comment or be unexported (golint)
    • Line 475: warning: exported function UniqStrings should have comment or be unexported (golint)
    • Line 490: warning: exported function RemoveString should have comment or be unexported (golint)
    • Line 501: warning: exported function IsImage should have comment or be unexported (golint)
    • Line 522: warning: exported function IsAudio should have comment or be unexported (golint)
    • Line 543: warning: exported function IsVideo should have comment or be unexported (golint)
    • Line 564: warning: exported type ImageOptions should have comment or be unexported (golint)
    • Line 570: warning: exported type AudioOptions should have comment or be unexported (golint)
    • Line 577: warning: exported type VideoOptions should have comment or be unexported (golint)
    • Line 582: warning: exported function DownloadImage should have comment or be unexported (golint)
    • Line 619: warning: exported function ReceiveAudio should have comment or be unexported (golint)
    • Line 643: warning: exported function ReceiveImage should have comment or be unexported (golint)
    • Line 667: warning: exported function ReceiveVideo should have comment or be unexported (golint)
    • Line 691: warning: exported function TranscodeAudio should have comment or be unexported (golint)
    • Line 816: warning: exported function ProcessImage should have comment or be unexported (golint)
    • Line 893: warning: exported function TranscodeVideo should have comment or be unexported (golint)
    • Line 1075: warning: exported function StoreUploadedImage should have comment or be unexported (golint)
    • Line 1085: warning: exported function NormalizeFeedName should have comment or be unexported (golint)
    • Line 1092: warning: exported function ValidateFeed should have comment or be unexported (golint)
    • Line 1114: warning: exported function ValidateFeedName should have comment or be unexported (golint)
    • Line 1125: warning: exported type URI should have comment or be unexported (golint)
    • Line 1130: warning: exported method URI.IsZero should have comment or be unexported (golint)
    • Line 1138: warning: exported type TwtxtUserAgent should have comment or be unexported (golint)
    • Line 1144: warning: exported method TwtxtUserAgent.IsPublicURL should have comment or be unexported (golint)
    • Line 1169: warning: exported function DetectFollowerFromUserAgent should have comment or be unexported (golint)
    • Line 1182: warning: exported function ParseURI should have comment or be unexported (golint)
    • Line 1190: warning: exported function NormalizeUsername should have comment or be unexported (golint)
    • Line 1194: warning: exported function NormalizeURL should have comment or be unexported (golint)
    • Line 1232: warning: exported function HostnameFromURL should have comment or be unexported (golint)
    • Line 1242: warning: exported function PrettyURL should have comment or be unexported (golint)
    • Line 1260: warning: exported function UserURL should have comment or be unexported (golint)
    • Line 1267: warning: exported function URLForBlogs should have comment or be unexported (golint)
    • Line 1275: warning: exported function URLForPage should have comment or be unexported (golint)
    • Line 1283: warning: exported function URLForTwt should have comment or be unexported (golint)
    • Line 1291: warning: exported function URLForUser should have comment or be unexported (golint)
    • Line 1299: warning: exported function URLForAvatar should have comment or be unexported (golint)
    • Line 1307: warning: exported function URLForExternalProfile should have comment or be unexported (golint)
    • Line 1315: warning: exported function URLForExternalAvatar should have comment or be unexported (golint)
    • Line 1323: warning: exported function URLForBlogFactory should have comment or be unexported (golint)
    • Line 1353: warning: exported function URLForConvFactory should have comment or be unexported (golint)
    • Line 1386: warning: exported function URLForTag should have comment or be unexported (golint)
    • Line 1394: warning: exported function URLForTask should have comment or be unexported (golint)
    • Line 1402: warning: exported function URLForWhoFollows should have comment or be unexported (golint)
    • Line 1595: warning: exported function FormatForDateTime should have comment or be unexported (golint)
    • Line 1775: warning: exported function GetMediaNamesFromText should have comment or be unexported (golint)
    • twtxt/internal/video_task.go
    • Line 10: warning: exported type VideoTask should have comment or be unexported (golint)
    • Line 17: warning: exported function NewVideoTask should have comment or be unexported (golint)
    • Line 27: warning: exported method VideoTask.Run should have comment or be unexported (golint)
    • twtxt/cmd/twt/ui.go
    • Line 27: warning: exported function PrintFollowee should have comment or be unexported (golint)
    • Line 34: warning: exported function PrintFolloweeRaw should have comment or be unexported (golint)
    • Line 38: warning: exported function PrintTwt should have comment or be unexported (golint)
    • Line 52: warning: exported function PrintTwtRaw should have comment or be unexported (golint)
    • twtxt/internal/base_task.go
    • Line 9: warning: exported type BaseTask should have comment or be unexported (golint)
    • Line 16: warning: exported function NewBaseTask should have comment or be unexported (golint)
    • Line 23: warning: exported method BaseTask.SetState should have comment or be unexported (golint)
    • Line 27: warning: exported method BaseTask.SetData should have comment or be unexported (golint)
    • Line 34: warning: exported method BaseTask.Done should have comment or be unexported (golint)
    • Line 42: warning: exported method BaseTask.Fail should have comment or be unexported (golint)
    • Line 47: warning: exported method BaseTask.Result should have comment or be unexported (golint)
    • Line 62: warning: exported method BaseTask.ID should have comment or be unexported (golint)
    • Line 63: warning: exported method BaseTask.State should have comment or be unexported (golint)
    • twtxt/internal/blog.go
    • Line 27: warning: exported var ErrInvalidBlogPath should have comment or be unexported (golint)
    • Line 30: warning: exported type BlogPost should have comment or be unexported (golint)
    • Line 45: warning: exported type BlogPosts should have comment or be unexported (golint)
    • Line 57: warning: exported function GetBlogPostsByAuthor should have comment or be unexported (golint)
    • Line 90: warning: exported function GetAllBlogPosts should have comment or be unexported (golint)
    • Line 123: warning: exported function NewBlogPost should have comment or be unexported (golint)
    • Line 143: warning: exported function BlogPostFromFile should have comment or be unexported (golint)
    • Line 186: warning: exported function BlogPostFromParams should have comment or be unexported (golint)
    • Line 217: warning: exported method BlogPost.Created should have comment or be unexported (golint)
    • Line 222: warning: exported method BlogPost.Modified should have comment or be unexported (golint)
    • Line 226: warning: exported method BlogPost.Published should have comment or be unexported (golint)
    • Line 233: warning: exported method BlogPost.Filename should have comment or be unexported (golint)
    • Line 244: warning: exported method BlogPost.Reset should have comment or be unexported (golint)
    • Line 258: warning: exported method BlogPost.WriteString should have comment or be unexported (golint)
    • Line 265: warning: exported method BlogPost.Bytes should have comment or be unexported (golint)
    • Line 269: warning: exported method BlogPost.LoadMetadata should have comment or be unexported (golint)
    • Line 283: warning: exported method BlogPost.Load should have comment or be unexported (golint)
    • Line 303: warning: exported method BlogPost.Save should have comment or be unexported (golint)
    • Line 329: warning: exported method BlogPost.URL should have comment or be unexported (golint)
    • Line 337: warning: exported method BlogPost.Hash should have comment or be unexported (golint)
    • Line 352: warning: exported method BlogPost.Content should have comment or be unexported (golint)
    • Line 360: warning: exported function WriteBlog should have comment or be unexported (golint)
    • Line 385: warning: exported function WriteBlogAs should have comment or be unexported (golint)
    • twtxt/internal/feedsources.go
    • Line 17: warning: exported type FeedSource should have comment or be unexported (golint)
    • Line 22: warning: exported type FeedSourceMap should have comment or be unexported (golint)
    • Line 24: warning: exported type FeedSources should have comment or be unexported (golint)
    • Line 28: warning: exported function SaveFeedSources should have comment or be unexported (golint)
    • Line 52: warning: exported function LoadFeedSources should have comment or be unexported (golint)
    • Line 76: warning: exported function FetchFeedSources should have comment or be unexported (golint)
    • Line 122: warning: exported function ParseFeedSource should have comment or be unexported (golint)
    • twtxt/types/profile.go
    • Line 26: warning: exported type Link should have comment or be unexported (golint)
    • Line 31: warning: exported type Alternative should have comment or be unexported (golint)
    • Line 37: warning: exported type Alternatives should have comment or be unexported (golint)
    • Line 38: warning: exported type Links should have comment or be unexported (golint)
    • twtxt/internal/context.go
    • Line 19: warning: exported type Meta should have comment or be unexported (golint)
    • Line 29: warning: exported type Context should have comment or be unexported (golint)
    • Line 90: warning: exported function NewContext should have comment or be unexported (golint)
    • twtxt/internal/services.go
    • Line 67: warning: exported function NewMboxHandler should have comment or be unexported (golint)
    • Line 143: warning: exported type POP3Service should have comment or be unexported (golint)
    • Line 165: warning: exported method POP3Service.Start should have comment or be unexported (golint)
    • Line 173: warning: exported method POP3Service.Stop should have comment or be unexported (golint)
    • Line 175: warning: exported method POP3Service.ListenAndServe should have comment or be unexported (golint)
    • Line 192: warning: exported type SMTPService should have comment or be unexported (golint)
    • Line 309: warning: exported method SMTPService.Start should have comment or be unexported (golint)
    • Line 317: warning: exported method SMTPService.Stop should have comment or be unexported (golint)
    • Line 319: warning: exported method SMTPService.ListenAndServe should have comment or be unexported (golint)
    • twtxt/internal/store.go
    • Line 11: warning: exported var ErrInvalidStore should have comment or be unexported (golint)
    • Line 18: warning: exported type Store should have comment or be unexported (golint)
    • Line 53: warning: exported function NewStore should have comment or be unexported (golint)
    • twtxt/types/twt.go
    • Line 21: warning: exported method Twter.IsZero should have comment or be unexported (golint)
    • Line 25: warning: exported method Twter.MarshalJSON should have comment or be unexported (golint)
    • Line 55: warning: exported type Mention should have comment or be unexported (golint)
    • Line 59: warning: exported type MentionList should have comment or be unexported (golint)
    • Line 61: warning: exported type Tag should have comment or be unexported (golint)
    • Line 65: warning: exported type TagList should have comment or be unexported (golint)
    • Line 67: warning: exported method TagList.Tags should have comment or be unexported (golint)
    • Line 94: warning: comment on exported method Twts.TagCount should be of the form "TagCount ..." (golint)
    • Line 105: warning: exported type FmtOpts should have comment or be unexported (golint)
    • Line 124: warning: exported var NilTwt should have comment or be unexported (golint)
    • Line 144: warning: exported type TwtManager should have comment or be unexported (golint)
    • Line 160: warning: exported var ErrNotImplemented should have comment or be unexported (golint)
    • Line 164: warning: exported function DecodeJSON should have comment or be unexported (golint)
    • Line 165: warning: exported function ParseLine should have comment or be unexported (golint)
    • Line 168: warning: exported function ParseFile should have comment or be unexported (golint)
    • Line 172: warning: exported function SetTwtManager should have comment or be unexported (golint)
    • twtxt/internal/api.go
    • Line 31: warning: exported const TokenContextKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 890: warning: comment on exported method API.UploadMediaEndpoint should be of the form "UploadMediaEndpoint ..." (golint)
    • twtxt/internal/email.go
    • Line 15: warning: exported var ErrSendingEmail should have comment or be unexported (golint)
    • Line 64: warning: exported type PasswordResetEmailContext should have comment or be unexported (golint)
    • Line 72: warning: exported type SupportRequestEmailContext should have comment or be unexported (golint)
    • Line 82: warning: exported type ReportAbuseEmailContext should have comment or be unexported (golint)
    • Line 95: warning: comment on exported function Indent should be of the form "Indent ..." (golint)
    • Line 111: warning: exported function SendEmail should have comment or be unexported (golint)
    • Line 130: warning: exported function SendPasswordResetEmail should have comment or be unexported (golint)
    • Line 158: warning: exported function SendSupportRequestEmail should have comment or be unexported (golint)
    • Line 188: warning: exported function SendReportAbuseEmail should have comment or be unexported (golint)
    • twtxt/types/retwt/retwt.go
    • Line 26: warning: exported const TwtHashLength should have comment (or a comment on this block) or be unexported (golint)
    • Line 83: warning: exported function NewReTwt should have comment or be unexported (golint)
    • Line 87: warning: exported function DecodeJSON should have comment or be unexported (golint)
    • Line 95: warning: exported function ParseLine should have comment or be unexported (golint)
    • Line 127: warning: exported function ParseFile should have comment or be unexported (golint)
    • Line 366: warning: exported function ParseTime should have comment or be unexported (golint)
    • Line 387: warning: exported var ErrInvalidTwtLine should have comment or be unexported (golint)
    • Line 401: warning: exported function DefaultTwtManager should have comment or be unexported (golint)
    • twtxt/internal/bitcask_store.go
    • Line 70: warning: exported method BitcaskStore.HasFeed should have comment or be unexported (golint)
    • Line 75: warning: exported method BitcaskStore.DelFeed should have comment or be unexported (golint)
    • Line 80: warning: exported method BitcaskStore.GetFeed should have comment or be unexported (golint)
    • Line 89: warning: exported method BitcaskStore.SetFeed should have comment or be unexported (golint)
    • Line 102: warning: exported method BitcaskStore.LenFeeds should have comment or be unexported (golint)
    • Line 115: warning: exported method BitcaskStore.SearchFeeds should have comment or be unexported (golint)
    • Line 130: warning: exported method BitcaskStore.GetAllFeeds should have comment or be unexported (golint)
    • Line 153: warning: exported method BitcaskStore.HasUser should have comment or be unexported (golint)
    • Line 158: warning: exported method BitcaskStore.DelUser should have comment or be unexported (golint)
    • Line 163: warning: exported method BitcaskStore.GetUser should have comment or be unexported (golint)
    • Line 172: warning: exported method BitcaskStore.SetUser should have comment or be unexported (golint)
    • Line 185: warning: exported method BitcaskStore.LenUsers should have comment or be unexported (golint)
    • Line 198: warning: exported method BitcaskStore.SearchUsers should have comment or be unexported (golint)
    • Line 213: warning: exported method BitcaskStore.GetAllUsers should have comment or be unexported (golint)
    • Line 236: warning: exported method BitcaskStore.GetSession should have comment or be unexported (golint)
    • Line 252: warning: exported method BitcaskStore.SetSession should have comment or be unexported (golint)
    • Line 263: warning: exported method BitcaskStore.HasSession should have comment or be unexported (golint)
    • Line 268: warning: exported method BitcaskStore.DelSession should have comment or be unexported (golint)
    • Line 273: warning: exported method BitcaskStore.SyncSession should have comment or be unexported (golint)
    • Line 283: warning: exported method BitcaskStore.LenSessions should have comment or be unexported (golint)
    • Line 296: warning: exported method BitcaskStore.GetAllSessions should have comment or be unexported (golint)
    • Line 319: warning: exported method BitcaskStore.GetUserTokens should have comment or be unexported (golint)
    • Line 333: warning: exported method BitcaskStore.GetToken should have comment or be unexported (golint)
    • Line 347: warning: exported method BitcaskStore.SetToken should have comment or be unexported (golint)
    • Line 360: warning: exported method BitcaskStore.DelToken should have comment or be unexported (golint)
    • Line 365: warning: exported method BitcaskStore.LenTokens should have comment or be unexported (golint)
    • twtxt/internal/models.go
    • Line 24: warning: exported var ErrFeedAlreadyExists should have comment or be unexported (golint)
    • Line 80: warning: exported function LoadToken should have comment or be unexported (golint)
    • Line 93: warning: exported method Token.Bytes should have comment or be unexported (golint)
    • Line 101: warning: exported function CreateFeed should have comment or be unexported (golint)
    • Line 149: warning: exported function DetachFeedFromOwner should have comment or be unexported (golint)
    • Line 166: warning: exported function RemoveFeedOwnership should have comment or be unexported (golint)
    • Line 175: warning: exported function AddFeedOwnership should have comment or be unexported (golint)
    • Line 228: warning: exported function LoadUser should have comment or be unexported (golint)
    • Line 279: warning: exported method Feed.AddFollower should have comment or be unexported (golint)
    • Line 285: warning: exported method Feed.FollowedBy should have comment or be unexported (golint)
    • Line 290: warning: exported method Feed.Source should have comment or be unexported (golint)
    • Line 296: warning: exported method Feed.Profile should have comment or be unexported (golint)
    • Line 325: warning: exported method Feed.Bytes should have comment or be unexported (golint)
    • Line 342: warning: comment on exported method User.AddToken should be of the form "AddToken ..." (golint)
    • Line 359: warning: exported method User.OwnsFeed should have comment or be unexported (golint)
    • Line 369: warning: exported method User.Is should have comment or be unexported (golint)
    • Line 376: warning: exported method User.AddFollower should have comment or be unexported (golint)
    • Line 382: warning: exported method User.FollowedBy should have comment or be unexported (golint)
    • Line 387: warning: exported method User.Mute should have comment or be unexported (golint)
    • Line 394: warning: exported method User.Unmute should have comment or be unexported (golint)
    • Line 402: warning: exported method User.Follow should have comment or be unexported (golint)
    • Line 409: warning: exported method User.FollowAndValidate should have comment or be unexported (golint)
    • Line 424: warning: exported method User.Follows should have comment or be unexported (golint)
    • Line 429: warning: exported method User.HasMuted should have comment or be unexported (golint)
    • Line 434: warning: exported method User.Source should have comment or be unexported (golint)
    • Line 440: warning: exported method User.Sources should have comment or be unexported (golint)
    • Line 449: warning: exported method User.Profile should have comment or be unexported (golint)
    • Line 485: warning: exported method User.Twter should have comment or be unexported (golint)
    • Line 489: warning: exported method User.Filter should have comment or be unexported (golint)
    • Line 504: warning: exported method User.Reply should have comment or be unexported (golint)
    • Line 529: warning: exported method User.Bytes should have comment or be unexported (golint)
    • twtxt/internal/session/session.go
    • Line 21: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 25: warning: exported function LoadSession should have comment or be unexported (golint)
    • Line 37: warning: exported method Session.Expired should have comment or be unexported (golint)
    • Line 41: warning: exported method Session.Set should have comment or be unexported (golint)
    • Line 46: warning: exported method Session.Get should have comment or be unexported (golint)
    • Line 51: warning: exported method Session.Has should have comment or be unexported (golint)
    • Line 56: warning: exported method Session.Del should have comment or be unexported (golint)
    • Line 61: warning: exported method Session.Bytes should have comment or be unexported (golint)
    • twtxt/internal/func_task.go
    • Line 5: warning: exported type FuncTask should have comment or be unexported (golint)
    • Line 11: warning: exported function NewFuncTask should have comment or be unexported (golint)
    • Line 20: warning: exported method FuncTask.Run should have comment or be unexported (golint)
    • twtxt/internal/options.go
    • Line 10: warning: comment on exported const DefaultDebug should be of the form "DefaultDebug ..." (golint)
    • Line 22: warning: comment on exported const DefaultAdminUser should be of the form "DefaultAdminUser ..." (golint)
    • Line 24: warning: exported const DefaultAdminName should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: comment on exported const DefaultMetaTitle should be of the form "DefaultMetaTitle ..." (golint)
    • Line 61: warning: comment on exported const DefaultMsgsPerPage should be of the form "DefaultMsgsPerPage ..." (golint)
    • Line 82: warning: comment on exported const DefaultSMTPBind should be of the form "DefaultSMTPBind ..." (golint)
    • Line 86: warning: comment on exported const DefaultSMTPHost should be of the form "DefaultSMTPHost ..." (golint)
    • Line 131: warning: exported function NewConfig should have comment or be unexported (golint)

gocyclo85%

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.

    • twtxt/internal/utils.go
    • Line 893: warning: cyclomatic complexity 20 of function TranscodeVideo() is high (> 15) (gocyclo)
    • Line 816: warning: cyclomatic complexity 16 of function ProcessImage() is high (> 15) (gocyclo)
    • twtxt/internal/api.go
    • Line 891: warning: cyclomatic complexity 19 of function (*API).UploadMediaEndpoint() is high (> 15) (gocyclo)
    • Line 576: warning: cyclomatic complexity 16 of function (*API).FollowEndpoint() is high (> 15) (gocyclo)
    • twtxt/internal/media_handlers.go
    • Line 101: warning: cyclomatic complexity 18 of function (*Server).UploadMediaHandler() is high (> 15) (gocyclo)
    • Line 18: warning: cyclomatic complexity 16 of function (*Server).MediaHandler() is high (> 15) (gocyclo)
    • twtxt/internal/handlers.go
    • Line 2241: warning: cyclomatic complexity 29 of function (*Server).DeleteAllHandler() is high (> 15) (gocyclo)
    • Line 676: warning: cyclomatic complexity 25 of function (*Server).PostHandler() is high (> 15) (gocyclo)
    • Line 459: warning: cyclomatic complexity 22 of function (*Server).AvatarHandler() is high (> 15) (gocyclo)
    • Line 578: warning: cyclomatic complexity 20 of function (*Server).TwtxtHandler() is high (> 15) (gocyclo)
    • twtxt/internal/messages.go
    • Line 74: warning: cyclomatic complexity 18 of function deleteMessages() is high (> 15) (gocyclo)
    • Line 172: warning: cyclomatic complexity 17 of function markMessageAsRead() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words

    • twtxt/internal/handlers.go
    • Line 2249: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2265: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2275: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2289: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2300: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2313: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2324: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2338: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2348: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2363: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2374: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2384: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2395: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 2403: warning: "occured" is a misspelling of "occurred" (misspell)
    • twtxt/internal/manage_handlers.go
    • Line 241: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 257: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 267: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 281: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 292: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 305: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 316: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 330: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 340: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 355: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 366: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 376: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 387: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 395: warning: "occured" is a misspelling of "occurred" (misspell)