Preparing report...

Report for github.com/logpacker/PayPal-Go-SDK

A+    Excellent!    Found 13 issues across 24 files

Tweet

gofmt87%

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!


golint54%

Golint is a linter for Go source code.

    • PayPal-Go-SDK/products.go
    • Line 21: warning: exported type CreateProductResponse should have comment or be unexported (golint)
    • Line 26: warning: exported type ListProductsResponse should have comment or be unexported (golint)
    • Line 31: warning: exported type ProductListParameters should have comment or be unexported (golint)
    • Line 36: warning: exported method Product.GetUpdatePatch should have comment or be unexported (golint)
    • Line 36: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 74: warning: comment on exported method Client.UpdateProduct should be of the form "UpdateProduct ..." (golint)
    • Line 86: warning: comment on exported method Client.GetProduct should be of the form "GetProduct ..." (golint)
    • Line 99: warning: comment on exported method Client.ListProducts should be of the form "ListProducts ..." (golint)
    • PayPal-Go-SDK/const.go
    • Line 3: warning: exported type SubscriptionPlanStatus should have comment or be unexported (golint)
    • Line 6: warning: exported const SubscriptionPlanStatusCreated should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type BillingPlanStatus should have comment or be unexported (golint)
    • Line 14: warning: exported const BillingPlanStatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type IntervalUnit should have comment or be unexported (golint)
    • Line 20: warning: exported const IntervalUnitDay should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type TenureType should have comment or be unexported (golint)
    • Line 29: warning: exported const TenureTypeRegular should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type SetupFeeFailureAction should have comment or be unexported (golint)
    • Line 36: warning: exported const SetupFeeFailureActionContinue should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type ShippingPreference should have comment or be unexported (golint)
    • Line 43: warning: exported const ShippingPreferenceGetFromFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported type UserAction should have comment or be unexported (golint)
    • Line 51: warning: exported const UserActionContinue should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: exported type SubscriptionStatus should have comment or be unexported (golint)
    • Line 58: warning: exported const SubscriptionStatusApprovalPending should have comment (or a comment on this block) or be unexported (golint)
    • Line 66: warning: comment on exported type SubscriptionTransactionStatus should be of the form "SubscriptionTransactionStatus ..." (with optional leading article) (golint)
    • Line 70: warning: exported const SubscriptionCaptureStatusCompleted should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: exported type CaptureType should have comment or be unexported (golint)
    • Line 80: warning: exported const CaptureTypeOutstandingBalance should have comment (or a comment on this block) or be unexported (golint)
    • Line 83: warning: exported type ProductType should have comment or be unexported (golint)
    • Line 84: warning: exported type ProductCategory should have comment or be unexported (golint)
    • Line 86: warning: exported const ProductTypePhysical should have comment (or a comment on this block) or be unexported (golint)
    • PayPal-Go-SDK/order.go
    • Line 105: warning: comment on exported method Client.CaptureOrderWithPaypalRequestId should be of the form "CaptureOrderWithPaypalRequestId ..." (golint)
    • Line 138: warning: comment on exported method Client.RefundCaptureWithPaypalRequestId should be of the form "RefundCaptureWithPaypalRequestId ..." (golint)
    • PayPal-Go-SDK/subscription.go
    • Line 11: warning: exported type SubscriptionBase should have comment or be unexported (golint)
    • Line 23: warning: exported type SubscriptionDetails should have comment or be unexported (golint)
    • Line 30: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 42: warning: exported type SubscriptionCaptureResponse should have comment or be unexported (golint)
    • Line 51: warning: comment on exported type AmountWithBreakdown should be of the form "AmountWithBreakdown ..." (with optional leading article) (golint)
    • Line 60: warning: exported type SubscriptionTransactionsParams should have comment or be unexported (golint)
    • Line 66: warning: exported type SubscriptionTransactionsResponse should have comment or be unexported (golint)
    • Line 71: warning: exported type CaptureReqeust should have comment or be unexported (golint)
    • Line 78: warning: exported method Subscription.GetUpdatePatch should have comment or be unexported (golint)
    • Line 78: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 89: warning: comment on exported method Client.CreateSubscription should be of the form "CreateSubscription ..." (golint)
    • Line 103: warning: comment on exported method Client.UpdateSubscription should be of the form "UpdateSubscription ..." (golint)
    • Line 127: warning: comment on exported method Client.ActivateSubscription should be of the form "ActivateSubscription ..." (golint)
    • Line 139: warning: comment on exported method Client.CancelSubscription should be of the form "CancelSubscription ..." (golint)
    • Line 151: warning: comment on exported method Client.CaptureSubscription should be of the form "CaptureSubscription ..." (golint)
    • Line 164: warning: comment on exported method Client.SuspendSubscription should be of the form "SuspendSubscription ..." (golint)
    • Line 176: warning: comment on exported method Client.GetSubscriptionTransactions should be of the form "GetSubscriptionTransactions ..." (golint)
    • Line 192: warning: comment on exported method Client.ReviseSubscription should be of the form "ReviseSubscription ..." (golint)
    • PayPal-Go-SDK/subscription_plan.go
    • Line 11: warning: comment on exported type SubscriptionPlan should be of the form "SubscriptionPlan ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported type BillingCycle should be of the form "BillingCycle ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported type PaymentPreferences should be of the form "PaymentPreferences ..." (with optional leading article) (golint)
    • Line 41: warning: exported type PricingScheme should have comment or be unexported (golint)
    • Line 48: warning: exported type PricingSchemeUpdateRequest should have comment or be unexported (golint)
    • Line 52: warning: exported type PricingSchemeUpdate should have comment or be unexported (golint)
    • Line 57: warning: comment on exported type Frequency should be of the form "Frequency ..." (with optional leading article) (golint)
    • Line 63: warning: exported type Taxes should have comment or be unexported (golint)
    • Line 68: warning: exported type CreateSubscriptionPlanResponse should have comment or be unexported (golint)
    • Line 73: warning: exported type SubscriptionPlanListParameters should have comment or be unexported (golint)
    • Line 79: warning: exported type ListSubscriptionPlansResponse should have comment or be unexported (golint)
    • Line 85: warning: exported method SubscriptionPlan.GetUpdatePatch should have comment or be unexported (golint)
    • Line 85: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 145: warning: comment on exported method Client.UpdateSubscriptionPlan should be of the form "UpdateSubscriptionPlan ..." (golint)
    • Line 157: warning: comment on exported method Client.GetSubscriptionPlan should be of the form "GetSubscriptionPlan ..." (golint)
    • Line 170: warning: comment on exported method Client.ListSubscriptionPlans should be of the form "ListSubscriptionPlans ..." (golint)
    • Line 194: warning: comment on exported method Client.ActivateSubscriptionPlan should be of the form "ActivateSubscriptionPlan ..." (golint)
    • Line 207: warning: comment on exported method Client.DeactivateSubscriptionPlans should be of the form "DeactivateSubscriptionPlans ..." (golint)
    • Line 220: warning: comment on exported method Client.UpdateSubscriptionPlanPricing should be of the form "UpdateSubscriptionPlanPricing ..." (golint)
    • PayPal-Go-SDK/types.go
    • Line 90: warning: exported const EventCheckoutOrderApproved should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: exported const OperationAPIIntegration should have comment (or a comment on this block) or be unexported (golint)
    • Line 107: warning: exported const FeaturePayment should have comment (or a comment on this block) or be unexported (golint)
    • Line 145: warning: exported const LinkRelSelf should have comment (or a comment on this block) or be unexported (golint)
    • Line 150: warning: exported const AncorTypeApplication should have comment (or a comment on this block) or be unexported (golint)
    • Line 238: warning: comment on exported type PlatformFee should be of the form "PlatformFee ..." (with optional leading article) (golint)
    • Line 244: warning: comment on exported type PaymentInstruction should be of the form "PaymentInstruction ..." (with optional leading article) (golint)
    • Line 250: warning: comment on exported type PaymentCaptureRequest should be of the form "PaymentCaptureRequest ..." (with optional leading article) (golint)
    • Line 259: warning: exported type SellerProtection should have comment or be unexported (golint)
    • Line 264: warning: comment on exported type CaptureStatusDetails should be of the form "CaptureStatusDetails ..." (with optional leading article) (golint)
    • Line 269: warning: exported type PaymentCaptureResponse should have comment or be unexported (golint)
    • Line 280: warning: comment on exported type CaptureDetailsResponse should be of the form "CaptureDetailsResponse ..." (with optional leading article) (golint)
    • Line 302: warning: comment on exported type RefundCaptureRequest should be of the form "RefundCaptureRequest ..." (with optional leading article) (golint)
    • Line 684: warning: exported type CapturedPurchaseUnitShipping should have comment or be unexported (golint)
    • Line 1050: warning: exported type WebhookEventTypesResponse should have comment or be unexported (golint)
    • Line 1077: warning: exported type AnyEvent should have comment or be unexported (golint)
    • Line 1095: warning: exported type ListWebhookResponse should have comment or be unexported (golint)
    • Line 1099: warning: exported type WebhookField should have comment or be unexported (golint)
    • Line 1105: warning: exported type Resource should have comment or be unexported (golint)
    • Line 1128: warning: exported type CaptureSellerBreakdown should have comment or be unexported (golint)
    • Line 1135: warning: exported type ReferralRequest should have comment or be unexported (golint)
    • Line 1143: warning: exported type PartnerConfigOverride should have comment or be unexported (golint)
    • Line 1151: warning: exported type Operation should have comment or be unexported (golint)
    • Line 1156: warning: exported type IntegrationDetails should have comment or be unexported (golint)
    • Line 1160: warning: exported type RestAPIIntegration should have comment or be unexported (golint)
    • Line 1166: warning: exported type ThirdPartyDetails should have comment or be unexported (golint)
    • Line 1170: warning: exported type Consent should have comment or be unexported (golint)
    • Line 1175: warning: exported type SearchItemDetails should have comment or be unexported (golint)
    • Line 1197: warning: exported type SearchCheckoutOption should have comment or be unexported (golint)
    • Line 1202: warning: exported type SearchCartInfo should have comment or be unexported (golint)
    • Line 1208: warning: exported type SearchShippingInfo should have comment or be unexported (golint)
    • Line 1215: warning: exported type SearchPayerName should have comment or be unexported (golint)
    • Line 1220: warning: exported type SearchPayerInfo should have comment or be unexported (golint)
    • Line 1231: warning: exported type SearchTaxAmount should have comment or be unexported (golint)
    • Line 1235: warning: exported type SearchTransactionInfo should have comment or be unexported (golint)
    • Line 1268: warning: exported type SearchTransactionDetails should have comment or be unexported (golint)
    • Line 1275: warning: exported type SharedResponse should have comment or be unexported (golint)
    • Line 1281: warning: exported type ListParams should have comment or be unexported (golint)
    • Line 1287: warning: exported type SharedListResponse should have comment or be unexported (golint)
    • PayPal-Go-SDK/authorization.go
    • Line 32: warning: comment on exported method Client.CaptureAuthorizationWithPaypalRequestId should be of the form "CaptureAuthorizationWithPaypalRequestId ..." (golint)
    • PayPal-Go-SDK/capture.go
    • Line 8: warning: comment on exported method Client.GetCapturedPaymentDetails should be of the form "GetCapturedPaymentDetails ..." (golint)

gocyclo100%

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!


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!


misspell95%

Misspell Finds commonly misspelled English words