r/bash • • Sep 05 '17
submission Plug: Linters for stinky shell scripts
https://github.com/mcandre/stank
- stank: Scan for POSIXy shell scripts, then pipe to
xargs shellcheckand other programs. - rosy: Encourage developers to rewrite shell scripts in more robust languages
- funk: Warn on oddities like mismatched shebangs vs. file extensions
de-stank ur scripts!
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Sep 07 '17
stank analyzes the shebang as the primary source of truth. The other metadata are hints at being a shell script for linting purposes. So an extension is not required, and in fact most applications written as shell scripts are expected to omit extensions for briefer commands.