style: fecs related doc and vim scripts

This commit is contained in:
Jun Yang
2019-03-26 23:39:45 +08:00
committed by harttle
parent c820089c44
commit d4841cedf2
6 changed files with 9 additions and 17 deletions

View File

@@ -1,9 +1,6 @@
" Author: harttle <yangjvn@126.com>
" Description: Apply fecs format to a file.
call ale#Set('html_fecs_executable', 'fecs')
call ale#Set('html_fecs_use_global', get(g:, 'ale_use_global_executables', 0))
function! ale#fixers#fecs#Fix(buffer) abort
let l:executable = ale#handlers#fecs#GetExecutable(a:buffer)
@@ -11,10 +8,10 @@ function! ale#fixers#fecs#Fix(buffer) abort
return 0
endif
let l:config_options = ' format --replace=true'
let l:config_options = ' format --replace=true %t'
return {
\ 'command': ale#Escape(l:executable) . l:config_options . ' %t',
\ 'command': ale#Escape(l:executable) . l:config_options,
\ 'read_temporary_file': 1,
\}
endfunction

View File

@@ -38,9 +38,9 @@ function! ale#handlers#fecs#Handle(buffer, lines) abort
let l:obj.text = l:code_match[1]
endif
if l:match[1] ==# 'WARN'
if l:match[1] is# 'WARN'
let l:obj.type = 'W'
elseif l:match[1] ==# 'ERROR'
elseif l:match[1] is# 'ERROR'
let l:obj.type = 'E'
endif