Preparing report...

Report for github.com/davideberdin/go-mollie

A+    Excellent!    Found 6 issues across 10 files

Tweet

gofmt90%

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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign40%

IneffAssign detects ineffectual assignments in Go code.

    • go-mollie/mollie/auth.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/dghubble/sling (invalid package name: "") (ineffassign)
    • Line 4: warning: could not import github.com/dghubble/sling (invalid package name: "") (ineffassign)
    • go-mollie/mollie/mollie.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import gopkg.in/go-playground/validator.v9 (invalid package name: "") (ineffassign)
    • Line 11: warning: undeclared name: validator (ineffassign)
    • Line 6: warning: "gopkg.in/go-playground/validator.v9" imported but not used (ineffassign)
    • Line 6: warning: could not import gopkg.in/go-playground/validator.v9 (invalid package name: "") (ineffassign)
    • Line 11: warning: undeclared name: validator (ineffassign)
    • Line 6: warning: "gopkg.in/go-playground/validator.v9" imported but not used (ineffassign)
    • go-mollie/mollie/chargeback_test.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import gopkg.in/h2non/gock.v1 (invalid package name: "") (ineffassign)
    • Line 28: warning: undeclared name: gock (ineffassign)
    • Line 29: warning: undeclared name: gock (ineffassign)
    • Line 70: warning: undeclared name: gock (ineffassign)
    • Line 71: warning: undeclared name: gock (ineffassign)
    • Line 109: warning: undeclared name: gock (ineffassign)
    • Line 110: warning: undeclared name: gock (ineffassign)
    • Line 5: warning: "gopkg.in/h2non/gock.v1" imported but not used (ineffassign)
    • go-mollie/mollie/payment_test.go
    • Line 42: warning: undeclared name: gock (ineffassign)
    • Line 43: warning: undeclared name: gock (ineffassign)
    • Line 79: warning: undeclared name: gock (ineffassign)
    • Line 80: warning: undeclared name: gock (ineffassign)
    • Line 111: warning: undeclared name: gock (ineffassign)
    • Line 112: warning: undeclared name: gock (ineffassign)
    • Line 155: warning: undeclared name: gock (ineffassign)
    • Line 156: warning: undeclared name: gock (ineffassign)
    • Line 5: warning: "gopkg.in/h2non/gock.v1" imported but not used (ineffassign)
    • go-mollie/mollie/refund_test.go
    • Line 35: warning: undeclared name: gock (ineffassign)
    • Line 36: warning: undeclared name: gock (ineffassign)
    • Line 69: warning: undeclared name: gock (ineffassign)
    • Line 70: warning: undeclared name: gock (ineffassign)
    • Line 101: warning: undeclared name: gock (ineffassign)
    • Line 102: warning: undeclared name: gock (ineffassign)
    • Line 146: warning: undeclared name: gock (ineffassign)
    • Line 147: warning: undeclared name: gock (ineffassign)
    • Line 187: warning: undeclared name: gock (ineffassign)
    • Line 188: warning: undeclared name: gock (ineffassign)
    • Line 5: warning: "gopkg.in/h2non/gock.v1" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!