sensu/uchiwa

View on GitHub

Showing 81 of 81 total issues

Method Uchiwa.datacentersHandler has 5 return statements (exceeds 4 allowed).
Open

func (u *Uchiwa) datacentersHandler(w http.ResponseWriter, r *http.Request) {
    if r.Method != http.MethodGet && r.Method != http.MethodHead {
        http.Error(w, "", http.StatusBadRequest)
        return
    }
Severity: Major
Found in uchiwa/server.go - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language