handlers/handlers.go
Function ExecuteResponse
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func ExecuteResponse(w http.ResponseWriter, r *http.Request, file string, data interface{}, redirect interface{}) {
Function ScopeName
has 5 return statements (exceeds 4 allowed). Open
Open
func ScopeName(r *http.Request) string {
if ok := hasAPIQuery(r); ok {
return "admin"
}
if ok := hasAuthorizationHeader(r); ok {
Function IsFullAuthenticated
has 5 return statements (exceeds 4 allowed). Open
Open
func IsFullAuthenticated(r *http.Request) bool {
if ok := hasSetupEnv(); ok {
return true
}
if ok := hasAPIQuery(r); ok {