hunterlong/statup

View on GitHub
handlers/handlers.go

Summary

Maintainability
A
1 hr
Test Coverage

Function ExecuteResponse has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func ExecuteResponse(w http.ResponseWriter, r *http.Request, file string, data interface{}, redirect interface{}) {
Severity: Minor
Found in handlers/handlers.go - About 35 mins to fix

    Function ScopeName has 5 return statements (exceeds 4 allowed).
    Open

    func ScopeName(r *http.Request) string {
        if ok := hasAPIQuery(r); ok {
            return "admin"
        }
        if ok := hasAuthorizationHeader(r); ok {
    Severity: Major
    Found in handlers/handlers.go - About 35 mins to fix

      Function IsFullAuthenticated has 5 return statements (exceeds 4 allowed).
      Open

      func IsFullAuthenticated(r *http.Request) bool {
          if ok := hasSetupEnv(); ok {
              return true
          }
          if ok := hasAPIQuery(r); ok {
      Severity: Major
      Found in handlers/handlers.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status