Fix minor details in new Bats support

This commit is contained in:
Vidar Holen 2019-01-20 14:02:42 -08:00
parent c97cb8cf54
commit e1fe9be7af
4 changed files with 11 additions and 1 deletions

View file

@ -52,6 +52,7 @@ shellFromFilename filename = foldl mplus Nothing candidates
where
shellExtensions = [(".ksh", Ksh)
,(".bash", Bash)
,(".bats", Bash)
,(".dash", Dash)]
-- The `.sh` is too generic to determine the shell:
-- We fallback to Bash in this case and emit SC2148 if there is no shebang