Preparing report...

Report for github.com/gjbae1212/go-module

A    Great!    Found 74 issues across 102 files

Tweet

gofmt94%

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!


gocyclo98%

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.


golint31%

Golint is a linter for Go source code.

    • go-module/gcp/dialogflow/actions-on-google/component.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 3: warning: exported type SimpleResponse should have comment or be unexported (golint)
    • Line 9: warning: exported type MediaResponse should have comment or be unexported (golint)
    • Line 14: warning: exported type Suggestion should have comment or be unexported (golint)
    • Line 18: warning: exported type Item should have comment or be unexported (golint)
    • Line 27: warning: exported type BasicCard should have comment or be unexported (golint)
    • Line 36: warning: exported type CarouselBrowse should have comment or be unexported (golint)
    • Line 41: warning: exported type TableCard should have comment or be unexported (golint)
    • Line 50: warning: exported type Image should have comment or be unexported (golint)
    • Line 57: warning: exported type Button should have comment or be unexported (golint)
    • Line 62: warning: exported type MediaObject should have comment or be unexported (golint)
    • Line 70: warning: exported type ColumnProperty should have comment or be unexported (golint)
    • Line 75: warning: exported type Row should have comment or be unexported (golint)
    • Line 80: warning: exported type Cell should have comment or be unexported (golint)
    • Line 84: warning: exported type LinkOutSuggestion should have comment or be unexported (golint)
    • Line 89: warning: exported type OpenUrlAction should have comment or be unexported (golint)
    • Line 95: warning: exported type AndroidApp should have comment or be unexported (golint)
    • Line 100: warning: exported type VersionFilter should have comment or be unexported (golint)
    • Line 105: warning: exported type SimpleSelect should have comment or be unexported (golint)
    • Line 109: warning: exported type ListSelect should have comment or be unexported (golint)
    • Line 114: warning: exported type CarouselSelect should have comment or be unexported (golint)
    • Line 119: warning: exported type SimpleSelectItem should have comment or be unexported (golint)
    • Line 124: warning: exported type ListItem should have comment or be unexported (golint)
    • Line 131: warning: exported type OptionInfo should have comment or be unexported (golint)
    • Line 136: warning: exported type CarouselItem should have comment or be unexported (golint)
    • Line 143: warning: exported type CarouselBrowseItem should have comment or be unexported (golint)
    • Line 151: warning: exported type Argument should have comment or be unexported (golint)
    • Line 157: warning: exported type StructuredResponse should have comment or be unexported (golint)
    • go-module/gcp/dialogflow/webhook.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 23: warning: exported function GenerateSession should have comment or be unexported (golint)
    • Line 30: warning: exported function GenerateContext should have comment or be unexported (golint)
    • Line 37: warning: exported function GenerateIntent should have comment or be unexported (golint)
    • Line 44: warning: exported function ParseSession should have comment or be unexported (golint)
    • Line 61: warning: exported function ParseContext should have comment or be unexported (golint)
    • Line 79: warning: exported function ParseIntent should have comment or be unexported (golint)
    • Line 96: warning: exported function JsonToWebhookRequest should have comment or be unexported (golint)
    • Line 110: warning: exported function WebhookRequestToJson should have comment or be unexported (golint)
    • Line 123: warning: exported function JsonToWebhookResponse should have comment or be unexported (golint)
    • Line 136: warning: exported function WebhookResponseToJson should have comment or be unexported (golint)
    • go-module/util/util.go
    • Line 31: warning: exported function GetModulePath should have comment or be unexported (golint)
    • Line 35: warning: exported function CheckHttpMethod should have comment or be unexported (golint)
    • go-module/gcp/dialogflow/actions-on-google/enum.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 3: warning: exported type UrlTypeHint should have comment or be unexported (golint)
    • Line 5: warning: exported type ImageDisplayOptions should have comment or be unexported (golint)
    • Line 7: warning: exported type MediaType should have comment or be unexported (golint)
    • Line 9: warning: exported type HorizontalAlignment should have comment or be unexported (golint)
    • Line 11: warning: exported type ActionType should have comment or be unexported (golint)
    • Line 13: warning: exported type PriceType should have comment or be unexported (golint)
    • Line 15: warning: exported type IntentValueType should have comment or be unexported (golint)
    • Line 17: warning: exported type Permission should have comment or be unexported (golint)
    • Line 20: warning: exported const UTH_URL_TYPE_HINT_UNSPECIFIED should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported const IDO_DEFAULT should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const MT_MEDIA_TYPE_UNSPECIFIED should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported const HA_LEADING should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported const AT_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 57: warning: exported const PT_UNKNOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 63: warning: exported const IVT_CONFIRMATION should have comment (or a comment on this block) or be unexported (golint)
    • Line 73: warning: exported const PM_UNSPECIFIED_PERMISSION should have comment (or a comment on this block) or be unexported (golint)
    • Line 80: warning: exported method IntentValueType.Intent should have comment or be unexported (golint)
    • Line 100: warning: exported method IntentValueType.Event should have comment or be unexported (golint)
    • Line 120: warning: exported method IntentValueType.Context should have comment or be unexported (golint)
    • go-module/feedly/manager.go
    • Line 8: warning: exported type Manager should have comment or be unexported (golint)
    • Line 20: warning: exported function NewManager should have comment or be unexported (golint)
    • go-module/util/time.go
    • Line 14: warning: exported function TimestampByMaxTime should have comment or be unexported (golint)
    • Line 18: warning: exported function StringToTime should have comment or be unexported (golint)
    • Line 26: warning: exported function TimeToString should have comment or be unexported (golint)
    • Line 30: warning: exported function YearlyStringToTime should have comment or be unexported (golint)
    • Line 38: warning: exported function TimeToYearlyStringFormat should have comment or be unexported (golint)
    • Line 42: warning: exported function MonthlyStringToTime should have comment or be unexported (golint)
    • Line 50: warning: exported function TimeToMonthlyStringFormat should have comment or be unexported (golint)
    • Line 54: warning: exported function DailyStringToTime should have comment or be unexported (golint)
    • Line 62: warning: exported function TimeToDailyStringFormat should have comment or be unexported (golint)
    • Line 66: warning: exported function HourlyStringToTime should have comment or be unexported (golint)
    • Line 74: warning: exported function TimeToHourlyStringFormat should have comment or be unexported (golint)
    • go-module/feedly/entry.go
    • Line 9: warning: exported type EntryService should have comment or be unexported (golint)
    • Line 13: warning: exported method Feedly.GetEntry should have comment or be unexported (golint)
    • go-module/async_task/async_task.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: comment on exported type ErrorHandler should be of the form "ErrorHandler ..." (with optional leading article) (golint)
    • Line 13: warning: comment on exported type Task should be of the form "Task ..." (with optional leading article) (golint)
    • Line 18: warning: comment on exported type Keeper should be of the form "Keeper ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported function NewAsyncTask should be of the form "NewAsyncTask ..." (golint)
    • go-module/ip/ip.go
    • Line 16: warning: exported function GetPublicIPV4 should have comment or be unexported (golint)
    • Line 35: warning: exported function GetPublicIPV6 should have comment or be unexported (golint)
    • go-module/feedly/feedly.go
    • Line 25: warning: exported type Feedly should have comment or be unexported (golint)
    • Line 34: warning: exported type Threshold should have comment or be unexported (golint)
    • Line 40: warning: exported type MainService should have comment or be unexported (golint)
    • Line 51: warning: exported method Feedly.UserId should have comment or be unexported (golint)
    • Line 63: warning: exported method Feedly.FeedId should have comment or be unexported (golint)
    • Line 70: warning: exported method Feedly.CategoryId should have comment or be unexported (golint)
    • Line 81: warning: exported method Feedly.CategoryAllId should have comment or be unexported (golint)
    • Line 89: warning: exported method Feedly.TagId should have comment or be unexported (golint)
    • Line 100: warning: exported method Feedly.TagAllId should have comment or be unexported (golint)
    • Line 108: warning: exported method Feedly.TagSavedId should have comment or be unexported (golint)
    • Line 116: warning: exported method Feedly.TagReadId should have comment or be unexported (golint)
    • go-module/feedly/profile.go
    • Line 8: warning: exported type ProfileService should have comment or be unexported (golint)
    • Line 12: warning: exported method Feedly.GetProfile should have comment or be unexported (golint)
    • go-module/ssh/cert-authority/cert_ed25519.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 15: warning: comment on exported function NewCertificationED25519 should be of the form "NewCertificationED25519 ..." (golint)
    • Line 61: warning: exported function NewCertificationED25519WithPub should have comment or be unexported (golint)
    • go-module/gcp/dialogflow/actions-on-google/user.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 7: warning: exported type User should have comment or be unexported (golint)
    • Line 14: warning: exported method User.IsEmpty should have comment or be unexported (golint)
    • Line 18: warning: exported function GetUserFromRequest should have comment or be unexported (golint)
    • go-module/util/protobuf.go
    • Line 11: warning: exported function MapToStructPB should have comment or be unexported (golint)
    • Line 24: warning: exported function ObjectToStructPB should have comment or be unexported (golint)
    • Line 37: warning: exported function StructPBToMap should have comment or be unexported (golint)
    • Line 48: warning: exported function ValuePBToInterface should have comment or be unexported (golint)
    • go-module/ssh/cert-authority/cert_rsa.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported function NewCertificationRSA should have comment or be unexported (golint)
    • Line 68: warning: exported function NewCertificationRSAWithPub should have comment or be unexported (golint)
    • go-module/gcp/bigquery/config.go
    • Line 13: warning: exported type TablePeriod should have comment or be unexported (golint)
    • Line 22: warning: exported const NotExist should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type Config should have comment or be unexported (golint)
    • Line 38: warning: exported type TableSchema should have comment or be unexported (golint)
    • Line 45: warning: exported function NewConfig should have comment or be unexported (golint)
    • go-module/gcp/bigquery/worker.go
    • Line 19: warning: comment on exported type Job should be of the form "Job ..." (with optional leading article) (golint)
    • Line 24: warning: exported type Message should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type WorkerDispatcher should be of the form "WorkerDispatcher ..." (with optional leading article) (golint)
    • Line 39: warning: comment on exported type Worker should be of the form "Worker ..." (with optional leading article) (golint)
    • Line 67: warning: receiver name wd should be consistent with previous receiver name d for WorkerDispatcher (golint)
    • Line 74: warning: receiver name wd should be consistent with previous receiver name d for WorkerDispatcher (golint)
    • Line 81: warning: receiver name wd should be consistent with previous receiver name d for WorkerDispatcher (golint)
    • go-module/util/string.go
    • Line 5: warning: exported function StringInSlice should have comment or be unexported (golint)
    • Line 14: warning: exported function SplitStringByN should have comment or be unexported (golint)
    • go-module/gcp/dialogflow/actions-on-google/context.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: exported type Context should have comment or be unexported (golint)
    • Line 14: warning: exported method Context.IsEmpty should have comment or be unexported (golint)
    • Line 18: warning: exported function GetContextsFromRequest should have comment or be unexported (golint)
    • go-module/websocket/option.go
    • Line 3: warning: exported type Option should have comment or be unexported (golint)
    • Line 7: warning: exported type OptionFunc should have comment or be unexported (golint)
    • Line 11: warning: exported function WithErrorHandlerOption should have comment or be unexported (golint)
    • Line 17: warning: exported function WithMaxReadLimit should have comment or be unexported (golint)
    • Line 23: warning: exported function WithMaxMessagePoolLength should have comment or be unexported (golint)
    • go-module/feedly/streams.go
    • Line 12: warning: exported type StreamService should have comment or be unexported (golint)
    • Line 20: warning: comment on exported method Feedly.GetEntryIdsOfStream should be of the form "GetEntryIdsOfStream ..." (golint)
    • Line 62: warning: exported method Feedly.GetContentsOfStream should have comment or be unexported (golint)
    • Line 103: warning: exported method Feedly.SearchContentsOfStream should have comment or be unexported (golint)
    • go-module/redis/manager.go
    • Line 10: warning: exported type Manager should have comment or be unexported (golint)
    • Line 17: warning: exported function NewManager should have comment or be unexported (golint)
    • go-module/feedly/category.go
    • Line 10: warning: exported type CategoryService should have comment or be unexported (golint)
    • Line 15: warning: exported method Feedly.GetCategories should have comment or be unexported (golint)
    • Line 31: warning: exported method Feedly.GetCategory should have comment or be unexported (golint)
    • go-module/feedly/marker.go
    • Line 12: warning: exported type MarkAction should have comment or be unexported (golint)
    • Line 15: warning: exported const AsRead should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type MarkerService should have comment or be unexported (golint)
    • Line 26: warning: exported method Feedly.GetUnreads should have comment or be unexported (golint)
    • Line 52: warning: exported method Feedly.MarkEntriesAsAction should have comment or be unexported (golint)
    • go-module/websocket/client.go
    • Line 19: warning: exported var Upgrader should have comment or be unexported (golint)
    • Line 22: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 37: warning: exported function NewClient should have comment or be unexported (golint)
    • go-module/gcp/dialogflow/manager.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported type Manager should have comment or be unexported (golint)
    • Line 17: warning: exported function NewManager should have comment or be unexported (golint)
    • go-module/gcp/oauth2/oauth2.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported var ScopeEmail should have comment or be unexported (golint)
    • Line 16: warning: exported type Manager should have comment or be unexported (golint)
    • Line 23: warning: exported function NewManager should have comment or be unexported (golint)
    • go-module/feedly/struct.go
    • Line 3: warning: exported type Entry should have comment or be unexported (golint)
    • Line 30: warning: exported type Category should have comment or be unexported (golint)
    • Line 42: warning: exported type Feed should have comment or be unexported (golint)
    • Line 65: warning: exported type Profile should have comment or be unexported (golint)
    • Line 109: warning: exported type LoginProvider should have comment or be unexported (golint)
    • Line 118: warning: exported type CardDetails should have comment or be unexported (golint)
    • Line 126: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 148: warning: exported type Tag should have comment or be unexported (golint)
    • Line 154: warning: exported type Content should have comment or be unexported (golint)
    • Line 159: warning: exported type Link should have comment or be unexported (golint)
    • Line 164: warning: exported type Origin should have comment or be unexported (golint)
    • Line 170: warning: exported type Visual should have comment or be unexported (golint)
    • Line 177: warning: exported type Stream should have comment or be unexported (golint)
    • Line 188: warning: exported type Marker should have comment or be unexported (golint)
    • Line 192: warning: exported type Unread should have comment or be unexported (golint)
    • Line 198: warning: exported type SearchResult should have comment or be unexported (golint)
    • go-module/encryption/aes.go
    • Line 12: warning: exported function EncryptAES should have comment or be unexported (golint)
    • Line 37: warning: exported function DecryptAES should have comment or be unexported (golint)
    • go-module/async_task/option.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 5: warning: exported type Option should have comment or be unexported (golint)
    • Line 9: warning: exported type OptionFunc should have comment or be unexported (golint)
    • Line 13: warning: exported function WithErrorHandlerOption should have comment or be unexported (golint)
    • Line 19: warning: exported function WithQueueSizeOption should have comment or be unexported (golint)
    • Line 25: warning: exported function WithWorkerSizeOption should have comment or be unexported (golint)
    • Line 31: warning: exported function WithTimeoutOption should have comment or be unexported (golint)
    • go-module/gcp/bigquery/streamer.go
    • Line 19: warning: exported type Streamer should have comment or be unexported (golint)
    • Line 36: warning: exported type ErrorHandler should have comment or be unexported (golint)
    • Line 39: warning: exported function NewStreamer should have comment or be unexported (golint)
    • Line 158: 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)
    • go-module/feedly/tag.go
    • Line 8: warning: exported type TagService should have comment or be unexported (golint)
    • Line 12: warning: exported method Feedly.GetTags should have comment or be unexported (golint)
    • go-module/mysql/mysql.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 13: warning: exported type Connector should have comment or be unexported (golint)
    • Line 20: warning: exported type Connection should have comment or be unexported (golint)
    • Line 28: warning: exported function NewWithDSN should have comment or be unexported (golint)
    • Line 40: warning: exported method Connection.DB should have comment or be unexported (golint)
    • Line 44: warning: exported method Connection.DSN should have comment or be unexported (golint)
    • Line 48: warning: exported method Connection.Connect should have comment or be unexported (golint)
    • Line 87: warning: exported method Connection.Close should have comment or be unexported (golint)
    • go-module/redis/group.go
    • Line 27: warning: exported type Group should have comment or be unexported (golint)
    • Line 34: warning: exported type Pool should have comment or be unexported (golint)
    • Line 39: warning: exported type Option should have comment or be unexported (golint)
    • Line 57: warning: exported method Group.Do should have comment or be unexported (golint)
    • Line 61: warning: exported method Group.DoWithTimeout should have comment or be unexported (golint)
    • Line 65: warning: exported method Group.Close should have comment or be unexported (golint)
    • Line 80: warning: exported method Group.Stats should have comment or be unexported (golint)
    • Line 176: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-module/gcp/dialogflow/dialogflow.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 19: warning: exported type DialogFlow should have comment or be unexported (golint)
    • Line 24: warning: exported type Request should have comment or be unexported (golint)
    • Line 34: warning: exported type Response should have comment or be unexported (golint)
    • Line 41: warning: exported method Request.Validate should have comment or be unexported (golint)
    • Line 57: warning: exported method Request.Session should have comment or be unexported (golint)
    • Line 61: warning: exported method Request.Contexts should have comment or be unexported (golint)
    • Line 70: warning: exported method Response.Set should have comment or be unexported (golint)
    • Line 88: warning: exported method Response.GetEntity should have comment or be unexported (golint)
    • Line 112: warning: exported method DialogFlow.DetectIntent should have comment or be unexported (golint)
    • go-module/feedly/subscription.go
    • Line 8: warning: exported type SubscriptionService should have comment or be unexported (golint)
    • Line 13: warning: exported method Feedly.GetSubscriptions should have comment or be unexported (golint)
    • Line 29: warning: exported method Feedly.Subscribe should have comment or be unexported (golint)
    • go-module/gcp/dialogflow/actions-on-google/system_intent_data.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 3: warning: exported type SystemIntentData should have comment or be unexported (golint)
    • Line 14: warning: exported type ConfirmationData should have comment or be unexported (golint)
    • Line 18: warning: exported type DateTimeData should have comment or be unexported (golint)
    • Line 22: warning: exported type DeliveryAddressData should have comment or be unexported (golint)
    • Line 26: warning: exported type OptionData should have comment or be unexported (golint)
    • Line 32: warning: exported type PermissionData should have comment or be unexported (golint)
    • Line 36: warning: exported type SignInData should have comment or be unexported (golint)
    • Line 40: warning: exported type LinkData should have comment or be unexported (golint)
    • Line 44: warning: exported type ConfirmationDialogSpec should have comment or be unexported (golint)
    • Line 48: warning: exported type DateTimeDialogSpec should have comment or be unexported (golint)
    • Line 54: warning: exported type AddressOptions should have comment or be unexported (golint)
    • Line 58: warning: exported type UpdatePermissionValueSpec should have comment or be unexported (golint)
    • Line 63: warning: exported type PermissionValueSpec should have comment or be unexported (golint)
    • Line 69: warning: exported type SignInValueSpec should have comment or be unexported (golint)
    • Line 73: warning: exported type LinkValueSpec should have comment or be unexported (golint)
    • go-module/websocket/breaker.go
    • Line 11: warning: comment on exported type ErrorHandler should be of the form "ErrorHandler ..." (with optional leading article) (golint)
    • Line 14: warning: exported type Breaker should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function NewBreaker should be of the form "NewBreaker ..." (golint)
    • Line 129: warning: should omit 2nd value from range; this loop is equivalent to `for client := range ...` (golint)
    • go-module/gcp/oauth2/client.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 13: warning: exported var EndpointUserInfo should have comment or be unexported (golint)
    • Line 16: warning: exported type OAuthClient should have comment or be unexported (golint)
    • Line 21: warning: exported method OAuthClient.UserInfo should have comment or be unexported (golint)
    • go-module/util/backoff.go
    • Line 9: warning: exported type Backoff should have comment or be unexported (golint)
    • Line 16: warning: exported function NewBackoff should have comment or be unexported (golint)
    • Line 24: warning: exported method Backoff.Wait should have comment or be unexported (golint)
    • Line 40: warning: exported method Backoff.Success should have comment or be unexported (golint)
    • go-module/feedly/feed.go
    • Line 11: warning: exported type FeedService should have comment or be unexported (golint)
    • Line 16: warning: exported method Feedly.GetFeed should have comment or be unexported (golint)
    • Line 35: warning: exported method Feedly.SearchFeeds should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!