Preparing report...

Report for github.com/icyflame/leprechaun

A    Great!    Found 11 issues across 11 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


golint0%

Golint is a linter for Go source code.

    • leprechaun/reset_requests.go
    • Line 3: warning: exported type ResetRequest should have comment or be unexported (golint)
    • Line 9: warning: exported function GetResetReq should have comment or be unexported (golint)
    • leprechaun/constants.go
    • Line 3: warning: exported const ERP_SECRET_QUES_URL should have comment or be unexported (golint)
    • Line 4: warning: exported const ERP_HOMEPAGE_URL should have comment or be unexported (golint)
    • Line 6: warning: exported const PATH_INDEX_PAGE should have comment or be unexported (golint)
    • Line 7: warning: exported const PATH_RESET_INDEX_PAGE should have comment or be unexported (golint)
    • Line 9: warning: exported const PATH_BEGIN_AUTH_PAGE should have comment or be unexported (golint)
    • Line 10: warning: exported const PATH_BEGIN_RESET_PAGE should have comment or be unexported (golint)
    • Line 11: warning: exported const PATH_BEGIN_AUTH_UNSUCCESSFUL_PAGE should have comment or be unexported (golint)
    • Line 12: warning: exported const PATH_STEP1_COMPLETE_PAGE should have comment or be unexported (golint)
    • Line 13: warning: exported const PATH_STEP2_COMPLETE_PAGE should have comment or be unexported (golint)
    • Line 14: warning: exported const PATH_RESET_COMPLETE_PAGE should have comment or be unexported (golint)
    • Line 16: warning: exported const EMAIL_SUBJECT_STEP2 should have comment or be unexported (golint)
    • Line 17: warning: exported const EMAIL_SUBJECT_RESET should have comment or be unexported (golint)
    • Line 19: warning: exported const ERROR_UNAUTH should have comment or be unexported (golint)
    • Line 20: warning: exported const ERROR_UNKNOWN_TYPE should have comment or be unexported (golint)
    • Line 21: warning: exported const ERROR_NOT_FOUND should have comment or be unexported (golint)
    • Line 23: warning: exported const HASH_LEN should have comment or be unexported (golint)
    • leprechaun/db.go
    • Line 9: warning: comment on exported function DialDB should be of the form "DialDB ..." (golint)
    • leprechaun/handlers.go
    • Line 18: warning: exported function Index should have comment or be unexported (golint)
    • Line 30: warning: exported function BeginAuth should have comment or be unexported (golint)
    • Line 98: warning: exported function VerifyStep1 should have comment or be unexported (golint)
    • Line 141: warning: exported function VerifyStep2 should have comment or be unexported (golint)
    • Line 160: warning: exported function ResetIndex should have comment or be unexported (golint)
    • Line 173: warning: exported function BeginReset should have comment or be unexported (golint)
    • Line 206: warning: exported function VerifyReset should have comment or be unexported (golint)
    • Line 244: warning: exported function GetDetails should have comment or be unexported (golint)
    • Line 255: warning: don't use underscores in Go names; var input_type should be inputType (golint)
    • Line 274: warning: don't use underscores in Go names; var to_return should be toReturn (golint)
    • Line 280: warning: don't use underscores in Go names; var proper_json should be properJSON (golint)
    • leprechaun/helpers.go
    • Line 36: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 44: warning: don't use underscores in Go names; var allowed_types should be allowedTypes (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter link_suffix should be linkSuffix (golint)
    • Line 67: warning: don't use underscores in Go names; var new_temp should be newTemp (golint)
    • Line 68: warning: don't use underscores in Go names; var templated_res should be templatedRes (golint)
    • Line 73: warning: comment on exported type AuthUnsuccessfulTemplateContext should be of the form "AuthUnsuccessfulTemplateContext ..." (with optional leading article) (golint)
    • Line 87: warning: don't use underscores in Go names; var new_temp should be newTemp (golint)
    • Line 89: warning: don't use underscores in Go names; var templated_res should be templatedRes (golint)
    • Line 94: warning: comment on exported type Step1Complete should be of the form "Step1Complete ..." (with optional leading article) (golint)
    • Line 109: warning: don't use underscores in Go names; var new_temp should be newTemp (golint)
    • Line 110: warning: don't use underscores in Go names; var templated_res should be templatedRes (golint)
    • Line 115: warning: comment on exported type Step2Complete should be of the form "Step2Complete ..." (with optional leading article) (golint)
    • Line 128: warning: don't use underscores in Go names; var new_temp should be newTemp (golint)
    • Line 129: warning: don't use underscores in Go names; var templated_res should be templatedRes (golint)
    • Line 144: warning: don't use underscores in Go names; var new_temp should be newTemp (golint)
    • Line 145: warning: don't use underscores in Go names; var templated_res should be templatedRes (golint)
    • Line 161: warning: don't use underscores in Go names; var new_temp should be newTemp (golint)
    • Line 162: warning: don't use underscores in Go names; var templated_res should be templatedRes (golint)
    • leprechaun/person.go
    • Line 15: warning: exported type Person should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function GetPerson should be of the form "GetPerson ..." (golint)
    • Line 39: warning: don't use underscores in Go names; var link_suffix should be linkSuffix (golint)
    • Line 45: warning: don't use underscores in Go names; var email_tok should be emailTok (golint)
    • Line 60: warning: comment on exported function SendVerificationEmail should be of the form "SendVerificationEmail ..." (golint)
    • leprechaun/routes.go
    • Line 5: warning: exported type Route should have comment or be unexported (golint)
    • Line 12: warning: exported type Routes should have comment or be unexported (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!


misspell90%

Misspell Finds commonly misspelled English words