Open a-t-0 opened 3 years ago
<p>Pro-tip, apparently this can be done (semi-) automatically:</p>
running the shellcheck command with -f diff (format diff) should produce standardized diff files with all the fixes applied. The only thing you have to do is open this in an editor which supports diff formatting (for example vs code) and check the changes/apply them.
where the filepath is the relative path to the file your improving, e.g.:
Then shellcheck displays the things that could be improved, and tells you how to do that, then you can improve them and run it again, untill shellcheck is silenced for that file. An example that solves the last "shellcheck issue" on line 83 is displayed in the video below:
Here is the list of file todo:
Root directory: