controllers/builds.go
Function AddTool
has 7 return statements (exceeds 4 allowed). Open
Open
func AddTool(c *interfacer.AppContext, w http.ResponseWriter, r *http.Request) error {
if err := r.ParseForm(); err != nil {
log.Error("Build", "type", "http", "msg ", err)
return errors.HttpError{Status: http.StatusInternalServerError, Desc: "ParseForm failed"}
Function BuildsSaveProject
has 5 return statements (exceeds 4 allowed). Open
Open
func BuildsSaveProject(c *interfacer.AppContext, w http.ResponseWriter, r *http.Request) error {
if err := r.ParseForm(); err != nil {
log.Error("Build", "Error ", err)
return errors.HttpError{Status: http.StatusInternalServerError, Desc: "ParseForm failed"}
}
Your code does not pass gofmt in 3 places. Go fmt your code! Open
Open
package controllers
- Exclude checks