thrawn01/args

View on GitHub

Showing 22 of 80 total issues

Function createChickens has 5 return statements (exceeds 4 allowed).
Open

func createChickens(subParser *args.ArgParser, data interface{}) (int, error) {
    subParser.AddArgument("name").Required().Help("The name of the chicken to create")
    opts := subParser.ParseSimple(nil)
    if opts == nil {
        return 1, nil
Severity: Major
Found in examples/chicken-cli/checkin-cli.go - About 35 mins to fix

    Function WatchFile has 5 return statements (exceeds 4 allowed).
    Open

    func WatchFile(path string, interval time.Duration, callBack func(error)) (WatchCancelFunc, error) {
        var isRunning sync.WaitGroup
        fsWatch, err := fsnotify.NewWatcher()
        if err != nil {
            return nil, err
    Severity: Major
    Found in watchfile.go - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language