diff options
author | Auri <me@aurieh.me> | 2018-10-17 18:11:41 +0300 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-10-17 16:11:41 +0100 |
commit | be21aa5cda39850d9f0261e3b6cac9d48a170756 (patch) | |
tree | dac5b3105be2930e81be392b7afbcdbed1d75309 /ale_linters/d/dmd.vim | |
parent | d999eb1f3564cb2933059ae2bc1e7d5edda2a8d2 (diff) | |
download | ale-be21aa5cda39850d9f0261e3b6cac9d48a170756.zip |
New linter: dls (#1992)
* New linter: dls
Diffstat (limited to 'ale_linters/d/dmd.vim')
-rw-r--r-- | ale_linters/d/dmd.vim | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/ale_linters/d/dmd.vim b/ale_linters/d/dmd.vim index d64b6c3d..c816d592 100644 --- a/ale_linters/d/dmd.vim +++ b/ale_linters/d/dmd.vim @@ -1,20 +1,6 @@ " Author: w0rp <devw0rp@gmail.com> " Description: "dmd for D files" -function! s:FindDUBConfig(buffer) abort - " Find a DUB configuration file in ancestor paths. - " The most DUB-specific names will be tried first. - for l:possible_filename in ['dub.sdl', 'dub.json', 'package.json'] - let l:dub_file = ale#path#FindNearestFile(a:buffer, l:possible_filename) - - if !empty(l:dub_file) - return l:dub_file - endif - endfor - - return '' -endfunction - function! ale_linters#d#dmd#DUBCommand(buffer) abort " If we can't run dub, then skip this command. if !executable('dub') @@ -22,7 +8,7 @@ function! ale_linters#d#dmd#DUBCommand(buffer) abort return '' endif - let l:dub_file = s:FindDUBConfig(a:buffer) + let l:dub_file = ale#d#FindDUBConfig(a:buffer) if empty(l:dub_file) return '' |