|
|
|
|
|
by ndsipa_pomu
641 days ago
|
|
If ShellCheck is spitting out lots of warnings, then it'd be worth changing your shell writing style to be more compliant with it. Simple things like always putting variables in quotes should prevent most of the warnings. If anything, long scripts benefit far more from using ShellCheck as you're more likely to make mistakes and are less likely to spot them. For the false positives, just put in the appropriate comment to disable ShellCheck's error ahead of that line e.g. # shellcheck disable=SC2034,SC2015 That stops the warning and also documents that you've used ShellCheck, seen the specific warning and know that it's not relevant to you. |
|
If that doesn't track with you, that's cool, I'm happy for you.