Fix multiline indentation

This commit is contained in:
Héctor Ramón Jiménez 2018-05-25 22:22:47 +02:00
parent b071f1a795
commit 7fd0fd514b
1 changed files with 34 additions and 34 deletions

View File

@ -51,17 +51,17 @@ function! ale_linters#elm#make#HandleElm019Line(line, output) abort
if ale_linters#elm#make#FileIsBuffer(l:report.path) if ale_linters#elm#make#FileIsBuffer(l:report.path)
call add(a:output, { call add(a:output, {
\ 'lnum': 1, \ 'lnum': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'text': l:details, \ 'text': l:details,
\}) \})
else else
call add(a:output, { call add(a:output, {
\ 'lnum': 1, \ 'lnum': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'text': l:report.path .' - '. l:details, \ 'text': l:report.path .' - '. l:details,
\ 'detail': l:report.path ." ----------\n\n". l:details, \ 'detail': l:report.path ." ----------\n\n". l:details,
\}) \})
endif endif
else else
" Compilation errors " Compilation errors
@ -74,22 +74,22 @@ function! ale_linters#elm#make#HandleElm019Line(line, output) abort
if l:file_is_buffer if l:file_is_buffer
" Buffer module has problems " Buffer module has problems
call add(a:output, { call add(a:output, {
\ 'lnum': l:problem.region.start.line, \ 'lnum': l:problem.region.start.line,
\ 'col': l:problem.region.start.column, \ 'col': l:problem.region.start.column,
\ 'end_lnum': l:problem.region.end.line, \ 'end_lnum': l:problem.region.end.line,
\ 'end_col': l:problem.region.end.column, \ 'end_col': l:problem.region.end.column,
\ 'type': 'E', \ 'type': 'E',
\ 'text': l:details, \ 'text': l:details,
\}) \})
else else
" Imported module has problems " Imported module has problems
let l:location = l:error.path .':'. l:problem.region.start.line let l:location = l:error.path .':'. l:problem.region.start.line
call add(a:output, { call add(a:output, {
\ 'lnum': 1, \ 'lnum': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'text': l:location .' - '. l:details, \ 'text': l:location .' - '. l:details,
\ 'detail': l:location ." ----------\n\n". l:details, \ 'detail': l:location ." ----------\n\n". l:details,
\}) \})
endif endif
endfor endfor
endfor endfor
@ -105,24 +105,24 @@ function! ale_linters#elm#make#HandleElm018Line(line, output) abort
if l:file_is_buffer if l:file_is_buffer
" Current buffer has problems " Current buffer has problems
call add(a:output, { call add(a:output, {
\ 'lnum': l:error.region.start.line, \ 'lnum': l:error.region.start.line,
\ 'col': l:error.region.start.column, \ 'col': l:error.region.start.column,
\ 'end_lnum': l:error.region.end.line, \ 'end_lnum': l:error.region.end.line,
\ 'end_col': l:error.region.end.column, \ 'end_col': l:error.region.end.column,
\ 'type': (l:error.type is? 'error') ? 'E' : 'W', \ 'type': (l:error.type is? 'error') ? 'E' : 'W',
\ 'text': l:error.overview, \ 'text': l:error.overview,
\ 'detail': l:error.overview . "\n\n" . l:error.details \ 'detail': l:error.overview . "\n\n" . l:error.details
\}) \})
elseif l:error.type is? 'error' elseif l:error.type is? 'error'
" Imported module has errors " Imported module has errors
let l:location = l:error.file .':'. l:error.region.start.line let l:location = l:error.file .':'. l:error.region.start.line
call add(a:output, { call add(a:output, {
\ 'lnum': 1, \ 'lnum': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'text': l:location .' - '. l:error.overview, \ 'text': l:location .' - '. l:error.overview,
\ 'detail': l:location ." ----------\n\n". l:error.overview . "\n\n" . l:error.details \ 'detail': l:location ." ----------\n\n". l:error.overview . "\n\n" . l:error.details
\}) \})
endif endif
endfor endfor
endfunction endfunction