Preparing report...

Report for github.com/paysuper/paysuper-billing-server

(v1.10.11)

A+    Excellent!    Found 52 issues across 291 files

Tweet

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!


gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo88%

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.

    • internal/service/onboarding.go
    • Line 280: warning: cyclomatic complexity 39 of function (*Service).ChangeMerchant() is high (> 15) (gocyclo)
    • Line 171: warning: cyclomatic complexity 25 of function (*Service).ListMerchantsForAgreement() is high (> 15) (gocyclo)
    • Line 551: warning: cyclomatic complexity 16 of function (*Service).ChangeMerchantData() is high (> 15) (gocyclo)
    • internal/service/payouts.go
    • Line 486: warning: cyclomatic complexity 30 of function (*Service).UpdatePayoutDocument() is high (> 15) (gocyclo)
    • Line 94: warning: cyclomatic complexity 25 of function (*Service).createPayoutDocument() is high (> 15) (gocyclo)
    • internal/service/accounting_entry.go
    • Line 612: warning: cyclomatic complexity 37 of function (*accountingEntry).processRefundEvent() is high (> 15) (gocyclo)
    • Line 387: warning: cyclomatic complexity 31 of function (*accountingEntry).processPaymentEvent() is high (> 15) (gocyclo)
    • Line 992: warning: cyclomatic complexity 19 of function (*accountingEntry).addEntry() is high (> 15) (gocyclo)
    • Line 144: warning: cyclomatic complexity 17 of function (*Service).CreateAccountingEntry() is high (> 15) (gocyclo)
    • Line 1100: warning: cyclomatic complexity 16 of function (*accountingEntry).saveAccountingEntries() is high (> 15) (gocyclo)
    • internal/app.go
    • Line 65: warning: cyclomatic complexity 18 of function (*Application).Init() is high (> 15) (gocyclo)
    • internal/service/order.go
    • Line 3226: warning: cyclomatic complexity 66 of function (*PaymentCreateProcessor).processPaymentFormData() is high (> 15) (gocyclo)
    • Line 258: warning: cyclomatic complexity 63 of function (*Service).OrderCreateProcess() is high (> 15) (gocyclo)
    • Line 552: warning: cyclomatic complexity 59 of function (*Service).PaymentFormJsonDataProcess() is high (> 15) (gocyclo)
    • Line 923: warning: cyclomatic complexity 46 of function (*Service).PaymentCreateProcess() is high (> 15) (gocyclo)
    • Line 1233: warning: cyclomatic complexity 43 of function (*Service).PaymentCallbackProcess() is high (> 15) (gocyclo)
    • Line 1716: warning: cyclomatic complexity 30 of function (*Service).ProcessBillingAddress() is high (> 15) (gocyclo)
    • Line 1554: warning: cyclomatic complexity 25 of function (*Service).PaymentFormPaymentAccountChanged() is high (> 15) (gocyclo)
    • Line 2334: warning: cyclomatic complexity 22 of function (*OrderCreateRequestProcessor).prepareOrder() is high (> 15) (gocyclo)
    • Line 2784: warning: cyclomatic complexity 22 of function (*OrderCreateRequestProcessor).processRecurringSettings() is high (> 15) (gocyclo)
    • Line 4498: warning: cyclomatic complexity 21 of function (*Service).getOrderReceiptObject() is high (> 15) (gocyclo)
    • internal/service/key_product.go
    • Line 113: warning: cyclomatic complexity 30 of function (*Service).CreateOrUpdateKeyProduct() is high (> 15) (gocyclo)
    • Line 807: warning: cyclomatic complexity 26 of function getImageByLanguage() is high (> 15) (gocyclo)
    • Line 403: warning: cyclomatic complexity 17 of function (*Service).GetKeyProductInfo() is high (> 15) (gocyclo)
    • main.go
    • Line 10: warning: cyclomatic complexity 16 of function main() is high (> 15) (gocyclo)
    • internal/repository/dashboard.go
    • Line 824: warning: cyclomatic complexity 19 of function (*dashboardRepository).newDashboardReportProcessor() is high (> 15) (gocyclo)
    • Line 750: warning: cyclomatic complexity 16 of function (*dashboardRepository).getStartAndEndOfPeriod() is high (> 15) (gocyclo)
    • internal/service/customer.go
    • Line 274: warning: cyclomatic complexity 30 of function (*Service).GetCustomerList() is high (> 15) (gocyclo)
    • Line 89: warning: cyclomatic complexity 17 of function (*Service).MigrateCustomers() is high (> 15) (gocyclo)
    • internal/service/vat_reports.go
    • Line 441: warning: cyclomatic complexity 22 of function (*vatReportProcessor).ProcessVatReportsStatus() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 20 of function (*vatReportProcessor).processVatReportForPeriod() is high (> 15) (gocyclo)
    • Line 699: warning: cyclomatic complexity 18 of function (*vatReportProcessor).processAccountingEntriesForPeriod() is high (> 15) (gocyclo)
    • internal/repository/models/order.go
    • Line 105: warning: cyclomatic complexity 44 of function (*orderMapper).MapObjectToMgo() is high (> 15) (gocyclo)
    • Line 420: warning: cyclomatic complexity 18 of function (*orderMapper).MapMgoToObject() is high (> 15) (gocyclo)
    • internal/service/token.go
    • Line 72: warning: cyclomatic complexity 43 of function (*Service).CreateToken() is high (> 15) (gocyclo)
    • Line 399: warning: cyclomatic complexity 35 of function (*Service).processCustomer() is high (> 15) (gocyclo)
    • internal/repository/models/merchant.go
    • Line 117: warning: cyclomatic complexity 26 of function (*merchantMapper).MapObjectToMgo() is high (> 15) (gocyclo)
    • Line 317: warning: cyclomatic complexity 21 of function (*merchantMapper).MapMgoToObject() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!