summaryrefslogtreecommitdiff
path: root/test/test_shell_detection.vader
AgeCommit message (Collapse)Author
2020-11-21Fix 3103 - add shellcheck shell directive detection. (#3216)Horacio Sanson
* Fix 3103 - add shellcheck shell directive detection. Searches for shellcheck shell directive to detect dialects for scripts that do not have shebang. * Change order of detection of shellcheck dialect In a situation where the filetype can be wrong (example: something.sh which is written in bash dialect) and has no hash-bang (since it is meant to be sourced) then the override specified within the script will be ignored. It probably is the most right thing to do if the script author has added a specific directive; it should trump everything else. Co-authored-by: Horacio Sanson <horacio@allm.inc> Co-authored-by: Dino Korah <dino.korah@redmatter.com>
2020-08-17Merge pull request #2906 from ↵w0rp
elebow/shelldetect-fall-back-to-filetype-if-no-hashbang ShellDetect falls back to filetype if no hashbang (fixes #2886)
2020-04-28Fix shell detection test, shellcheck function name has changedIan2020
2019-11-23ShellDetect: fall back to filetype if no hashbangEddie Lebow
Some files lack a hashbang line but still have an unambiguous filetype. For example, the file `.zshrc` has the filetype `zsh`. Augment ale#handlers#sh#GetShellType to fall back to the filetype if no hashbang line can be found.
2019-01-24Add better detection for KornShell/kshAndrew Imeson
2019-01-24Fix test name for csh to not say zshAndrew Imeson
2017-10-26Fix #1051 - Support ash and dash for shellcheck and the sh linterw0rp
2017-08-28#869 - Detect the shell dialect from the hashbang for shellcheckw0rp