`shellcheck` all core files
Description
Add custom, lib, scripts, and template to clean_files.txt and address the fallout. This helps towards #1696.
Motivation and Context
My entire glob branch would have been unnecessary if these files had been checked by spellcheck, so let's do it!
How Has This Been Tested?
All tests pass!
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
Checklist:
- [x] My code follows the code style of this project.
- [x] If my change requires a change to the documentation, I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
- [x] If I have added a new file, I also added it to
clean_files.txtand formatted it usinglint_clean_files.sh. - [x] I have added tests to cover my changes, and all the new and existing tests pass.
This is a draft as it is a work-in-progress!
This branch is based on uname, basename, and brew, so those PRs are assumed to have been accepted before this one. (Otherwise there are a lot of unrelated changes in here!)
IMO, this is too much risk for one PR : 24 files?
It's like six files, only one of which I've (partially) committed. The rest you see in the list are from a different PR, which has been approved but not merged yet. This PR is a draft because it's not ready yet.
Worry not, it will be clean and clear before submission! 👍
This is a draft as it is a work-in-progress!
This branch is based on
uname,basename, andbrew, so those PRs are assumed to have been accepted before this one. (Otherwise there are a lot of unrelated changes in here!)
(Just rebased on master since uname has been merged.)
All tests are passing, but this branch grew significantly so I will try to split it up a bit in separate PRs. The number of files actually changed here for shellcheck should be 7-10; the rest are from the prerequisite PRs that aren't merged yet.
Ok! This PR is still pretty big, but it's now narrowed down to specifically linting these files. I'm leaving it marked as draft as smaller PRs are more likely to go through sooner.
Rebased on current master. This PR no longer contains any unrelated changes to specifically shellcheck (and shfmt), as the prerequisite PRs have already been merged. 👍