Thread overview | |||||
---|---|---|---|---|---|
|
April 23, 2017 [OT] do we have lint for bash? | ||||
---|---|---|---|---|
| ||||
https://abload.de/img/tmpliy6q.png |
April 23, 2017 Re: [OT] do we have lint for bash? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | On Sunday, 23 April 2017 at 09:51:36 UTC, Kagamin wrote: > https://abload.de/img/tmpliy6q.png I guess you're looking for something like http://www.shellcheck.net/ However I don't see how an automated tool could have found the error in your screenshot as passing multiple arguments to rm is a perfectly reasonnable thing. Maybe it could have suggested to put quotes which would have helped though. It's too peculiar to be expected from a generic tool though IMHO. |
April 23, 2017 Re: [OT] do we have lint for bash? | ||||
---|---|---|---|---|
| ||||
Posted in reply to cym13 | On Sunday, 23 April 2017 at 10:07:30 UTC, cym13 wrote: > On Sunday, 23 April 2017 at 09:51:36 UTC, Kagamin wrote: >> https://abload.de/img/tmpliy6q.png > > I guess you're looking for something like http://www.shellcheck.net/ > > However I don't see how an automated tool could have found the error in your screenshot as passing multiple arguments to rm is a perfectly reasonnable thing. Maybe it could have suggested to put quotes which would have helped though. It's too peculiar to be expected from a generic tool though IMHO. ShellCheck does catch that. https://github.com/koalaman/shellcheck/wiki/SC2114 |
Copyright © 1999-2021 by the D Language Foundation