Preparing report...

Report for github.com/dstpierre/gosaas

A+    Excellent!    Found 14 issues across 48 files

Tweet

gofmt95%

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!


gocyclo97%

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.


golint77%

Golint is a linter for Go source code.

    • gosaas/data/conn.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 30: warning: exported method DB.Close should have comment or be unexported (golint)
    • gosaas/data/postgres/users.go
    • Line 11: warning: exported type Users should have comment or be unexported (golint)
    • Line 15: warning: exported method Users.SignUp should have comment or be unexported (golint)
    • Line 47: warning: exported method Users.Auth should have comment or be unexported (golint)
    • Line 64: warning: exported method Users.GetDetail should have comment or be unexported (golint)
    • Line 104: warning: exported method Users.GetUserByEmail should have comment or be unexported (golint)
    • Line 114: warning: exported method Users.GetByStripe should have comment or be unexported (golint)
    • Line 124: warning: exported method Users.ChangePassword should have comment or be unexported (golint)
    • Line 124: warning: receiver name repo should be consistent with previous receiver name u for Users (golint)
    • Line 134: warning: exported method Users.SetSeats should have comment or be unexported (golint)
    • Line 143: warning: exported method Users.ConvertToPaid should have comment or be unexported (golint)
    • Line 157: warning: exported method Users.ChangePlan should have comment or be unexported (golint)
    • Line 167: warning: exported method Users.Cancel should have comment or be unexported (golint)
    • Line 182: warning: exported method Users.AddToken should have comment or be unexported (golint)
    • Line 186: warning: exported method Users.RemoveToken should have comment or be unexported (golint)
    • gosaas/queue/billing.go
    • Line 16: warning: exported type Billing should have comment or be unexported (golint)
    • Line 18: warning: exported method Billing.Run should have comment or be unexported (golint)
    • gosaas/queue/email.go
    • Line 11: warning: exported type SendEmailParameter should have comment or be unexported (golint)
    • Line 18: warning: exported type Email should have comment or be unexported (golint)
    • Line 22: warning: exported type Emailer should have comment or be unexported (golint)
    • Line 26: warning: exported method Email.Run should have comment or be unexported (golint)
    • gosaas/data/postgres/webhooks.go
    • Line 9: warning: exported type Webhooks should have comment or be unexported (golint)
    • Line 13: warning: exported method Webhooks.Add should have comment or be unexported (golint)
    • Line 21: warning: exported method Webhooks.List should have comment or be unexported (golint)
    • Line 44: warning: exported method Webhooks.Delete should have comment or be unexported (golint)
    • Line 54: warning: exported method Webhooks.AllSubscriptions should have comment or be unexported (golint)
    • gosaas/billing.go
    • Line 92: warning: exported method Billing.Overview should have comment or be unexported (golint)
    • Line 237: warning: exported method Billing.Start should have comment or be unexported (golint)
    • gosaas/page.go
    • Line 141: warning: comment on exported function ExtractLimitAndOffset should be of the form "ExtractLimitAndOffset ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell93%

Misspell Finds commonly misspelled English words