Preparing report...

Report for github.com/hellofresh/braintree-go

A    Great!    Found 79 issues across 130 files

Tweet

gofmt99%

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!


golint48%

Golint is a linter for Go source code.

    • braintree-go/webhook_notification.go
    • Line 9: warning: exported const CheckWebhook should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type WebhookNotification should have comment or be unexported (golint)
    • Line 40: warning: exported method WebhookNotification.MerchantAccount should have comment or be unexported (golint)
    • Line 49: warning: exported method WebhookNotification.Disbursement should have comment or be unexported (golint)
    • Line 52: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 57: warning: exported method WebhookNotification.Dispute should have comment or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 65: warning: exported method WebhookNotification.AccountUpdaterDailyReport should have comment or be unexported (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • braintree-go/braintree.go
    • Line 159: warning: exported method Braintree.ClientToken should have comment or be unexported (golint)
    • Line 163: warning: exported method Braintree.MerchantAccount should have comment or be unexported (golint)
    • Line 167: warning: exported method Braintree.Transaction should have comment or be unexported (golint)
    • Line 171: warning: exported method Braintree.TransactionLineItem should have comment or be unexported (golint)
    • Line 175: warning: exported method Braintree.Testing should have comment or be unexported (golint)
    • Line 179: warning: exported method Braintree.WebhookTesting should have comment or be unexported (golint)
    • Line 187: warning: exported method Braintree.PaymentMethod should have comment or be unexported (golint)
    • Line 191: warning: exported method Braintree.PaymentMethodNonce should have comment or be unexported (golint)
    • Line 195: warning: exported method Braintree.CreditCard should have comment or be unexported (golint)
    • Line 199: warning: exported method Braintree.PayPalAccount should have comment or be unexported (golint)
    • Line 203: warning: exported method Braintree.Customer should have comment or be unexported (golint)
    • Line 207: warning: exported method Braintree.Subscription should have comment or be unexported (golint)
    • Line 211: warning: exported method Braintree.Plan should have comment or be unexported (golint)
    • Line 215: warning: exported method Braintree.Address should have comment or be unexported (golint)
    • Line 219: warning: exported method Braintree.AddOn should have comment or be unexported (golint)
    • Line 223: warning: exported method Braintree.Discount should have comment or be unexported (golint)
    • Line 227: warning: exported method Braintree.Dispute should have comment or be unexported (golint)
    • Line 231: warning: exported method Braintree.WebhookNotification should have comment or be unexported (golint)
    • Line 239: warning: exported method Braintree.Settlement should have comment or be unexported (golint)
    • braintree-go/customer.go
    • Line 8: warning: exported type Customer should have comment or be unexported (golint)
    • Line 62: warning: exported type CustomerRequest should have comment or be unexported (golint)
    • Line 77: warning: exported type CustomerSearchResult should have comment or be unexported (golint)
    • braintree-go/dispute_gateway.go
    • Line 7: warning: exported type DisputeGateway should have comment or be unexported (golint)
    • Line 11: warning: exported method DisputeGateway.Find should have comment or be unexported (golint)
    • Line 23: warning: exported method DisputeGateway.AddTextEvidence should have comment or be unexported (golint)
    • Line 35: warning: exported method DisputeGateway.RemoveEvidence should have comment or be unexported (golint)
    • Line 47: warning: exported method DisputeGateway.Accept should have comment or be unexported (golint)
    • Line 59: warning: exported method DisputeGateway.Finalize should have comment or be unexported (golint)
    • braintree-go/escrow_status.go
    • Line 3: warning: exported type EscrowStatus should have comment or be unexported (golint)
    • Line 6: warning: exported const EscrowStatusHoldPending should have comment (or a comment on this block) or be unexported (golint)
    • braintree-go/settlement_gateway.go
    • Line 5: warning: exported type SettlementGateway should have comment or be unexported (golint)
    • Line 9: warning: exported method SettlementGateway.Generate should have comment or be unexported (golint)
    • braintree-go/venmo_account.go
    • Line 8: warning: exported type VenmoAccount should have comment or be unexported (golint)
    • Line 22: warning: exported type VenmoAccounts should have comment or be unexported (golint)
    • Line 26: warning: exported method VenmoAccounts.PaymentMethods should have comment or be unexported (golint)
    • Line 37: warning: exported method VenmoAccount.GetCustomerId should have comment or be unexported (golint)
    • Line 41: warning: exported method VenmoAccount.GetToken should have comment or be unexported (golint)
    • Line 45: warning: exported method VenmoAccount.IsDefault should have comment or be unexported (golint)
    • Line 49: warning: exported method VenmoAccount.GetImageURL should have comment or be unexported (golint)
    • braintree-go/modification.go
    • Line 6: warning: exported const ModificationKindDiscount should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported type Modification should have comment or be unexported (golint)
    • braintree-go/modification_request.go
    • Line 7: warning: exported type ModificationRequest should have comment or be unexported (golint)
    • Line 14: warning: exported type AddModificationRequest should have comment or be unexported (golint)
    • Line 19: warning: exported type UpdateModificationRequest should have comment or be unexported (golint)
    • Line 24: warning: exported type ModificationsRequest should have comment or be unexported (golint)
    • Line 30: warning: exported method ModificationsRequest.MarshalXML should have comment or be unexported (golint)
    • braintree-go/avs_response_code.go
    • Line 3: warning: exported type AVSResponseCode should have comment or be unexported (golint)
    • Line 6: warning: comment on exported const AVSResponseCodeMatches should be of the form "AVSResponseCodeMatches ..." (golint)
    • Line 9: warning: comment on exported const AVSResponseCodeDoesNotMatch should be of the form "AVSResponseCodeDoesNotMatch ..." (golint)
    • Line 12: warning: comment on exported const AVSResponseCodeNotVerified should be of the form "AVSResponseCodeNotVerified ..." (golint)
    • Line 16: warning: comment on exported const AVSResponseCodeNotProvided should be of the form "AVSResponseCodeNotProvided ..." (golint)
    • Line 19: warning: comment on exported const AVSResponseCodeNotSupported should be of the form "AVSResponseCodeNotSupported ..." (golint)
    • Line 23: warning: comment on exported const AVSResponseCodeSystemError should be of the form "AVSResponseCodeSystemError ..." (golint)
    • Line 26: warning: comment on exported const AVSResponseCodeNotApplicable should be of the form "AVSResponseCodeNotApplicable ..." (golint)
    • braintree-go/paypal_account_gateway.go
    • Line 5: warning: exported type PayPalAccountGateway should have comment or be unexported (golint)
    • Line 9: warning: exported method PayPalAccountGateway.Update should have comment or be unexported (golint)
    • Line 21: warning: exported method PayPalAccountGateway.Find should have comment or be unexported (golint)
    • Line 33: warning: exported method PayPalAccountGateway.Delete should have comment or be unexported (golint)
    • braintree-go/plan.go
    • Line 7: warning: exported type Plan should have comment or be unexported (golint)
    • Line 27: warning: exported type Plans should have comment or be unexported (golint)
    • braintree-go/subscription_gateway.go
    • Line 9: warning: exported type SubscriptionGateway should have comment or be unexported (golint)
    • Line 13: warning: exported method SubscriptionGateway.Create should have comment or be unexported (golint)
    • Line 25: warning: exported method SubscriptionGateway.Update should have comment or be unexported (golint)
    • Line 37: warning: exported method SubscriptionGateway.Find should have comment or be unexported (golint)
    • Line 49: warning: exported method SubscriptionGateway.Cancel should have comment or be unexported (golint)
    • braintree-go/transaction_line_item.go
    • Line 5: warning: exported type TransactionLineItemKind should have comment or be unexported (golint)
    • Line 8: warning: exported const TransactionLineItemKindDebit should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type TransactionLineItem should have comment or be unexported (golint)
    • Line 28: warning: exported type TransactionLineItemRequest should have comment or be unexported (golint)
    • Line 44: warning: exported type TransactionLineItems should have comment or be unexported (golint)
    • Line 46: warning: exported method TransactionLineItems.UnmarshalXML should have comment or be unexported (golint)
    • Line 61: warning: exported type TransactionLineItemRequests should have comment or be unexported (golint)
    • Line 63: warning: exported method TransactionLineItemRequests.MarshalXML should have comment or be unexported (golint)
    • braintree-go/settlement.go
    • Line 3: warning: exported type Record should have comment or be unexported (golint)
    • Line 12: warning: exported type XMLRecords should have comment or be unexported (golint)
    • Line 16: warning: exported type SettlementBatchSummary should have comment or be unexported (golint)
    • Line 21: warning: exported type Settlement should have comment or be unexported (golint)
    • braintree-go/gateway_rejection_reason.go
    • Line 3: warning: exported type GatewayRejectionReason should have comment or be unexported (golint)
    • Line 6: warning: exported const GatewayRejectionReasonApplicationIncomplete should have comment (or a comment on this block) or be unexported (golint)
    • braintree-go/response.go
    • Line 14: warning: exported type Response should have comment or be unexported (golint)
    • Line 231: warning: exported type APIError should have comment or be unexported (golint)
    • Line 250: warning: exported type InvalidResponseError should have comment or be unexported (golint)
    • braintree-go/discount.go
    • Line 3: warning: exported type DiscountList should have comment or be unexported (golint)
    • Line 8: warning: exported type Discount should have comment or be unexported (golint)
    • braintree-go/subscription.go
    • Line 8: warning: exported type SubscriptionStatus should have comment or be unexported (golint)
    • Line 11: warning: exported const SubscriptionStatusActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported const SubscriptionTrialDurationUnitDay should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 59: warning: exported type SubscriptionRequest should have comment or be unexported (golint)
    • Line 81: warning: exported type Subscriptions should have comment or be unexported (golint)
    • Line 85: warning: exported type SubscriptionOptions should have comment or be unexported (golint)
    • Line 93: warning: exported type SubscriptionTransactionRequest should have comment or be unexported (golint)
    • Line 99: warning: exported method SubscriptionTransactionRequest.MarshalXML should have comment or be unexported (golint)
    • Line 116: warning: exported type SubscriptionTransactionOptionsRequest should have comment or be unexported (golint)
    • Line 120: warning: exported type SubscriptionSearchResult should have comment or be unexported (golint)
    • braintree-go/transaction_gateway.go
    • Line 9: warning: exported type TransactionGateway should have comment or be unexported (golint)
    • Line 120: warning: comment on exported method TransactionGateway.Refund should be of the form "Refund ..." (golint)
    • braintree-go/apple_pay_card.go
    • Line 8: warning: exported type ApplePayCard should have comment or be unexported (golint)
    • Line 27: warning: exported type ApplePayCards should have comment or be unexported (golint)
    • Line 31: warning: exported method ApplePayCards.PaymentMethods should have comment or be unexported (golint)
    • Line 42: warning: exported method ApplePayCard.GetCustomerId should have comment or be unexported (golint)
    • Line 46: warning: exported method ApplePayCard.GetToken should have comment or be unexported (golint)
    • Line 50: warning: exported method ApplePayCard.IsDefault should have comment or be unexported (golint)
    • Line 54: warning: exported method ApplePayCard.GetImageURL should have comment or be unexported (golint)
    • braintree-go/add_on.go
    • Line 3: warning: exported type AddOnList should have comment or be unexported (golint)
    • Line 8: warning: exported type AddOn should have comment or be unexported (golint)
    • braintree-go/android_pay_details.go
    • Line 5: warning: exported type AndroidPayDetails should have comment or be unexported (golint)
    • Line 21: warning: exported method AndroidPayDetails.UnmarshalXML should have comment or be unexported (golint)
    • braintree-go/dispute.go
    • Line 5: warning: exported type DisputeKind should have comment or be unexported (golint)
    • Line 8: warning: exported const DisputeKindChargeback should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type DisputeReason should have comment or be unexported (golint)
    • Line 16: warning: exported const DisputeReasonCancelledRecurringTransaction should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type DisputeStatus should have comment or be unexported (golint)
    • Line 31: warning: exported const DisputeStatusAccepted should have comment (or a comment on this block) or be unexported (golint)
    • Line 39: warning: exported type Dispute should have comment or be unexported (golint)
    • Line 63: warning: exported type DisputeStatusHistoryEvent should have comment or be unexported (golint)
    • Line 71: warning: exported type DisputeTransaction should have comment or be unexported (golint)
    • braintree-go/payment_method_gateway.go
    • Line 8: warning: exported type PaymentMethodGateway should have comment or be unexported (golint)
    • Line 12: warning: exported type PaymentMethodRequest should have comment or be unexported (golint)
    • Line 21: warning: exported type PaymentMethodRequestOptions should have comment or be unexported (golint)
    • Line 28: warning: exported method PaymentMethodGateway.Create should have comment or be unexported (golint)
    • Line 40: warning: exported method PaymentMethodGateway.Update should have comment or be unexported (golint)
    • Line 52: warning: exported method PaymentMethodGateway.Find should have comment or be unexported (golint)
    • Line 64: warning: exported method PaymentMethodGateway.Delete should have comment or be unexported (golint)
    • braintree-go/processor_response_type.go
    • Line 3: warning: exported type ProcessorResponseType should have comment or be unexported (golint)
    • Line 6: warning: exported const ProcessorResponseTypeApproved should have comment (or a comment on this block) or be unexported (golint)
    • braintree-go/three_d_secure.go
    • Line 3: warning: exported type ThreeDSecureInfo should have comment or be unexported (golint)
    • Line 10: warning: exported type ThreeDSecureStatus should have comment or be unexported (golint)
    • Line 13: warning: exported const ThreeDSecureStatusUnsupportedCard should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type ThreeDSecureEnrolled should have comment or be unexported (golint)
    • Line 30: warning: exported const ThreeDSecureEnrolledYes should have comment (or a comment on this block) or be unexported (golint)
    • braintree-go/webhook_notification_gateway.go
    • Line 10: warning: exported type WebhookNotificationGateway should have comment or be unexported (golint)
    • Line 15: warning: exported method WebhookNotificationGateway.ParseRequest should have comment or be unexported (golint)
    • Line 21: warning: exported method WebhookNotificationGateway.Parse should have comment or be unexported (golint)
    • Line 47: warning: exported method WebhookNotificationGateway.Verify should have comment or be unexported (golint)
    • braintree-go/disbursement.go
    • Line 10: warning: exported type Disbursement should have comment or be unexported (golint)
    • Line 27: warning: comment on exported const BankRejected should be of the form "BankRejected ..." (golint)
    • Line 29: warning: exported const InsufficientFunds should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: comment on exported const ContactUs should be of the form "ContactUs ..." (golint)
    • Line 38: warning: exported method Disbursement.Transactions should have comment or be unexported (golint)
    • braintree-go/android_pay_card.go
    • Line 8: warning: exported type AndroidPayCard should have comment or be unexported (golint)
    • Line 30: warning: exported type AndroidPayCards should have comment or be unexported (golint)
    • Line 34: warning: exported method AndroidPayCards.PaymentMethods should have comment or be unexported (golint)
    • Line 45: warning: exported method AndroidPayCard.GetCustomerId should have comment or be unexported (golint)
    • Line 49: warning: exported method AndroidPayCard.GetToken should have comment or be unexported (golint)
    • Line 53: warning: exported method AndroidPayCard.IsDefault should have comment or be unexported (golint)
    • Line 57: warning: exported method AndroidPayCard.GetImageURL should have comment or be unexported (golint)
    • Line 76: warning: exported method AndroidPayCard.UnmarshalXML should have comment or be unexported (golint)
    • braintree-go/environment.go
    • Line 5: warning: exported type Environment should have comment or be unexported (golint)
    • Line 9: warning: exported function NewEnvironment should have comment or be unexported (golint)
    • Line 13: warning: exported method Environment.BaseURL should have comment or be unexported (golint)
    • Line 18: warning: exported var Development should have comment or be unexported (golint)
    • Line 23: warning: exported function EnvironmentFromName should have comment or be unexported (golint)
    • braintree-go/merchant_account.go
    • Line 3: warning: exported type MerchantAccount should have comment or be unexported (golint)
    • Line 14: warning: exported type MerchantAccountPerson should have comment or be unexported (golint)
    • Line 24: warning: exported type MerchantAccountBusiness should have comment or be unexported (golint)
    • Line 31: warning: exported type MerchantAccountFundingOptions should have comment or be unexported (golint)
    • Line 40: warning: exported const FUNDING_DEST_BANK should have comment (or a comment on this block) or be unexported (golint)
    • braintree-go/transaction_clone.go
    • Line 3: warning: exported type TransactionCloneRequest should have comment or be unexported (golint)
    • Line 10: warning: exported type TransactionCloneOptions should have comment or be unexported (golint)
    • braintree-go/search.go
    • Line 8: warning: exported type SearchQuery should have comment or be unexported (golint)
    • Line 13: warning: exported method SearchQuery.MarshalXML should have comment or be unexported (golint)
    • Line 23: warning: exported type SearchResult should have comment or be unexported (golint)
    • Line 29: warning: exported type TextField should have comment or be unexported (golint)
    • Line 38: warning: exported type RangeField should have comment or be unexported (golint)
    • Line 45: warning: exported type TimeField should have comment or be unexported (golint)
    • Line 52: warning: exported method TimeField.MarshalXML should have comment or be unexported (golint)
    • Line 91: warning: exported type MultiField should have comment or be unexported (golint)
    • Line 109: warning: exported method SearchQuery.AddTextField should have comment or be unexported (golint)
    • Line 115: warning: exported method SearchQuery.AddRangeField should have comment or be unexported (golint)
    • Line 121: warning: exported method SearchQuery.AddTimeField should have comment or be unexported (golint)
    • Line 127: warning: exported method SearchQuery.AddMultiField should have comment or be unexported (golint)
    • braintree-go/transaction.go
    • Line 10: warning: exported type TransactionStatus should have comment or be unexported (golint)
    • Line 13: warning: exported const TransactionStatusAuthorizationExpired should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type TransactionSource should have comment or be unexported (golint)
    • Line 32: warning: exported const TransactionSourceRecurringFirst should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type PaymentInstrumentType should have comment or be unexported (golint)
    • Line 41: warning: exported const PaymentInstrumentTypeAndroidPayCard should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported type Transaction should have comment or be unexported (golint)
    • Line 105: warning: exported type TransactionRequest should have comment or be unexported (golint)
    • Line 133: warning: exported type TransactionRefundRequest should have comment or be unexported (golint)
    • Line 139: warning: exported method Transaction.UnmarshalXML should have comment or be unexported (golint)
    • Line 194: warning: exported type Transactions should have comment or be unexported (golint)
    • Line 198: warning: exported type TransactionOptions should have comment or be unexported (golint)
    • Line 210: warning: exported type TransactionOptionsPaypalRequest should have comment or be unexported (golint)
    • Line 217: warning: exported method TransactionOptionsPaypalRequest.MarshalXML should have comment or be unexported (golint)
    • Line 265: warning: exported type TransactionOptionsThreeDSecureRequest should have comment or be unexported (golint)
    • Line 269: warning: exported type TransactionSearchResult should have comment or be unexported (golint)
    • Line 278: warning: exported type RiskData should have comment or be unexported (golint)
    • Line 283: warning: exported type RiskDataRequest should have comment or be unexported (golint)
    • Line 288: warning: exported type SubscriptionDetails should have comment or be unexported (golint)
    • braintree-go/discount_gateway.go
    • Line 5: warning: exported type DiscountGateway should have comment or be unexported (golint)
    • Line 9: warning: exported method DiscountGateway.All should have comment or be unexported (golint)
    • braintree-go/testhelpers/card.go
    • Line 5: warning: exported var ValidBIN should have comment or be unexported (golint)
    • Line 6: warning: exported var ValidLast4 should have comment or be unexported (golint)
    • Line 7: warning: exported var ValidExpiryMonth should have comment or be unexported (golint)
    • Line 8: warning: exported var ValidExpiryYear should have comment or be unexported (golint)
    • braintree-go/errors.go
    • Line 11: warning: exported type BraintreeError should have comment or be unexported (golint)
    • Line 20: warning: exported method BraintreeError.UnmarshalXML should have comment or be unexported (golint)
    • Line 42: warning: exported method BraintreeError.StatusCode should have comment or be unexported (golint)
    • Line 46: warning: exported method BraintreeError.All should have comment or be unexported (golint)
    • Line 50: warning: exported method BraintreeError.For should have comment or be unexported (golint)
    • Line 54: warning: exported type ValidationErrors should have comment or be unexported (golint)
    • Line 60: warning: exported method ValidationErrors.UnmarshalXML should have comment or be unexported (golint)
    • Line 99: warning: exported method ValidationErrors.All should have comment or be unexported (golint)
    • Line 106: warning: exported method ValidationErrors.AllDeep should have comment or be unexported (golint)
    • Line 117: warning: exported method ValidationErrors.For should have comment or be unexported (golint)
    • Line 124: warning: exported method ValidationErrors.ForIndex should have comment or be unexported (golint)
    • Line 131: warning: exported method ValidationErrors.On should have comment or be unexported (golint)
    • Line 144: warning: exported type ValidationError should have comment or be unexported (golint)
    • Line 150: warning: exported method ValidationError.UnmarshalXML should have comment or be unexported (golint)
    • braintree-go/payment_method_nonce_gateway.go
    • Line 7: warning: exported type PaymentMethodNonceGateway should have comment or be unexported (golint)
    • Line 11: warning: exported method PaymentMethodNonceGateway.Find should have comment or be unexported (golint)
    • Line 23: warning: exported method PaymentMethodNonceGateway.Create should have comment or be unexported (golint)
    • braintree-go/paypal_account.go
    • Line 8: warning: exported type PayPalAccount should have comment or be unexported (golint)
    • Line 21: warning: exported type PayPalAccounts should have comment or be unexported (golint)
    • Line 25: warning: exported method PayPalAccounts.PaymentMethods should have comment or be unexported (golint)
    • Line 36: warning: exported type PayPalAccountOptions should have comment or be unexported (golint)
    • Line 40: warning: exported method PayPalAccount.GetCustomerId should have comment or be unexported (golint)
    • Line 44: warning: exported method PayPalAccount.GetToken should have comment or be unexported (golint)
    • Line 48: warning: exported method PayPalAccount.IsDefault should have comment or be unexported (golint)
    • Line 52: warning: exported method PayPalAccount.GetImageURL should have comment or be unexported (golint)
    • braintree-go/credit_card.go
    • Line 8: warning: exported type CreditCard should have comment or be unexported (golint)
    • Line 45: warning: exported type CreditCards should have comment or be unexported (golint)
    • Line 49: warning: exported method CreditCards.PaymentMethods should have comment or be unexported (golint)
    • Line 60: warning: exported type CreditCardOptions should have comment or be unexported (golint)
    • Line 105: warning: exported type CreditCardSearchResult should have comment or be unexported (golint)
    • braintree-go/dispute_evidence.go
    • Line 8: warning: exported type DisputeEvidenceCategory should have comment or be unexported (golint)
    • Line 11: warning: exported const DisputeEvidenceCategoryDeviceId should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type DisputeEvidence should have comment or be unexported (golint)
    • Line 51: warning: exported type DisputeTextEvidenceRequest should have comment or be unexported (golint)

gocyclo92%

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.

    • braintree-go/subscription_integration_test.go
    • Line 130: warning: cyclomatic complexity 27 of function TestSubscriptionAllFieldsWithBillingDayOfMonth() is high (> 15) (gocyclo)
    • Line 601: warning: cyclomatic complexity 26 of function TestSubscriptionAllFieldsWithTrialPeriod() is high (> 15) (gocyclo)
    • Line 724: warning: cyclomatic complexity 25 of function TestSubscriptionAllFieldsWithTrialPeriodNeverExpires() is high (> 15) (gocyclo)
    • Line 363: warning: cyclomatic complexity 25 of function TestSubscriptionAllFieldsWithFirstBillingDate() is high (> 15) (gocyclo)
    • Line 483: warning: cyclomatic complexity 24 of function TestSubscriptionAllFieldsWithFirstBillingDateNeverExpires() is high (> 15) (gocyclo)
    • Line 249: warning: cyclomatic complexity 24 of function TestSubscriptionAllFieldsWithBillingDayOfMonthNeverExpires() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 22 of function TestSubscriptionSimple() is high (> 15) (gocyclo)
    • Line 847: warning: cyclomatic complexity 21 of function TestSubscriptionModifications() is high (> 15) (gocyclo)
    • Line 1200: warning: cyclomatic complexity 16 of function TestSubscriptionSearchPage() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license0%

Checks whether your project has a LICENSE file.


misspell98%

Misspell Finds commonly misspelled English words

    • braintree-go/payment_method_integration_test.go
    • Line 62: warning: "adress" is a misspelling of "address" (misspell)
    • Line 65: warning: "adress" is a misspelling of "address" (misspell)
    • Line 68: warning: "adress" is a misspelling of "address" (misspell)
    • Line 71: warning: "adress" is a misspelling of "address" (misspell)
    • Line 74: warning: "adress" is a misspelling of "address" (misspell)
    • Line 77: warning: "adress" is a misspelling of "address" (misspell)
    • Line 80: warning: "adress" is a misspelling of "address" (misspell)
    • Line 83: warning: "adress" is a misspelling of "address" (misspell)
    • Line 86: warning: "adress" is a misspelling of "address" (misspell)
    • Line 89: warning: "adress" is a misspelling of "address" (misspell)
    • Line 92: warning: "adress" is a misspelling of "address" (misspell)
    • Line 95: warning: "adress" is a misspelling of "address" (misspell)