Closed edouard-lopez closed 7 years ago
The test files are not purely BASH, hence why the extension of the filename is .bats not .sh, and why the shebang is to bats. It is not reasonable to apply shellcheck to bats file as they are not parsed properly by shellcheck.
@jhmartin there is a branch to support bats
in shellcheck and an issue koalaman/shellcheck#417
I wrote the following
add-channel.tests.bats
tests suite, works fine. However shellsheck keep raising errors.Shellcheck errors
All the test case are seen has buggy and
shellcheck
stop on:output:
Question
How do I fix those BATS/shellcheck issues?
P.S.: cross-posting AtomLinter/linter-shellcheck#84.