Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rtbo committed Mar 18, 2021
1 parent 37c0373 commit dafdea8
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions ale_linters/d/dmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ function! s:GetDUBCommand(buffer) abort
" from that directory.
if !empty(l:config)
return [fnamemodify(l:config, ':h'), 'dub describe --data-list
\ --data=import-paths
\ --data=string-import-paths
\ --data=versions
\ --data=debug-versions
\']
\ --data=import-paths
\ --data=string-import-paths
\ --data=versions
\ --data=debug-versions
\']
endif
endif

Expand Down Expand Up @@ -62,6 +62,7 @@ function! ale_linters#d#dmd#DMDCommand(buffer, dub_output, meta) abort
elseif l:list_ind == 4
call add(l:deb_versions_list, '-debug=' . ale#Escape(l:line))
endif

let l:seen_line = 1
elseif !l:seen_line
" if list is empty must skip one empty line
Expand All @@ -73,9 +74,9 @@ function! ale_linters#d#dmd#DMDCommand(buffer, dub_output, meta) abort
endfor

return 'dmd ' . join(l:import_list) . ' ' .
\ join(l:str_import_list) . ' ' .
\ join(l:versions_list) . ' ' .
\ join(l:deb_versions_list) . ' -o- -wi -vcolumns -c %t'
\ join(l:str_import_list) . ' ' .
\ join(l:versions_list) . ' ' .
\ join(l:deb_versions_list) . ' -o- -wi -vcolumns -c %t'
endfunction

function! ale_linters#d#dmd#Handle(buffer, lines) abort
Expand Down

0 comments on commit dafdea8

Please sign in to comment.