wisedog/ladybug

View on GitHub
controllers/builds.go

Summary

Maintainability
A
1 hr
Test Coverage

Function AddTool has 7 return statements (exceeds 4 allowed).
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"}
Severity: Major
Found in controllers/builds.go - About 45 mins to fix

    Function BuildsSaveProject has 5 return statements (exceeds 4 allowed).
    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"}
        }
    Severity: Major
    Found in controllers/builds.go - About 35 mins to fix

      Your code does not pass gofmt in 3 places. Go fmt your code!
      Open

      package controllers
      Severity: Minor
      Found in controllers/builds.go by gofmt

      There are no issues that match your filters.

      Category
      Status