summaryrefslogtreecommitdiff
path: root/ale_linters/d
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-01-22 14:54:57 +0000
committerw0rp <devw0rp@gmail.com>2017-01-22 14:54:57 +0000
commitd7ed49f84964aebdaa180b553e83943cd85c5d20 (patch)
treefc71c3fb869ca67864a32d4513cb27f25ce50f69 /ale_linters/d
parente4a4fcd26bff47b3611887167a0510a5e29cbe3b (diff)
downloadale-d7ed49f84964aebdaa180b553e83943cd85c5d20.zip
Add a script for custom checks to enforce using the abort flag for functions and trailing whitespace, and fix existing issues.
Diffstat (limited to 'ale_linters/d')
-rw-r--r--ale_linters/d/dmd.vim6
1 files changed, 3 insertions, 3 deletions
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