Currently let's only cover scripts/ directory, as all scripts in there has been cleaned up to make shellcheck pass without any warnings. In tor codebase there are still quite a bit of scripts that shellcheck finds objectionable. I will open some tickets later.
I think this needs to be something that only happens when shellcheck is installed. Unless we really want to require all developers and distributors to install shellcheck?
Actually, you know what.. Can we fix the formatting in that makefile rule, and maybe comment that the command -v thing is checking for shellcheck before running it? The fact that Nick missed that is probably a sign this code is too dense right now.