Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
storekit-go/notification.go
- Line 14: warning: comment on exported const NotificationTypeCancel should be of the form "NotificationTypeCancel ..." (golint)
- Line 19: warning: comment on exported const NotificationTypeDidChangeRenewalPref should be of the form "NotificationTypeDidChangeRenewalPref ..." (golint)
- Line 23: warning: comment on exported const NotificationTypeDidChangeRenewalStatus should be of the form "NotificationTypeDidChangeRenewalStatus ..." (golint)
- Line 28: warning: comment on exported const NotificationTypeDidFailToRenew should be of the form "NotificationTypeDidFailToRenew ..." (golint)
- Line 34: warning: comment on exported const NotificationTypeDidRecover should be of the form "NotificationTypeDidRecover ..." (golint)
- Line 39: warning: comment on exported const NotificationTypeDidRenew should be of the form "NotificationTypeDidRenew ..." (golint)
- Line 43: warning: comment on exported const NotificationTypeInitialBuy should be of the form "NotificationTypeInitialBuy ..." (golint)
- Line 48: warning: comment on exported const NotificationTypeInteractiveRenewal should be of the form "NotificationTypeInteractiveRenewal ..." (golint)
- Line 53: warning: comment on exported const NotificationTypePriceIncreaseConsent should be of the form "NotificationTypePriceIncreaseConsent ..." (golint)
- Line 63: warning: comment on exported const NotificationTypeRefund should be of the form "NotificationTypeRefund ..." (golint)
-
storekit-go/pending_renewal_info.go
- Line 18: warning: comment on exported const AutoRenewStatusOff should be of the form "AutoRenewStatusOff ..." (golint)
- Line 21: warning: comment on exported const AutoRenewStatusOn should be of the form "AutoRenewStatusOn ..." (golint)
- Line 52: warning: comment on exported const BillingRetryStatusStoppedAttemptingRenewal should be of the form "BillingRetryStatusStoppedAttemptingRenewal ..." (golint)
- Line 55: warning: comment on exported const BillingRetryStatusAttemptingRenewal should be of the form "BillingRetryStatusAttemptingRenewal ..." (golint)
- Line 63: warning: comment on exported const ExpirationIntentVoluntarilyCancelled should be of the form "ExpirationIntentVoluntarilyCancelled ..." (golint)
- Line 66: warning: comment on exported const ExpirationIntentBillingIssue should be of the form "ExpirationIntentBillingIssue ..." (golint)
- Line 70: warning: comment on exported const ExpirationIntentDidNotAcceptPriceIncrease should be of the form "ExpirationIntentDidNotAcceptPriceIncrease ..." (golint)
- Line 73: warning: comment on exported const ExpirationIntentProductNotAvailable should be of the form "ExpirationIntentProductNotAvailable ..." (golint)
- Line 76: warning: comment on exported const ExpirationIntentUnknown should be of the form "ExpirationIntentUnknown ..." (golint)
- Line 80: warning: exported type PriceConsentStatus should have comment or be unexported (golint)
- Line 83: warning: comment on exported const PriceConsentStatusNotRequested should be of the form "PriceConsentStatusNotRequested ..." (golint)
- Line 86: warning: comment on exported const PriceConsentStatusAwaitingConsent should be of the form "PriceConsentStatusAwaitingConsent ..." (golint)
- Line 89: warning: comment on exported const PriceConsentStatusConsented should be of the form "PriceConsentStatusConsented ..." (golint)
-
storekit-go/receipt_response.go
- Line 13: warning: comment on exported const ReceiptResponseStatusUnknown should be of the form "ReceiptResponseStatusUnknown ..." (golint)
- Line 16: warning: comment on exported const ReceiptResponseStatusOK should be of the form "ReceiptResponseStatusOK ..." (golint)
- Line 19: warning: comment on exported const ReceiptResponseStatusAppStoreCannotRead should be of the form "ReceiptResponseStatusAppStoreCannotRead ..." (golint)
- Line 22: warning: comment on exported const ReceiptResponseStatusNoLongerSent should be of the form "ReceiptResponseStatusNoLongerSent ..." (golint)
- Line 25: warning: comment on exported const ReceiptResponseStatusDataMalformed should be of the form "ReceiptResponseStatusDataMalformed ..." (golint)
- Line 29: warning: comment on exported const ReceiptResponseStatusNotAuthenticated should be of the form "ReceiptResponseStatusNotAuthenticated ..." (golint)
- Line 32: warning: comment on exported const ReceiptResponseStatusSharedSecretDoesNotMatch should be of the form "ReceiptResponseStatusSharedSecretDoesNotMatch ..." (golint)
- Line 36: warning: comment on exported const ReceiptResponseStatusReceiptServerUnavailable should be of the form "ReceiptResponseStatusReceiptServerUnavailable ..." (golint)
- Line 39: warning: comment on exported const ReceiptResponseStatusValidButSubscriptionExpired should be of the form "ReceiptResponseStatusValidButSubscriptionExpired ..." (golint)
- Line 45: warning: comment on exported const ReceiptResponseStatusSandboxReceiptSentToProduction should be of the form "ReceiptResponseStatusSandboxReceiptSentToProduction ..." (golint)
- Line 49: warning: comment on exported const ReceiptResponseStatusProductionReceiptSentToSandbox should be of the form "ReceiptResponseStatusProductionReceiptSentToSandbox ..." (golint)
- Line 53: warning: comment on exported const ReceiptResponseStatusBadAccess should be of the form "ReceiptResponseStatusBadAccess ..." (golint)
- Line 56: warning: comment on exported const ReceiptResponseStatusCouldNotBeAuthorized should be of the form "ReceiptResponseStatusCouldNotBeAuthorized ..." (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!