luizm / action-sh-checker

A GitHub action that performs static analysis for shell scripts using shellcheck, shfmt and checkbashisms.
MIT License
132 stars 12 forks source link

Include check of optional extensions. e.g bats-file extension #52

Open janderssonse opened 2 years ago

janderssonse commented 2 years ago

I'm using the bats-core framework,https://github.com/bats-core/bats-core and I'm locally using shellcheck for checking these scripts - by convention they have the .bats-extension). Would be great if this action allowed picking them up too. Bats is a fairly spread test framework so it is not a super special case IMHO. Suggestion for solutions: Either autopick up the .bats extension also, or (more work?) by allowing the user to configure extensions that should be picked up for checking. Thanks for the action btw!

luizm commented 2 years ago

hey.. we could have sh_checker_include parameter.

I'm not able to tackle it right now, but I will check ASAP

Thanks