generationtux/brizo

View on GitHub
app/handlers/web/auth.go

Summary

Maintainability
A
3 hrs
Test Coverage

Function AuthGithubCallbackHandler has 79 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func AuthGithubCallbackHandler(w http.ResponseWriter, r *http.Request) {
    auth.HydrateOAuthConfig(oauthConf)
    oAuthCallbackForm := new(auth.OAuthCallbackForm)
    errs := binding.Bind(r, oAuthCallbackForm)
    if errs.Len() > 0 {
Severity: Major
Found in app/handlers/web/auth.go - About 2 hrs to fix

    Function AuthGithubCallbackHandler has 10 return statements (exceeds 4 allowed).
    Open

    func AuthGithubCallbackHandler(w http.ResponseWriter, r *http.Request) {
        auth.HydrateOAuthConfig(oauthConf)
        oAuthCallbackForm := new(auth.OAuthCallbackForm)
        errs := binding.Bind(r, oAuthCallbackForm)
        if errs.Len() > 0 {
    Severity: Major
    Found in app/handlers/web/auth.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status