From d7ed49f84964aebdaa180b553e83943cd85c5d20 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 22 Jan 2017 14:54:57 +0000 Subject: Add a script for custom checks to enforce using the abort flag for functions and trailing whitespace, and fix existing issues. --- ale_linters/sh/shell.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ale_linters/sh/shell.vim') diff --git a/ale_linters/sh/shell.vim b/ale_linters/sh/shell.vim index f996f7e1..786cc0e6 100644 --- a/ale_linters/sh/shell.vim +++ b/ale_linters/sh/shell.vim @@ -11,7 +11,7 @@ if !exists('g:ale_linters_sh_shell_default_shell') endif endif -function! ale_linters#sh#shell#GetExecutable(buffer) +function! ale_linters#sh#shell#GetExecutable(buffer) abort let l:banglines = getbufline(a:buffer, 1) " Take the shell executable from the hashbang, if we can. @@ -29,11 +29,11 @@ function! ale_linters#sh#shell#GetExecutable(buffer) return g:ale_linters_sh_shell_default_shell endfunction -function! ale_linters#sh#shell#GetCommand(buffer) +function! ale_linters#sh#shell#GetCommand(buffer) abort return ale_linters#sh#shell#GetExecutable(a:buffer) . ' -n' endfunction -function! ale_linters#sh#shell#Handle(buffer, lines) +function! ale_linters#sh#shell#Handle(buffer, lines) abort " Matches patterns line the following: " " bash: line 13: syntax error near unexpected token `d' -- cgit v1.2.3