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/d/dmd.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ale_linters/d') diff --git a/ale_linters/d/dmd.vim b/ale_linters/d/dmd.vim index 8619eba2..0a6e9bf3 100644 --- a/ale_linters/d/dmd.vim +++ b/ale_linters/d/dmd.vim @@ -2,7 +2,7 @@ " Description: "dmd for D files" " A function for finding the dmd-wrapper script in the Vim runtime paths -function! s:FindWrapperScript() +function! s:FindWrapperScript() abort for l:parent in split(&runtimepath, ',') " Expand the path to deal with ~ issues. let l:path = expand(l:parent . '/' . 'dmd-wrapper') @@ -13,7 +13,7 @@ function! s:FindWrapperScript() endfor endfunction -function! ale_linters#d#dmd#GetCommand(buffer) +function! ale_linters#d#dmd#GetCommand(buffer) abort let l:wrapper_script = s:FindWrapperScript() let l:command = l:wrapper_script . ' -o- -vcolumns -c' @@ -21,7 +21,7 @@ function! ale_linters#d#dmd#GetCommand(buffer) return l:command endfunction -function! ale_linters#d#dmd#Handle(buffer, lines) +function! ale_linters#d#dmd#Handle(buffer, lines) abort " Matches patterns lines like the following: " /tmp/tmp.qclsa7qLP7/file.d(1): Error: function declaration without return type. (Note that constructors are always named 'this') " /tmp/tmp.G1L5xIizvB.d(8,8): Error: module weak_reference is in file 'dstruct/weak_reference.d' which cannot be read -- cgit v1.2.3