bashsupport-pro
bashsupport-pro copied to clipboard
More quick fixes.
BashSupport Pro complains about a lot of code but I have to fix it by hand. It would be nice if it had more quick fixes.
The three that would make the most difference to me, a bash novice, would be:
- A quick fix for SC2046 (quote this to prevent word splitting)
- A quick fix for variable could be local
- A quick fix for SC2155 (Declare and assign separately to avoid masking return values)
Of these, the "quote this to prevent word splitting" would be the most valuable, because sometimes the thing that it wants me to quote is part of a complex expression and it's tedious finding the ends. BashSupport Pro could add a lot of value there. I could probably get 80% of where I needed to on the other two using regular expression search and replace.