Preparing report...

Report for github.com/paysuper/paysuper-recurring-repository

(v1.5.0)

A    Great!    Found 7 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!


golint40%

Golint is a linter for Go source code.

    • paysuper-recurring-repository/internal/repository/subscription.go
    • Line 23: warning: exported method Repository.AddSubscription should have comment or be unexported (golint)
    • Line 76: warning: exported method Repository.UpdateSubscription should have comment or be unexported (golint)
    • Line 172: warning: exported method Repository.GetSubscription should have comment or be unexported (golint)
    • Line 223: warning: exported method Repository.FindSubscriptions should have comment or be unexported (golint)
    • Line 351: warning: exported method Repository.DeleteSubscription should have comment or be unexported (golint)
    • paysuper-recurring-repository/internal/app.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 24: warning: exported type Application should have comment or be unexported (golint)
    • Line 35: warning: exported function NewApplication should have comment or be unexported (golint)
    • Line 39: warning: exported method Application.Init should have comment or be unexported (golint)
    • Line 144: warning: exported method Application.Run should have comment or be unexported (golint)
    • Line 161: warning: exported method Application.Stop should have comment or be unexported (golint)
    • paysuper-recurring-repository/internal/repository/saved_card.go
    • Line 25: warning: exported method Repository.InsertSavedCard should have comment or be unexported (golint)
    • Line 84: warning: exported method Repository.DeleteSavedCard should have comment or be unexported (golint)
    • Line 126: warning: exported method Repository.FindSavedCards should have comment or be unexported (golint)
    • Line 161: warning: exported method Repository.FindSavedCardById should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!