[LEDE-DEV] Automated shell code debugging
bb at npl.de
Tue Oct 4 23:14:31 PDT 2016
* Jan-Tarek Butt <tarek at ring0.de> [05.10.2016 07:47]:
> > also we must "mute" some "errors", e.g. the usage of
> > 'local' in functions, which is not POSIX (but is in the
> > process of inclusion)
> shellcheck is able to do that.
> for mutin just add the comment
> # shellcheck disable=<error präfix>
is is not that easy. shellcheck defines error-numbers
but sadly it combines ~10 errors into 1 code: SC2039:
so if you mute this 'local var' thingy, you are hiding
alot of other stuff also...
More information about the Lede-dev