Is there a static analysis tool like Lint or Perl::Critic for shell scripts?

前端 未结 3 688
野趣味
野趣味 2020-12-02 09:51

Are there any shell (specifically bash or ksh) checkers that test shell scripts for style, best practices, naming conventions, etc? (Something like Lint for C, or Perl::Cri

3条回答
  •  一个人的身影
    2020-12-02 10:44

    I found shellcheck: it tests for common errors in quoting and other things you overlook ("because it works").

提交回复
热议问题