Preparing report...

Report for github.com/volmedo/pAPI

A    Great!    Found 9 issues across 9 files

Tweet

gofmt77%

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!


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!


golint77%

Golint is a linter for Go source code.

    • pAPI/pkg/service/db_repo.go
    • Line 16: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 160: warning: don't use underscores in Go names; var max_retries should be maxRetries (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • pAPI/cmd/server/main.go
    • Line 11: warning: no required module provides package github.com/volmedo/pAPI/pkg/restapi; to add it: (ineffassign)
    • Line 11: warning: could not import github.com/volmedo/pAPI/pkg/restapi (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/volmedo/pAPI/pkg/restapi (invalid package name: "") (ineffassign)
    • pAPI/e2e_test/e2e_test.go
    • Line 22: warning: no required module provides package github.com/volmedo/pAPI/pkg/client; to add it: (ineffassign)
    • Line 23: warning: no required module provides package github.com/volmedo/pAPI/pkg/client/payments; to add it: (ineffassign)
    • Line 24: warning: no required module provides package github.com/volmedo/pAPI/pkg/models; to add it: (ineffassign)
    • Line 22: warning: could not import github.com/volmedo/pAPI/pkg/client (invalid package name: "") (ineffassign)
    • Line 23: warning: could not import github.com/volmedo/pAPI/pkg/client/payments (invalid package name: "") (ineffassign)
    • Line 24: warning: could not import github.com/volmedo/pAPI/pkg/models (invalid package name: "") (ineffassign)
    • Line 139: warning: c.CreatePayment undefined (type *Client has no field or method CreatePayment) (ineffassign)
    • Line 162: warning: c.CreatePayment undefined (type *Client has no field or method CreatePayment) (ineffassign)
    • Line 174: warning: c.DeletePayment undefined (type *Client has no field or method DeletePayment) (ineffassign)
    • Line 185: warning: c.GetPayment undefined (type *Client has no field or method GetPayment) (ineffassign)
    • Line 193: warning: c.ListPayments undefined (type *Client has no field or method ListPayments) (ineffassign)
    • Line 203: warning: c.ListPayments undefined (type *Client has no field or method ListPayments) (ineffassign)
    • Line 220: warning: c.UpdatePayment undefined (type *Client has no field or method UpdatePayment) (ineffassign)
    • pAPI/pkg/service/db_repo.go
    • Line 20: warning: no required module provides package github.com/volmedo/pAPI/pkg/models; to add it: (ineffassign)
    • Line 20: warning: could not import github.com/volmedo/pAPI/pkg/models (invalid package name: "") (ineffassign)
    • Line 20: warning: could not import github.com/volmedo/pAPI/pkg/models (invalid package name: "") (ineffassign)
    • pAPI/pkg/service/payments_service.go
    • Line 13: warning: no required module provides package github.com/volmedo/pAPI/pkg/restapi/operations/payments; to add it: (ineffassign)
    • Line 13: warning: could not import github.com/volmedo/pAPI/pkg/restapi/operations/payments (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/volmedo/pAPI/pkg/restapi/operations/payments (invalid package name: "") (ineffassign)

misspell77%

Misspell Finds commonly misspelled English words