Showing 3 of 89 total issues
Function newApp
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func newApp() *cli.App {
app := cli.NewApp()
app.Name = "smartling"
app.Version = strings.TrimPrefix(Version, "v")
Avoid deeply nested control flow statements. Open
Open
if resp, err = req.Post(_url); err == nil {
err = rest.Result(resp, &stats)
}
Avoid deeply nested control flow statements. Open
Open
} else if i < p-1 {
files = allFiles[low:high]
} else {
files = allFiles[low:]
}