Shellcheck warns about using local, but there's no problem with us using it. That warning should be disabled in our default invocation of shellcheck.
Also take this chance to set up shellcheck with HoundCI. We'll need a .hound.yml and a yaml file for the shellcheck warnings to ignore