Fitbit/smartling

View on GitHub

Showing 3 of 89 total issues

Function newApp has 55 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func newApp() *cli.App {
    app := cli.NewApp()

    app.Name = "smartling"
    app.Version = strings.TrimPrefix(Version, "v")
Severity: Minor
Found in cli/app.go - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                        if resp, err = req.Post(_url); err == nil {
                            err = rest.Result(resp, &stats)
                        }
    Severity: Major
    Found in service/default_file_service.go - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                  } else if i < p-1 {
                      files = allFiles[low:high]
                  } else {
                      files = allFiles[low:]
                  }
      Severity: Major
      Found in model/project_resource.go - About 45 mins to fix
        Severity
        Category
        Status
        Source
        Language