mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-29 06:49:05 +08:00
ignore golang/go
This commit is contained in:
@@ -14,6 +14,11 @@ func CheckHandler(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
repo := r.FormValue("repo")
|
||||
if repo == "golang/go" {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
w.Write([]byte("We've decided to omit results for the Go repository because it has lots of test files that (purposely) don't pass our checks. Go gets an A+ in our books though!"))
|
||||
return
|
||||
}
|
||||
forceRefresh := r.Method != "GET" // if this is a GET request, try fetch from cached version in mongo first
|
||||
resp, err := newChecksResp(repo, forceRefresh)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user